public class DbmsSpecificFactory
extends java.lang.Object
DbmsFeatures
,
SequenceSupport
and DbTypeConverter
.
You can also get DBMS-specific implementations of arbitrary interfaces by calling create(Class)
method.
These implementation classes must be located in the same package as interface and have names of the form
Type[Version]Interface
where Type is capitalized DBMS type , Version is DBMS version and Interface is an interface name.
For example, if you have com.company.app.Foo interface, its implementation for PostgreSQL must be
com.company.app.PostgresFoo
, and for MS SQL Server 2012 - com.company.app.Mssql2012Foo
.
Constructor and Description |
---|
DbmsSpecificFactory() |
Modifier and Type | Method and Description |
---|---|
static <T> T |
create(java.lang.Class<T> intf) |
static <T> T |
create(java.lang.Class<T> intf,
java.lang.String storeName) |
static <T> T |
create(java.lang.Class<T> intf,
java.lang.String dbmsType,
java.lang.String dbmsVersion) |
static DbmsFeatures |
getDbmsFeatures() |
static DbmsFeatures |
getDbmsFeatures(java.lang.String storeName) |
static DbTypeConverter |
getDbTypeConverter() |
static DbTypeConverter |
getDbTypeConverter(java.lang.String storeName) |
static SequenceSupport |
getSequenceSupport() |
static SequenceSupport |
getSequenceSupport(java.lang.String storeName) |
public static DbmsFeatures getDbmsFeatures()
public static DbmsFeatures getDbmsFeatures(java.lang.String storeName)
public static SequenceSupport getSequenceSupport()
public static SequenceSupport getSequenceSupport(java.lang.String storeName)
public static DbTypeConverter getDbTypeConverter()
public static DbTypeConverter getDbTypeConverter(java.lang.String storeName)
public static <T> T create(java.lang.Class<T> intf)
public static <T> T create(java.lang.Class<T> intf, java.lang.String storeName)
public static <T> T create(java.lang.Class<T> intf, java.lang.String dbmsType, java.lang.String dbmsVersion)