|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IBaseDaoFactory
Abstract Factory for creating instances of IBaseReadOnlyDao
and
IBaseDao
types
Method Summary | ||
---|---|---|
|
createDao(Class<Element> aPersistentClass)
Returns the Base DAO implementation corresponding to the given model class type. |
|
|
createReadOnlyDao(Class<Element> aPersistentClass)
Returns the Base Read-Only DAO implementation corresponding to the given model class type. |
|
void |
setDaoSessionStrategy(ISessionStrategy aDaoSessionStrategy)
Sets the DaoSessionStrategy |
|
void |
setDaoTransactionStrategy(ITransactionStrategy aDaoTransactionStrategy)
Sets the DaoTransactionStrategy |
|
void |
shutdown()
Shuts down all DAO services, does all the necessary clean up |
Method Detail |
---|
<Id extends Serializable,Element> IBaseReadOnlyDao<Id,Element> createReadOnlyDao(Class<Element> aPersistentClass) throws IllegalArgumentException
Id
- Id typeElement
- Element typeaPersistentClass
- Data model class type
IllegalArgumentException
- 'aPersistentClass' must not be null
IllegalArgumentException
- 'aPersistentClass' must be a class type<Id extends Serializable,Element> IBaseDao<Id,Element> createDao(Class<Element> aPersistentClass) throws IllegalArgumentException
Id
- Id typeElement
- Element typeaPersistentClass
- Data model class type
IllegalArgumentException
- 'aPersistentClass' must not be null
IllegalArgumentException
- 'aPersistentClass' must be a class typevoid setDaoSessionStrategy(ISessionStrategy aDaoSessionStrategy) throws IllegalArgumentException
aDaoSessionStrategy
- ISessionStrategy
to set
IllegalArgumentException
- 'aDaoSessionStrategy' must not be nullvoid setDaoTransactionStrategy(ITransactionStrategy aDaoTransactionStrategy) throws IllegalArgumentException
aDaoTransactionStrategy
- ITransactionStrategy
to set
IllegalArgumentException
- 'aDaoTransactionStrategy' must not be
nullvoid shutdown() throws DaoException
DaoException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |