类 DerbyDialect
- java.lang.Object
-
- org.hibernate.dialect.Dialect
-
- org.hibernate.dialect.DB2Dialect
-
- org.hibernate.dialect.DerbyDialect
-
- 所有已实现的接口:
ConversionContext
- 直接已知子类:
DerbyTenFiveDialect
@Deprecated public class DerbyDialect extends DB2Dialect
已过时。HHH-6073Hibernate Dialect for Cloudscape 10 - aka Derby. This implements both an override for the identity column generator as well as for the case statement issue documented at: http://www.jroller.com/comments/kenlars99/Weblog/cloudscape_soon_to_be_derby- 作者:
- Simon Johnston
-
-
构造器概要
构造器 构造器 说明 DerbyDialect()已过时。Constructs a DerbyDialect
-
方法概要
所有方法 实例方法 具体方法 已过时的方法 修饰符和类型 方法 说明 IdentifierHelperbuildIdentifierHelper(IdentifierHelperBuilder builder, DatabaseMetaData dbMetaData)已过时。Build the IdentifierHelper indicated by this Dialect for handling identifier conversions.CaseFragmentcreateCaseFragment()已过时。Create aCaseFragmentstrategy responsible for handling this dialect's variations in how CASE statements are handled.booleandropConstraints()已过时。Do we need to drop constraints before dropping tables in this dialect?StringgetCrossJoinSeparator()已过时。Returns the separator to use for defining cross joins when translating HQL queries.MultiTableBulkIdStrategygetDefaultMultiTableBulkIdStrategy()已过时。StringgetForUpdateString()已过时。Get the string to append to SELECT statements to acquire locks for this dialect.LimitHandlergetLimitHandler()已过时。Returns the delegate managing LIMIT clause.StringgetLimitString(String query, int offset, int limit)已过时。Given a limit and an offset, apply the limit clause to the query.StringgetQuerySequencesString()已过时。Get the select command used retrieve the names of all sequences.StringgetReadLockString(int timeout)已过时。Get the string to append to SELECT statements to acquire READ locks for this dialect.SequenceInformationExtractorgetSequenceInformationExtractor()已过时。StringgetSequenceNextValString(String sequenceName)已过时。Generate the appropriate select statement to to retrieve the next value of a sequence.StringgetWriteLockString(int timeout)已过时。Get the string to append to SELECT statements to acquire WRITE locks for this dialect.protected voidregisterDerbyKeywords()已过时。booleansupportsCommentOn()已过时。Does this dialect/database support commenting on tables, columns, etc?booleansupportsLimit()已过时。Does this dialect support some form of limiting query results via a SQL clause?booleansupportsLimitOffset()已过时。Does this dialect's LIMIT support (if any) additionally support specifying an offset?booleansupportsLobValueChangePropogation()已过时。Does the dialect support propagating changes to LOB values back to the database?booleansupportsSequences()已过时。Does this dialect support sequences?booleansupportsTuplesInSubqueries()已过时。Does this dialect support tuples in subqueries?booleansupportsUnboundedLobLocatorMaterialization()已过时。Is it supported to materialize a LOB locator outside the transaction in which it was created?booleansupportsVariableLimit()已过时。Does this dialect support bind variables (i.e., prepared statement parameters) for its limit/offset?-
从类继承的方法 org.hibernate.dialect.DB2Dialect
buildSQLExceptionConversionDelegate, convertToFirstRowValue, doesReadCommittedCauseWritersToBlockReaders, getAddColumnString, getCreateSequenceString, getCurrentTimestampSelectString, getDropSequenceString, getIdentityColumnSupport, getLowercaseFunction, getNotExpression, getResultSet, getSelectClauseNullString, getSelectSequenceNextValString, getSqlTypeDescriptorOverride, getUniqueDelegate, isCurrentTimestampSelectStringCallable, registerResultSetOutParameter, renderOrderByElement, requiresCastingOfParametersInSelectClause, supportsCurrentTimestampSelection, supportsEmptyInList, supportsExistsInSelect, supportsLockTimeouts, supportsOuterJoinForUpdate, supportsParametersInInsertSelect, supportsPartitionBy, supportsPooledSequences, supportsResultSetPositionQueryMethodsOnForwardOnlyCursor, supportsTupleDistinctCounts, supportsUnionAll, useMaxForLimit
-
从类继承的方法 org.hibernate.dialect.Dialect
addSqlHintOrComment, appendLockHint, appendLockHint, applyLocksToSql, areStringComparisonsCaseInsensitive, augmentRecognizedTableTypes, bindLimitParametersFirst, bindLimitParametersInReverseOrder, buildSQLExceptionConverter, canCreateCatalog, canCreateSchema, cast, cast, cast, closeQuote, contributeTypes, createOuterJoinFragment, defaultScrollMode, doesRepeatableReadCauseReadersToBlockWriters, escapeLiteral, forceLimitUsage, forceLobAsLastValue, forUpdateOfColumns, getAddColumnSuffixString, getAddForeignKeyConstraintString, getAddForeignKeyConstraintString, getAddPrimaryKeyConstraintString, getAddUniqueConstraintString, getAlterTableString, getAuxiliaryDatabaseObjectExporter, getCallableStatementSupport, getCascadeConstraintsString, getCaseInsensitiveLike, getCastTypeName, getColumnAliasExtractor, getColumnComment, getCreateCatalogCommand, getCreateMultisetTableString, getCreateSchemaCommand, getCreateSequenceString, getCreateSequenceStrings, getCreateSequenceStrings, getCreateTableString, getCurrentSchemaCommand, getCurrentTimestampSQLFunctionName, getDefaultBatchLoadSizingStrategy, getDefaultProperties, getDialect, getDialect, getDropCatalogCommand, getDropForeignKeyString, getDropSchemaCommand, getDropSequenceStrings, getDropTableString, getForeignKeyExporter, getForUpdateNowaitString, getForUpdateNowaitString, getForUpdateSkipLockedString, getForUpdateSkipLockedString, getForUpdateString, getForUpdateString, getForUpdateString, getForUpdateString, getFunctions, getHibernateTypeName, getHibernateTypeName, getIndexExporter, getInExpressionCountLimit, getKeywords, getLimitString, getLobMergeStrategy, getLockingStrategy, getMaxAliasLength, getNameQualifierSupport, getNativeIdentifierGeneratorClass, getNativeIdentifierGeneratorStrategy, getNoColumnsInsertString, getNullColumnString, getQueryHintString, getQueryHintString, getReadLockString, getResultSet, getResultSet, getSchemaNameResolver, getSelectGUIDString, getSequenceExporter, getTableComment, getTableExporter, getTableTypeString, getTypeName, getTypeName, getUniqueKeyExporter, getViolatedConstraintNameExtracter, getWriteLockString, hasAlterTable, hasSelfReferentialForeignKeyBug, inlineLiteral, isJdbcLogWarningsEnabledByDefault, isLegacyLimitHandlerBehaviorEnabled, isLockTimeoutParameterized, isTypeNameRegistered, openQuote, prependComment, qualifyIndexName, quote, registerColumnType, registerColumnType, registerFunction, registerHibernateType, registerHibernateType, registerKeyword, registerResultSetOutParameter, remapSqlTypeDescriptor, replaceResultVariableInOrderByClauseWithPosition, requiresParensForTupleDistinctCounts, supportsBindAsCallableArgument, supportsCascadeDelete, supportsCaseInsensitiveLike, supportsCircularCascadeDeleteConstraints, supportsColumnCheck, supportsExpectedLobUsagePattern, supportsIfExistsAfterAlterTable, supportsIfExistsAfterConstraintName, supportsIfExistsAfterTableName, supportsIfExistsBeforeConstraintName, supportsIfExistsBeforeTableName, supportsJdbcConnectionLobCreation, supportsNamedParameters, supportsNationalizedTypes, supportsNoColumnsInsert, supportsNonQueryWithCTE, supportsNotNullUnique, supportsNoWait, supportsRowValueConstructorSyntax, supportsRowValueConstructorSyntaxInInList, supportsSelectAliasInGroupByClause, supportsSkipLocked, supportsSubqueryOnMutatingTable, supportsSubselectAsInPredicateLHS, supportsTableCheck, supportsTupleCounts, supportsUnique, supportsUniqueConstraintInCreateAlterTable, supportsValuesList, toBooleanValueString, toString, transformSelectString, useFollowOnLocking, useFollowOnLocking, useInputStreamToInsertBlob
-
-
-
-
方法详细资料
-
getCrossJoinSeparator
public String getCrossJoinSeparator()
已过时。从类复制的说明:DialectReturns the separator to use for defining cross joins when translating HQL queries. Typically this will be either [ cross join ] or [, ] Note that the spaces are important!- 覆盖:
getCrossJoinSeparator在类中DB2Dialect- 返回:
- The cross join separator
-
createCaseFragment
public CaseFragment createCaseFragment()
已过时。从类复制的说明:DialectCreate aCaseFragmentstrategy responsible for handling this dialect's variations in how CASE statements are handled.- 覆盖:
createCaseFragment在类中Dialect- 返回:
- This dialect's
CaseFragmentstrategy.
-
dropConstraints
public boolean dropConstraints()
已过时。从类复制的说明:DialectDo we need to drop constraints before dropping tables in this dialect?- 覆盖:
dropConstraints在类中DB2Dialect- 返回:
- True if constraints must be dropped prior to dropping the table; false otherwise.
-
supportsSequences
public boolean supportsSequences()
已过时。从类复制的说明:DialectDoes this dialect support sequences?- 覆盖:
supportsSequences在类中DB2Dialect- 返回:
- True if sequences supported; false otherwise.
-
getQuerySequencesString
public String getQuerySequencesString()
已过时。从类复制的说明:DialectGet the select command used retrieve the names of all sequences.- 覆盖:
getQuerySequencesString在类中DB2Dialect- 返回:
- The select command; or null if sequences are not supported.
- 另请参阅:
SchemaUpdate
-
getSequenceInformationExtractor
public SequenceInformationExtractor getSequenceInformationExtractor()
已过时。
-
getSequenceNextValString
public String getSequenceNextValString(String sequenceName)
已过时。从类复制的说明:DialectGenerate the appropriate select statement to to retrieve the next value of a sequence. This should be a "stand alone" select statement.- 覆盖:
getSequenceNextValString在类中DB2Dialect- 参数:
sequenceName- the name of the sequence- 返回:
- String The "nextval" select string.
-
supportsLimit
public boolean supportsLimit()
已过时。从类复制的说明:DialectDoes this dialect support some form of limiting query results via a SQL clause?- 覆盖:
supportsLimit在类中DB2Dialect- 返回:
- True if this dialect supports some form of LIMIT.
-
supportsCommentOn
public boolean supportsCommentOn()
已过时。从类复制的说明:DialectDoes this dialect/database support commenting on tables, columns, etc?- 覆盖:
supportsCommentOn在类中DB2Dialect- 返回:
trueif commenting is supported
-
supportsLimitOffset
public boolean supportsLimitOffset()
已过时。从类复制的说明:DialectDoes this dialect's LIMIT support (if any) additionally support specifying an offset?- 覆盖:
supportsLimitOffset在类中Dialect- 返回:
- True if the dialect supports an offset within the limit support.
-
getForUpdateString
public String getForUpdateString()
已过时。从类复制的说明:DialectGet the string to append to SELECT statements to acquire locks for this dialect.- 覆盖:
getForUpdateString在类中DB2Dialect- 返回:
- The appropriate FOR UPDATE clause string.
-
getWriteLockString
public String getWriteLockString(int timeout)
已过时。从类复制的说明:DialectGet the string to append to SELECT statements to acquire WRITE locks for this dialect. Location of the returned string is treated the same as getForUpdateString.- 覆盖:
getWriteLockString在类中Dialect- 参数:
timeout- in milliseconds, -1 for indefinite wait and 0 for no wait.- 返回:
- The appropriate LOCK clause string.
-
getReadLockString
public String getReadLockString(int timeout)
已过时。从类复制的说明:DialectGet the string to append to SELECT statements to acquire READ locks for this dialect. Location of the returned string is treated the same as getForUpdateString.- 覆盖:
getReadLockString在类中Dialect- 参数:
timeout- in milliseconds, -1 for indefinite wait and 0 for no wait.- 返回:
- The appropriate LOCK clause string.
-
getLimitHandler
public LimitHandler getLimitHandler()
已过时。从类复制的说明:DialectReturns the delegate managing LIMIT clause.- 覆盖:
getLimitHandler在类中DB2Dialect- 返回:
- LIMIT clause delegate.
-
supportsTuplesInSubqueries
public boolean supportsTuplesInSubqueries()
已过时。从类复制的说明:DialectDoes this dialect support tuples in subqueries? Ex: delete from Table1 where (col1, col2) in (select col1, col2 from Table2)- 覆盖:
supportsTuplesInSubqueries在类中Dialect- 返回:
- boolean
-
getLimitString
public String getLimitString(String query, int offset, int limit)
已过时。Given a limit and an offset, apply the limit clause to the query. From Derby 10.5 Docs:Query [ORDER BY clause] [result offset clause] [fetch first clause] [FOR UPDATE clause] [WITH {RR|RS|CS|UR}]- 覆盖:
getLimitString在类中DB2Dialect- 参数:
query- The query to which to apply the limit.offset- The offset of the limitlimit- The limit of the limit ;)- 返回:
- The modified query statement with the limit applied.
-
supportsVariableLimit
public boolean supportsVariableLimit()
已过时。从类复制的说明:DialectDoes this dialect support bind variables (i.e., prepared statement parameters) for its limit/offset?- 覆盖:
supportsVariableLimit在类中DB2Dialect- 返回:
- True if bind variables can be used; false otherwise.
-
supportsLobValueChangePropogation
public boolean supportsLobValueChangePropogation()
已过时。从类复制的说明:DialectDoes the dialect support propagating changes to LOB values back to the database? Talking about mutating the internal value of the locator as opposed to supplying a new locator instance... For BLOBs, the internal value might be changed by:Blob.setBinaryStream(long),Blob.setBytes(long, byte[]),Blob.setBytes(long, byte[], int, int), orBlob.truncate(long). For CLOBs, the internal value might be changed by:Clob.setAsciiStream(long),Clob.setCharacterStream(long),Clob.setString(long, String),Clob.setString(long, String, int, int), orClob.truncate(long). NOTE : I do not know the correct answer currently for databases which (1) are not part of the cruise control process or (2) do notDialect.supportsExpectedLobUsagePattern().- 覆盖:
supportsLobValueChangePropogation在类中DB2Dialect- 返回:
- True if the changes are propagated back to the database; false otherwise.
-
supportsUnboundedLobLocatorMaterialization
public boolean supportsUnboundedLobLocatorMaterialization()
已过时。从类复制的说明:DialectIs it supported to materialize a LOB locator outside the transaction in which it was created? Again, part of the trickiness here is the fact that this is largely driver dependent. NOTE: all database I have tested whichDialect.supportsExpectedLobUsagePattern()also support the ability to materialize a LOB outside the owning transaction...- 覆盖:
supportsUnboundedLobLocatorMaterialization在类中Dialect- 返回:
- True if unbounded materialization is supported; false otherwise.
-
buildIdentifierHelper
public IdentifierHelper buildIdentifierHelper(IdentifierHelperBuilder builder, DatabaseMetaData dbMetaData) throws SQLException
已过时。从类复制的说明:DialectBuild the IdentifierHelper indicated by this Dialect for handling identifier conversions. Returningnullis allowed and indicates that Hibernate should fallback to building a "standard" helper. In the fallback path, any changes made to the IdentifierHelperBuilder during this call will still be incorporated into the built IdentifierHelper. The incoming builder will have the following set:IdentifierHelperBuilder.isGloballyQuoteIdentifiers()IdentifierHelperBuilder.getUnquotedCaseStrategy()- initialized to UPPERIdentifierHelperBuilder.getQuotedCaseStrategy()- initialized to MIXED
- Call
IdentifierHelperBuilder.applyIdentifierCasing(DatabaseMetaData) - Call
IdentifierHelperBuilder.applyReservedWords(DatabaseMetaData) - Applies
AnsiSqlKeywords.sql2003()as reserved words - Applies the {#link #sqlKeywords} collected here as reserved words
- Applies the Dialect's NameQualifierSupport, if it defines one
- 覆盖:
buildIdentifierHelper在类中Dialect- 参数:
builder- A semi-configured IdentifierHelper builder.dbMetaData- Access to the metadata returned from the driver if needed and if available. WARNING: may benull- 返回:
- The IdentifierHelper instance to use, or
nullto indicate Hibernate should use its fallback path - 抛出:
SQLException- Accessing the DatabaseMetaData can throw it. Just re-throw and Hibernate will handle.- 另请参阅:
Dialect.getNameQualifierSupport()
-
registerDerbyKeywords
protected void registerDerbyKeywords()
已过时。
-
getDefaultMultiTableBulkIdStrategy
public MultiTableBulkIdStrategy getDefaultMultiTableBulkIdStrategy()
已过时。From Derby docs:
The DECLARE GLOBAL TEMPORARY TABLE statement defines a temporary table for the current connection.DB2Dialectreturns aGlobalTemporaryTableBulkIdStrategythat will make temporary tables created at startup and hence unavailable for subsequent connections.
see HHH-10238.
-
-