|
|||||||||||
| 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
| Field Summary |
| Fields inherited from class org.castor.jdo.engine.AbstractConnectionFactory |
GENERIC_ENGINE |
| Constructor Summary | |
DriverConnectionFactory(JdoConf jdoConf,
int index,
org.exolab.castor.mapping.Mapping mapping)
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 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,
org.exolab.castor.mapping.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 |
public void initializeFactory()
throws org.exolab.castor.mapping.MappingException
initializeFactory in class AbstractConnectionFactoryorg.exolab.castor.mapping.MappingException - If concrete factory could not be initialized.AbstractConnectionFactory.initializeFactory()
public java.sql.Connection createConnection()
throws java.sql.SQLException
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 | ||||||||||