public class Oracle8iDialect extends Dialect
| Modifier and Type | Field and Description |
|---|---|
static String |
DEPRECATED_ORACLE_TYPES_CLASS_NAME |
static int |
INIT_ORACLETYPES_CURSOR_VALUE |
static String |
ORACLE_TYPES_CLASS_NAME |
CLOSED_QUOTE, DEFAULT_BATCH_SIZE, LEGACY_LOB_MERGE_STRATEGY, NEW_LOCATOR_LOB_MERGE_STRATEGY, NO_BATCH, QUOTE, STREAM_XFER_LOB_MERGE_STRATEGY| Constructor and Description |
|---|
Oracle8iDialect() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
bindLimitParametersInReverseOrder()
ANSI SQL defines the LIMIT clause to be in the form LIMIT offset, limit.
|
CaseFragment |
createCaseFragment()
Map case support to the Oracle DECODE function.
|
JoinFragment |
createOuterJoinFragment()
Support for the oracle proprietary join syntax...
|
boolean |
dropConstraints()
Do we need to drop constraints before dropping tables in this dialect?
|
boolean |
dropTemporaryTableAfterUse()
Do we need to drop the temporary table after use?
|
protected int |
extractOracleCursorTypeValue() |
boolean |
forUpdateOfColumns()
Is FOR UPDATE OF syntax supported?
|
String |
generateTemporaryTableName(String baseTableName)
Generate a temporary table name given the base table.
|
String |
getAddColumnString()
The syntax used to add a column to a table (optional).
|
String |
getBasicSelectClauseNullString(int sqlType)
Allows access to the basic
Dialect.getSelectClauseNullString(int)
implementation... |
String |
getCascadeConstraintsString()
Completely optional cascading drop clause
|
String |
getCreateSequenceString(String sequenceName)
Typically dialects which support sequences can create a sequence
with a single command.
|
String |
getCreateTemporaryTablePostfix()
Get any fragments needing to be postfixed to the command for
temporary table creation.
|
String |
getCreateTemporaryTableString()
Command used to create a temporary table.
|
String |
getCrossJoinSeparator() |
String |
getCurrentTimestampSelectString()
Retrieve the command used to retrieve the current timestamp from the
database.
|
String |
getCurrentTimestampSQLFunctionName()
The name of the database-specific SQL function for retrieving the
current timestamp.
|
String |
getDropSequenceString(String sequenceName)
Typically dialects which support sequences can drop a sequence
with a single command.
|
String |
getForUpdateNowaitString()
Retrieves the FOR UPDATE NOWAIT syntax specific to this dialect.
|
String |
getForUpdateNowaitString(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.
|
String |
getForUpdateString(String aliases)
Get the FOR UPDATE OF column_list fragment appropriate for this
dialect given the aliases of the columns to be write locked.
|
String |
getLimitString(String sql,
boolean hasOffset)
Apply s limit clause to the query.
|
int |
getOracleCursorTypeSqlType() |
String |
getQuerySequencesString()
Get the select command used retrieve the names of all sequences.
|
ResultSet |
getResultSet(CallableStatement ps)
Given a callable statement previously processed by
Dialect.registerResultSetOutParameter(java.sql.CallableStatement, int),
extract the ResultSet from the OUT parameter. |
String |
getSelectClauseNullString(int sqlType)
Given a
Types type code, determine an appropriate
null value to use in a select clause. |
String |
getSelectGUIDString()
Get the command used to select a GUID from the underlying database.
|
String |
getSelectSequenceNextValString(String sequenceName)
Generate the select expression fragment that will retrieve the next
value of a sequence as part of another (typically DML) statement.
|
String |
getSequenceNextValString(String sequenceName)
Generate the appropriate select statement to to retrieve the next value
of a sequence.
|
protected SqlTypeDescriptor |
getSqlTypeDescriptorOverride(int sqlCode)
Returns the
SqlTypeDescriptor that should be used to handle the given JDBC type code. |
ViolatedConstraintNameExtracter |
getViolatedConstraintNameExtracter() |
boolean |
isCurrentTimestampSelectStringCallable()
Should the value returned by
Dialect.getCurrentTimestampSelectString()
be treated as callable. |
protected void |
registerCharacterTypeMappings() |
protected void |
registerDateTimeTypeMappings() |
protected void |
registerDefaultProperties() |
protected void |
registerFunctions() |
protected void |
registerLargeObjectTypeMappings() |
protected void |
registerNumericTypeMappings() |
int |
registerResultSetOutParameter(CallableStatement statement,
int col)
Registers an OUT parameter which will be returning a
ResultSet. |
protected void |
registerReverseHibernateTypeMappings() |
boolean |
supportsCommentOn() |
boolean |
supportsCurrentTimestampSelection()
Does this dialect support a way to retrieve the database's current
timestamp value?
|
boolean |
supportsEmptyInList()
Does this dialect support empty IN lists?
For example, is [where XYZ in ()] a supported construct?
|
boolean |
supportsExistsInSelect()
Does the dialect support an exists statement in the select clause?
|
boolean |
supportsLimit()
Does this dialect support some form of limiting query results
via a SQL clause?
|
boolean |
supportsPooledSequences()
Does this dialect support "pooled" sequences.
|
boolean |
supportsSequences()
Does this dialect support sequences?
|
boolean |
supportsTemporaryTables()
Does this dialect support temporary tables?
|
boolean |
supportsUnionAll()
Does this dialect support UNION ALL, which is generally a faster
variant of UNION?
|
boolean |
useMaxForLimit()
Does the LIMIT clause take a "maximum" row number instead
of a total number of returned rows?
This is easiest understood via an example.
|
appendIdentitySelectToInsert, appendLockHint, applyLocksToSql, areStringComparisonsCaseInsensitive, bindLimitParametersFirst, buildSQLExceptionConversionDelegate, buildSQLExceptionConverter, closeQuote, convertToFirstRowValue, doesReadCommittedCauseWritersToBlockReaders, doesRepeatableReadCauseReadersToBlockWriters, forceLimitUsage, getAddForeignKeyConstraintString, getAddPrimaryKeyConstraintString, getAddUniqueConstraintString, getCaseInsensitiveLike, getCastTypeName, getColumnAliasExtractor, getColumnComment, getCreateMultisetTableString, getCreateSequenceString, getCreateSequenceStrings, getCreateSequenceStrings, getCreateTableString, getDefaultProperties, getDialect, getDialect, getDropForeignKeyString, getDropSequenceStrings, getDropTemporaryTableString, getForUpdateString, getForUpdateString, getForUpdateString, getForUpdateString, getFunctions, getHibernateTypeName, getHibernateTypeName, getIdentityColumnString, getIdentityColumnString, getIdentityInsertString, getIdentitySelectString, getIdentitySelectString, getKeywords, getLimitString, getLobMergeStrategy, getLockingStrategy, getLowercaseFunction, getMaxAliasLength, getNativeIdentifierGeneratorClass, getNoColumnsInsertString, getNullColumnString, getReadLockString, getTableComment, getTableTypeString, getTypeName, getTypeName, getWriteLockString, hasAlterTable, hasDataTypeInIdentityColumn, hasSelfReferentialForeignKeyBug, isLockTimeoutParameterized, openQuote, performTemporaryTableDDLInIsolation, qualifyIndexName, quote, registerColumnType, registerColumnType, registerFunction, registerHibernateType, registerHibernateType, registerKeyword, remapSqlTypeDescriptor, replaceResultVariableInOrderByClauseWithPosition, requiresCastingOfParametersInSelectClause, supportsBindAsCallableArgument, supportsCascadeDelete, supportsCaseInsensitiveLike, supportsCircularCascadeDeleteConstraints, supportsColumnCheck, supportsExpectedLobUsagePattern, supportsIdentityColumns, supportsIfExistsAfterTableName, supportsIfExistsBeforeTableName, supportsInsertSelectIdentity, supportsLimitOffset, supportsLobValueChangePropogation, supportsLockTimeouts, supportsNotNullUnique, supportsOuterJoinForUpdate, supportsParametersInInsertSelect, supportsResultSetPositionQueryMethodsOnForwardOnlyCursor, supportsRowValueConstructorSyntax, supportsRowValueConstructorSyntaxInInList, supportsSubqueryOnMutatingTable, supportsSubselectAsInPredicateLHS, supportsTableCheck, supportsTupleCounts, supportsTupleDistinctCounts, supportsUnboundedLobLocatorMaterialization, supportsUnique, supportsUniqueConstraintInCreateAlterTable, supportsVariableLimit, toBooleanValueString, toString, transformSelectString, useInputStreamToInsertBlobpublic static final String ORACLE_TYPES_CLASS_NAME
public static final String DEPRECATED_ORACLE_TYPES_CLASS_NAME
public static final int INIT_ORACLETYPES_CURSOR_VALUE
protected void registerCharacterTypeMappings()
protected void registerNumericTypeMappings()
protected void registerDateTimeTypeMappings()
protected void registerLargeObjectTypeMappings()
protected void registerReverseHibernateTypeMappings()
protected void registerFunctions()
protected void registerDefaultProperties()
protected SqlTypeDescriptor getSqlTypeDescriptorOverride(int sqlCode)
DialectSqlTypeDescriptor that should be used to handle the given JDBC type code. Returns
null if there is no override.getSqlTypeDescriptorOverride in class DialectsqlCode - A Types constant indicating the SQL column typeSqlTypeDescriptor to use as an override, or null if there is no override.public JoinFragment createOuterJoinFragment()
createOuterJoinFragment in class Dialectpublic String getCrossJoinSeparator()
getCrossJoinSeparator in class Dialectpublic CaseFragment createCaseFragment()
createCaseFragment in class Dialectpublic String getLimitString(String sql, boolean hasOffset)
Dialectvariable
limit clauses when they support limits. Thus, when building the
select command we do not actually need to know the limit or the offest
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 and
Dialect.getLimitString(String, int, int).getLimitString in class Dialectsql - The query to which to apply the limit.hasOffset - Is the query requesting an offset?public String getBasicSelectClauseNullString(int sqlType)
Dialect.getSelectClauseNullString(int)
implementation...sqlType - The Types mapping type codepublic String getSelectClauseNullString(int sqlType)
DialectTypes type 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 in class DialectsqlType - The Types type code.public String getCurrentTimestampSelectString()
DialectgetCurrentTimestampSelectString in class Dialectpublic String getCurrentTimestampSQLFunctionName()
DialectgetCurrentTimestampSQLFunctionName in class Dialectpublic String getAddColumnString()
DialectgetAddColumnString in class Dialectpublic String getSequenceNextValString(String sequenceName)
DialectgetSequenceNextValString in class DialectsequenceName - the name of the sequencepublic String getSelectSequenceNextValString(String sequenceName)
DialectDialect.getSequenceNextValString(String) in that this
should return an expression usable within another statement.getSelectSequenceNextValString in class DialectsequenceName - the name of the sequencepublic String getCreateSequenceString(String sequenceName)
DialectDialect.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 override Dialect.getCreateSequenceStrings(java.lang.String).getCreateSequenceString in class DialectsequenceName - The name of the sequencepublic String getDropSequenceString(String sequenceName)
DialectDialect.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 override Dialect.getDropSequenceStrings(java.lang.String).getDropSequenceString in class DialectsequenceName - The name of the sequencepublic String getCascadeConstraintsString()
DialectgetCascadeConstraintsString in class Dialectpublic boolean dropConstraints()
DialectdropConstraints in class Dialectpublic String getForUpdateNowaitString()
DialectgetForUpdateNowaitString in class Dialectpublic boolean supportsSequences()
DialectsupportsSequences in class Dialectpublic boolean supportsPooledSequences()
DialectsupportsPooledSequences in class DialectDialect.getCreateSequenceStrings(String, int, int),
Dialect.getCreateSequenceString(String, int, int)public boolean supportsLimit()
DialectsupportsLimit in class Dialectpublic String getForUpdateString(String aliases)
DialectgetForUpdateString in class Dialectaliases - The columns to be write locked.public String getForUpdateNowaitString(String aliases)
DialectgetForUpdateNowaitString in class Dialectaliases - The columns to be write locked.public boolean bindLimitParametersInReverseOrder()
DialectbindLimitParametersInReverseOrder in class Dialectpublic boolean useMaxForLimit()
DialectuseMaxForLimit in class Dialectpublic boolean forUpdateOfColumns()
DialectforUpdateOfColumns in class Dialectpublic String getQuerySequencesString()
DialectgetQuerySequencesString in class DialectSchemaUpdatepublic String getSelectGUIDString()
DialectgetSelectGUIDString in class Dialectpublic ViolatedConstraintNameExtracter getViolatedConstraintNameExtracter()
getViolatedConstraintNameExtracter in interface ConversionContextgetViolatedConstraintNameExtracter in class Dialectpublic int getOracleCursorTypeSqlType()
protected int extractOracleCursorTypeValue()
public int registerResultSetOutParameter(CallableStatement statement, int col) throws SQLException
DialectResultSet. How this is accomplished varies greatly
from DB to DB, hence its inclusion (along with Dialect.getResultSet(java.sql.CallableStatement)) here.registerResultSetOutParameter in class Dialectstatement - The callable statement.col - The bind position at which to register the OUT param.SQLException - Indicates problems registering the OUT param.public ResultSet getResultSet(CallableStatement ps) throws SQLException
DialectDialect.registerResultSetOutParameter(java.sql.CallableStatement, int),
extract the ResultSet from the OUT parameter.getResultSet in class Dialectps - The callable statement.SQLException - Indicates problems extracting the result set.public boolean supportsUnionAll()
DialectsupportsUnionAll in class Dialectpublic boolean supportsCommentOn()
supportsCommentOn in class Dialectpublic boolean supportsTemporaryTables()
DialectsupportsTemporaryTables in class Dialectpublic String generateTemporaryTableName(String baseTableName)
DialectgenerateTemporaryTableName in class DialectbaseTableName - The table name from which to base the temp table name.public String getCreateTemporaryTableString()
DialectgetCreateTemporaryTableString in class Dialectpublic String getCreateTemporaryTablePostfix()
DialectgetCreateTemporaryTablePostfix in class Dialectpublic boolean dropTemporaryTableAfterUse()
DialectdropTemporaryTableAfterUse in class Dialectpublic boolean supportsCurrentTimestampSelection()
DialectsupportsCurrentTimestampSelection in class Dialectpublic boolean isCurrentTimestampSelectStringCallable()
DialectDialect.getCurrentTimestampSelectString()
be treated as callable. Typically this indicates that JDBC escape
syntax is being used...isCurrentTimestampSelectStringCallable in class DialectDialect.getCurrentTimestampSelectString() return
is callable; false otherwise.public boolean supportsEmptyInList()
DialectsupportsEmptyInList in class Dialectpublic boolean supportsExistsInSelect()
DialectsupportsExistsInSelect in class DialectCopyright © 2012 JBoss by Red Hat. All Rights Reserved.