类 TeradataDialect
- java.lang.Object
-
- org.hibernate.dialect.Dialect
-
- org.hibernate.dialect.TeradataDialect
-
- 所有已实现的接口:
ConversionContext,IdTableSupport
- 直接已知子类:
Teradata14Dialect
public class TeradataDialect extends Dialect implements IdTableSupport
A dialect for the Teradata database created by MCR as part of the dialect certification process.- 作者:
- Jay Nance
-
-
构造器概要
构造器 构造器 说明 TeradataDialect()Constructor
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 booleanareStringComparisonsCaseInsensitive()Are string comparisons implicitly case insensitive.booleandoesReadCommittedCauseWritersToBlockReaders()For the underlying database, is READ_COMMITTED isolation implemented by forcing readers to wait for write locks to be released?booleandoesRepeatableReadCauseReadersToBlockWriters()For the underlying database, is REPEATABLE_READ isolation implemented by forcing writers to wait for read locks to be released?StringgenerateIdTableName(String baseName)StringgetAddColumnString()The syntax used to add a column to a table (optional).StringgetCreateIdTableCommand()StringgetCreateIdTableStatementOptions()StringgetCreateMultisetTableString()Slight variation onDialect.getCreateTableString().MultiTableBulkIdStrategygetDefaultMultiTableBulkIdStrategy()StringgetDropIdTableCommand()StringgetForUpdateString()Does this dialect support the FOR UPDATE syntax?intgetInExpressionCountLimit()Return the limit that the underlying database places on the number of elements in anINpredicate.StringgetSelectClauseNullString(int sqlType)Given aTypestype code, determine an appropriate null value to use in a select clause.StringgetTruncateIdTableCommand()StringgetTypeName(int code, int length, int precision, int scale)Get the name of the database type associated with the given java.sql.Types typecode.booleansupportsBindAsCallableArgument()Does this dialect support using a JDBC bind parameter as an argument to a function or procedure call?booleansupportsCascadeDelete()Does this dialect support cascaded delete on foreign key definitions?booleansupportsCircularCascadeDeleteConstraints()Does this dialect support definition of cascade delete constraints which can cause circular chains?booleansupportsEmptyInList()Does this dialect support empty IN lists?booleansupportsLobValueChangePropogation()Does the dialect support propagating changes to LOB values back to the database?booleansupportsSequences()Does this dialect support sequences?-
从类继承的方法 org.hibernate.dialect.Dialect
addSqlHintOrComment, appendLockHint, appendLockHint, applyLocksToSql, 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, getIdentityColumnSupport, getIndexExporter, getKeywords, getLimitHandler, getLimitString, getLimitString, getLobMergeStrategy, getLockingStrategy, getLowercaseFunction, getMaxAliasLength, getNameQualifierSupport, getNativeIdentifierGeneratorClass, getNativeIdentifierGeneratorStrategy, getNoColumnsInsertString, getNotExpression, getNullColumnString, getQueryHintString, getQueryHintString, getQuerySequencesString, getReadLockString, getReadLockString, getResultSet, getResultSet, getResultSet, getSchemaNameResolver, getSelectGUIDString, getSelectSequenceNextValString, getSequenceExporter, getSequenceInformationExtractor, getSequenceNextValString, getSqlTypeDescriptorOverride, getTableComment, getTableExporter, getTableTypeString, getTypeName, getTypeName, getUniqueDelegate, getUniqueKeyExporter, getViolatedConstraintNameExtracter, getWriteLockString, getWriteLockString, hasAlterTable, hasSelfReferentialForeignKeyBug, inlineLiteral, isCurrentTimestampSelectStringCallable, isJdbcLogWarningsEnabledByDefault, isLegacyLimitHandlerBehaviorEnabled, isLockTimeoutParameterized, isTypeNameRegistered, openQuote, prependComment, qualifyIndexName, quote, registerColumnType, registerColumnType, registerFunction, registerHibernateType, registerHibernateType, registerKeyword, registerResultSetOutParameter, registerResultSetOutParameter, remapSqlTypeDescriptor, renderOrderByElement, replaceResultVariableInOrderByClauseWithPosition, requiresCastingOfParametersInSelectClause, requiresParensForTupleDistinctCounts, supportsCaseInsensitiveLike, supportsColumnCheck, supportsCommentOn, supportsCurrentTimestampSelection, supportsExistsInSelect, supportsExpectedLobUsagePattern, supportsIfExistsAfterAlterTable, supportsIfExistsAfterConstraintName, supportsIfExistsAfterTableName, supportsIfExistsBeforeConstraintName, supportsIfExistsBeforeTableName, supportsJdbcConnectionLobCreation, supportsLimit, supportsLimitOffset, supportsLockTimeouts, supportsNamedParameters, supportsNationalizedTypes, supportsNoColumnsInsert, supportsNonQueryWithCTE, supportsNotNullUnique, supportsNoWait, supportsOuterJoinForUpdate, supportsParametersInInsertSelect, supportsPartitionBy, supportsPooledSequences, supportsResultSetPositionQueryMethodsOnForwardOnlyCursor, supportsRowValueConstructorSyntax, supportsRowValueConstructorSyntaxInInList, supportsSelectAliasInGroupByClause, supportsSkipLocked, supportsSubqueryOnMutatingTable, supportsSubselectAsInPredicateLHS, supportsTableCheck, supportsTupleCounts, supportsTupleDistinctCounts, supportsTuplesInSubqueries, supportsUnboundedLobLocatorMaterialization, supportsUnionAll, supportsUnique, supportsUniqueConstraintInCreateAlterTable, supportsValuesList, supportsVariableLimit, toBooleanValueString, toString, transformSelectString, useFollowOnLocking, useFollowOnLocking, useInputStreamToInsertBlob, useMaxForLimit
-
-
-
-
方法详细资料
-
getForUpdateString
public String getForUpdateString()
Does this dialect support the FOR UPDATE syntax?- 覆盖:
getForUpdateString在类中Dialect- 返回:
- empty string ... Teradata does not support FOR UPDATE syntax
-
supportsSequences
public boolean supportsSequences()
从类复制的说明:DialectDoes this dialect support sequences?- 覆盖:
supportsSequences在类中Dialect- 返回:
- True if sequences supported; false otherwise.
-
getAddColumnString
public String getAddColumnString()
从类复制的说明:DialectThe syntax used to add a column to a table (optional).- 覆盖:
getAddColumnString在类中Dialect- 返回:
- The "add column" fragment.
-
getDefaultMultiTableBulkIdStrategy
public MultiTableBulkIdStrategy getDefaultMultiTableBulkIdStrategy()
-
generateIdTableName
public String generateIdTableName(String baseName)
- 指定者:
generateIdTableName在接口中IdTableSupport
-
getCreateIdTableCommand
public String getCreateIdTableCommand()
- 指定者:
getCreateIdTableCommand在接口中IdTableSupport
-
getCreateIdTableStatementOptions
public String getCreateIdTableStatementOptions()
-
getDropIdTableCommand
public String getDropIdTableCommand()
- 指定者:
getDropIdTableCommand在接口中IdTableSupport
-
getTruncateIdTableCommand
public String getTruncateIdTableCommand()
- 指定者:
getTruncateIdTableCommand在接口中IdTableSupport
-
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.- 参数:
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
-
supportsCascadeDelete
public boolean supportsCascadeDelete()
从类复制的说明:DialectDoes this dialect support cascaded delete on foreign key definitions?- 覆盖:
supportsCascadeDelete在类中Dialect- 返回:
trueindicates that the dialect does support cascaded delete on foreign keys.
-
supportsCircularCascadeDeleteConstraints
public boolean supportsCircularCascadeDeleteConstraints()
从类复制的说明:DialectDoes this dialect support definition of cascade delete constraints which can cause circular chains?- 覆盖:
supportsCircularCascadeDeleteConstraints在类中Dialect- 返回:
- True if circular cascade delete constraints are supported; false otherwise.
-
areStringComparisonsCaseInsensitive
public boolean areStringComparisonsCaseInsensitive()
从类复制的说明:DialectAre string comparisons implicitly case insensitive. In other words, does [where 'XYZ' = 'xyz'] resolve to true?- 覆盖:
areStringComparisonsCaseInsensitive在类中Dialect- 返回:
- True if comparisons are case insensitive.
-
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.
-
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.
-
getCreateMultisetTableString
public String getCreateMultisetTableString()
从类复制的说明:DialectSlight variation onDialect.getCreateTableString(). Here, we have the command used to create a table when there is no primary key and duplicate rows are expected. Most databases do not care about the distinction; originally added for Teradata support which does care.- 覆盖:
getCreateMultisetTableString在类中Dialect- 返回:
- The command used to create a multiset table.
-
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.
-
doesReadCommittedCauseWritersToBlockReaders
public boolean doesReadCommittedCauseWritersToBlockReaders()
从类复制的说明:DialectFor the underlying database, is READ_COMMITTED isolation implemented by forcing readers to wait for write locks to be released?- 覆盖:
doesReadCommittedCauseWritersToBlockReaders在类中Dialect- 返回:
- True if writers block readers to achieve READ_COMMITTED; false otherwise.
-
doesRepeatableReadCauseReadersToBlockWriters
public boolean doesRepeatableReadCauseReadersToBlockWriters()
从类复制的说明:DialectFor the underlying database, is REPEATABLE_READ isolation implemented by forcing writers to wait for read locks to be released?- 覆盖:
doesRepeatableReadCauseReadersToBlockWriters在类中Dialect- 返回:
- True if readers block writers to achieve REPEATABLE_READ; false otherwise.
-
supportsBindAsCallableArgument
public boolean supportsBindAsCallableArgument()
从类复制的说明:DialectDoes this dialect support using a JDBC bind parameter as an argument to a function or procedure call?- 覆盖:
supportsBindAsCallableArgument在类中Dialect- 返回:
- Returns
trueif the database supports accepting bind params as args,falseotherwise. The default istrue.
-
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.
-
-