public class DbhFactory extends AbstractModule
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PREFIX_KEY_DBH |
Constructor and Description |
---|
DbhFactory() |
Modifier and Type | Method and Description |
---|---|
static DBHandler |
getDbh(java.lang.String dbhType,
java.lang.String dsn,
java.lang.String user,
java.lang.String password) |
static DBHandler |
getDbh(java.lang.String dbhType,
java.lang.String host,
java.lang.String port,
java.lang.String db,
java.lang.String schema,
java.lang.String user,
java.lang.String password) |
static java.lang.String[] |
getDbhTypes() |
static DbhFactory |
getInstance() |
void |
initialize()
Initializes the module.
|
configure, getDescription, getName, getOptionalModules, getProducer, getRequiredModules, getSubSystem, setOptionalModules, toString
equals, getMajorVersion, getMinorVersion, getModuleClass, getPatchLevel, hashCode, setMajorVersion, setMinorVersion, setModuleClass, setPatchLevel
getMajorVersion, getMinorVersion, getModuleClass, getPatchLevel
public static final java.lang.String PREFIX_KEY_DBH
public static DBHandler getDbh(java.lang.String dbhType, java.lang.String dsn, java.lang.String user, java.lang.String password) throws ConnectionException
ConnectionException
public static DBHandler getDbh(java.lang.String dbhType, java.lang.String host, java.lang.String port, java.lang.String db, java.lang.String schema, java.lang.String user, java.lang.String password) throws ConnectionException
ConnectionException
public static java.lang.String[] getDbhTypes() throws ConfigException
ConfigException
public void initialize() throws ModuleInitializeException
ModuleInitializeException
- if an error ocurred while initializing the module.public static DbhFactory getInstance()