public interface DbmsType
DbmsType
interface defines unique properties for different Dbms
types. By implementing a new DbmsType
and perhaps a new
DbmsHandler
, one may easily implement support for new Dbms vendor
types.Modifier and Type | Field and Description |
---|---|
static Comparator<DbmsType> |
COMPARATOR |
Modifier and Type | Method and Description |
---|---|
DbmsColumnHandler |
getColumnHandler()
Returns the handler responsible for column inclusion/exclusion in
queries to databases
|
ConnectionUrlGenerator |
getConnectionUrlGenerator()
Returns the ConnectionUrlGenerator for this database.
|
DatabaseNamingConvention |
getDatabaseNamingConvention()
Returns the naming convention used by this database.
|
Set<TypeInfoMetaData> |
getDataTypes()
Returns a pre-defined Set for the TypeInfoMetaData for this database
type.
|
String |
getDbmsNameMeaning()
Returns a textual representation of what the database name is used for.
|
Optional<String> |
getDefaultDbmsName()
Returns the default name for this
DbmsType . |
int |
getDefaultPort()
Returns the default port for this
DbmsType . |
String |
getDriverManagerName()
Returns the non-null Driver Manager Name for this
DbmsType . |
String |
getDriverName()
Returns the non-null fully qualified JDBC class name for this
DbmsType . |
FieldPredicateView |
getFieldPredicateView()
Returns the FieldPredicateView for this database.
|
String |
getInitialQuery()
Returns the initial SQL connection verification query to send to the
database during speedment startup.
|
DbmsMetadataHandler |
getMetadataHandler()
Returns the handler responsible for loading the metadata when
running this type of database.
|
String |
getName()
Returns the non-null name for this
DbmsType . |
DbmsOperationHandler |
getOperationHandler()
Returns the handler responsible for running queries to databases
of this type.
|
String |
getResultSetTableSchema()
Returns the result set table schema.
|
String |
getSchemaTableDelimiter()
Returns the delimiter used between a Schema and a Table for this
DbmsType . |
boolean |
isSupported()
Returns if this
DbmsType is supported by Speedment in the current
implementation. |
static final Comparator<DbmsType> COMPARATOR
String getName()
DbmsType
. For example MySQL or
OracleDbmsType
String getDriverManagerName()
DbmsType
. For
example "MySQL-AB JDBC Driver" or "Oracle JDBC Driver"int getDefaultPort()
DbmsType
. For example 3306
(MySQL) or 1521 (Oracle)String getSchemaTableDelimiter()
DbmsType
. Most DbmsType
are using a "." as a separator.String getDbmsNameMeaning()
Optional<String> getDefaultDbmsName()
DbmsType
. For example ‘orcl'
(Oracle)boolean isSupported()
DbmsType
is supported by Speedment in the current
implementation.DbmsType
is supported by Speedment in the current
implementationString getDriverName()
DbmsType
. For example "com.mysql.jdbc.Driver" or
"oracle.jdbc.OracleDriver"DbmsType
DatabaseNamingConvention getDatabaseNamingConvention()
DbmsMetadataHandler getMetadataHandler()
DbmsMetadataHandler
DbmsOperationHandler getOperationHandler()
DbmsOperationHandler
DbmsColumnHandler getColumnHandler()
DbmsColumnHandler
String getResultSetTableSchema()
ConnectionUrlGenerator getConnectionUrlGenerator()
FieldPredicateView getFieldPredicateView()
Set<TypeInfoMetaData> getDataTypes()
String getInitialQuery()
Copyright © 2017 Speedment, Inc.. All rights reserved.