public final class DriverConnectionFactory extends AbstractConnectionFactory
GENERIC_ENGINE| Constructor and Description |
|---|
DriverConnectionFactory(JdoConf jdoConf,
int index,
Mapping mapping)
Constructs a new DriverConnectionFactory with given database and mapping.
|
| Modifier and Type | Method and Description |
|---|---|
java.sql.Connection |
createConnection()
Creates a new JDBC Connection instance.
|
protected void |
initializeFactory()
Initialize the concrete factory.
|
getDatabase, getEngine, getMapping, getName, getTransactionManager, initializepublic 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.protected void initializeFactory()
throws MappingException
initializeFactory in class AbstractConnectionFactoryMappingException - 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()Intalio Inc. (C) 1999-2006. All rights reserved http://www.intalio.com