类 Oracle8iDialect
- java.lang.Object
-
- org.hibernate.dialect.Dialect
-
- org.hibernate.dialect.Oracle8iDialect
-
- 所有已实现的接口:
ConversionContext
- 直接已知子类:
Oracle9iDialect
public class Oracle8iDialect extends Dialect
A dialect for Oracle 8i.- 作者:
- Steve Ebersole
-
-
构造器概要
构造器 构造器 说明 Oracle8iDialect()Constructs an Oracle8iDialect
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 booleanbindLimitParametersInReverseOrder()ANSI SQL defines the LIMIT clause to be in the form LIMIT offset, limit.SQLExceptionConversionDelegatebuildSQLExceptionConversionDelegate()Build an instance of aSQLExceptionConversionDelegatefor interpreting dialect-specific error or SQLState codes.booleancanCreateSchema()Does this dialect support schema creation?CaseFragmentcreateCaseFragment()Map case support to the Oracle DECODE function.JoinFragmentcreateOuterJoinFragment()Create aJoinFragmentstrategy responsible for handling this dialect's variations in how joins are handled.booleandropConstraints()Do we need to drop constraints before dropping tables in this dialect?booleanforceLobAsLastValue()HHH-4635 Oracle expects all Lob values to be last in inserts and updates.booleanforUpdateOfColumns()Is FOR UPDATE OF syntax supported?StringgetAddColumnString()The syntax used to add a column to a table (optional).StringgetBasicSelectClauseNullString(int sqlType)Allows access to the basicDialect.getSelectClauseNullString(int)implementation...CallableStatementSupportgetCallableStatementSupport()StringgetCascadeConstraintsString()Completely optional cascading drop clauseStringgetCreateSequenceString(String sequenceName)Typically dialects which support sequences can create a sequence with a single command.protected StringgetCreateSequenceString(String sequenceName, int initialValue, int incrementSize)Overloaded form ofDialect.getCreateSequenceString(String), additionally taking the initial value and increment size to be applied to the sequence definition.StringgetCrossJoinSeparator()Returns the separator to use for defining cross joins when translating HQL queries.StringgetCurrentSchemaCommand()Get the SQL command used to retrieve the current schema name.StringgetCurrentTimestampSelectString()Retrieve the command used to retrieve the current timestamp from the database.StringgetCurrentTimestampSQLFunctionName()The name of the database-specific SQL function for retrieving the current timestamp.MultiTableBulkIdStrategygetDefaultMultiTableBulkIdStrategy()StringgetDropSequenceString(String sequenceName)Typically dialects which support sequences can drop a sequence with a single command.StringgetForUpdateNowaitString()Retrieves the FOR UPDATE NOWAIT syntax specific to this dialect.StringgetForUpdateNowaitString(String aliases)Get the FOR UPDATE OF column_list NOWAIT fragment appropriate for this dialect given the aliases of the columns to be write locked.StringgetForUpdateString(String aliases)Get the FOR UPDATE OF column_list fragment appropriate for this dialect given the aliases of the columns to be write locked.intgetInExpressionCountLimit()Return the limit that the underlying database places on the number of elements in anINpredicate.LimitHandlergetLimitHandler()Returns the delegate managing LIMIT clause.StringgetLimitString(String sql, boolean hasOffset)Apply a limit clause to the query.intgetMaxAliasLength()What is the maximum length Hibernate can use for generated aliases?StringgetNotExpression(String expression)Negate an expressionStringgetQueryHintString(String sql, String hints)Apply a hint to the query.StringgetQuerySequencesString()Get the select command used retrieve the names of all sequences.ResultSetgetResultSet(CallableStatement ps)Given a callable statement previously processed byDialect.registerResultSetOutParameter(java.sql.CallableStatement, int), extract theResultSetfrom the OUT parameter.StringgetSelectClauseNullString(int sqlType)Given aTypestype code, determine an appropriate null value to use in a select clause.StringgetSelectGUIDString()Get the command used to select a GUID from the underlying database.StringgetSelectSequenceNextValString(String sequenceName)Generate the select expression fragment that will retrieve the next value of a sequence as part of another (typically DML) statement.SequenceInformationExtractorgetSequenceInformationExtractor()StringgetSequenceNextValString(String sequenceName)Generate the appropriate select statement to to retrieve the next value of a sequence.protected SqlTypeDescriptorgetSqlTypeDescriptorOverride(int sqlCode)Returns theSqlTypeDescriptorthat should be used to handle the given JDBC type code.ViolatedConstraintNameExtractergetViolatedConstraintNameExtracter()booleanisCurrentTimestampSelectStringCallable()Should the value returned byDialect.getCurrentTimestampSelectString()be treated as callable.protected voidregisterCharacterTypeMappings()protected voidregisterDateTimeTypeMappings()protected voidregisterDefaultProperties()protected voidregisterFunctions()protected voidregisterLargeObjectTypeMappings()protected voidregisterNumericTypeMappings()intregisterResultSetOutParameter(CallableStatement statement, int col)Registers a parameter (either OUT, or the new REF_CURSOR param type available in Java 8) capable of returningResultSet*by position*.protected voidregisterReverseHibernateTypeMappings()protected StringstatementType(String sql)booleansupportsCommentOn()Does this dialect/database support commenting on tables, columns, etc?booleansupportsCurrentTimestampSelection()Does this dialect support a way to retrieve the database's current timestamp value?booleansupportsEmptyInList()Does this dialect support empty IN lists?booleansupportsExistsInSelect()Does the dialect support an exists statement in the select clause?booleansupportsLimit()Does this dialect support some form of limiting query results via a SQL clause?booleansupportsNoWait()Does this dialect/database support NO_WAIT timeout.booleansupportsPartitionBy()Does the underlying database support partition bybooleansupportsPooledSequences()Does this dialect support "pooled" sequences.booleansupportsSequences()Does this dialect support sequences?booleansupportsUnionAll()Does this dialect support UNION ALL, which is generally a faster variant of UNION?booleanuseFollowOnLocking(QueryParameters parameters)For Oracle, the FOR UPDATE clause cannot be applied when using ORDER BY, DISTINCT or views.booleanuseMaxForLimit()Does the LIMIT clause take a "maximum" row number instead of a total number of returned rows?-
从类继承的方法 org.hibernate.dialect.Dialect
addSqlHintOrComment, appendLockHint, appendLockHint, applyLocksToSql, areStringComparisonsCaseInsensitive, augmentRecognizedTableTypes, bindLimitParametersFirst, buildIdentifierHelper, buildSQLExceptionConverter, canCreateCatalog, cast, cast, cast, closeQuote, contributeTypes, convertToFirstRowValue, defaultScrollMode, doesReadCommittedCauseWritersToBlockReaders, doesRepeatableReadCauseReadersToBlockWriters, escapeLiteral, forceLimitUsage, getAddColumnSuffixString, getAddForeignKeyConstraintString, getAddForeignKeyConstraintString, getAddPrimaryKeyConstraintString, getAddUniqueConstraintString, getAlterTableString, getAuxiliaryDatabaseObjectExporter, getCaseInsensitiveLike, getCastTypeName, getColumnAliasExtractor, getColumnComment, getCreateCatalogCommand, getCreateMultisetTableString, getCreateSchemaCommand, getCreateSequenceStrings, getCreateSequenceStrings, getCreateTableString, getDefaultBatchLoadSizingStrategy, getDefaultProperties, getDialect, getDialect, getDropCatalogCommand, getDropForeignKeyString, getDropSchemaCommand, getDropSequenceStrings, getDropTableString, getForeignKeyExporter, getForUpdateSkipLockedString, getForUpdateSkipLockedString, getForUpdateString, getForUpdateString, getForUpdateString, getForUpdateString, getFunctions, getHibernateTypeName, getHibernateTypeName, getIdentityColumnSupport, getIndexExporter, getKeywords, getLimitString, getLobMergeStrategy, getLockingStrategy, getLowercaseFunction, getNameQualifierSupport, getNativeIdentifierGeneratorClass, getNativeIdentifierGeneratorStrategy, getNoColumnsInsertString, getNullColumnString, getQueryHintString, getReadLockString, getReadLockString, getResultSet, getResultSet, getSchemaNameResolver, getSequenceExporter, getTableComment, getTableExporter, getTableTypeString, getTypeName, getTypeName, getUniqueDelegate, getUniqueKeyExporter, getWriteLockString, getWriteLockString, hasAlterTable, hasSelfReferentialForeignKeyBug, inlineLiteral, isJdbcLogWarningsEnabledByDefault, isLegacyLimitHandlerBehaviorEnabled, isLockTimeoutParameterized, isTypeNameRegistered, openQuote, prependComment, qualifyIndexName, quote, registerColumnType, registerColumnType, registerFunction, registerHibernateType, registerHibernateType, registerKeyword, registerResultSetOutParameter, remapSqlTypeDescriptor, renderOrderByElement, replaceResultVariableInOrderByClauseWithPosition, requiresCastingOfParametersInSelectClause, requiresParensForTupleDistinctCounts, supportsBindAsCallableArgument, supportsCascadeDelete, supportsCaseInsensitiveLike, supportsCircularCascadeDeleteConstraints, supportsColumnCheck, supportsExpectedLobUsagePattern, supportsIfExistsAfterAlterTable, supportsIfExistsAfterConstraintName, supportsIfExistsAfterTableName, supportsIfExistsBeforeConstraintName, supportsIfExistsBeforeTableName, supportsJdbcConnectionLobCreation, supportsLimitOffset, supportsLobValueChangePropogation, supportsLockTimeouts, supportsNamedParameters, supportsNationalizedTypes, supportsNoColumnsInsert, supportsNonQueryWithCTE, supportsNotNullUnique, supportsOuterJoinForUpdate, supportsParametersInInsertSelect, supportsResultSetPositionQueryMethodsOnForwardOnlyCursor, supportsRowValueConstructorSyntax, supportsRowValueConstructorSyntaxInInList, supportsSelectAliasInGroupByClause, supportsSkipLocked, supportsSubqueryOnMutatingTable, supportsSubselectAsInPredicateLHS, supportsTableCheck, supportsTupleCounts, supportsTupleDistinctCounts, supportsTuplesInSubqueries, supportsUnboundedLobLocatorMaterialization, supportsUnique, supportsUniqueConstraintInCreateAlterTable, supportsValuesList, supportsVariableLimit, toBooleanValueString, toString, transformSelectString, useFollowOnLocking, useInputStreamToInsertBlob
-
-
-
-
方法详细资料
-
registerCharacterTypeMappings
protected void registerCharacterTypeMappings()
-
registerNumericTypeMappings
protected void registerNumericTypeMappings()
-
registerDateTimeTypeMappings
protected void registerDateTimeTypeMappings()
-
registerLargeObjectTypeMappings
protected void registerLargeObjectTypeMappings()
-
registerReverseHibernateTypeMappings
protected void registerReverseHibernateTypeMappings()
-
registerFunctions
protected void registerFunctions()
-
registerDefaultProperties
protected void registerDefaultProperties()
-
getSqlTypeDescriptorOverride
protected SqlTypeDescriptor getSqlTypeDescriptorOverride(int sqlCode)
从类复制的说明:DialectReturns theSqlTypeDescriptorthat should be used to handle the given JDBC type code. Returnsnullif there is no override.- 覆盖:
getSqlTypeDescriptorOverride在类中Dialect- 参数:
sqlCode- ATypesconstant indicating the SQL column type- 返回:
- The
SqlTypeDescriptorto use as an override, ornullif there is no override.
-
createOuterJoinFragment
public JoinFragment createOuterJoinFragment()
从类复制的说明:DialectCreate aJoinFragmentstrategy responsible for handling this dialect's variations in how joins are handled.- 覆盖:
createOuterJoinFragment在类中Dialect- 返回:
- This dialect's
JoinFragmentstrategy.
-
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在类中Dialect- 返回:
- The cross join separator
-
createCaseFragment
public CaseFragment createCaseFragment()
Map case support to the Oracle DECODE function. Oracle did not add support for CASE until 9i. Create aCaseFragmentstrategy responsible for handling this dialect's variations in how CASE statements are handled.- 覆盖:
createCaseFragment在类中Dialect- 返回:
- This dialect's
CaseFragmentstrategy.
-
getLimitHandler
public LimitHandler getLimitHandler()
从类复制的说明:DialectReturns the delegate managing LIMIT clause.- 覆盖:
getLimitHandler在类中Dialect- 返回:
- LIMIT clause delegate.
-
getLimitString
public String getLimitString(String sql, boolean hasOffset)
从类复制的说明:DialectApply a limit clause to the query. Typically dialects utilizevariablelimit clauses when they support limits. Thus, when building the select command we do not actually need to know the limit or the offset since we will just be using placeholders. Here we do still pass along whether or not an offset was specified so that dialects not supporting offsets can generate proper exceptions. In general, dialects will override one or the other of this method andDialect.getLimitString(String, int, int).- 覆盖:
getLimitString在类中Dialect- 参数:
sql- The query to which to apply the limit.hasOffset- Is the query requesting an offset?- 返回:
- the modified SQL
-
getBasicSelectClauseNullString
public String getBasicSelectClauseNullString(int sqlType)
Allows access to the basicDialect.getSelectClauseNullString(int)implementation...- 参数:
sqlType- TheTypesmapping type code- 返回:
- The appropriate select clause fragment
-
getSelectClauseNullString
public String getSelectClauseNullString(int sqlType)
从类复制的说明:DialectGiven aTypestype code, determine an appropriate null value to use in a select clause. One thing to consider here is that certain databases might require proper casting for the nulls here since the select here will be part of a UNION/UNION ALL.- 覆盖:
getSelectClauseNullString在类中Dialect- 参数:
sqlType- TheTypestype code.- 返回:
- The appropriate select clause value fragment.
-
getCurrentTimestampSelectString
public String getCurrentTimestampSelectString()
从类复制的说明:DialectRetrieve the command used to retrieve the current timestamp from the database.- 覆盖:
getCurrentTimestampSelectString在类中Dialect- 返回:
- The command.
-
getCurrentTimestampSQLFunctionName
public String getCurrentTimestampSQLFunctionName()
从类复制的说明:DialectThe name of the database-specific SQL function for retrieving the current timestamp.- 覆盖:
getCurrentTimestampSQLFunctionName在类中Dialect- 返回:
- The function name.
-
getAddColumnString
public String getAddColumnString()
从类复制的说明:DialectThe syntax used to add a column to a table (optional).- 覆盖:
getAddColumnString在类中Dialect- 返回:
- The "add column" fragment.
-
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在类中Dialect- 参数:
sequenceName- the name of the sequence- 返回:
- String The "nextval" select string.
-
getSelectSequenceNextValString
public String getSelectSequenceNextValString(String sequenceName)
从类复制的说明:DialectGenerate the select expression fragment that will retrieve the next value of a sequence as part of another (typically DML) statement. This differs fromDialect.getSequenceNextValString(String)in that this should return an expression usable within another statement.- 覆盖:
getSelectSequenceNextValString在类中Dialect- 参数:
sequenceName- the name of the sequence- 返回:
- The "nextval" fragment.
-
getCreateSequenceString
public String getCreateSequenceString(String sequenceName)
从类复制的说明:DialectTypically dialects which support sequences can create a sequence with a single command. This is convenience form ofDialect.getCreateSequenceStrings(java.lang.String)to help facilitate that. Dialects which support sequences and can create a sequence in a single command need *only* override this method. Dialects which support sequences but require multiple commands to create a sequence should instead overrideDialect.getCreateSequenceStrings(java.lang.String).- 覆盖:
getCreateSequenceString在类中Dialect- 参数:
sequenceName- The name of the sequence- 返回:
- The sequence creation command
-
getCreateSequenceString
protected String getCreateSequenceString(String sequenceName, int initialValue, int incrementSize)
从类复制的说明:DialectOverloaded form ofDialect.getCreateSequenceString(String), additionally taking the initial value and increment size to be applied to the sequence definition. The default definition is to suffixDialect.getCreateSequenceString(String)with the string: " start with {initialValue} increment by {incrementSize}" where {initialValue} and {incrementSize} are replacement placeholders. Generally dialects should only need to override this method if different key phrases are used to apply the allocation information.- 覆盖:
getCreateSequenceString在类中Dialect- 参数:
sequenceName- The name of the sequenceinitialValue- The initial value to apply to 'create sequence' statementincrementSize- The increment value to apply to 'create sequence' statement- 返回:
- The sequence creation command
-
getDropSequenceString
public String getDropSequenceString(String sequenceName)
从类复制的说明:DialectTypically dialects which support sequences can drop a sequence with a single command. This is convenience form ofDialect.getDropSequenceStrings(java.lang.String)to help facilitate that. Dialects which support sequences and can drop a sequence in a single command need *only* override this method. Dialects which support sequences but require multiple commands to drop a sequence should instead overrideDialect.getDropSequenceStrings(java.lang.String).- 覆盖:
getDropSequenceString在类中Dialect- 参数:
sequenceName- The name of the sequence- 返回:
- The sequence drop commands
-
getCascadeConstraintsString
public String getCascadeConstraintsString()
从类复制的说明:DialectCompletely optional cascading drop clause- 覆盖:
getCascadeConstraintsString在类中Dialect- 返回:
- String
-
dropConstraints
public boolean dropConstraints()
从类复制的说明:DialectDo we need to drop constraints before dropping tables in this dialect?- 覆盖:
dropConstraints在类中Dialect- 返回:
- True if constraints must be dropped prior to dropping the table; false otherwise.
-
getForUpdateNowaitString
public String getForUpdateNowaitString()
从类复制的说明:DialectRetrieves the FOR UPDATE NOWAIT syntax specific to this dialect.- 覆盖:
getForUpdateNowaitString在类中Dialect- 返回:
- The appropriate FOR UPDATE NOWAIT clause string.
-
supportsSequences
public boolean supportsSequences()
从类复制的说明:DialectDoes this dialect support sequences?- 覆盖:
supportsSequences在类中Dialect- 返回:
- True if sequences supported; false otherwise.
-
supportsPooledSequences
public boolean supportsPooledSequences()
从类复制的说明:DialectDoes this dialect support "pooled" sequences. Not aware of a better name for this. Essentially can we specify the initial and increment values?- 覆盖:
supportsPooledSequences在类中Dialect- 返回:
- True if such "pooled" sequences are supported; false otherwise.
- 另请参阅:
Dialect.getCreateSequenceStrings(String, int, int),Dialect.getCreateSequenceString(String, int, int)
-
supportsLimit
public boolean supportsLimit()
从类复制的说明:DialectDoes this dialect support some form of limiting query results via a SQL clause?- 覆盖:
supportsLimit在类中Dialect- 返回:
- True if this dialect supports some form of LIMIT.
-
getForUpdateString
public String getForUpdateString(String aliases)
从类复制的说明:DialectGet the FOR UPDATE OF column_list fragment appropriate for this dialect given the aliases of the columns to be write locked.- 覆盖:
getForUpdateString在类中Dialect- 参数:
aliases- The columns to be write locked.- 返回:
- The appropriate FOR UPDATE OF column_list clause string.
-
getForUpdateNowaitString
public String getForUpdateNowaitString(String aliases)
从类复制的说明:DialectGet the FOR UPDATE OF column_list NOWAIT fragment appropriate for this dialect given the aliases of the columns to be write locked.- 覆盖:
getForUpdateNowaitString在类中Dialect- 参数:
aliases- The columns to be write locked.- 返回:
- The appropriate FOR UPDATE OF colunm_list NOWAIT clause string.
-
bindLimitParametersInReverseOrder
public boolean bindLimitParametersInReverseOrder()
从类复制的说明:DialectANSI SQL defines the LIMIT clause to be in the form LIMIT offset, limit. Does this dialect require us to bind the parameters in reverse order?- 覆盖:
bindLimitParametersInReverseOrder在类中Dialect- 返回:
- true if the correct order is limit, offset
-
useMaxForLimit
public boolean useMaxForLimit()
从类复制的说明:DialectDoes the LIMIT clause take a "maximum" row number instead of a total number of returned rows? This is easiest understood via an example. Consider you have a table with 20 rows, but you only want to retrieve rows number 11 through 20. Generally, a limit with offset would say that the offset = 11 and the limit = 10 (we only want 10 rows at a time); this is specifying the total number of returned rows. Some dialects require that we instead specify offset = 11 and limit = 20, where 20 is the "last" row we want relative to offset (i.e. total number of rows = 20 - 11 = 9) So essentially, is limit relative from offset? Or is limit absolute?- 覆盖:
useMaxForLimit在类中Dialect- 返回:
- True if limit is relative from offset; false otherwise.
-
forUpdateOfColumns
public boolean forUpdateOfColumns()
从类复制的说明:DialectIs FOR UPDATE OF syntax supported?- 覆盖:
forUpdateOfColumns在类中Dialect- 返回:
- True if the database supports FOR UPDATE OF syntax; false otherwise.
-
getQuerySequencesString
public String getQuerySequencesString()
从类复制的说明:DialectGet the select command used retrieve the names of all sequences.- 覆盖:
getQuerySequencesString在类中Dialect- 返回:
- The select command; or null if sequences are not supported.
- 另请参阅:
SchemaUpdate
-
getSequenceInformationExtractor
public SequenceInformationExtractor getSequenceInformationExtractor()
-
getSelectGUIDString
public String getSelectGUIDString()
从类复制的说明:DialectGet the command used to select a GUID from the underlying database. Optional operation.- 覆盖:
getSelectGUIDString在类中Dialect- 返回:
- The appropriate command.
-
getViolatedConstraintNameExtracter
public ViolatedConstraintNameExtracter getViolatedConstraintNameExtracter()
-
buildSQLExceptionConversionDelegate
public SQLExceptionConversionDelegate buildSQLExceptionConversionDelegate()
从类复制的说明:DialectBuild an instance of aSQLExceptionConversionDelegatefor interpreting dialect-specific error or SQLState codes. WhenDialect.buildSQLExceptionConverter()returns null, the defaultSQLExceptionConverteris used to interpret SQLState and error codes. If this method is overridden to return a non-null value, the defaultSQLExceptionConverterwill use the returnedSQLExceptionConversionDelegatein addition to the following standard delegates:- a "static" delegate based on the JDBC 4 defined SQLException hierarchy;
- a delegate that interprets SQLState codes for either X/Open or SQL-2003 codes, depending on java.sql.DatabaseMetaData#getSQLStateType
- 覆盖:
buildSQLExceptionConversionDelegate在类中Dialect- 返回:
- The SQLExceptionConversionDelegate for this dialect
-
registerResultSetOutParameter
public int registerResultSetOutParameter(CallableStatement statement, int col) throws SQLException
从类复制的说明:DialectRegisters a parameter (either OUT, or the new REF_CURSOR param type available in Java 8) capable of returningResultSet*by position*. Pre-Java 8, registering such ResultSet-returning parameters varied greatly across database and drivers; hence its inclusion as part of the Dialect contract.- 覆盖:
registerResultSetOutParameter在类中Dialect- 参数:
statement- The callable statement.col- The bind position at which to register the output param.- 返回:
- The number of (contiguous) bind positions used.
- 抛出:
SQLException- Indicates problems registering the param.
-
getResultSet
public ResultSet getResultSet(CallableStatement ps) throws SQLException
从类复制的说明:DialectGiven a callable statement previously processed byDialect.registerResultSetOutParameter(java.sql.CallableStatement, int), extract theResultSetfrom the OUT parameter.- 覆盖:
getResultSet在类中Dialect- 参数:
ps- The callable statement.- 返回:
- The extracted result set.
- 抛出:
SQLException- Indicates problems extracting the result set.
-
supportsUnionAll
public boolean supportsUnionAll()
从类复制的说明:DialectDoes this dialect support UNION ALL, which is generally a faster variant of UNION?- 覆盖:
supportsUnionAll在类中Dialect- 返回:
- True if UNION ALL is supported; false otherwise.
-
supportsCommentOn
public boolean supportsCommentOn()
从类复制的说明:DialectDoes this dialect/database support commenting on tables, columns, etc?- 覆盖:
supportsCommentOn在类中Dialect- 返回:
trueif commenting is supported
-
getDefaultMultiTableBulkIdStrategy
public MultiTableBulkIdStrategy getDefaultMultiTableBulkIdStrategy()
-
supportsCurrentTimestampSelection
public boolean supportsCurrentTimestampSelection()
从类复制的说明:DialectDoes this dialect support a way to retrieve the database's current timestamp value?- 覆盖:
supportsCurrentTimestampSelection在类中Dialect- 返回:
- True if the current timestamp can be retrieved; false otherwise.
-
isCurrentTimestampSelectStringCallable
public boolean isCurrentTimestampSelectStringCallable()
从类复制的说明:DialectShould the value returned byDialect.getCurrentTimestampSelectString()be treated as callable. Typically this indicates that JDBC escape syntax is being used...- 覆盖:
isCurrentTimestampSelectStringCallable在类中Dialect- 返回:
- True if the
Dialect.getCurrentTimestampSelectString()return is callable; false otherwise.
-
supportsEmptyInList
public boolean supportsEmptyInList()
从类复制的说明:DialectDoes this dialect support empty IN lists? For example, is [where XYZ in ()] a supported construct?- 覆盖:
supportsEmptyInList在类中Dialect- 返回:
- True if empty in lists are supported; false otherwise.
-
supportsExistsInSelect
public boolean supportsExistsInSelect()
从类复制的说明:DialectDoes the dialect support an exists statement in the select clause?- 覆盖:
supportsExistsInSelect在类中Dialect- 返回:
- True if exists checks are allowed in the select clause; false otherwise.
-
getInExpressionCountLimit
public int getInExpressionCountLimit()
从类复制的说明:DialectReturn the limit that the underlying database places on the number of elements in anINpredicate. If the database defines no such limits, simply return zero or less-than-zero.- 覆盖:
getInExpressionCountLimit在类中Dialect- 返回:
- int The limit, or zero-or-less to indicate no limit.
-
forceLobAsLastValue
public boolean forceLobAsLastValue()
从类复制的说明:DialectHHH-4635 Oracle expects all Lob values to be last in inserts and updates.- 覆盖:
forceLobAsLastValue在类中Dialect- 返回:
- boolean True if Lob values should be last, false if it does not matter.
-
useFollowOnLocking
public boolean useFollowOnLocking(QueryParameters parameters)
For Oracle, the FOR UPDATE clause cannot be applied when using ORDER BY, DISTINCT or views.- 覆盖:
useFollowOnLocking在类中Dialect- 参数:
parameters-- 返回:
trueindicates that the dialect requests that locking be applied by subsequent select;false(the default) indicates that locking should be applied to the main SQL statement..- 另请参阅:
- Oracle FOR UPDATE restrictions
-
getNotExpression
public String getNotExpression(String expression)
从类复制的说明:DialectNegate an expression- 覆盖:
getNotExpression在类中Dialect- 参数:
expression- The expression to negate- 返回:
- The negated expression
-
getQueryHintString
public String getQueryHintString(String sql, String hints)
从类复制的说明:DialectApply a hint to the query. The entire query is provided, allowing the Dialect full control over the placement and syntax of the hint. By default, ignore the hint and simply return the query.- 覆盖:
getQueryHintString在类中Dialect- 参数:
sql- The query to which to apply the hint.hints- The hints to apply- 返回:
- The modified SQL
-
getMaxAliasLength
public int getMaxAliasLength()
从类复制的说明:DialectWhat is the maximum length Hibernate can use for generated aliases? The maximum here should account for the fact that Hibernate often needs to append "uniqueing" information to the end of generated aliases. That "uniqueing" information will be added to the end of a identifier generated to the length specified here; so be sure to leave some room (generally speaking 5 positions will suffice).- 覆盖:
getMaxAliasLength在类中Dialect- 返回:
- The maximum length.
-
getCallableStatementSupport
public CallableStatementSupport getCallableStatementSupport()
- 覆盖:
getCallableStatementSupport在类中Dialect
-
canCreateSchema
public boolean canCreateSchema()
从类复制的说明:DialectDoes this dialect support schema creation?- 覆盖:
canCreateSchema在类中Dialect- 返回:
- True if the dialect supports schema creation; false otherwise.
-
getCurrentSchemaCommand
public String getCurrentSchemaCommand()
从类复制的说明:DialectGet the SQL command used to retrieve the current schema name. Works in conjunction withDialect.getSchemaNameResolver(), unless the return from there does not need this information. E.g., a custom impl might make use of the Java 1.7 addition of theConnection.getSchema()method- 覆盖:
getCurrentSchemaCommand在类中Dialect- 返回:
- The current schema retrieval SQL
-
supportsPartitionBy
public boolean supportsPartitionBy()
从类复制的说明:DialectDoes the underlying database support partition by- 覆盖:
supportsPartitionBy在类中Dialect- 返回:
- boolean
-
supportsNoWait
public boolean supportsNoWait()
从类复制的说明:DialectDoes this dialect/database support NO_WAIT timeout.- 覆盖:
supportsNoWait在类中Dialect- 返回:
trueif NO_WAIT is supported
-
-