|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.castor.jdo.engine.AbstractConnectionFactory
| Field Summary | |
static java.lang.String |
GENERIC_ENGINE
The name of the generic SQL engine, if no SQL engine specified. |
| Constructor Summary | |
protected |
AbstractConnectionFactory(JdoConf jdoConf,
int index,
org.exolab.castor.mapping.Mapping mapping)
Constructs a new AbstractConnectionFactory with given database and mapping. |
protected |
AbstractConnectionFactory(java.lang.String name,
java.lang.String engine,
org.exolab.castor.mapping.Mapping mapping,
javax.transaction.TransactionManager txManager)
Constructs a new AbstractConnectionFactory with given name, engine and mapping. |
| Method Summary | |
Database |
getDatabase()
Get the database configuration. |
LockEngine |
getEngine()
Get the LockEngine only available after initialization. |
org.exolab.castor.mapping.Mapping |
getMapping()
Get the mapping to load. |
java.lang.String |
getName()
Get the name of the database configuration. |
javax.transaction.TransactionManager |
getTransactionManager()
Get the transaction manager. |
void |
initialize()
Initialize factory if it had not been initialized before. |
abstract void |
initializeFactory()
Initialize the concrete factory. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.castor.jdo.engine.ConnectionFactory |
createConnection |
| Field Detail |
public static final java.lang.String GENERIC_ENGINE
| Constructor Detail |
protected AbstractConnectionFactory(java.lang.String name,
java.lang.String engine,
org.exolab.castor.mapping.Mapping mapping,
javax.transaction.TransactionManager txManager)
throws org.exolab.castor.mapping.MappingException
name - The Name of the database configuration.engine - The Name of the persistence factory to use.txManager - The transaction manager to use.mapping - The previously loaded mapping.
org.exolab.castor.mapping.MappingException - If LockEngine could not be initialized.
protected AbstractConnectionFactory(JdoConf jdoConf,
int index,
org.exolab.castor.mapping.Mapping mapping)
jdoConf - The jdo configuartion.index - Index of the database configuration in the jdo configuration.mapping - The mapping to load.| Method Detail |
public final void initialize()
throws org.exolab.castor.mapping.MappingException
org.exolab.castor.mapping.MappingException - If concrete factory or LockEngine fail to initialize
or mapping could not be loaded.
public abstract void initializeFactory()
throws org.exolab.castor.mapping.MappingException
org.exolab.castor.mapping.MappingException - If concrete factory could not be initialized.public final java.lang.String getName()
public final Database getDatabase()
public final org.exolab.castor.mapping.Mapping getMapping()
public final javax.transaction.TransactionManager getTransactionManager()
public final LockEngine getEngine()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||