public class DbSupportFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
PROPKEY_DATABASE_SCHEMA_NAMES
Property key for the database schema names
|
| Constructor and Description |
|---|
DbSupportFactory() |
| Modifier and Type | Method and Description |
|---|---|
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. |
public static final String PROPKEY_DATABASE_SCHEMA_NAMES
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 nullpublic 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 nullDbSupport, not nullpublic 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 nullCopyright © 2016. All Rights Reserved.