Package org.frankframework.dbms
Class H2DbmsSupport
java.lang.Object
org.frankframework.dbms.GenericDbmsSupport
org.frankframework.dbms.H2DbmsSupport
- All Implemented Interfaces:
IDbmsSupport
Support for H2.
- Author:
- Jaco de Groot
-
Field Summary
Fields inherited from class org.frankframework.dbms.GenericDbmsSupport
KEYWORD_SELECT, log, sqlTranslators
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBlobHandle
(ResultSet rs, int column) getClobHandle
(ResultSet rs, int column) getDatetimeLiteral
(Date date) getDbms()
getSchema
(Connection conn) getTableColumns
(Connection conn, String schemaName, String tableName, String columnNamePattern) getTimestampAsDate
(String columnName) boolean
hasIndexOnColumn
(Connection conn, String schemaName, 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
isTablePresent
(Connection conn, String schemaName, String tableName) prepareQueryTextForWorkQueueReading
(int batchSize, String selectQuery, int wait) Methods inherited from class org.frankframework.dbms.GenericDbmsSupport
applyBlobParameter, applyClobParameter, autoIncrementInsertValue, autoIncrementKeyMustBeInserted, autoIncrementUsesSequenceObject, convertQuery, createTranslator, doHasIndexOnColumns, doIsColumnPresent, doIsTablePresent, getAutoIncrementKeyFieldType, getBlobFieldType, getBlobHandle, getBlobInputStream, getBlobInputStream, getBlobOutputStream, getBlobOutputStream, getBlobOutputStream, getBooleanValue, getClobHandle, getClobReader, getClobReader, getClobWriter, getClobWriter, getDateAndOffset, getDbmsName, getFormattedDate, getFromForTablelessSelect, getLength, getSqlTranslator, getSysDate, getTableColumns, getTableColumns, getTextFieldType, getTimestampFieldType, isBlobType, isClobType, isColumnPresent, isConstraintViolation, isParameterTypeMatchRequired, isQueryConversionRequired, isSequencePresent, isTablePresent, prepareQueryTextForNonLockingRead, prepareQueryTextForWorkQueuePeeking, prepareQueryTextForWorkQueuePeeking, prepareQueryTextForWorkQueueReading, provideFirstRowsHintAfterFirstKeyword, provideIndexHintAfterFirstKeyword, provideTrailingFirstRowsHint, splitQuery, updateBlob, updateBlob, updateClob, updateClob, 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
canFetchStatementParameterMetaData, getCursorSqlType, isRowVersionTimestamp, isStoredProcedureResultSetSupported
-
Constructor Details
-
H2DbmsSupport
public H2DbmsSupport() -
H2DbmsSupport
-
-
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
-
prepareQueryTextForWorkQueueReading
public String prepareQueryTextForWorkQueueReading(int batchSize, String selectQuery, int wait) throws DbmsException - Specified by:
prepareQueryTextForWorkQueueReading
in interfaceIDbmsSupport
- Overrides:
prepareQueryTextForWorkQueueReading
in classGenericDbmsSupport
- Throws:
DbmsException
-
getSchema
- Specified by:
getSchema
in interfaceIDbmsSupport
- Overrides:
getSchema
in classGenericDbmsSupport
- Throws:
DbmsException
-
getDatetimeLiteral
- Specified by:
getDatetimeLiteral
in interfaceIDbmsSupport
- Overrides:
getDatetimeLiteral
in classGenericDbmsSupport
-
getTimestampAsDate
- Specified by:
getTimestampAsDate
in interfaceIDbmsSupport
- Overrides:
getTimestampAsDate
in classGenericDbmsSupport
-
getClobHandle
- Specified by:
getClobHandle
in interfaceIDbmsSupport
- Overrides:
getClobHandle
in classGenericDbmsSupport
- Throws:
SQLException
DbmsException
-
getBlobHandle
- Specified by:
getBlobHandle
in interfaceIDbmsSupport
- Overrides:
getBlobHandle
in classGenericDbmsSupport
- Throws:
SQLException
DbmsException
-
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
-
hasIndexOnColumn
public boolean hasIndexOnColumn(Connection conn, String schemaName, 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
-