|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.castor.jdo.engine.AbstractConnectionFactory
org.castor.jdo.engine.DriverConnectionFactory
public final class DriverConnectionFactory
Field Summary |
---|
Fields inherited from class org.castor.jdo.engine.AbstractConnectionFactory |
---|
GENERIC_ENGINE |
Constructor Summary | |
---|---|
DriverConnectionFactory(JdoConf jdoConf,
int index,
Mapping mapping)
Constructs a new DriverConnectionFactory with given database and mapping. |
Method Summary | |
---|---|
java.sql.Connection |
createConnection()
Creates a new JDBC Connection instance. |
protected void |
initializeFactory()
Initialize the concrete factory. |
Methods inherited from class org.castor.jdo.engine.AbstractConnectionFactory |
---|
getDatabase, getEngine, getMapping, getName, getTransactionManager, initialize |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DriverConnectionFactory(JdoConf jdoConf, int index, Mapping mapping)
jdoConf
- An in-memory jdo configuration.index
- Index of the database configuration inside the jdo configuration.mapping
- The mapping to load.Method Detail |
---|
protected void initializeFactory() throws MappingException
AbstractConnectionFactory
initializeFactory
in class AbstractConnectionFactory
MappingException
- If concrete factory could not be initialized.AbstractConnectionFactory.initializeFactory()
public java.sql.Connection createConnection() throws java.sql.SQLException
ConnectionFactory
java.sql.SQLException
- If the JDBC connection cannot be created.ConnectionFactory.createConnection()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |