public class SolidDBDictionary extends DBDictionary
DBDictionary.SerializedData| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
autoAssignSequenceName
The global sequence name to use for auto-assign simulation.
|
java.lang.String |
lockingMode
Possible values for LockingMode are "PESSIMISTIC" and "OPTIMISTIC"
|
boolean |
openjpa3GeneratedKeyNames
Flag to use OpenJPA 0.3 style naming for auto assign sequence name and
trigger name for backwards compatibility.
|
boolean |
storeIsMemory
Sets whether tables are to be located in-memory or on disk.
|
boolean |
useTriggersForAutoAssign
If true, then simulate auto-assigned values in SolidDB by
using a trigger that inserts a sequence value into the
primary key value when a row is inserted.
|
_proxyManager, allowsAliasInBulkClause, arrayTypeName, autoAssignClause, autoAssignTypeName, batchLimit, bigintTypeName, binaryTypeName, bitLengthFunction, bitTypeName, blobBufferSize, blobTypeName, booleanTypeName, castFunction, catalogSeparator, CENTI, characterColumnSize, charTypeName, clobBufferSize, clobTypeName, closePoolSQL, concatenateDelimiter, concatenateFunction, conf, connected, CONS_NAME_AFTER, CONS_NAME_BEFORE, CONS_NAME_MID, constraintNameMode, createPrimaryKeys, crossJoinClause, currentDateFunction, currentTimeFunction, currentTimestampFunction, datePrecision, dateTypeName, DECI, decimalTypeName, defaultSchemaName, delimitedCase, distinctCountColumnSeparator, distinctTypeName, doubleTypeName, driverVendor, dropTableSQL, fixedSizeTypeNames, fixedSizeTypeNameSet, floatTypeName, forUpdateClause, getStringVal, inClauseLimit, initializationSQL, innerJoinClause, integerTypeName, invalidColumnWordSet, isJDBC3, isJDBC4, javaObjectTypeName, joinSyntax, lastGeneratedKeyQuery, leadingDelimiter, log, longVarbinaryTypeName, longVarcharTypeName, maxAutoAssignNameLength, maxColumnNameLength, maxConstraintNameLength, maxEmbeddedBlobSize, maxEmbeddedClobSize, maxIndexesPerTable, maxIndexNameLength, maxTableNameLength, MICRO, MILLI, NAME_ANY, NAME_SEQUENCE, NAME_TABLE, nameConcatenator, NANO, nativeSequenceType, nextSequenceQuery, NO_BATCH, nullTypeName, numericTypeName, otherTypeName, outerJoinClause, platform, RANGE_POST_DISTINCT, RANGE_POST_LOCK, RANGE_POST_SELECT, RANGE_PRE_DISTINCT, rangePosition, realTypeName, refTypeName, reportsSuccessNoInfoOnBatchUpdates, requiresAliasForSubselect, requiresAutoCommitForMetaData, requiresCastForComparisons, requiresCastForMathFunctions, requiresConditionForCrossJoin, requiresSearchStringEscapeForLike, requiresTargetForDelete, reservedWords, reservedWordSet, roundTimeToMillisec, SCHEMA_CASE_LOWER, SCHEMA_CASE_PRESERVE, SCHEMA_CASE_UPPER, schemaCase, searchStringEscape, SEC, selectWords, selectWordSet, sequenceNameSQL, sequenceSchemaSQL, sequenceSQL, setStringRightTruncationOn, simulateLocking, smallintTypeName, sqlStateCodes, storageLimitationsFatal, storeCharsAsNumbers, storeLargeNumbersAsStrings, stringLengthFunction, structTypeName, substringFunctionName, supportsAlterTableWithAddColumn, supportsAlterTableWithDropColumn, supportsAutoAssign, supportsCascadeDeleteAction, supportsCascadeUpdateAction, supportsCaseConversionForLob, supportsComments, supportsCorrelatedSubselect, supportsDefaultDeleteAction, supportsDefaultUpdateAction, supportsDeferredConstraints, supportsDelimitedIdentifiers, supportsForeignKeys, supportsForeignKeysComposite, supportsGeneralCaseExpression, supportsGetGeneratedKeys, supportsHaving, supportsLockingWithDistinctClause, supportsLockingWithInnerJoin, supportsLockingWithMultipleTables, supportsLockingWithOrderClause, supportsLockingWithOuterJoin, supportsLockingWithSelectRange, supportsModOperator, supportsMultipleNontransactionalResultSets, supportsNullDeleteAction, supportsNullTableForGetColumns, supportsNullTableForGetImportedKeys, supportsNullTableForGetIndexInfo, supportsNullTableForGetPrimaryKeys, supportsNullUniqueColumn, supportsNullUpdateAction, supportsParameterInSelect, supportsQueryTimeout, supportsRestrictDeleteAction, supportsRestrictUpdateAction, supportsSchemaForGetColumns, supportsSchemaForGetTables, supportsSelectEndIndex, supportsSelectForUpdate, supportsSelectFromFinalTable, supportsSelectStartIndex, supportsSimpleCaseExpression, supportsSubselect, supportsUniqueConstraints, supportsXMLColumn, systemSchemas, systemSchemaSet, systemTables, systemTableSet, tableForUpdateClause, tableLengthIncludesSchema, tableTypes, timestampTypeName, timeTypeName, tinyintTypeName, toLowerCaseFunction, toUpperCaseFunction, trailingDelimiter, trimBothFunction, trimLeadingFunction, trimSchemaName, trimStringColumns, trimTrailingFunction, typeModifierSet, UNLIMITED, useGetBestRowIdentifierForPrimaryKeys, useGetBytesForBlobs, useGetObjectForBlobs, useGetStringForClobs, useJDBC4SetBinaryStream, useNativeSequenceCache, useSchemaName, useSetBytesForBlobs, useSetStringForClobs, useWildCardForCount, validationSQL, varbinaryTypeName, varcharTypeName, VENDOR_DATADIRECT, VENDOR_OTHER, xmlTypeEncoding, xmlTypeNameSYNTAX_DATABASE, SYNTAX_SQL92, SYNTAX_TRADITIONAL| Constructor and Description |
|---|
SolidDBDictionary() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendSelect(SQLBuffer selectSQL,
java.lang.Object alias,
Select sel,
int idx)
Append
elem to selectSQL. |
java.lang.String |
convertSchemaCase(DBIdentifier objectName)
Convert the specified schema name to a name that the database will
be able to understand.
|
void |
endConfiguration()
Invoked upon completion of bean property configuration for this object.
|
protected java.lang.String |
getAutoGenSeqName(Column col) |
java.lang.String[] |
getCreateTableSQL(Table table,
SchemaGroup group)
Return a series of SQL statements to create the given table, complete
with columns.
|
protected java.lang.String |
getGeneratedKeyTriggerName(Column col)
Trigger name for simulating auto-assign values on the given column.
|
protected java.lang.String |
getGenKeySeqName(java.lang.String query,
Column col) |
protected java.lang.String |
getOpenJPA3GeneratedKeySequenceName(Column col)
Returns a OpenJPA 3-compatible name for an auto-assign sequence.
|
protected java.lang.String |
getOpenJPA3GeneratedKeyTriggerName(Column col)
Returns a OpenJPA 3-compatible name for an auto-assign trigger.
|
protected java.lang.String |
getSequencesSQL(DBIdentifier schemaName,
DBIdentifier sequenceName) |
protected java.lang.String |
getSequencesSQL(java.lang.String schemaName,
java.lang.String sequenceName)
Return the SQL needed to select the list of sequences.
|
void |
indexOf(SQLBuffer buf,
FilterValue str,
FilterValue find,
FilterValue start)
Invoke this database's indexOf function.
|
boolean |
isFatalException(int subtype,
java.sql.SQLException ex)
Determine if the given SQL Exception is fatal or recoverable (such as a timeout).
|
boolean |
isSystemIndex(DBIdentifier name,
Table table)
This method is used to filter system indexes from database metadata.
|
boolean |
isSystemSequence(DBIdentifier name,
DBIdentifier schema,
boolean targetSchema)
This method is used to filter system sequences from database metadata.
|
boolean |
needsToCreateIndex(Index idx,
Table table,
Unique[] uniques) |
protected ForeignKey |
newForeignKey(java.sql.ResultSet fkMeta)
Solid does not support deferred referential integrity checking.
|
protected boolean |
sequenceExists(java.lang.String schemaName,
java.lang.String seqName,
SchemaGroup group) |
void |
setBigDecimal(java.sql.PreparedStatement stmnt,
int idx,
java.math.BigDecimal val,
Column col)
Set the given value as a parameter to the statement.
|
void |
setDouble(java.sql.PreparedStatement stmnt,
int idx,
double val,
Column col)
Set the given value as a parameter to the statement.
|
void |
substring(SQLBuffer buf,
FilterValue str,
FilterValue start,
FilterValue length)
Invoke this database's substring function.
|
addCastAsType, addErrorCode, appendCast, appendLength, appendNumericCast, appendSelectRange, appendSize, appendUpdates, appendXmlComparison, assertSupport, calculateValue, canOuterJoin, checkNameLength, checkNameLength, checkNameLength, closeDataSource, combineForeignKey, comment, comparison, configureNamingRules, connectedConfiguration, convertSchemaCase, copy, copy, createIndexIfNecessary, createIndexIfNecessary, decorate, deleteStream, delimitAll, executeQuery, fromDBName, getAddColumnSQL, getAddForeignKeySQL, getAddPrimaryKeySQL, getAlterSequenceSQL, getArray, getAsciiStream, getBatchFetchSize, getBatchLimit, getBatchUpdateCount, getBigDecimal, getBigInteger, getBinaryStream, getBlob, getBlobObject, getBoolean, getByte, getBytes, getCalendar, getCastFunction, getCastFunction, getCatalogNameForMetadata, getCatalogNameForMetadata, getChar, getCharacterStream, getClob, getClobString, getColumnDBName, getColumnIdentifier, getColumnNameForMetadata, getColumnNameForMetadata, getColumns, getColumns, getConversionKey, getCreateIndexSQL, getCreateSequenceSQL, getCreateTableSQL, getDate, getDate, getDeclareColumnSQL, getDefaultIdentifierRule, getDefaultSchemaName, getDeleteTableContentsSQL, getDeleteTargets, getDelimitedCase, getDelimitIdentifiers, getDouble, getDropColumnSQL, getDropForeignKeySQL, getDropIndexSQL, getDropPrimaryKeySQL, getDropSequenceSQL, getDropTableSQL, getFloat, getForeignKeyConstraintSQL, getForUpdateClause, getFrom, getFromSelect, getFullIdentifier, getFullName, getFullName, getFullName, getGeneratedKey, getGeneratedKeySequenceName, getIdentifierConcatenator, getIdentifierDelimiter, getIdentifierRule, getIdentifierRules, getIdentityColumnName, getImportedKeys, getImportedKeys, getImportedKeys, getImportedKeys, getIndexInfo, getIndexInfo, getInt, getInvalidColumnWordSet, getIsNotNullSQL, getIsNullSQL, getJDBCType, getJDBCType, getJDBCType, getKey, getLeadingDelimiter, getLOBStream, getLocale, getLog, getLong, getMarkerForInsertUpdate, getNamingUtil, getNumber, getObject, getPlaceholderValueString, getPreferredType, getPrimaryKeyConstraintSQL, getPrimaryKeys, getPrimaryKeys, getPrimaryKeysFromBestRowIdentifier, getPrimaryKeysFromBestRowIdentifier, getPrimaryKeysFromGetPrimaryKeys, getPrimaryKeysFromGetPrimaryKeys, getRef, getSchemaCase, getSchemaNameForMetadata, getSchemaNameForMetadata, getSelectOperation, getSelects, getSelectTableAliases, getSequence, getSequences, getSequences, getShort, getString, getSupportsDelimitedIdentifiers, getSupportsXMLColumn, getTableNameForMetadata, getTableNameForMetadata, getTables, getTables, getTime, getTimestamp, getTrailingDelimiter, getTrimSchemaName, getTypeName, getTypeName, getUniqueConstraintSQL, getValidColumnName, getValidColumnName, getValidColumnName, getValidColumnName, getValidForeignKeyName, getValidForeignKeyName, getValidIndexName, getValidIndexName, getValidPrimaryKeyName, getValidSequenceName, getValidSequenceName, getValidTableName, getValidTableName, getValidUniqueName, getValidUniqueName, getVersionColumn, getVersionColumn, getWhere, getXMLTypeEncoding, handleWarning, insertBlobForStreamingLoad, insertClobForStreamingLoad, insertSize, isImplicitJoin, isSelect, isSystemIndex, isSystemSequence, isSystemSequence, isSystemTable, isSystemTable, makeNameValid, makeNameValid, makeNameValid, makeNameValid, matchErrorState, mathFunction, narrow, needsToCreateIndex, newColumn, newIndex, newPrimaryKey, newSequence, newStoreException, newTable, prepareStatement, putBytes, putChars, putString, refSchemaComponents, serialize, setArray, setAsciiStream, setBatchLimit, setBigInteger, setBinaryStream, setBlob, setBlobObject, setBoolean, setByte, setBytes, setCalendar, setChar, setCharacterStream, setClob, setClobString, setConfiguration, setDate, setDate, setDefaultSchemaName, setDelimitedCase, setDelimitIdentifiers, setFloat, setInt, setJoinSyntax, setLeadingDelimiter, setLocale, setLong, setNull, setNumber, setObject, setQueryTimeout, setRef, setShort, setStatementQueryTimeout, setString, setSupportsDelimitedIdentifiers, setSupportsXMLColumn, setTime, setTimeouts, setTimeouts, setTimestamp, setTrailingDelimiter, setTrimSchemaName, setTyped, setUnknown, setUnknown, setXMLTypeEncoding, shorten, startConfiguration, storageWarning, supportsDeferredForeignKeyConstraints, supportsDeferredUniqueConstraints, supportsDeleteAction, supportsIsolationForUpdate, supportsLocking, supportsRandomAccessResultSet, supportsUpdateAction, toBulkOperation, toDBName, toDBName, toDelete, toLong, toNativeJoin, toOperation, toOperation, toSelect, toSelect, toSelect, toSelect, toSelect, toSelectCount, toSQL92Join, toTraditionalJoin, toUpdate, updateBlob, updateClob, validateBatchProcess, validateDBSpecificBatchProcesspublic boolean storeIsMemory
public boolean useTriggersForAutoAssign
public java.lang.String autoAssignSequenceName
public boolean openjpa3GeneratedKeyNames
public java.lang.String lockingMode
public void endConfiguration()
ConfigurableendConfiguration in interface ConfigurableendConfiguration in class DBDictionarypublic java.lang.String[] getCreateTableSQL(Table table, SchemaGroup group)
DBDictionarygetCreateTableSQL in class DBDictionaryprotected boolean sequenceExists(java.lang.String schemaName,
java.lang.String seqName,
SchemaGroup group)
protected java.lang.String getGeneratedKeyTriggerName(Column col)
protected java.lang.String getOpenJPA3GeneratedKeySequenceName(Column col)
protected java.lang.String getOpenJPA3GeneratedKeyTriggerName(Column col)
protected java.lang.String getAutoGenSeqName(Column col)
protected java.lang.String getGenKeySeqName(java.lang.String query,
Column col)
getGenKeySeqName in class DBDictionarypublic java.lang.String convertSchemaCase(DBIdentifier objectName)
DBDictionaryconvertSchemaCase in class DBDictionarypublic void substring(SQLBuffer buf, FilterValue str, FilterValue start, FilterValue length)
DBDictionarysubstring in class DBDictionarybuf - the SQL buffer to write the substring invocation tostr - a query value representing the target stringstart - a query value representing the start indexlength - a query value representing the length of substring, or null for nonepublic void indexOf(SQLBuffer buf, FilterValue str, FilterValue find, FilterValue start)
DBDictionaryindexOf in class DBDictionarybuf - the SQL buffer to write the indexOf invocation tostr - a query value representing the target stringfind - a query value representing the search stringstart - a query value representing the start index, or null
to start at the beginningpublic boolean isSystemIndex(DBIdentifier name, Table table)
DBDictionaryisSystemIndex in class DBDictionaryname - the index nametable - the index tablepublic boolean isSystemSequence(DBIdentifier name, DBIdentifier schema, boolean targetSchema)
DBDictionaryisSystemSequence in class DBDictionaryname - the table nameschema - the table schema; may be nulltargetSchema - if true, then the given schema was listed by
the user as one of his schemaspublic void setBigDecimal(java.sql.PreparedStatement stmnt,
int idx,
java.math.BigDecimal val,
Column col)
throws java.sql.SQLException
DBDictionarysetBigDecimal in class DBDictionaryjava.sql.SQLExceptionpublic void setDouble(java.sql.PreparedStatement stmnt,
int idx,
double val,
Column col)
throws java.sql.SQLException
DBDictionarysetDouble in class DBDictionaryjava.sql.SQLExceptionpublic boolean needsToCreateIndex(Index idx, Table table, Unique[] uniques)
needsToCreateIndex in class DBDictionaryprotected java.lang.String getSequencesSQL(java.lang.String schemaName,
java.lang.String sequenceName)
DBDictionarygetSequencesSQL in class DBDictionaryprotected java.lang.String getSequencesSQL(DBIdentifier schemaName, DBIdentifier sequenceName)
getSequencesSQL in class DBDictionaryprotected void appendSelect(SQLBuffer selectSQL, java.lang.Object alias, Select sel, int idx)
DBDictionaryelem to selectSQL.appendSelect in class DBDictionaryselectSQL - The SQLBuffer to append to.protected ForeignKey newForeignKey(java.sql.ResultSet fkMeta) throws java.sql.SQLException
newForeignKey in class DBDictionaryjava.sql.SQLExceptionpublic boolean isFatalException(int subtype,
java.sql.SQLException ex)
DBDictionaryisFatalException in class DBDictionarysubtype - A constant indicating the category of error as defined in StoreException.ex - original SQL Exception as raised by the database driver.Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.