类 AbstractHANADialect
- java.lang.Object
-
- org.hibernate.dialect.Dialect
-
- org.hibernate.dialect.AbstractHANADialect
-
- 所有已实现的接口:
ConversionContext
public abstract class AbstractHANADialect extends Dialect
An abstract base class for SAP HANA dialects.For more information on interacting with the SAP HANA database, refer to the SAP HANA SQL and System Views Reference and the SAP HANA Client Interface Programming Reference.
Note: This dialect is configured to create foreign keys with
on update cascade.- 作者:
- Andrew Clemons
, Jonathan Bregler
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classAbstractHANADialect.HANABlobTypeDescriptor
-
构造器概要
构造器 构造器 说明 AbstractHANADialect()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 booleanbindLimitParametersInReverseOrder()ANSI SQL defines the LIMIT clause to be in the form LIMIT offset, limit.IdentifierHelperbuildIdentifierHelper(IdentifierHelperBuilder builder, DatabaseMetaData dbMetaData)Build the IdentifierHelper indicated by this Dialect for handling identifier conversions.SQLExceptionConversionDelegatebuildSQLExceptionConversionDelegate()Build an instance of aSQLExceptionConversionDelegatefor interpreting dialect-specific error or SQLState codes.voidcontributeTypes(TypeContributions typeContributions, ServiceRegistry serviceRegistry)Allows the Dialect to contribute additional typesScrollModedefaultScrollMode()Certain dialects support a subset of ScrollModes.booleandropConstraints()Do we need to drop constraints before dropping tables in this dialect?booleanforUpdateOfColumns()Is FOR UPDATE OF syntax supported?StringgetAddColumnString()The syntax used to add a column to a table (optional).StringgetAddColumnSuffixString()The syntax for the suffix used to add a column to a table (optional).SqlTypeDescriptorgetBlobTypeDescriptor()CallableStatementSupportgetCallableStatementSupport()StringgetCascadeConstraintsString()Completely optional cascading drop clauseStringgetColumnComment(String comment)Get the comment into a form supported for column definition.StringgetCreateSequenceString(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.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.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.StringgetForUpdateString(String aliases, LockOptions lockOptions)Get the FOR UPDATE OF column_list fragment appropriate for this dialect given the aliases of the columns to be write locked.IdentityColumnSupportgetIdentityColumnSupport()Get the appropriateIdentityColumnSupportLimitHandlergetLimitHandler()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?NameQualifierSupportgetNameQualifierSupport()By default interpret this based on DatabaseMetaData.StringgetNotExpression(String expression)Negate an expressionStringgetQueryHintString(String query, List<String> hints)Apply a hint 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.StringgetReadLockString(String aliases, int timeout)Get the string to append to SELECT statements to acquire READ locks for this dialect given the aliases of the columns to be read locked.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.StringgetTableComment(String comment)Get the comment into a form supported for table definition.Exporter<Table>getTableExporter()StringgetWriteLockString(int timeout)Get the string to append to SELECT statements to acquire WRITE locks for this dialect.StringgetWriteLockString(String aliases, int timeout)Get the string to append to SELECT statements to acquire WRITE locks for this dialect given the aliases of the columns to be write locked.booleanisCurrentTimestampSelectStringCallable()Should the value returned byDialect.getCurrentTimestampSelectString()be treated as callable.protected voidregisterHanaKeywords()intregisterResultSetOutParameter(CallableStatement statement, int position)Registers a parameter (either OUT, or the new REF_CURSOR param type available in Java 8) capable of returningResultSet*by position*.intregisterResultSetOutParameter(CallableStatement statement, String name)Registers a parameter (either OUT, or the new REF_CURSOR param type available in Java 8) capable of returningResultSet*by name*.booleansupportsColumnCheck()HANA currently does not support check constraints.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?booleansupportsExpectedLobUsagePattern()Expected LOB usage pattern is such that I can perform an insert via prepared statement with a parameter binding for a LOB value without crazy casting to JDBC driver implementation-specific classes...booleansupportsJdbcConnectionLobCreation(DatabaseMetaData databaseMetaData)Check whether the JDBCConnectionsupports creating LOBs viaConnection.createBlob(),Connection.createNClob()orConnection.createClob().booleansupportsLimit()Does this dialect support some form of limiting query results via a SQL clause?booleansupportsNoColumnsInsert()Check if the INSERT statement is allowed to contain no column.booleansupportsNoWait()Does this dialect/database support NO_WAIT timeout.booleansupportsPartitionBy()Does the underlying database support partition bybooleansupportsPooledSequences()Does this dialect support "pooled" sequences.booleansupportsRowValueConstructorSyntax()Is this dialect known to support what ANSI-SQL terms "row value constructor" syntax; sometimes called tuple syntax.booleansupportsRowValueConstructorSyntaxInInList()If the dialect supportsrow values, does it offer such support in IN lists as well?booleansupportsSequences()Does this dialect support sequences?booleansupportsTableCheck()Does this dialect support table-level check constraints?booleansupportsTupleDistinctCounts()Does this dialect support `count(distinct a,b)`?booleansupportsUnboundedLobLocatorMaterialization()Is it supported to materialize a LOB locator outside the transaction in which it was created?booleansupportsUnionAll()Does this dialect support UNION ALL, which is generally a faster variant of UNION?StringtoBooleanValueString(boolean bool)The SQL literal value to which this database maps boolean values.-
从类继承的方法 org.hibernate.dialect.Dialect
addSqlHintOrComment, appendLockHint, appendLockHint, applyLocksToSql, areStringComparisonsCaseInsensitive, augmentRecognizedTableTypes, bindLimitParametersFirst, buildSQLExceptionConverter, canCreateCatalog, canCreateSchema, cast, cast, cast, closeQuote, convertToFirstRowValue, createCaseFragment, createOuterJoinFragment, doesReadCommittedCauseWritersToBlockReaders, doesRepeatableReadCauseReadersToBlockWriters, escapeLiteral, forceLimitUsage, forceLobAsLastValue, getAddForeignKeyConstraintString, getAddForeignKeyConstraintString, getAddPrimaryKeyConstraintString, getAddUniqueConstraintString, getAlterTableString, getAuxiliaryDatabaseObjectExporter, getCaseInsensitiveLike, getCastTypeName, getColumnAliasExtractor, getCreateCatalogCommand, getCreateMultisetTableString, getCreateSchemaCommand, getCreateSequenceStrings, getCreateSequenceStrings, getCreateTableString, getCrossJoinSeparator, getCurrentTimestampSQLFunctionName, getDefaultBatchLoadSizingStrategy, getDefaultMultiTableBulkIdStrategy, getDefaultProperties, getDialect, getDialect, getDropCatalogCommand, getDropForeignKeyString, getDropSchemaCommand, getDropSequenceStrings, getDropTableString, getForeignKeyExporter, getForUpdateSkipLockedString, getForUpdateSkipLockedString, getForUpdateString, getForUpdateString, getForUpdateString, getFunctions, getHibernateTypeName, getHibernateTypeName, getIndexExporter, getInExpressionCountLimit, getKeywords, getLimitString, getLobMergeStrategy, getLockingStrategy, getLowercaseFunction, getNativeIdentifierGeneratorClass, getNativeIdentifierGeneratorStrategy, getNoColumnsInsertString, getNullColumnString, getQueryHintString, getResultSet, getResultSet, getResultSet, getSchemaNameResolver, getSelectClauseNullString, getSequenceExporter, getTableTypeString, getTypeName, getTypeName, getUniqueDelegate, getUniqueKeyExporter, getViolatedConstraintNameExtracter, hasAlterTable, hasSelfReferentialForeignKeyBug, inlineLiteral, isJdbcLogWarningsEnabledByDefault, isLegacyLimitHandlerBehaviorEnabled, isLockTimeoutParameterized, isTypeNameRegistered, openQuote, prependComment, qualifyIndexName, quote, registerColumnType, registerColumnType, registerFunction, registerHibernateType, registerHibernateType, registerKeyword, remapSqlTypeDescriptor, renderOrderByElement, replaceResultVariableInOrderByClauseWithPosition, requiresCastingOfParametersInSelectClause, requiresParensForTupleDistinctCounts, supportsBindAsCallableArgument, supportsCascadeDelete, supportsCaseInsensitiveLike, supportsCircularCascadeDeleteConstraints, supportsIfExistsAfterAlterTable, supportsIfExistsAfterConstraintName, supportsIfExistsAfterTableName, supportsIfExistsBeforeConstraintName, supportsIfExistsBeforeTableName, supportsLimitOffset, supportsLobValueChangePropogation, supportsLockTimeouts, supportsNamedParameters, supportsNationalizedTypes, supportsNonQueryWithCTE, supportsNotNullUnique, supportsOuterJoinForUpdate, supportsParametersInInsertSelect, supportsResultSetPositionQueryMethodsOnForwardOnlyCursor, supportsSelectAliasInGroupByClause, supportsSkipLocked, supportsSubqueryOnMutatingTable, supportsSubselectAsInPredicateLHS, supportsTupleCounts, supportsTuplesInSubqueries, supportsUnique, supportsUniqueConstraintInCreateAlterTable, supportsValuesList, supportsVariableLimit, toString, transformSelectString, useFollowOnLocking, useFollowOnLocking, useInputStreamToInsertBlob, useMaxForLimit
-
-
-
-
方法详细资料
-
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
-
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
-
forUpdateOfColumns
public boolean forUpdateOfColumns()
从类复制的说明:DialectIs FOR UPDATE OF syntax supported?- 覆盖:
forUpdateOfColumns在类中Dialect- 返回:
- True if the database supports FOR UPDATE OF syntax; false otherwise.
-
getAddColumnString
public String getAddColumnString()
从类复制的说明:DialectThe syntax used to add a column to a table (optional).- 覆盖:
getAddColumnString在类中Dialect- 返回:
- The "add column" fragment.
-
getAddColumnSuffixString
public String getAddColumnSuffixString()
从类复制的说明:DialectThe syntax for the suffix used to add a column to a table (optional).- 覆盖:
getAddColumnSuffixString在类中Dialect- 返回:
- The suffix "add column" fragment.
-
getCascadeConstraintsString
public String getCascadeConstraintsString()
从类复制的说明:DialectCompletely optional cascading drop clause- 覆盖:
getCascadeConstraintsString在类中Dialect- 返回:
- String
-
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) throws MappingException
从类复制的说明: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
- 抛出:
MappingException- If sequences are not supported.
-
getCurrentTimestampSelectString
public String getCurrentTimestampSelectString()
从类复制的说明:DialectRetrieve the command used to retrieve the current timestamp from the database.- 覆盖:
getCurrentTimestampSelectString在类中Dialect- 返回:
- The 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
-
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.
-
getForUpdateString
public String getForUpdateString(String aliases, LockOptions lockOptions)
从类复制的说明: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.lockOptions- the lock options to apply- 返回:
- The appropriate FOR UPDATE OF column_list clause string.
-
getForUpdateNowaitString
public String getForUpdateNowaitString()
从类复制的说明:DialectRetrieves the FOR UPDATE NOWAIT syntax specific to this dialect.- 覆盖:
getForUpdateNowaitString在类中Dialect- 返回:
- The appropriate FOR UPDATE NOWAIT clause string.
-
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
-
getNotExpression
public String getNotExpression(String expression)
从类复制的说明:DialectNegate an expression- 覆盖:
getNotExpression在类中Dialect- 参数:
expression- The expression to negate- 返回:
- The negated expression
-
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()
-
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.
-
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.
-
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.
-
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.
-
registerHanaKeywords
protected void registerHanaKeywords()
-
defaultScrollMode
public ScrollMode defaultScrollMode()
从类复制的说明:DialectCertain dialects support a subset of ScrollModes. Provide a default to be used by Criteria and Query.- 覆盖:
defaultScrollMode在类中Dialect- 返回:
- ScrollMode
-
supportsColumnCheck
public boolean supportsColumnCheck()
HANA currently does not support check constraints.- 覆盖:
supportsColumnCheck在类中Dialect- 返回:
- True if column-level CHECK constraints are supported; false otherwise.
-
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.
-
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.
-
supportsExpectedLobUsagePattern
public boolean supportsExpectedLobUsagePattern()
从类复制的说明:DialectExpected LOB usage pattern is such that I can perform an insert via prepared statement with a parameter binding for a LOB value without crazy casting to JDBC driver implementation-specific classes... Part of the trickiness here is the fact that this is largely driver dependent. For example, Oracle (which is notoriously bad with LOB support in their drivers historically) actually does a pretty good job with LOB support as of the 10.2.x versions of their drivers...- 覆盖:
supportsExpectedLobUsagePattern在类中Dialect- 返回:
- True if normal LOB usage patterns can be used with this driver; false if driver-specific hookiness needs to be applied.
-
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.
-
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.
-
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)
-
supportsSequences
public boolean supportsSequences()
从类复制的说明:DialectDoes this dialect support sequences?- 覆盖:
supportsSequences在类中Dialect- 返回:
- True if sequences supported; false otherwise.
-
supportsTableCheck
public boolean supportsTableCheck()
从类复制的说明:DialectDoes this dialect support table-level check constraints?- 覆盖:
supportsTableCheck在类中Dialect- 返回:
- True if table-level CHECK constraints are supported; false otherwise.
-
supportsTupleDistinctCounts
public boolean supportsTupleDistinctCounts()
从类复制的说明:DialectDoes this dialect support `count(distinct a,b)`?- 覆盖:
supportsTupleDistinctCounts在类中Dialect- 返回:
- True if the database supports counting distinct tuples; false otherwise.
-
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.
-
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.
-
supportsRowValueConstructorSyntax
public boolean supportsRowValueConstructorSyntax()
从类复制的说明:DialectIs this dialect known to support what ANSI-SQL terms "row value constructor" syntax; sometimes called tuple syntax. Basically, does it support syntax like "... where (FIRST_NAME, LAST_NAME) = ('Steve', 'Ebersole') ...".- 覆盖:
supportsRowValueConstructorSyntax在类中Dialect- 返回:
- True if this SQL dialect is known to support "row value constructor" syntax; false otherwise.
-
supportsRowValueConstructorSyntaxInInList
public boolean supportsRowValueConstructorSyntaxInInList()
从类复制的说明:DialectIf the dialect supportsrow values, does it offer such support in IN lists as well? For example, "... where (FIRST_NAME, LAST_NAME) IN ( (?, ?), (?, ?) ) ..."- 覆盖:
supportsRowValueConstructorSyntaxInInList在类中Dialect- 返回:
- True if this SQL dialect is known to support "row value constructor" syntax in the IN list; false otherwise.
-
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.
-
getLimitHandler
public LimitHandler getLimitHandler()
从类复制的说明:DialectReturns the delegate managing LIMIT clause.- 覆盖:
getLimitHandler在类中Dialect- 返回:
- LIMIT clause delegate.
-
getSelectGUIDString
public String getSelectGUIDString()
从类复制的说明:DialectGet the command used to select a GUID from the underlying database. Optional operation.- 覆盖:
getSelectGUIDString在类中Dialect- 返回:
- The appropriate command.
-
getNameQualifierSupport
public NameQualifierSupport getNameQualifierSupport()
从类复制的说明:DialectBy default interpret this based on DatabaseMetaData.- 覆盖:
getNameQualifierSupport在类中Dialect- 返回:
- The NameQualifierSupport.
-
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()
-
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
-
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.
-
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.
-
getReadLockString
public String getReadLockString(String aliases, int timeout)
从类复制的说明:DialectGet the string to append to SELECT statements to acquire READ locks for this dialect given the aliases of the columns to be read locked. Location of the returned string is treated the same as getForUpdateString.- 覆盖:
getReadLockString在类中Dialect- 参数:
aliases- The columns to be read locked.timeout- in milliseconds, -1 for indefinite wait and 0 for no wait.- 返回:
- The appropriate LOCK 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.
-
getWriteLockString
public String getWriteLockString(String aliases, int timeout)
从类复制的说明:DialectGet the string to append to SELECT statements to acquire WRITE locks for this dialect given the aliases of the columns to be write locked. Location of the of the returned string is treated the same as getForUpdateString.- 覆盖:
getWriteLockString在类中Dialect- 参数:
aliases- The columns to be read locked.timeout- in milliseconds, -1 for indefinite wait and 0 for no wait.- 返回:
- The appropriate LOCK clause string.
-
getQueryHintString
public String getQueryHintString(String query, List<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- 参数:
query- The query to which to apply the hint.hints- The hints to apply- 返回:
- The modified SQL
-
getTableComment
public String getTableComment(String comment)
从类复制的说明:DialectGet the comment into a form supported for table definition.- 覆盖:
getTableComment在类中Dialect- 参数:
comment- The comment to apply- 返回:
- The comment fragment
-
getColumnComment
public String getColumnComment(String comment)
从类复制的说明:DialectGet the comment into a form supported for column definition.- 覆盖:
getColumnComment在类中Dialect- 参数:
comment- The comment to apply- 返回:
- The comment fragment
-
supportsCommentOn
public boolean supportsCommentOn()
从类复制的说明:DialectDoes this dialect/database support commenting on tables, columns, etc?- 覆盖:
supportsCommentOn在类中Dialect- 返回:
trueif commenting is supported
-
supportsPartitionBy
public boolean supportsPartitionBy()
从类复制的说明:DialectDoes the underlying database support partition by- 覆盖:
supportsPartitionBy在类中Dialect- 返回:
- boolean
-
contributeTypes
public void contributeTypes(TypeContributions typeContributions, ServiceRegistry serviceRegistry)
从类复制的说明:DialectAllows the Dialect to contribute additional types- 覆盖:
contributeTypes在类中Dialect- 参数:
typeContributions- Callback to contribute the typesserviceRegistry- The service registry
-
getBlobTypeDescriptor
public SqlTypeDescriptor getBlobTypeDescriptor()
-
toBooleanValueString
public String toBooleanValueString(boolean bool)
从类复制的说明:DialectThe SQL literal value to which this database maps boolean values.- 覆盖:
toBooleanValueString在类中Dialect- 参数:
bool- The boolean value- 返回:
- The appropriate SQL literal.
-
getIdentityColumnSupport
public IdentityColumnSupport getIdentityColumnSupport()
从类复制的说明:DialectGet the appropriateIdentityColumnSupport- 覆盖:
getIdentityColumnSupport在类中Dialect- 返回:
- the IdentityColumnSupport
-
getTableExporter
public Exporter<Table> getTableExporter()
- 覆盖:
getTableExporter在类中Dialect
-
getCallableStatementSupport
public CallableStatementSupport getCallableStatementSupport()
- 覆盖:
getCallableStatementSupport在类中Dialect
-
registerResultSetOutParameter
public int registerResultSetOutParameter(CallableStatement statement, int position) 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.position- The bind position at which to register the output param.- 返回:
- The number of (contiguous) bind positions used.
- 抛出:
SQLException- Indicates problems registering the param.
-
registerResultSetOutParameter
public int registerResultSetOutParameter(CallableStatement statement, String name) throws SQLException
从类复制的说明:DialectRegisters a parameter (either OUT, or the new REF_CURSOR param type available in Java 8) capable of returningResultSet*by name*. 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.name- The parameter name (for drivers which support named parameters).- 返回:
- The number of (contiguous) bind positions used.
- 抛出:
SQLException- Indicates problems registering the param.
-
supportsNoWait
public boolean supportsNoWait()
从类复制的说明:DialectDoes this dialect/database support NO_WAIT timeout.- 覆盖:
supportsNoWait在类中Dialect- 返回:
trueif NO_WAIT is supported
-
supportsJdbcConnectionLobCreation
public boolean supportsJdbcConnectionLobCreation(DatabaseMetaData databaseMetaData)
从类复制的说明:DialectCheck whether the JDBCConnectionsupports creating LOBs viaConnection.createBlob(),Connection.createNClob()orConnection.createClob().- 覆盖:
supportsJdbcConnectionLobCreation在类中Dialect- 参数:
databaseMetaData- JDBCDatabaseMetaDatawhich can be used if LOB creation is supported only starting from a given Driver version- 返回:
trueif LOBs can be created via the JDBC Connection.
-
supportsNoColumnsInsert
public boolean supportsNoColumnsInsert()
从类复制的说明:DialectCheck if the INSERT statement is allowed to contain no column.- 覆盖:
supportsNoColumnsInsert在类中Dialect- 返回:
- if the Dialect supports no-column INSERT.
-
-