|
||||||||||
| 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_SCHEMA_NAMES
Property key for the database schema names |
| Constructor Summary | |
|---|---|
DbSupportFactory()
|
|
| Method Summary | |
|---|---|
static DbSupport |
getDbSupport(Properties configuration,
SQLHandler sqlHandler,
String schemaName,
String dialect)
Returns the dbms specific DbSupport as configured in the given Configuration. |
static List<DbSupport> |
getDbSupports(Properties configuration,
SQLHandler sqlHandler,
String dialect,
List<String> schemaNames)
Returns the dbms specific DbSupport instances for all configured schemas. |
static DbSupport |
getDefaultDbSupport(Properties configuration,
SQLHandler sqlHandler,
String dialect,
String defaultSchemaName)
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_SCHEMA_NAMES
| Constructor Detail |
|---|
public DbSupportFactory()
| Method Detail |
|---|
public static DbSupport getDefaultDbSupport(Properties configuration,
SQLHandler sqlHandler,
String dialect,
String defaultSchemaName)
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 nulldialect -
DbSupport, not null
public static DbSupport getDbSupport(Properties configuration,
SQLHandler sqlHandler,
String schemaName,
String dialect)
DbSupport as configured in the given Configuration.
configuration - The config, not nullsqlHandler - The sql handler, not nullschemaName - The schema name, not null
DbSupport, not null
public static List<DbSupport> getDbSupports(Properties configuration,
SQLHandler sqlHandler,
String dialect,
List<String> schemaNames)
DbSupport instances for all configured schemas.
configuration - The config, not nullsqlHandler - The sql handler, not nulldialect -
DbSupport, not null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||