org.castor.jdo.engine

Class JNDIConnectionFactory

Implemented Interfaces:
ConnectionFactory

public final class JNDIConnectionFactory
extends AbstractConnectionFactory

Version:
$Revision: 7327 $ $Date: 2006-04-12 15:13:08 -0600 (Wed, 12 Apr 2006) $
Authors:
Werner Guttmann
Ralf Joachim
Since:
0.9.9

Field Summary

Fields inherited from class org.castor.jdo.engine.AbstractConnectionFactory

GENERIC_ENGINE

Constructor Summary

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

Method Summary

Connection
createConnection()
void
initializeFactory()

Methods inherited from class org.castor.jdo.engine.AbstractConnectionFactory

getDatabase, getEngine, getMapping, getName, getTransactionManager, initialize, initializeFactory

Constructor Details

JNDIConnectionFactory

public JNDIConnectionFactory(JdoConf jdoConf,
                             int index,
                             Mapping mapping)
Constructs a new JNDIConnectionFactory 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 Details

createConnection

public Connection createConnection()
            throws SQLException
Specified by:
createConnection in interface ConnectionFactory

initializeFactory

public void initializeFactory()
            throws MappingException
Overrides:
initializeFactory in interface AbstractConnectionFactory

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