类 Teradata14Dialect
- java.lang.Object
-
- org.hibernate.dialect.Dialect
-
- org.hibernate.dialect.TeradataDialect
-
- org.hibernate.dialect.Teradata14Dialect
-
- 所有已实现的接口:
ConversionContext,IdTableSupport
public class Teradata14Dialect extends TeradataDialect
A dialect for the Teradata database
-
-
构造器概要
构造器 构造器 说明 Teradata14Dialect()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 StringapplyLocksToSql(String sql, LockOptions aliasedLockOptions, Map keyColumnNames)Modifies the given SQL by applying the appropriate updates for the specified lock modes and key columns.booleanareStringComparisonsCaseInsensitive()Are string comparisons implicitly case insensitive.StringgetAddColumnString()The syntax used to add a column to a table (optional).IdentityColumnSupportgetIdentityColumnSupport()Get the appropriateIdentityColumnSupportExporter<Index>getIndexExporter()StringgetReadLockString(int timeout)Get the string to append to SELECT statements to acquire READ locks for this dialect.ResultSetgetResultSet(CallableStatement cs)Given a callable statement previously processed byDialect.registerResultSetOutParameter(java.sql.CallableStatement, int), extract theResultSetfrom the OUT parameter.StringgetTypeName(int code, int length, int precision, int scale)Get the name of the database type associated with the given java.sql.Types typecode.ViolatedConstraintNameExtractergetViolatedConstraintNameExtracter()StringgetWriteLockString(int timeout)Get the string to append to SELECT statements to acquire WRITE locks for this dialect.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*.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...booleansupportsLockTimeouts()Informational metadata about whether this dialect is known to support specifying timeouts for requested lock acquisitions.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?booleanuseFollowOnLocking(QueryParameters parameters)Some dialects have trouble applying pessimistic locking depending upon what other query options are specified (paging, ordering, etc).-
从类继承的方法 org.hibernate.dialect.TeradataDialect
doesReadCommittedCauseWritersToBlockReaders, doesRepeatableReadCauseReadersToBlockWriters, generateIdTableName, getCreateIdTableCommand, getCreateIdTableStatementOptions, getCreateMultisetTableString, getDefaultMultiTableBulkIdStrategy, getDropIdTableCommand, getForUpdateString, getInExpressionCountLimit, getSelectClauseNullString, getTruncateIdTableCommand, supportsBindAsCallableArgument, supportsCascadeDelete, supportsCircularCascadeDeleteConstraints, supportsEmptyInList, supportsLobValueChangePropogation, supportsSequences
-
从类继承的方法 org.hibernate.dialect.Dialect
addSqlHintOrComment, appendLockHint, appendLockHint, augmentRecognizedTableTypes, bindLimitParametersFirst, bindLimitParametersInReverseOrder, buildIdentifierHelper, buildSQLExceptionConversionDelegate, buildSQLExceptionConverter, canCreateCatalog, canCreateSchema, cast, cast, cast, closeQuote, contributeTypes, convertToFirstRowValue, createCaseFragment, createOuterJoinFragment, defaultScrollMode, dropConstraints, escapeLiteral, forceLimitUsage, forceLobAsLastValue, forUpdateOfColumns, getAddColumnSuffixString, getAddForeignKeyConstraintString, getAddForeignKeyConstraintString, getAddPrimaryKeyConstraintString, getAddUniqueConstraintString, getAlterTableString, getAuxiliaryDatabaseObjectExporter, getCallableStatementSupport, getCascadeConstraintsString, getCaseInsensitiveLike, getCastTypeName, getColumnAliasExtractor, getColumnComment, getCreateCatalogCommand, getCreateSchemaCommand, getCreateSequenceString, getCreateSequenceString, getCreateSequenceStrings, getCreateSequenceStrings, getCreateTableString, getCrossJoinSeparator, getCurrentSchemaCommand, getCurrentTimestampSelectString, getCurrentTimestampSQLFunctionName, getDefaultBatchLoadSizingStrategy, getDefaultProperties, getDialect, getDialect, getDropCatalogCommand, getDropForeignKeyString, getDropSchemaCommand, getDropSequenceString, getDropSequenceStrings, getDropTableString, getForeignKeyExporter, getForUpdateNowaitString, getForUpdateNowaitString, getForUpdateSkipLockedString, getForUpdateSkipLockedString, getForUpdateString, getForUpdateString, getForUpdateString, getForUpdateString, getFunctions, getHibernateTypeName, getHibernateTypeName, getKeywords, getLimitHandler, getLimitString, getLimitString, getLobMergeStrategy, getLockingStrategy, getLowercaseFunction, getMaxAliasLength, getNameQualifierSupport, getNativeIdentifierGeneratorClass, getNativeIdentifierGeneratorStrategy, getNoColumnsInsertString, getNotExpression, getNullColumnString, getQueryHintString, getQueryHintString, getQuerySequencesString, getReadLockString, getResultSet, getResultSet, getSchemaNameResolver, getSelectGUIDString, getSelectSequenceNextValString, getSequenceExporter, getSequenceInformationExtractor, getSequenceNextValString, getSqlTypeDescriptorOverride, getTableComment, getTableExporter, getTableTypeString, getTypeName, getTypeName, getUniqueDelegate, getUniqueKeyExporter, getWriteLockString, hasAlterTable, hasSelfReferentialForeignKeyBug, inlineLiteral, isCurrentTimestampSelectStringCallable, isJdbcLogWarningsEnabledByDefault, isLegacyLimitHandlerBehaviorEnabled, isLockTimeoutParameterized, isTypeNameRegistered, openQuote, prependComment, qualifyIndexName, quote, registerColumnType, registerColumnType, registerFunction, registerHibernateType, registerHibernateType, registerKeyword, registerResultSetOutParameter, remapSqlTypeDescriptor, renderOrderByElement, replaceResultVariableInOrderByClauseWithPosition, requiresCastingOfParametersInSelectClause, requiresParensForTupleDistinctCounts, supportsCaseInsensitiveLike, supportsColumnCheck, supportsCommentOn, supportsCurrentTimestampSelection, supportsIfExistsAfterAlterTable, supportsIfExistsAfterConstraintName, supportsIfExistsAfterTableName, supportsIfExistsBeforeConstraintName, supportsIfExistsBeforeTableName, supportsJdbcConnectionLobCreation, supportsLimit, supportsLimitOffset, supportsNamedParameters, supportsNationalizedTypes, supportsNoColumnsInsert, supportsNonQueryWithCTE, supportsNotNullUnique, supportsNoWait, supportsOuterJoinForUpdate, supportsParametersInInsertSelect, supportsPartitionBy, supportsPooledSequences, supportsResultSetPositionQueryMethodsOnForwardOnlyCursor, supportsRowValueConstructorSyntax, supportsRowValueConstructorSyntaxInInList, supportsSelectAliasInGroupByClause, supportsSkipLocked, supportsSubqueryOnMutatingTable, supportsSubselectAsInPredicateLHS, supportsTableCheck, supportsTupleCounts, supportsTuplesInSubqueries, supportsUnionAll, supportsUnique, supportsUniqueConstraintInCreateAlterTable, supportsValuesList, supportsVariableLimit, toBooleanValueString, toString, transformSelectString, useFollowOnLocking, useInputStreamToInsertBlob, useMaxForLimit
-
-
-
-
方法详细资料
-
getAddColumnString
public String getAddColumnString()
从类复制的说明:DialectThe syntax used to add a column to a table (optional).- 覆盖:
getAddColumnString在类中TeradataDialect- 返回:
- The "add column" fragment.
-
getTypeName
public String getTypeName(int code, int length, int precision, int scale) throws HibernateException
Get the name of the database type associated with the given java.sql.Types typecode.- 覆盖:
getTypeName在类中TeradataDialect- 参数:
code- java.sql.Types typecodelength- the length or precision of the columnprecision- the precision of the columnscale- the scale of the column- 返回:
- the database type name
- 抛出:
HibernateException
-
areStringComparisonsCaseInsensitive
public boolean areStringComparisonsCaseInsensitive()
从类复制的说明:DialectAre string comparisons implicitly case insensitive. In other words, does [where 'XYZ' = 'xyz'] resolve to true?- 覆盖:
areStringComparisonsCaseInsensitive在类中TeradataDialect- 返回:
- True if comparisons are case insensitive.
-
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.
-
getViolatedConstraintNameExtracter
public ViolatedConstraintNameExtracter getViolatedConstraintNameExtracter()
-
supportsTupleDistinctCounts
public boolean supportsTupleDistinctCounts()
从类复制的说明:DialectDoes this dialect support `count(distinct a,b)`?- 覆盖:
supportsTupleDistinctCounts在类中Dialect- 返回:
- True if the database supports counting distinct tuples; 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.
-
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.
-
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 cs) throws SQLException
从类复制的说明:DialectGiven a callable statement previously processed byDialect.registerResultSetOutParameter(java.sql.CallableStatement, int), extract theResultSetfrom the OUT parameter.- 覆盖:
getResultSet在类中Dialect- 参数:
cs- The callable statement.- 返回:
- The extracted result set.
- 抛出:
SQLException- Indicates problems extracting the result set.
-
getWriteLockString
public String getWriteLockString(int timeout)
从类复制的说明:DialectGet the string to append to SELECT statements to acquire WRITE locks for this dialect. Location of the returned string is treated the same as getForUpdateString.- 覆盖:
getWriteLockString在类中Dialect- 参数:
timeout- in milliseconds, -1 for indefinite wait and 0 for no wait.- 返回:
- The appropriate LOCK clause string.
-
getReadLockString
public String getReadLockString(int timeout)
从类复制的说明:DialectGet the string to append to SELECT statements to acquire READ locks for this dialect. Location of the returned string is treated the same as getForUpdateString.- 覆盖:
getReadLockString在类中Dialect- 参数:
timeout- in milliseconds, -1 for indefinite wait and 0 for no wait.- 返回:
- The appropriate LOCK clause string.
-
applyLocksToSql
public String applyLocksToSql(String sql, LockOptions aliasedLockOptions, Map keyColumnNames)
从类复制的说明:DialectModifies the given SQL by applying the appropriate updates for the specified lock modes and key columns. The behavior here is that of an ANSI SQL SELECT FOR UPDATE. This method is really intended to allow dialects which do not support SELECT FOR UPDATE to achieve this in their own fashion.- 覆盖:
applyLocksToSql在类中Dialect- 参数:
sql- the SQL string to modifyaliasedLockOptions- lock options indexed by aliased table names.keyColumnNames- a map of key columns indexed by aliased table names.- 返回:
- the modified SQL string.
-
useFollowOnLocking
public boolean useFollowOnLocking(QueryParameters parameters)
从类复制的说明:DialectSome dialects have trouble applying pessimistic locking depending upon what other query options are specified (paging, ordering, etc). This method allows these dialects to request that locking be applied by subsequent selects.- 覆盖:
useFollowOnLocking在类中Dialect- 参数:
parameters- query 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..
-
supportsLockTimeouts
public boolean supportsLockTimeouts()
从类复制的说明:DialectInformational metadata about whether this dialect is known to support specifying timeouts for requested lock acquisitions.- 覆盖:
supportsLockTimeouts在类中Dialect- 返回:
- True is this dialect supports specifying lock timeouts.
-
getIndexExporter
public Exporter<Index> getIndexExporter()
- 覆盖:
getIndexExporter在类中Dialect
-
getIdentityColumnSupport
public IdentityColumnSupport getIdentityColumnSupport()
从类复制的说明:DialectGet the appropriateIdentityColumnSupport- 覆盖:
getIdentityColumnSupport在类中Dialect- 返回:
- the IdentityColumnSupport
-
-