org.castor.jdo.engine
Class DriverConnectionFactory

java.lang.Object
  extended by org.castor.jdo.engine.AbstractConnectionFactory
      extended by org.castor.jdo.engine.DriverConnectionFactory
All Implemented Interfaces:
ConnectionFactory

public final class DriverConnectionFactory
extends AbstractConnectionFactory

Since:
0.9.9
Version:
$Revision: 1.3 $ $Date: 2005/08/17 13:37:07 $
Author:
Werner Guttmann, Ralf Joachim

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

DriverConnectionFactory

public DriverConnectionFactory(JdoConf jdoConf,
                               int index,
                               Mapping mapping)
Constructs a new DriverConnectionFactory with given database and mapping.

Parameters:
jdoConf - An in-memory jdo configuration.
index - Index of the database configuration inside the jdo configuration.
mapping - The mapping to load.
Method Detail

initializeFactory

protected void initializeFactory()
                          throws MappingException
Description copied from class: AbstractConnectionFactory
Initialize the concrete factory.

Specified by:
initializeFactory in class AbstractConnectionFactory
Throws:
MappingException - If concrete factory could not be initialized.
See Also:
AbstractConnectionFactory.initializeFactory()

createConnection

public java.sql.Connection createConnection()
                                     throws java.sql.SQLException
Description copied from interface: ConnectionFactory
Creates a new JDBC Connection instance.

Returns:
A JDBC Connection.
Throws:
java.sql.SQLException - If the JDBC connection cannot be created.
See Also:
ConnectionFactory.createConnection()


Intalio Inc. (C) 1999-2004. All rights reserved http://www.intalio.com