public class Oracle9Platform extends Oracle8Platform
Purpose: Supports usage of certain Oracle JDBC specific APIs.
Supports binding NCHAR, NVARCHAR, NCLOB types as required by Oracle JDBC drivers.
Supports Oracle JDBC TIMESTAMP, TIMESTAMPTZ, TIMESTAMPLTZ types.
| Modifier and Type | Class and Description |
|---|---|
protected static class |
Oracle9Platform.NTypeBindCallCustomParameter
INTERNAL:
This class used for binding of NCHAR, NSTRING, NCLOB types.
|
| Modifier and Type | Field and Description |
|---|---|
protected String |
driverVersion |
protected boolean |
isConnectionDataInitialized |
protected boolean |
isLtzTimestampInGmt |
protected boolean |
isTimestampInGmt |
static Class |
NCHAR |
static Class |
NCLOB |
static Class |
NSTRING |
protected boolean |
shouldPrintCalendar |
protected boolean |
shouldTruncateDate
Indicates whether time component of java.sql.Date should be truncated (hours, minutes, seconds all set to zero)
before been passed as a parameter to PreparedStatement.
|
static Class |
XMLTYPE |
lobValueLimits, usesLocatorForLOBWriteEND_FROM, END_FROM_ID, FROM, FROM_ID, HINT_END, HINT_START, LOCK_END, LOCK_START_PREFIX, LOCK_START_SUFFIX, MAX_ROW, MIN_ROW, ORDER_BY_ID, SELECT, SELECT_ID_PREFIX, SELECT_ID_SUFFIX, shouldPrintForUpdateClause, supportsIdentity, vpdClearIdentifierQuery, vpdSetIdentifierQueryDEFAULT_VARCHAR_SIZEbatchWritingMechanism, castSizeForVarcharParameter, classTypes, cursorCode, DEFAULT_MAX_BATCH_WRITING_SIZE, DEFAULT_PARAMETERIZED_MAX_BATCH_WRITING_SIZE, driverName, driverSupportsNationalCharacterVarying, fieldTypes, IS_VALID_TIMEOUT, isCastRequired, maxBatchWritingSize, partitioningCallback, pingSQL, printInnerJoinInWhereClause, printOuterJoinInWhereClause, shouldBindAllParameters, shouldBindLiterals, shouldCacheAllStatements, shouldCreateIndicesOnForeignKeys, shouldForceBindAllParameters, shouldForceFieldNamesToUpperCase, shouldIgnoreCaseOnFieldComparisons, shouldOptimizeDataConversion, shouldTrimStrings, statementCacheSize, storedProcedureTerminationToken, stringBindingSize, structConverters, supportsAutoCommit, tableCreationSuffix, transactionIsolation, typeConverters, useJDBCStoredProcedureSyntax, useNationalCharacterVarying, useRownumFiltering, usesBatchWriting, usesByteArrayBinding, usesJDBCBatchWriting, usesNativeBatchWriting, usesNativeSQL, usesStreamsForBinding, usesStringBindingconversionManager, dataTypesConvertedFromAClass, dataTypesConvertedToAClass, defaultNativeSequenceToTable, defaultSeqenceAtNextValue, defaultSequence, endDelimiter, platformOperators, sequences, sequencesLock, startDelimiter, tableQualifier, timestampQuery| Constructor and Description |
|---|
Oracle9Platform() |
| Modifier and Type | Method and Description |
|---|---|
int |
addBatch(PreparedStatement statement)
INTERNAL: This gets called on each iteration to add parameters to the batch
Needs to be implemented so that it returns the number of rows successfully modified
by this statement for optimistic locking purposes (if useNativeBatchWriting is enabled, and
the call uses optimistic locking).
|
protected void |
appendCalendar(Calendar calendar,
Writer writer)
INTERNAL:
Appends an Oracle specific Timestamp with timezone and daylight time
elements if usesNativeSQL is true, otherwise use the ODBC format.
|
protected void |
appendTimestamp(Timestamp timestamp,
Writer writer)
INTERNAL:
Appends an Oracle specific Timestamp, if usesNativeSQL is true otherwise use the ODBC format.
|
protected Map<String,Class> |
buildClassTypes()
INTERNAL:
Add TIMESTAMP, TIMESTAMP WITH TIME ZONE and TIMESTAMP WITH LOCAL TIME ZONE
|
protected Hashtable |
buildFieldTypes()
INTERNAL:
Add XMLType as the default database type for org.w3c.dom.Documents.
|
protected String |
buildFirstRowsHint(int max)
Build the hint string used for first rows.
|
protected Vector |
buildFromStringCharVec(Class javaClass) |
protected Vector |
buildToNClobVec() |
protected Vector |
buildToNStringCharVec() |
protected Vector |
buildToTIMESTAMPVec() |
boolean |
canUnwrapOracleConnection()
INTERNAL:
Indicates whether this Oracle platform can unwrap Oracle connection.
|
void |
clearConnectionData() |
void |
clearOracleConnectionCache(Connection conn)
INTERNAL:
Clears both implicit and explicit caches of OracleConnection
|
Object |
clone() |
Object |
convertObject(Object sourceObject,
Class javaClass)
INTERNAL:
Allow for conversion from the Oracle type to the Java type.
|
void |
copyInto(org.eclipse.persistence.internal.databaseaccess.Platform platform)
Copy the state into the new platform.
|
org.eclipse.persistence.internal.databaseaccess.ConnectionCustomizer |
createConnectionCustomizer(org.eclipse.persistence.internal.databaseaccess.Accessor accessor,
org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL:
|
int |
executeBatch(Statement statement,
boolean isStatementPrepared)
INTERNAL: This gets called on each batch statement execution
Needs to be implemented so that it returns the number of rows successfully modified
by this statement for optimistic locking purposes (if useNativeBatchWriting is enabled, and
the call uses optimistic locking).
|
String |
getConnectionUserName()
INTERNAL:
Returns user name retrieved from JDBC connection.
|
Object |
getCustomModifyValueForCall(Call call,
Object value,
org.eclipse.persistence.internal.helper.DatabaseField field,
boolean shouldBind)
INTERNAL:
Used by SQLCall.translate(..)
The binding *must* be performed (NCHAR, NSTRING, NCLOB).
|
Vector |
getDataTypesConvertedFrom(Class javaClass)
INTERNAL:
Return the list of Classes that can be converted to from the passed in javaClass.
|
Vector |
getDataTypesConvertedTo(Class javaClass)
INTERNAL:
Return the list of Classes that can be converted from to the passed in javaClass.
|
String |
getDriverVersion()
INTERNAL: Return the driver version.
|
int |
getJDBCType(Class javaType)
Return the JDBC type for the Java type.
|
int |
getJDBCTypeForSetNull(org.eclipse.persistence.internal.helper.DatabaseField field)
Return the JDBC type for the given database field to be passed to Statement.setNull
The Oracle driver does not like the OPAQUE type so VARCHAR must be used.
|
int |
getLobValueLimits()
PUBLIC:
Return the BLOB/CLOB value limits on thin driver.
|
Object |
getObjectFromResultSet(ResultSet resultSet,
int columnNumber,
int type,
org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL:
Get a timestamp value from a result set.
|
Timestamp |
getTimestampFromServer(org.eclipse.persistence.internal.sessions.AbstractSession session,
String sessionName)
INTERNAL:
Answer the timestamp from the server.
|
Object |
getTIMESTAMPLTZFromResultSet(ResultSet resultSet,
int columnNumber,
int type,
org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL:
Get a TIMESTAMPLTZ value from a result set.
|
ValueReadQuery |
getTimestampQuery()
INTERNAL:
This method returns the query to select the SYSTIMESTAMP as TIMESTAMPTZ
from the server for Oracle9i.
|
Object |
getTIMESTAMPTZFromResultSet(ResultSet resultSet,
int columnNumber,
int type,
org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL:
Get a TIMESTAMPTZ value from a result set.
|
protected org.eclipse.persistence.internal.platform.database.oracle.XMLTypeFactory |
getXMLTypeFactory()
INTERNAL:
Lazy initialization of xmlTypeFactory allows to avoid loading xdb-dependent
class XMLTypeFactoryImpl unless xdb is used.
|
void |
initializeConnectionData(Connection connection)
INTERNAL:
|
protected void |
initializePlatformOperators()
INTERNAL:
Allow the use of XMLType operators on this platform.
|
protected boolean |
isClob(Class type)
INTERNAL:
Used in write LOB method only to identify a CLOB.
|
boolean |
isLtzTimestampInGmt()
INTERNAL: Return if ltz timestamps are returned in GMT by the driver.
|
boolean |
isOracle9()
PUBLIC:
Return is this is the Oracle 9 platform.
|
protected boolean |
isOracle9Specific(Class type)
INTERNAL:
Return if the type is a special oracle type.
|
boolean |
isTimestampInGmt()
INTERNAL: Return if timestamps are returned in GMT by the driver.
|
boolean |
isXDBDocument(Object obj)
INTERNAL:
Indicates whether the passed object is an instance of XDBDocument.
|
Statement |
prepareBatchStatement(Statement statement,
int maxBatchWritingSize)
INTERNAL: Allows setting the batch size on the statement
Is used with parameterized SQL, and should only be passed in prepared statements
|
String |
serverTimestampString()
INTERNAL:
Return the current SYSTIMESTAMP as TIMESTAMPTZ from the server.
|
void |
setLobValueLimits(int lobValueLimits)
PUBLIC:
Set the BLOB/CLOB value limits on thin driver.
|
void |
setParameterValueInDatabaseCall(Object parameter,
CallableStatement statement,
String name,
org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL:
Note that index (not index+1) is used in statement.setObject(index, parameter)
Binding starts with a 1 not 0, so make sure that index > 0.
|
void |
setParameterValueInDatabaseCall(Object parameter,
PreparedStatement statement,
int index,
org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL:
Note that index (not index+1) is used in statement.setObject(index, parameter)
Binding starts with a 1 not 0, so make sure that index > 0.
|
void |
setShouldTruncateDate(boolean shouldTruncateDate)
PUBLIC:
Indicates whether time component of java.sql.Date should be truncated (hours, minutes, seconds all set to zero)
before been passed as a parameter to PreparedStatement.
|
boolean |
shouldTruncateDate()
PUBLIC:
Indicates whether time component of java.sql.Date should be truncated (hours, minutes, seconds all set to zero)
before been passed as a parameter to PreparedStatement.
|
boolean |
shouldUseCustomModifyForCall(org.eclipse.persistence.internal.helper.DatabaseField field)
INTERNAL
Used by SQLCall.appendModify(..)
If the field should be passed to customModifyInDatabaseCall, retun true,
otherwise false.
|
boolean |
supportsConnectionUserName()
INTERNAL:
User name from JDBC connection is stored in
initializeConnectionData(Connection). |
Connection |
unwrapOracleConnection(Connection connection)
INTERNAL:
If can unwrap returns unwrapped Oracle connection, otherwise original connection.
|
createArray, createStruct, freeTemporaryObject, getConnection, getRefValue, isBlob, isNativeConnectionRequiredForLobLocator, lobValueExceedsLimit, setShouldUseLocatorForLOBWrite, shouldUseLocatorForLOBWrite, writeLOBallowsSizeInProcedureArguments, appendByteArray, appendDate, appendTime, atan2Operator, buildCallWithReturning, buildSelectQueryForIdentity, buildSelectQueryForSequenceObject, canBuildCallWithReturning, checkTableExists, createExpressionFor, currentDateOperator, currentTimeOperator, exceptOperator, getAssignmentString, getBatchBeginString, getBatchEndString, getBatchRowCountAssignString, getBatchRowCountDeclareString, getBatchRowCountReturnString, getDeclareBeginString, getDropCascadeString, getDropDatabaseSchemaString, getINClauseLimit, getMaxFieldNameSize, getNativeTableInfo, getProcedureArgument, getProcedureCallHeader, getProcedureCallTail, getSelectForUpdateString, getSelectForUpdateWaitString, getStoredProcedureParameterPrefix, getSystemChangeNumberQuery, getTableExistsQuery, getVPDClearIdentifierQuery, getVPDCreationFunctionString, getVPDCreationPolicyString, getVPDDeletionString, getVPDSetIdentifierQuery, isAlterSequenceObjectSupported, isForUpdateCompatibleWithDistinct, isLobCompatibleWithDistinct, isLockTimeoutException, isOracle, isRowCountOutputParameterRequired, logOperator, maximumNumericValues, minimumNumericValues, operatorLocate, operatorLocate2, operatorOuterJoin, printFieldNullClause, printSQLSelectStatement, regexpOperator, setSupportsIdentity, shouldPrintForUpdateClause, shouldPrintStoredProcedureArgumentNameInCall, shouldUseJDBCOuterJoinSyntax, supportsAutoConversionToNumericForArithmeticOperations, supportsIdentity, supportsSelectForUpdateNoWait, supportsSequenceObjects, supportsStoredFunctions, supportsVPD, supportsWaitForUpdate, todayOperator, useJDBCStoredProcedureSyntax, wasFailureCommunicationBasedaddStructConverter, appendBoolean, appendLiteralToCall, appendLiteralToCallWithBinding, appendNumber, appendParameter, appendParameterInternal, appendString, autoCommit, beginTransaction, buildBatchCriteria, buildBatchCriteriaForComplexId, buildCreateIndex, buildCreateIndex, buildDropIndex, buildDropIndex, buildProcedureCallString, buildSequenceObjectAlterIncrementWriter, buildSequenceObjectCreationWriter, buildSequenceObjectDeletionWriter, canBatchWriteWithOptimisticLocking, commitTransaction, computeMaxRowsForSQL, convertToDatabaseType, createArray, createPlatformDefaultSequence, createStruct, dontBindUpdateAllQueryUsingTempTables, executeStoredProcedure, getBatchDelimiterString, getBatchWritingMechanism, getCastSizeForVarcharParameter, getClassTypes, getConstraintDeletionString, getCreateDatabaseSchemaString, getCreateTempTableSqlBodyForTable, getCreateTempTableSqlPrefix, getCreateTempTableSqlSuffix, getCreateViewString, getCreationInOutputProcedureToken, getCreationOutputProcedureToken, getCursorCode, getDefaultSequenceTableName, getDriverSupportsNVarChar, getFieldTypeDefinition, getFieldTypes, getFunctionCallHeader, getIndexNamePrefix, getInOutputProcedureToken, getInputProcedureToken, getJDBCOuterJoinString, getJDBCType, getJdbcTypeName, getMaxBatchWritingSize, getMaxForeignKeyNameSize, getMaxIndexNameSize, getMaxUniqueKeyNameSize, getNoWaitString, getOutputProcedureToken, getParameterValueFromDatabaseCall, getParameterValueFromDatabaseCall, getPartitioningCallback, getPingSQL, getProcedureArgumentString, getProcedureAsString, getProcedureBeginString, getProcedureEndString, getProcedureOptionList, getQualifiedName, getQualifiedSequenceTableName, getRefValue, getSelectForUpdateNoWaitString, getSelectForUpdateOfString, getSequenceCounterFieldName, getSequenceNameFieldName, getSequencePreallocationSize, getSequenceTableName, getStatementCacheSize, getStoredProcedureTerminationToken, getStringBindingSize, getStructConverters, getTableCreationSuffix, getTempTableForTable, getTransactionIsolation, getTypeConverters, getUniqueConstraintDeletionString, getUseNationalCharacterVaryingTypeForString, hasPartitioningCallback, initialize, isCastRequired, isDynamicSQLRequiredForFunctions, isInformixOuterJoin, isJDBCExecuteCompliant, isNullAllowedInSelectClause, isOutputAllowWithResultSet, minimumTimeIncrement, printFieldIdentityClause, printFieldNotNullClause, printFieldTypeSize, printFieldTypeSize, printFieldUnique, printFieldUnique, printStoredFunctionReturnKeyWord, printValuelist, printValuelist, registerOutputParameter, registerOutputParameter, registerOutputParameter, registerOutputParameter, requiresNamedPrimaryKeyConstraints, requiresProcedureBrackets, requiresProcedureCallBrackets, requiresProcedureCallOuputToken, requiresTableInIndexDropDDL, requiresTypeNameToRegisterOutputParameter, requiresUniqueConstraintCreationOnTableCreate, retrieveFirstPrimaryKeyOrOne, rollbackTransaction, setBatchWritingMechanism, setCastSizeForVarcharParameter, setClassTypes, setCursorCode, setDriverName, setDriverSupportsNVarChar, setFieldTypes, setIsCastRequired, setMaxBatchWritingSize, setNullFromDatabaseField, setNullFromDatabaseField, setPartitioningCallback, setPingSQL, setPrintInnerJoinInWhereClause, setPrintOuterJoinInWhereClause, setSequenceCounterFieldName, setSequenceNameFieldName, setSequenceTableName, setShouldBindAllParameters, setShouldBindLiterals, setShouldCacheAllStatements, setShouldCreateIndicesOnForeignKeys, setShouldForceBindAllParameters, setShouldForceFieldNamesToUpperCase, setShouldIgnoreCaseOnFieldComparisons, setShouldOptimizeDataConversion, setShouldTrimStrings, setShouldUseRownumFiltering, setStatementCacheSize, setStoredProcedureTerminationToken, setStringBindingSize, setSupportsAutoCommit, setTableCreationSuffix, setTransactionIsolation, setUseJDBCStoredProcedureSyntax, setUseNationalCharacterVaryingTypeForString, setUsesBatchWriting, setUsesByteArrayBinding, setUsesJDBCBatchWriting, setUsesNativeBatchWriting, setUsesNativeSQL, setUsesStreamsForBinding, setUsesStringBinding, shouldAlwaysUseTempStorageForModifyAll, shouldBindAllParameters, shouldBindLiterals, shouldCacheAllStatements, shouldCreateIndicesForPrimaryKeys, shouldCreateIndicesOnForeignKeys, shouldCreateIndicesOnUniqueKeys, shouldForceBindAllParameters, shouldForceFieldNamesToUpperCase, shouldIgnoreCaseOnFieldComparisons, shouldIgnoreException, shouldOptimizeDataConversion, shouldPrintAliasForUpdate, shouldPrintConstraintNameAfter, shouldPrintFieldIdentityClause, shouldPrintInnerJoinInWhereClause, shouldPrintInOutputTokenBeforeType, shouldPrintInputTokenAtStart, shouldPrintLockingClauseAfterWhereClause, shouldPrintOuterJoinInWhereClause, shouldPrintOutputTokenAtStart, shouldPrintOutputTokenBeforeType, shouldPrintStoredProcedureVariablesAfterBeginString, shouldTempTableSpecifyPrimaryKeys, shouldTrimStrings, shouldUseGetSetNString, shouldUseRownumFiltering, supportsANSIInnerJoinSyntax, supportsAutoCommit, supportsCountDistinctWithMultipleFields, supportsDeleteOnCascade, supportsForeignKeyConstraints, supportsGlobalTempTables, supportsIndexes, supportsIndividualTableLocking, supportsLocalTempTables, supportsLockingQueriesWithMultipleTables, supportsNestingOuterJoins, supportsOuterJoinsWithBrackets, supportsPrimaryKeyConstraint, supportsTempTables, supportsUniqueColumns, supportsUniqueKeyConstraints, usesBatchWriting, usesByteArrayBinding, usesJDBCBatchWriting, usesNativeBatchWriting, usesNativeSQL, usesSequenceTable, usesStreamsForBinding, usesStringBinding, writeAddColumnClause, writeAutoAssignmentSetClause, writeAutoJoinWhereClause, writeCleanUpTempTableSql, writeCreateTempTableSql, writeDeleteFromTargetTableUsingTempTableSql, writeFields, writeFieldsAutoClause, writeFieldsList, writeInsertIntoTableSql, writeJoinWhereClause, writeParameterMarker, writeTableCreationSuffix, writeUpdateOriginalFromTempTableSqladdOperator, addSequence, addSequence, buildNativeCall, buildSelectQueryForIdentity, buildSelectQueryForSequenceObject, getConversionManager, getDefaultNativeSequenceToTable, getDefaultSeqenceAtNextValue, getDefaultSequence, getDefaultSequenceToWrite, getEndDelimiter, getOperator, getPlatformOperators, getSelectSequenceQuery, getSequence, getSequences, getSequencesToWrite, getStartDelimiter, getTableQualifier, getUpdateSequenceQuery, hasDefaultSequence, initializeDefaultQueries, initIdentitySequences, isAccess, isAttunity, isCloudscape, isDB2, isDB2Z, isDBase, isDerby, isFirebird, isH2, isHANA, isHSQL, isInformix, isMaxDB, isMySQL, isODBC, isOracle12, isPervasive, isPointBase, isPostgreSQL, isSQLAnywhere, isSQLServer, isSybase, isSymfoware, isTimesTen, isTimesTen7, removeAllSequences, removeIdentitySequences, removeSequence, sequencesAfterCloneCleanup, setConversionManager, setDefaultNativeSequenceToTable, setDefaultSeqenceAtNextValue, setDefaultSequence, setEndDelimiter, setSelectSequenceNumberQuery, setSequencePreallocationSize, setSequences, setStartDelimiter, setTableQualifier, setTimestampQuery, setUpdateSequenceQuery, shouldNativeSequenceUseTransaction, shouldPrepare, shouldSelectDistinctIncludeOrderBy, shouldSelectIncludeOrderBy, supportsNativeSequenceNumbers, toString, usesPlatformDefaultSequencepublic static final Class NCHAR
public static final Class NSTRING
public static final Class NCLOB
public static final Class XMLTYPE
protected transient String driverVersion
protected transient boolean shouldPrintCalendar
protected transient boolean isTimestampInGmt
protected transient boolean isLtzTimestampInGmt
protected transient boolean isConnectionDataInitialized
protected boolean shouldTruncateDate
public void copyInto(org.eclipse.persistence.internal.databaseaccess.Platform platform)
copyInto in interface org.eclipse.persistence.internal.databaseaccess.PlatformcopyInto in class Oracle8Platformpublic Object getObjectFromResultSet(ResultSet resultSet, int columnNumber, int type, org.eclipse.persistence.internal.sessions.AbstractSession session) throws SQLException
getObjectFromResultSet in class OraclePlatformSQLExceptionpublic Object getTIMESTAMPTZFromResultSet(ResultSet resultSet, int columnNumber, int type, org.eclipse.persistence.internal.sessions.AbstractSession session) throws SQLException
SQLExceptionpublic Object getTIMESTAMPLTZFromResultSet(ResultSet resultSet, int columnNumber, int type, org.eclipse.persistence.internal.sessions.AbstractSession session) throws SQLException
SQLExceptionpublic boolean shouldUseCustomModifyForCall(org.eclipse.persistence.internal.helper.DatabaseField field)
shouldUseCustomModifyForCall in interface org.eclipse.persistence.internal.databaseaccess.PlatformshouldUseCustomModifyForCall in class Oracle8Platformprotected void initializePlatformOperators()
initializePlatformOperators in class OraclePlatformprotected Hashtable buildFieldTypes()
buildFieldTypes in class Oracle8Platformprotected String buildFirstRowsHint(int max)
buildFirstRowsHint in class OraclePlatformmax - protected Map<String,Class> buildClassTypes()
buildClassTypes in class org.eclipse.persistence.internal.databaseaccess.DatabasePlatformpublic Object clone()
clone in interface org.eclipse.persistence.internal.databaseaccess.Platformclone in class org.eclipse.persistence.internal.databaseaccess.DatasourcePlatformpublic Object convertObject(Object sourceObject, Class javaClass) throws ConversionException, DatabaseException
convertObject in interface org.eclipse.persistence.internal.core.databaseaccess.CorePlatform<org.eclipse.persistence.internal.helper.ConversionManager>convertObject in interface org.eclipse.persistence.internal.databaseaccess.PlatformconvertObject in class org.eclipse.persistence.internal.databaseaccess.DatasourcePlatformsourceObject - the object that must be convertedjavaClass - the class that the object must be converted toConversionException - all exceptions will be thrown as this type.DatabaseExceptionprotected void appendTimestamp(Timestamp timestamp, Writer writer) throws IOException
appendTimestamp in class OraclePlatformIOExceptionprotected void appendCalendar(Calendar calendar, Writer writer) throws IOException
appendCalendar in class OraclePlatformIOExceptionpublic void initializeConnectionData(Connection connection) throws SQLException
initializeConnectionData in class OraclePlatformSQLExceptionpublic void clearConnectionData()
public void clearOracleConnectionCache(Connection conn)
clearOracleConnectionCache in class OraclePlatformpublic void setParameterValueInDatabaseCall(Object parameter, PreparedStatement statement, int index, org.eclipse.persistence.internal.sessions.AbstractSession session) throws SQLException
setParameterValueInDatabaseCall in class org.eclipse.persistence.internal.databaseaccess.DatabasePlatformSQLExceptionpublic void setParameterValueInDatabaseCall(Object parameter, CallableStatement statement, String name, org.eclipse.persistence.internal.sessions.AbstractSession session) throws SQLException
setParameterValueInDatabaseCall in class org.eclipse.persistence.internal.databaseaccess.DatabasePlatformSQLExceptionpublic Timestamp getTimestampFromServer(org.eclipse.persistence.internal.sessions.AbstractSession session, String sessionName)
getTimestampFromServer in interface org.eclipse.persistence.internal.databaseaccess.PlatformgetTimestampFromServer in class org.eclipse.persistence.internal.databaseaccess.DatasourcePlatformpublic ValueReadQuery getTimestampQuery()
getTimestampQuery in interface org.eclipse.persistence.internal.databaseaccess.PlatformgetTimestampQuery in class OraclePlatformpublic String serverTimestampString()
serverTimestampString in class OraclePlatformprotected Vector buildToTIMESTAMPVec()
protected Vector buildToNStringCharVec()
protected Vector buildToNClobVec()
public int getLobValueLimits()
getLobValueLimits in class Oracle8Platformpublic void setLobValueLimits(int lobValueLimits)
setLobValueLimits in class Oracle8Platformprotected boolean isOracle9Specific(Class type)
protected boolean isClob(Class type)
isClob in class Oracle8Platformpublic Object getCustomModifyValueForCall(Call call, Object value, org.eclipse.persistence.internal.helper.DatabaseField field, boolean shouldBind)
getCustomModifyValueForCall in interface org.eclipse.persistence.internal.databaseaccess.PlatformgetCustomModifyValueForCall in class Oracle8Platformpublic Vector getDataTypesConvertedFrom(Class javaClass)
getDataTypesConvertedFrom in class org.eclipse.persistence.internal.databaseaccess.DatasourcePlatformjavaClass - - the class that is converted frompublic Vector getDataTypesConvertedTo(Class javaClass)
getDataTypesConvertedTo in class org.eclipse.persistence.internal.databaseaccess.DatasourcePlatformjavaClass - - the class that is converted topublic int getJDBCTypeForSetNull(org.eclipse.persistence.internal.helper.DatabaseField field)
getJDBCTypeForSetNull in class org.eclipse.persistence.internal.databaseaccess.DatabasePlatformpublic int getJDBCType(Class javaType)
getJDBCType in class org.eclipse.persistence.internal.databaseaccess.DatabasePlatformpublic int executeBatch(Statement statement, boolean isStatementPrepared) throws SQLException
executeBatch in class org.eclipse.persistence.internal.databaseaccess.DatabasePlatformisStatementPrepared - - flag is set to true if this statement is preparedSQLExceptionpublic int addBatch(PreparedStatement statement) throws SQLException
addBatch in class org.eclipse.persistence.internal.databaseaccess.DatabasePlatformSQLExceptionpublic Statement prepareBatchStatement(Statement statement, int maxBatchWritingSize) throws SQLException
prepareBatchStatement in class org.eclipse.persistence.internal.databaseaccess.DatabasePlatformSQLExceptionprotected org.eclipse.persistence.internal.platform.database.oracle.XMLTypeFactory getXMLTypeFactory()
public boolean isXDBDocument(Object obj)
isXDBDocument in class org.eclipse.persistence.internal.databaseaccess.DatabasePlatformpublic boolean canUnwrapOracleConnection()
canUnwrapOracleConnection in class OraclePlatformpublic Connection unwrapOracleConnection(Connection connection)
unwrapOracleConnection in class OraclePlatformpublic boolean isOracle9()
isOracle9 in interface org.eclipse.persistence.internal.databaseaccess.PlatformisOracle9 in class org.eclipse.persistence.internal.databaseaccess.DatasourcePlatformpublic org.eclipse.persistence.internal.databaseaccess.ConnectionCustomizer createConnectionCustomizer(org.eclipse.persistence.internal.databaseaccess.Accessor accessor,
org.eclipse.persistence.internal.sessions.AbstractSession session)
createConnectionCustomizer in class org.eclipse.persistence.internal.databaseaccess.DatasourcePlatformpublic String getDriverVersion()
public boolean isTimestampInGmt()
public boolean isLtzTimestampInGmt()
public boolean shouldTruncateDate()
public void setShouldTruncateDate(boolean shouldTruncateDate)
public boolean supportsConnectionUserName()
initializeConnectionData(Connection).supportsConnectionUserName in class org.eclipse.persistence.internal.databaseaccess.DatabasePlatformtruepublic String getConnectionUserName()
initializeConnectionData(Connection) shall be called
before this method.getConnectionUserName in class org.eclipse.persistence.internal.databaseaccess.DatabasePlatformCopyright © 2007–2021 Eclipse.org - EclipseLink Project. All rights reserved.