|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.castor.cpa.persistence.sql.connection.JNDIConnectionFactory
public final class JNDIConnectionFactory
| Constructor Summary | |
|---|---|
JNDIConnectionFactory(Jndi jndi,
boolean useProxies)
Constructs a new JNDIConnectionFactory with given database and mapping. |
|
| Method Summary | |
|---|---|
CastorConnection |
createCastorConnection()
Creates a new CastorConnection instance. |
Connection |
createConnection()
Creates a new JDBC Connection instance. |
void |
initializeFactory(PersistenceFactory factory)
Initialize the concrete factory. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JNDIConnectionFactory(Jndi jndi,
boolean useProxies)
jndi - JNDI configuration.useProxies - Wrap JDBC connections by proxies?| Method Detail |
|---|
public void initializeFactory(PersistenceFactory factory)
throws MappingException
initializeFactory in interface ConnectionFactoryfactory - PersistenceFactory needed to construct CastorConnection.
MappingException - If concrete factory could not be initialized.
public Connection createConnection()
throws SQLException
createConnection in interface ConnectionFactorySQLException - If the JDBC connection cannot be created.
public CastorConnection createCastorConnection()
throws SQLException
createCastorConnection in interface ConnectionFactorySQLException - If the CastorConnection cannot be created.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||