类 PostgreSQL81Dialect
- java.lang.Object
-
- org.hibernate.dialect.Dialect
-
- org.hibernate.dialect.PostgreSQL81Dialect
-
- 所有已实现的接口:
ConversionContext
- 直接已知子类:
PostgreSQL82Dialect
public class PostgreSQL81Dialect extends Dialect
An SQL dialect for Postgres For discussion of BLOB support in Postgres, as of 8.4, have a peek at http://jdbc.postgresql.org/documentation/84/binary-data.html. For the effects in regards to Hibernate see http://in.relation.to/15492.lace- 作者:
- Gavin King
-
-
构造器概要
构造器 构造器 说明 PostgreSQL81Dialect()Constructs a PostgreSQL81Dialect
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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.booleandropConstraints()Do we need to drop constraints before dropping tables in this dialect?StringgetAddColumnString()The syntax used to add a column to a table (optional).CallableStatementSupportgetCallableStatementSupport()StringgetCascadeConstraintsString()Completely optional cascading drop clauseStringgetCaseInsensitiveLike()The name of the SQL function that can do case insensitive like comparison.StringgetCreateSequenceString(String sequenceName)Typically dialects which support sequences can create a sequence with a single command.protected StringgetCreateSequenceString(String sequenceName, int initialValue, int incrementSize)only necessary for postgre < 7.4 See http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/doc/src/sgml/ref/create_sequence.sgmlStringgetCurrentTimestampSelectString()Retrieve the command used to retrieve the current timestamp from the database.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()Get the string to append to SELECT statements to acquire locks for this dialect.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.StringgetNativeIdentifierGeneratorStrategy()Resolves the native generation strategy associated to this dialect.StringgetNoColumnsInsertString()The fragment used to insert a row without specifying any column values.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.ResultSetgetResultSet(CallableStatement ps)Given a callable statement previously processed byDialect.registerResultSetOutParameter(java.sql.CallableStatement, int), extract theResultSetfrom the OUT parameter.ResultSetgetResultSet(CallableStatement statement, int position)Given a callable statement previously processed byDialect.registerResultSetOutParameter(java.sql.CallableStatement, int), extract theResultSet.ResultSetgetResultSet(CallableStatement statement, String name)Given a callable statement previously processed byDialect.registerResultSetOutParameter(java.sql.CallableStatement, int), extract theResultSetfrom the OUT parameter.StringgetSelectClauseNullString(int sqlType)Workaround for postgres bug #1453StringgetSelectSequenceNextValString(String sequenceName)Generate the select expression fragment that will retrieve the next value of a sequence as part of another (typically DML) statement.StringgetSequenceNextValString(String sequenceName)Generate the appropriate select statement to to retrieve the next value of a sequence.SqlTypeDescriptorgetSqlTypeDescriptorOverride(int sqlCode)Returns theSqlTypeDescriptorthat should be used to handle the given JDBC type code.ViolatedConstraintNameExtractergetViolatedConstraintNameExtracter()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.booleanqualifyIndexName()Do we need to qualify index names with the schema name?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*.booleanrequiresParensForTupleDistinctCounts()IfDialect.supportsTupleDistinctCounts()is true, does the Dialect require the tuple to be wrapped with parens?booleansupportsCaseInsensitiveLike()Does this dialect support case insensitive LIKE restrictions?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?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?booleansupportsLobValueChangePropogation()Does the dialect support propagating changes to LOB values back to the database?booleansupportsNationalizedTypes()Does this dialect supports Nationalized TypesbooleansupportsNoWait()Does this dialect/database support NO_WAIT timeout.booleansupportsOuterJoinForUpdate()Does this dialect support FOR UPDATE in conjunction with outer joined rows?booleansupportsPooledSequences()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.booleansupportsSelectAliasInGroupByClause()booleansupportsSequences()Does this dialect support sequences?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.booleanuseInputStreamToInsertBlob()Should LOBs (both BLOB and CLOB) be bound using stream operations (i.e.-
从类继承的方法 org.hibernate.dialect.Dialect
addSqlHintOrComment, appendLockHint, appendLockHint, applyLocksToSql, areStringComparisonsCaseInsensitive, augmentRecognizedTableTypes, bindLimitParametersFirst, buildIdentifierHelper, buildSQLExceptionConverter, canCreateCatalog, canCreateSchema, cast, cast, cast, closeQuote, contributeTypes, convertToFirstRowValue, createCaseFragment, createOuterJoinFragment, defaultScrollMode, doesReadCommittedCauseWritersToBlockReaders, doesRepeatableReadCauseReadersToBlockWriters, escapeLiteral, forceLimitUsage, forceLobAsLastValue, forUpdateOfColumns, getAddColumnSuffixString, getAddForeignKeyConstraintString, getAddForeignKeyConstraintString, getAddPrimaryKeyConstraintString, getAddUniqueConstraintString, getAlterTableString, getAuxiliaryDatabaseObjectExporter, getCastTypeName, getColumnAliasExtractor, getColumnComment, getCreateCatalogCommand, getCreateMultisetTableString, getCreateSchemaCommand, getCreateSequenceStrings, getCreateSequenceStrings, getCreateTableString, getCrossJoinSeparator, getCurrentSchemaCommand, getCurrentTimestampSQLFunctionName, getDefaultBatchLoadSizingStrategy, getDefaultProperties, getDialect, getDialect, getDropCatalogCommand, getDropForeignKeyString, getDropSchemaCommand, getDropSequenceStrings, getDropTableString, getForeignKeyExporter, getForUpdateSkipLockedString, getForUpdateSkipLockedString, getForUpdateString, getForUpdateString, getFunctions, getHibernateTypeName, getHibernateTypeName, getIndexExporter, getInExpressionCountLimit, getKeywords, getLimitString, getLobMergeStrategy, getLockingStrategy, getLowercaseFunction, getMaxAliasLength, getNameQualifierSupport, getNativeIdentifierGeneratorClass, getNotExpression, getNullColumnString, getQueryHintString, getQueryHintString, getSchemaNameResolver, getSelectGUIDString, getSequenceExporter, getSequenceInformationExtractor, getTableComment, getTableExporter, getTableTypeString, getTypeName, getTypeName, getUniqueDelegate, getUniqueKeyExporter, hasAlterTable, hasSelfReferentialForeignKeyBug, inlineLiteral, isJdbcLogWarningsEnabledByDefault, isLegacyLimitHandlerBehaviorEnabled, isLockTimeoutParameterized, isTypeNameRegistered, openQuote, prependComment, quote, registerColumnType, registerColumnType, registerFunction, registerHibernateType, registerHibernateType, registerKeyword, registerResultSetOutParameter, remapSqlTypeDescriptor, renderOrderByElement, replaceResultVariableInOrderByClauseWithPosition, requiresCastingOfParametersInSelectClause, supportsBindAsCallableArgument, supportsCascadeDelete, supportsCircularCascadeDeleteConstraints, supportsColumnCheck, supportsExistsInSelect, supportsIfExistsAfterAlterTable, supportsIfExistsAfterConstraintName, supportsIfExistsAfterTableName, supportsIfExistsBeforeConstraintName, supportsIfExistsBeforeTableName, supportsLimitOffset, supportsLockTimeouts, supportsNamedParameters, supportsNoColumnsInsert, supportsNonQueryWithCTE, supportsNotNullUnique, supportsParametersInInsertSelect, supportsPartitionBy, supportsResultSetPositionQueryMethodsOnForwardOnlyCursor, supportsRowValueConstructorSyntaxInInList, supportsSkipLocked, supportsSubqueryOnMutatingTable, supportsSubselectAsInPredicateLHS, supportsTableCheck, supportsTupleCounts, supportsTupleDistinctCounts, supportsTuplesInSubqueries, supportsUnique, supportsUniqueConstraintInCreateAlterTable, supportsValuesList, supportsVariableLimit, toString, transformSelectString, useFollowOnLocking, useFollowOnLocking, useMaxForLimit
-
-
-
-
方法详细资料
-
getSqlTypeDescriptorOverride
public 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.
-
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
-
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.
-
supportsSequences
public boolean supportsSequences()
从类复制的说明:DialectDoes this dialect support sequences?- 覆盖:
supportsSequences在类中Dialect- 返回:
- True if sequences supported; 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
-
getLimitHandler
public LimitHandler getLimitHandler()
从类复制的说明:DialectReturns the delegate managing LIMIT clause.- 覆盖:
getLimitHandler在类中Dialect- 返回:
- LIMIT clause delegate.
-
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.
-
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
-
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
-
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.
-
getNoColumnsInsertString
public String getNoColumnsInsertString()
从类复制的说明:DialectThe fragment used to insert a row without specifying any column values. This is not possible on some databases.- 覆盖:
getNoColumnsInsertString在类中Dialect- 返回:
- The appropriate empty values clause.
-
getCaseInsensitiveLike
public String getCaseInsensitiveLike()
从类复制的说明:DialectThe name of the SQL function that can do case insensitive like comparison.- 覆盖:
getCaseInsensitiveLike在类中Dialect- 返回:
- The dialect-specific "case insensitive" like function.
-
supportsCaseInsensitiveLike
public boolean supportsCaseInsensitiveLike()
从类复制的说明:DialectDoes this dialect support case insensitive LIKE restrictions?- 覆盖:
supportsCaseInsensitiveLike在类中Dialect- 返回:
trueif the underlying database supports case insensitive like comparison,falseotherwise. The default isfalse.
-
getNativeIdentifierGeneratorStrategy
public String getNativeIdentifierGeneratorStrategy()
从类复制的说明:DialectResolves the native generation strategy associated to this dialect. Comes into play whenever the user specifies the native generator.- 覆盖:
getNativeIdentifierGeneratorStrategy在类中Dialect- 返回:
- The native generator strategy.
-
supportsOuterJoinForUpdate
public boolean supportsOuterJoinForUpdate()
从类复制的说明:DialectDoes this dialect support FOR UPDATE in conjunction with outer joined rows?- 覆盖:
supportsOuterJoinForUpdate在类中Dialect- 返回:
- True if outer joined rows can be locked via FOR UPDATE.
-
useInputStreamToInsertBlob
public boolean useInputStreamToInsertBlob()
从类复制的说明:DialectShould LOBs (both BLOB and CLOB) be bound using stream operations (i.e.PreparedStatement.setBinaryStream(int, java.io.InputStream, int)).- 覆盖:
useInputStreamToInsertBlob在类中Dialect- 返回:
- True if BLOBs and CLOBs should be bound using stream operations.
-
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.
-
getSelectClauseNullString
public String getSelectClauseNullString(int sqlType)
Workaround for postgres bug #1453 Given 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.
-
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.
-
getCurrentTimestampSelectString
public String getCurrentTimestampSelectString()
从类复制的说明:DialectRetrieve the command used to retrieve the current timestamp from the database.- 覆盖:
getCurrentTimestampSelectString在类中Dialect- 返回:
- The command.
-
requiresParensForTupleDistinctCounts
public boolean requiresParensForTupleDistinctCounts()
从类复制的说明:DialectIfDialect.supportsTupleDistinctCounts()is true, does the Dialect require the tuple to be wrapped with parens?- 覆盖:
requiresParensForTupleDistinctCounts在类中Dialect- 返回:
- boolean
-
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.
-
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.
-
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)
-
getCreateSequenceString
protected String getCreateSequenceString(String sequenceName, int initialValue, int incrementSize)
only necessary for postgre < 7.4 See http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/doc/src/sgml/ref/create_sequence.sgml Overloaded 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
-
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.
-
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.
-
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在类中Dialect- 返回:
- 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.
-
getForUpdateString
public String getForUpdateString()
从类复制的说明:DialectGet the string to append to SELECT statements to acquire locks for this dialect.- 覆盖:
getForUpdateString在类中Dialect- 返回:
- 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.
-
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.
-
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.
-
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.
-
getForUpdateNowaitString
public String getForUpdateNowaitString()
从类复制的说明:DialectRetrieves the FOR UPDATE NOWAIT syntax specific to this dialect.- 覆盖:
getForUpdateNowaitString在类中Dialect- 返回:
- The appropriate FOR UPDATE NOWAIT 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.
-
getCallableStatementSupport
public CallableStatementSupport getCallableStatementSupport()
- 覆盖:
getCallableStatementSupport在类中Dialect
-
getResultSet
public ResultSet getResultSet(CallableStatement statement, int position) throws SQLException
从类复制的说明:DialectGiven a callable statement previously processed byDialect.registerResultSetOutParameter(java.sql.CallableStatement, int), extract theResultSet.- 覆盖:
getResultSet在类中Dialect- 参数:
statement- The callable statement.position- The bind position at which to register the output param.- 返回:
- The extracted result set.
- 抛出:
SQLException- Indicates problems extracting the result set.
-
getResultSet
public ResultSet getResultSet(CallableStatement statement, String name) throws SQLException
从类复制的说明:DialectGiven a callable statement previously processed byDialect.registerResultSetOutParameter(java.sql.CallableStatement, int), extract theResultSetfrom the OUT parameter.- 覆盖:
getResultSet在类中Dialect- 参数:
statement- The callable statement.name- The parameter name (for drivers which support named parameters).- 返回:
- The extracted result set.
- 抛出:
SQLException- Indicates problems extracting the result set.
-
qualifyIndexName
public boolean qualifyIndexName()
从类复制的说明:DialectDo we need to qualify index names with the schema name?- 覆盖:
qualifyIndexName在类中Dialect- 返回:
- boolean
-
getIdentityColumnSupport
public IdentityColumnSupport getIdentityColumnSupport()
从类复制的说明:DialectGet the appropriateIdentityColumnSupport- 覆盖:
getIdentityColumnSupport在类中Dialect- 返回:
- the IdentityColumnSupport
-
supportsNationalizedTypes
public boolean supportsNationalizedTypes()
从类复制的说明:DialectDoes this dialect supports Nationalized Types- 覆盖:
supportsNationalizedTypes在类中Dialect- 返回:
- boolean
-
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.
-
supportsSelectAliasInGroupByClause
public boolean supportsSelectAliasInGroupByClause()
-
-