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.CustomSQLTypeFields inherited from class org.frankframework.dbms.GenericDbmsSupport
KEYWORD_SELECT, log, sqlTranslators -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionautoIncrementInsertValue(String sequenceName) booleanbooleanbooleangetBooleanValue(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) booleanhasIndexOnColumn(Connection conn, String schemaOwner, String tableName, String columnName) booleanhasIndexOnColumns(Connection conn, String schemaOwner, String tableName, List<String> columns) booleanbooleanisColumnPresent(Connection conn, String schemaName, String tableName, String columnName) booleanisSequencePresent(Connection conn, String schemaOwner, String tableName, String sequenceName) booleanDBMS 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.booleanisTablePresent(Connection conn, String schemaName, String tableName) prepareQueryTextForWorkQueueReading(int batchSize, String selectQuery, int wait) provideFirstRowsHintAfterFirstKeyword(int rowCount) provideIndexHintAfterFirstKeyword(String tableName, String indexName) voidupdateBlob(ResultSet rs, int column, Object blobUpdateHandle) voidupdateBlob(ResultSet rs, String column, Object blobUpdateHandle) voidupdateClob(ResultSet rs, int column, Object clobUpdateHandle) voidupdateClob(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, getFormattedDate, getLength, getSqlTranslator, getTableColumns, getTableColumns, getTimestampAsDate, getTimestampFieldType, isBlobType, isClobType, isColumnPresent, isConstraintViolation, isParameterTypeMatchRequired, isQueryConversionRequired, isTablePresent, prepareQueryTextForNonLockingRead, prepareQueryTextForWorkQueuePeeking, prepareQueryTextForWorkQueuePeeking, prepareQueryTextForWorkQueueReading, provideTrailingFirstRowsHint, splitQuery, warnConvertQueryMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.frankframework.dbms.IDbmsSupport
getDbmsName, 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:
getDbmsin interfaceIDbmsSupport- Overrides:
getDbmsin classGenericDbmsSupport
-
hasSkipLockedFunctionality
public boolean hasSkipLockedFunctionality()- Specified by:
hasSkipLockedFunctionalityin interfaceIDbmsSupport- Overrides:
hasSkipLockedFunctionalityin classGenericDbmsSupport
-
getSysDate
Description copied from interface:IDbmsSupportSQL String returning current date and time of dbms.- Specified by:
getSysDatein interfaceIDbmsSupport- Overrides:
getSysDatein classGenericDbmsSupport
-
getFromForTablelessSelect
Description copied from interface:IDbmsSupporthttp://en.wikipedia.org/wiki/DUAL_table- Specified by:
getFromForTablelessSelectin interfaceIDbmsSupport- Overrides:
getFromForTablelessSelectin classGenericDbmsSupport
-
getAutoIncrementKeyFieldType
- Specified by:
getAutoIncrementKeyFieldTypein interfaceIDbmsSupport- Overrides:
getAutoIncrementKeyFieldTypein classGenericDbmsSupport
-
autoIncrementKeyMustBeInserted
public boolean autoIncrementKeyMustBeInserted()- Specified by:
autoIncrementKeyMustBeInsertedin interfaceIDbmsSupport- Overrides:
autoIncrementKeyMustBeInsertedin classGenericDbmsSupport
-
autoIncrementInsertValue
- Specified by:
autoIncrementInsertValuein interfaceIDbmsSupport- Overrides:
autoIncrementInsertValuein classGenericDbmsSupport
-
autoIncrementUsesSequenceObject
public boolean autoIncrementUsesSequenceObject()- Specified by:
autoIncrementUsesSequenceObjectin interfaceIDbmsSupport- Overrides:
autoIncrementUsesSequenceObjectin classGenericDbmsSupport
-
getTextFieldType
- Specified by:
getTextFieldTypein interfaceIDbmsSupport- Overrides:
getTextFieldTypein classGenericDbmsSupport
-
prepareQueryTextForWorkQueueReading
public String prepareQueryTextForWorkQueueReading(int batchSize, String selectQuery, int wait) throws DbmsException - Specified by:
prepareQueryTextForWorkQueueReadingin interfaceIDbmsSupport- Overrides:
prepareQueryTextForWorkQueueReadingin classGenericDbmsSupport- Throws:
DbmsException
-
provideIndexHintAfterFirstKeyword
- Specified by:
provideIndexHintAfterFirstKeywordin interfaceIDbmsSupport- Overrides:
provideIndexHintAfterFirstKeywordin classGenericDbmsSupport
-
provideFirstRowsHintAfterFirstKeyword
- Specified by:
provideFirstRowsHintAfterFirstKeywordin interfaceIDbmsSupport- Overrides:
provideFirstRowsHintAfterFirstKeywordin classGenericDbmsSupport
-
updateClob
- Specified by:
updateClobin interfaceIDbmsSupport- Overrides:
updateClobin classGenericDbmsSupport- Throws:
SQLException
-
updateClob
- Specified by:
updateClobin interfaceIDbmsSupport- Overrides:
updateClobin classGenericDbmsSupport- Throws:
SQLException
-
updateBlob
- Specified by:
updateBlobin interfaceIDbmsSupport- Overrides:
updateBlobin classGenericDbmsSupport- Throws:
SQLException
-
updateBlob
- Specified by:
updateBlobin interfaceIDbmsSupport- Overrides:
updateBlobin classGenericDbmsSupport- Throws:
SQLException
-
getSchema
- Specified by:
getSchemain interfaceIDbmsSupport- Overrides:
getSchemain classGenericDbmsSupport- Throws:
DbmsException
-
getBooleanValue
- Specified by:
getBooleanValuein interfaceIDbmsSupport- Overrides:
getBooleanValuein classGenericDbmsSupport
-
getTableColumns
public ResultSet getTableColumns(Connection conn, String schemaName, String tableName, String columnNamePattern) throws DbmsException - Specified by:
getTableColumnsin interfaceIDbmsSupport- Overrides:
getTableColumnsin classGenericDbmsSupport- Throws:
DbmsException
-
isTablePresent
public boolean isTablePresent(Connection conn, String schemaName, String tableName) throws DbmsException - Specified by:
isTablePresentin interfaceIDbmsSupport- Overrides:
isTablePresentin classGenericDbmsSupport- Throws:
DbmsException
-
isColumnPresent
public boolean isColumnPresent(Connection conn, String schemaName, String tableName, String columnName) throws DbmsException - Specified by:
isColumnPresentin interfaceIDbmsSupport- Overrides:
isColumnPresentin classGenericDbmsSupport- Throws:
DbmsException
-
isSequencePresent
public boolean isSequencePresent(Connection conn, String schemaOwner, String tableName, String sequenceName) - Specified by:
isSequencePresentin interfaceIDbmsSupport- Overrides:
isSequencePresentin classGenericDbmsSupport
-
hasIndexOnColumn
public boolean hasIndexOnColumn(Connection conn, String schemaOwner, String tableName, String columnName) throws DbmsException - Specified by:
hasIndexOnColumnin interfaceIDbmsSupport- Overrides:
hasIndexOnColumnin classGenericDbmsSupport- Throws:
DbmsException
-
hasIndexOnColumns
public boolean hasIndexOnColumns(Connection conn, String schemaOwner, String tableName, List<String> columns) - Specified by:
hasIndexOnColumnsin interfaceIDbmsSupport- Overrides:
hasIndexOnColumnsin classGenericDbmsSupport
-
isStoredProcedureResultSetSupported
public boolean isStoredProcedureResultSetSupported()Description copied from interface:IDbmsSupportDBMS 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
-