|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.perfectjpattern.jee.integration.dao.AbstractDaoFactory
public abstract class AbstractDaoFactory
Abstract reusable base partial implementation for IBaseDaoFactory
concrete implementations
Constructor Summary | |
---|---|
protected |
AbstractDaoFactory()
|
Method Summary | ||
---|---|---|
|
createDao(Class<Element> aPersistentClass)
Returns the Base DAO implementation corresponding to the given model class type. |
|
protected abstract
|
createDao(Class<Element> aPersistentClass,
ISessionStrategy aSessionStrategy,
ITransactionStrategy aTransactionStrategy)
|
|
|
createReadOnlyDao(Class<Element> aPersistentClass)
Returns the Base Read-Only DAO implementation corresponding to the given model class type. |
|
void |
setDaoSessionStrategy(ISessionStrategy aSessionStrategy)
Sets the DaoSessionStrategy |
|
void |
setDaoTransactionStrategy(ITransactionStrategy aTransactionStrategy)
Sets the DaoTransactionStrategy |
|
void |
shutdown()
Shuts down all DAO services, does all the necessary clean up |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AbstractDaoFactory()
Method Detail |
---|
public void setDaoSessionStrategy(ISessionStrategy aSessionStrategy) throws IllegalArgumentException
setDaoSessionStrategy
in interface IBaseDaoFactory
aSessionStrategy
- ISessionStrategy
to set
IllegalArgumentException
- 'aDaoSessionStrategy' must not be nullpublic void setDaoTransactionStrategy(ITransactionStrategy aTransactionStrategy) throws IllegalArgumentException
setDaoTransactionStrategy
in interface IBaseDaoFactory
aTransactionStrategy
- ITransactionStrategy
to set
IllegalArgumentException
- 'aDaoTransactionStrategy' must not be
nullpublic void shutdown() throws DaoException
shutdown
in interface IBaseDaoFactory
DaoException
public <Id extends Serializable,Element> IBaseReadOnlyDao<Id,Element> createReadOnlyDao(Class<Element> aPersistentClass) throws IllegalArgumentException
createReadOnlyDao
in interface IBaseDaoFactory
Id
- Id typeElement
- Element typeaPersistentClass
- Data model class type
IllegalArgumentException
- 'aPersistentClass' must not be nullpublic <Id extends Serializable,Element> IBaseDao<Id,Element> createDao(Class<Element> aPersistentClass) throws IllegalArgumentException
createDao
in interface IBaseDaoFactory
Id
- Id typeElement
- Element typeaPersistentClass
- Data model class type
IllegalArgumentException
- 'aPersistentClass' must not be nullprotected abstract <Id extends Serializable,Element> IBaseDao<Id,Element> createDao(Class<Element> aPersistentClass, ISessionStrategy aSessionStrategy, ITransactionStrategy aTransactionStrategy)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |