|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.castor.cpa.persistence.sql.connection.DriverConnectionFactory
public final class DriverConnectionFactory
Constructor Summary | |
---|---|
DriverConnectionFactory(Driver driver,
boolean useProxies)
Constructs a new DriverConnectionFactory with given database and mapping. |
Method Summary | |
---|---|
java.sql.Connection |
createConnection()
Creates a new JDBC Connection instance. |
void |
initializeFactory()
Initialize the concrete factory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DriverConnectionFactory(Driver driver, boolean useProxies)
driver
- Driver configuration.useProxies
- Wrap JDBC connections by proxies?Method Detail |
---|
public void initializeFactory() throws MappingException
initializeFactory
in interface ConnectionFactory
MappingException
- If concrete factory could not be initialized.public java.sql.Connection createConnection() throws java.sql.SQLException
createConnection
in interface ConnectionFactory
java.sql.SQLException
- If the JDBC connection cannot be created.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |