|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 IBaseDaoFactoryaSessionStrategy - ISessionStrategy to set
IllegalArgumentException - 'aDaoSessionStrategy' must not be null
public void setDaoTransactionStrategy(ITransactionStrategy aTransactionStrategy)
throws IllegalArgumentException
setDaoTransactionStrategy in interface IBaseDaoFactoryaTransactionStrategy - ITransactionStrategy to set
IllegalArgumentException - 'aDaoTransactionStrategy' must not be
null
public void shutdown()
throws DaoException
shutdown in interface IBaseDaoFactoryDaoException
public <Id extends Serializable,Element> IBaseReadOnlyDao<Id,Element> createReadOnlyDao(Class<Element> aPersistentClass)
throws IllegalArgumentException
createReadOnlyDao in interface IBaseDaoFactoryId - Id typeElement - Element typeaPersistentClass - Data model class type
IllegalArgumentException - 'aPersistentClass' must not be null
public <Id extends Serializable,Element> IBaseDao<Id,Element> createDao(Class<Element> aPersistentClass)
throws IllegalArgumentException
createDao in interface IBaseDaoFactoryId - Id typeElement - Element typeaPersistentClass - Data model class type
IllegalArgumentException - 'aPersistentClass' must not be null
protected 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 | |||||||||