java.lang.Object
org.itsallcode.jdbc.dialect.GenericDialect
- All Implemented Interfaces:
DbDialect
A generic
DbDialect
without any special handling.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptioncreateExtractor
(ColumnMetaData column) Create an extractor for the given column.<T> ColumnValueSetter<T>
createSetter
(Class<T> type) Create a new column value setter for setting values on aPreparedStatement
specific to the dialect.boolean
supportsUrl
(String jdbcUrl) Check if this dialect supports the database type with the given JDBC URL.
-
Field Details
-
INSTANCE
Singleton instance of the generic DB dialect.
-
-
Method Details
-
supportsUrl
Description copied from interface:DbDialect
Check if this dialect supports the database type with the given JDBC URL.- Specified by:
supportsUrl
in interfaceDbDialect
- Parameters:
jdbcUrl
- JDBC URL- Returns:
true
if this dialect supports the database
-
createExtractor
Description copied from interface:DbDialect
Create an extractor for the given column.- Specified by:
createExtractor
in interfaceDbDialect
- Parameters:
column
- the column for which to get the extractor- Returns:
- extractor
-
createSetter
Description copied from interface:DbDialect
Create a new column value setter for setting values on aPreparedStatement
specific to the dialect.- Specified by:
createSetter
in interfaceDbDialect
- Type Parameters:
T
- object type- Parameters:
type
- object type- Returns:
- column value setter
-