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 |
---|---|
static DbmsTypeBuilder.WithName |
builder()
Creates and returns a new DbmsType builder.
|
static DbmsTypeBuilder.WithDbmsNameMeaning |
builder(String name,
String driverManagerName,
int defaultPort) |
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 . |
String |
getInitialQuery()
Returns the initial SQL connection verification query to send to the
database during speedment startup.
|
String |
getName()
Returns the non-null name for this
DbmsType . |
String |
getResultSetTableSchema() |
String |
getSchemaTableDelimiter()
Returns the delimiter used between a Schema and a Table for this
DbmsType . |
SpeedmentPredicateView |
getSpeedmentPredicateView()
Returns the SpeedmentPredicateView for this database.
|
boolean |
isSupported()
Returns if this
DbmsType is supported by Speedment in the current
implementation. |
DbmsHandler |
makeDbmsHandler(Speedment speedment,
Dbms dbms)
Creates and returns a new
DbmsHandler instance for the given
database. |
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()
DbmsHandler makeDbmsHandler(Speedment speedment, Dbms dbms)
DbmsHandler
instance for the given
database.speedment
- instance to usedbms
- the Dbms configuration to useDbmsHandler
instance for the given databaseString getResultSetTableSchema()
ConnectionUrlGenerator getConnectionUrlGenerator()
SpeedmentPredicateView getSpeedmentPredicateView()
Set<TypeInfoMetaData> getDataTypes()
String getInitialQuery()
static DbmsTypeBuilder.WithName builder()
static DbmsTypeBuilder.WithDbmsNameMeaning builder(String name, String driverManagerName, int defaultPort)
Copyright © 2016 Speedment, Inc.. All rights reserved.