|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jenkov.mrpersister.impl.command.DaosFactory
public class DaosFactory
Constructor Summary | |
---|---|
DaosFactory(PersistenceManager persistenceManager)
|
Method Summary | |
---|---|
IDaos |
createDaos()
Creates an IDaos instance containing a connection obtained from the default DataSource set on the PersistenceManager this IDaosFactory belongs to. |
IDaos |
createDaos(java.sql.Connection connection)
Creates an IDaos instance containing the given connection. |
IDaos |
createDaos(IPersistenceConfiguration configuration)
Creates an IDaos instance that uses the given IPersistenceConfiguration for its actions. |
IDaos |
createDaos(IPersistenceConfiguration configuration,
java.sql.Connection connection)
Creates an IDaos instance that uses the given connection and IPersistenceConfiguration for its actions. |
IDaos |
createDaos(java.lang.Object configKey)
Creates an IDaos instance containing a connection obtained from the DataSource set on the IPersistenceConfiguration stored in the persistence configuration factory by the given key. |
IDaos |
createDaos(java.lang.Object configKey,
java.sql.Connection connection)
Creates an IDaos instance containing the given connection. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DaosFactory(PersistenceManager persistenceManager)
Method Detail |
---|
public IDaos createDaos() throws PersistenceException
IDaosFactory
createDaos
in interface IDaosFactory
PersistenceException
- If no valid DataSource is set on the PersistenceManager.public IDaos createDaos(java.sql.Connection connection)
IDaosFactory
createDaos
in interface IDaosFactory
connection
- The connection to use with the IDaos instance.
public IDaos createDaos(java.lang.Object configKey) throws PersistenceException
IDaosFactory
createDaos
in interface IDaosFactory
configKey
- The key by which the IPersistenceConfiguration to use is stored in
the persistence configuration factory. The DataSource set on this
IPersistenceConfiguration is used to obtain the connection used by the
IDaos instance.
PersistenceException
public IDaos createDaos(java.lang.Object configKey, java.sql.Connection connection)
IDaosFactory
createDaos
in interface IDaosFactory
configKey
- The key by which the IPersistenceConfiguration to use is stored in
persistence configuration factory in the PersistenceManager.connection
- The connection to use by the IDaos instance.
public IDaos createDaos(IPersistenceConfiguration configuration) throws PersistenceException
IDaosFactory
createDaos
in interface IDaosFactory
configuration
- The IPersistenceConfiguration to be used by this IDaos instance.
PersistenceException
- If no DataSource is set on the given IPersistenceConfigurationpublic IDaos createDaos(IPersistenceConfiguration configuration, java.sql.Connection connection)
IDaosFactory
createDaos
in interface IDaosFactory
configuration
- The IPersistenceConfiguration to be used by this IDaos instance.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |