Package org.frankframework.dbms
Class OracleDbmsSupport
java.lang.Object
org.frankframework.dbms.GenericDbmsSupport
org.frankframework.dbms.OracleDbmsSupport
- All Implemented Interfaces:
IDbmsSupport
- Author:
- Gerrit van Brakel
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.frankframework.dbms.CustomSQLType
Fields inherited from class org.frankframework.dbms.GenericDbmsSupport
KEYWORD_SELECT, log, sqlTranslators
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionautoIncrementInsertValue
(String sequenceName) boolean
boolean
boolean
getBooleanValue
(boolean value) getDbms()
http://en.wikipedia.org/wiki/DUAL_tablegetSchema
(Connection conn) SQL String returning current date and time of dbms.getTableColumns
(Connection conn, String schemaName, String tableName, String columnNamePattern) boolean
hasIndexOnColumn
(Connection conn, String schemaOwner, String tableName, String columnName) boolean
hasIndexOnColumns
(Connection conn, String schemaOwner, String tableName, List<String> columns) boolean
boolean
isColumnPresent
(Connection conn, String schemaName, String tableName, String columnName) boolean
isSequencePresent
(Connection conn, String schemaOwner, String tableName, String sequenceName) boolean
DBMS Feature flag: is it possible to call a stored procedure that returns the results of a SELECT statement directly, without needing a REFCURSOR OUT parameter.boolean
isTablePresent
(Connection conn, String schemaName, String tableName) prepareQueryTextForWorkQueueReading
(int batchSize, String selectQuery, int wait) provideFirstRowsHintAfterFirstKeyword
(int rowCount) provideIndexHintAfterFirstKeyword
(String tableName, String indexName) void
updateBlob
(ResultSet rs, int column, Object blobUpdateHandle) void
updateBlob
(ResultSet rs, String column, Object blobUpdateHandle) void
updateClob
(ResultSet rs, int column, Object clobUpdateHandle) void
updateClob
(ResultSet rs, String column, Object clobUpdateHandle) Methods inherited from class org.frankframework.dbms.GenericDbmsSupport
applyBlobParameter, applyClobParameter, convertQuery, createTranslator, doHasIndexOnColumns, doIsColumnPresent, doIsTablePresent, getBlobFieldType, getBlobHandle, getBlobHandle, getBlobInputStream, getBlobInputStream, getBlobOutputStream, getBlobOutputStream, getBlobOutputStream, getClobHandle, getClobHandle, getClobReader, getClobReader, getClobWriter, getClobWriter, getDateAndOffset, getDatetimeLiteral, getDbmsName, getFormattedDate, getLength, getSqlTranslator, getTableColumns, getTableColumns, getTimestampAsDate, getTimestampFieldType, isBlobType, isClobType, isColumnPresent, isConstraintViolation, isParameterTypeMatchRequired, isQueryConversionRequired, isTablePresent, prepareQueryTextForNonLockingRead, prepareQueryTextForWorkQueuePeeking, prepareQueryTextForWorkQueuePeeking, prepareQueryTextForWorkQueueReading, provideTrailingFirstRowsHint, splitQuery, warnConvertQuery
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.frankframework.dbms.IDbmsSupport
isRowVersionTimestamp
-
Field Details
-
ORACLE_CURSOR_TYPE_DEF
public static final org.frankframework.dbms.CustomSQLType ORACLE_CURSOR_TYPE_DEF
-
-
Constructor Details
-
OracleDbmsSupport
public OracleDbmsSupport()
-
-
Method Details
-
getDbms
- Specified by:
getDbms
in interfaceIDbmsSupport
- Overrides:
getDbms
in classGenericDbmsSupport
-
hasSkipLockedFunctionality
public boolean hasSkipLockedFunctionality()- Specified by:
hasSkipLockedFunctionality
in interfaceIDbmsSupport
- Overrides:
hasSkipLockedFunctionality
in classGenericDbmsSupport
-
getSysDate
Description copied from interface:IDbmsSupport
SQL String returning current date and time of dbms.- Specified by:
getSysDate
in interfaceIDbmsSupport
- Overrides:
getSysDate
in classGenericDbmsSupport
-
getFromForTablelessSelect
Description copied from interface:IDbmsSupport
http://en.wikipedia.org/wiki/DUAL_table- Specified by:
getFromForTablelessSelect
in interfaceIDbmsSupport
- Overrides:
getFromForTablelessSelect
in classGenericDbmsSupport
-
getAutoIncrementKeyFieldType
- Specified by:
getAutoIncrementKeyFieldType
in interfaceIDbmsSupport
- Overrides:
getAutoIncrementKeyFieldType
in classGenericDbmsSupport
-
autoIncrementKeyMustBeInserted
public boolean autoIncrementKeyMustBeInserted()- Specified by:
autoIncrementKeyMustBeInserted
in interfaceIDbmsSupport
- Overrides:
autoIncrementKeyMustBeInserted
in classGenericDbmsSupport
-
autoIncrementInsertValue
- Specified by:
autoIncrementInsertValue
in interfaceIDbmsSupport
- Overrides:
autoIncrementInsertValue
in classGenericDbmsSupport
-
autoIncrementUsesSequenceObject
public boolean autoIncrementUsesSequenceObject()- Specified by:
autoIncrementUsesSequenceObject
in interfaceIDbmsSupport
- Overrides:
autoIncrementUsesSequenceObject
in classGenericDbmsSupport
-
getTextFieldType
- Specified by:
getTextFieldType
in interfaceIDbmsSupport
- Overrides:
getTextFieldType
in classGenericDbmsSupport
-
prepareQueryTextForWorkQueueReading
public String prepareQueryTextForWorkQueueReading(int batchSize, String selectQuery, int wait) throws DbmsException - Specified by:
prepareQueryTextForWorkQueueReading
in interfaceIDbmsSupport
- Overrides:
prepareQueryTextForWorkQueueReading
in classGenericDbmsSupport
- Throws:
DbmsException
-
provideIndexHintAfterFirstKeyword
- Specified by:
provideIndexHintAfterFirstKeyword
in interfaceIDbmsSupport
- Overrides:
provideIndexHintAfterFirstKeyword
in classGenericDbmsSupport
-
provideFirstRowsHintAfterFirstKeyword
- Specified by:
provideFirstRowsHintAfterFirstKeyword
in interfaceIDbmsSupport
- Overrides:
provideFirstRowsHintAfterFirstKeyword
in classGenericDbmsSupport
-
updateClob
- Specified by:
updateClob
in interfaceIDbmsSupport
- Overrides:
updateClob
in classGenericDbmsSupport
- Throws:
SQLException
-
updateClob
- Specified by:
updateClob
in interfaceIDbmsSupport
- Overrides:
updateClob
in classGenericDbmsSupport
- Throws:
SQLException
-
updateBlob
- Specified by:
updateBlob
in interfaceIDbmsSupport
- Overrides:
updateBlob
in classGenericDbmsSupport
- Throws:
SQLException
-
updateBlob
- Specified by:
updateBlob
in interfaceIDbmsSupport
- Overrides:
updateBlob
in classGenericDbmsSupport
- Throws:
SQLException
-
getSchema
- Specified by:
getSchema
in interfaceIDbmsSupport
- Overrides:
getSchema
in classGenericDbmsSupport
- Throws:
DbmsException
-
getBooleanValue
- Specified by:
getBooleanValue
in interfaceIDbmsSupport
- Overrides:
getBooleanValue
in classGenericDbmsSupport
-
getTableColumns
public ResultSet getTableColumns(Connection conn, String schemaName, String tableName, String columnNamePattern) throws DbmsException - Specified by:
getTableColumns
in interfaceIDbmsSupport
- Overrides:
getTableColumns
in classGenericDbmsSupport
- Throws:
DbmsException
-
isTablePresent
public boolean isTablePresent(Connection conn, String schemaName, String tableName) throws DbmsException - Specified by:
isTablePresent
in interfaceIDbmsSupport
- Overrides:
isTablePresent
in classGenericDbmsSupport
- Throws:
DbmsException
-
isColumnPresent
public boolean isColumnPresent(Connection conn, String schemaName, String tableName, String columnName) throws DbmsException - Specified by:
isColumnPresent
in interfaceIDbmsSupport
- Overrides:
isColumnPresent
in classGenericDbmsSupport
- Throws:
DbmsException
-
isSequencePresent
public boolean isSequencePresent(Connection conn, String schemaOwner, String tableName, String sequenceName) - Specified by:
isSequencePresent
in interfaceIDbmsSupport
- Overrides:
isSequencePresent
in classGenericDbmsSupport
-
hasIndexOnColumn
public boolean hasIndexOnColumn(Connection conn, String schemaOwner, String tableName, String columnName) throws DbmsException - Specified by:
hasIndexOnColumn
in interfaceIDbmsSupport
- Overrides:
hasIndexOnColumn
in classGenericDbmsSupport
- Throws:
DbmsException
-
hasIndexOnColumns
public boolean hasIndexOnColumns(Connection conn, String schemaOwner, String tableName, List<String> columns) - Specified by:
hasIndexOnColumns
in interfaceIDbmsSupport
- Overrides:
hasIndexOnColumns
in classGenericDbmsSupport
-
isStoredProcedureResultSetSupported
public boolean isStoredProcedureResultSetSupported()Description copied from interface:IDbmsSupport
DBMS Feature flag: is it possible to call a stored procedure that returns the results of a SELECT statement directly, without needing a REFCURSOR OUT parameter.- Returns:
- true for database that can directly return SELECT results. Not supported for PostgreSQL and Oracle.
-
canFetchStatementParameterMetaData
public boolean canFetchStatementParameterMetaData() -
getCursorSqlType
-