Package org.frankframework.dbms
Class MySqlDbmsSupport
java.lang.Object
org.frankframework.dbms.GenericDbmsSupport
org.frankframework.dbms.MySqlDbmsSupport
- All Implemented Interfaces:
IDbmsSupport
- Direct Known Subclasses:
MariaDbDbmsSupport
Support for MySql/MariaDB.
-
Field Summary
Fields inherited from class org.frankframework.dbms.GenericDbmsSupport
KEYWORD_SELECT, log, sqlTranslators
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
alterAutoIncrement
(Connection connection, String tableName, int startWith) getDateAndOffset
(String dateValue, int daysOffset) getDatetimeLiteral
(Date date) getDbms()
getSchema
(Connection conn) getTimestampAsDate
(String columnName) boolean
hasIndexOnColumns
(Connection conn, String schemaOwner, String tableName, List<String> columns) boolean
prepareQueryTextForWorkQueuePeeking
(int batchSize, String selectQuery, int wait) 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, getBlobHandle, getBlobHandle, getBlobInputStream, getBlobInputStream, getBlobOutputStream, getBlobOutputStream, getBlobOutputStream, getBooleanValue, getClobHandle, getClobHandle, getClobReader, getClobReader, getClobWriter, getClobWriter, getDbmsName, getFormattedDate, getFromForTablelessSelect, getLength, getSqlTranslator, getSysDate, getTableColumns, getTableColumns, getTableColumns, getTextFieldType, getTimestampFieldType, hasIndexOnColumn, isBlobType, isClobType, isColumnPresent, isColumnPresent, isConstraintViolation, isParameterTypeMatchRequired, isQueryConversionRequired, isSequencePresent, isTablePresent, isTablePresent, prepareQueryTextForNonLockingRead, 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
-
MySqlDbmsSupport
public MySqlDbmsSupport()
-
-
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
-
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
-
getDateAndOffset
- Specified by:
getDateAndOffset
in interfaceIDbmsSupport
- Overrides:
getDateAndOffset
in classGenericDbmsSupport
-
getBlobFieldType
- Specified by:
getBlobFieldType
in interfaceIDbmsSupport
- Overrides:
getBlobFieldType
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
-
prepareQueryTextForWorkQueuePeeking
public String prepareQueryTextForWorkQueuePeeking(int batchSize, String selectQuery, int wait) throws DbmsException - Specified by:
prepareQueryTextForWorkQueuePeeking
in interfaceIDbmsSupport
- Overrides:
prepareQueryTextForWorkQueuePeeking
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
-
alterAutoIncrement
public int alterAutoIncrement(Connection connection, String tableName, int startWith) throws DbmsException - Throws:
DbmsException
-
getAutoIncrementKeyFieldType
- Specified by:
getAutoIncrementKeyFieldType
in interfaceIDbmsSupport
- Overrides:
getAutoIncrementKeyFieldType
in classGenericDbmsSupport
-