|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.unitils.core.dbsupport.DbSupportFactory
public class DbSupportFactory
todo javadoc
todo cache instances
Field Summary | |
---|---|
static String |
PROPKEY_DATABASE_DIALECT
Property key of the SQL dialect of the underlying DBMS implementation |
static String |
PROPKEY_DATABASE_SCHEMA_NAMES
Property key for the database schema names |
Constructor Summary | |
---|---|
DbSupportFactory()
|
Method Summary | |
---|---|
static DbSupport |
getDbSupport(Properties configuration,
SQLHandler sqlHandler,
String schemaName)
Returns the dbms specific DbSupport as configured in the given Configuration . |
static List<DbSupport> |
getDbSupports(Properties configuration,
SQLHandler sqlHandler)
Returns the dbms specific DbSupport instances for all configured schemas. |
static DbSupport |
getDefaultDbSupport(Properties configuration,
SQLHandler sqlHandler)
Returns the dbms specific DbSupport as configured in the given Configuration for the
default schema. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PROPKEY_DATABASE_DIALECT
public static final String PROPKEY_DATABASE_SCHEMA_NAMES
Constructor Detail |
---|
public DbSupportFactory()
Method Detail |
---|
public static DbSupport getDefaultDbSupport(Properties configuration, SQLHandler sqlHandler)
DbSupport
as configured in the given Configuration
for the
default schema. The default schema is the first schema in the configured list of schemas.
configuration
- The config, not nullsqlHandler
- The sql handler, not null
DbSupport
, not nullpublic static DbSupport getDbSupport(Properties configuration, SQLHandler sqlHandler, String schemaName)
DbSupport
as configured in the given Configuration
.
configuration
- The config, not nullsqlHandler
- The sql handler, not nullschemaName
- The schema name, not null
DbSupport
, not nullpublic static List<DbSupport> getDbSupports(Properties configuration, SQLHandler sqlHandler)
DbSupport
instances for all configured schemas.
configuration
- The config, not nullsqlHandler
- The sql handler, not null
DbSupport
, not null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |