|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.perfectjpattern.jee.integration.dao.JpaBaseDao<Id,Element> org.perfectjpattern.jee.integration.dao.HibernateGenericDao<Id,Element> org.perfectjpattern.jee.integration.dao.SpringGenericDao<Id,Element>
Id
- Identification typeElement
- Element typepublic class SpringGenericDao<Id extends Serializable,Element>
Spring-based implementation of IGenericDao
Constructor Summary | |
---|---|
protected |
SpringGenericDao(Class<Element> aPersistentClass,
ISessionStrategy aSessionStrategy,
ITransactionStrategy aTransactionStrategy)
Constructs a SpringGenericReadOnlyDao instance from the
persistent class type and the ISessionStrategy that creates
Session instances and the ITransactionStrategy that
creates Transaction instances |
Method Summary | |
---|---|
List<Element> |
execute(Method aMethod,
Object... anArguments)
|
IArgumentTypeResolver |
getArgumentTypeResolver()
Returns the argumentTypeResolver |
IFinderNamingStrategy |
getNamingStrategy()
Returns the namingStrategy |
void |
setArgumentTypeResolver(IArgumentTypeResolver anArgumentTypeResolver)
Sets the argumentTypeResolver |
void |
setNamingStrategy(IFinderNamingStrategy aNamingStrategy)
Sets the namingStrategy |
Methods inherited from class org.perfectjpattern.jee.integration.dao.HibernateGenericDao |
---|
findByExample, getActualSession |
Methods inherited from class org.perfectjpattern.jee.integration.dao.JpaBaseDao |
---|
contains, count, create, delete, deleteAll, findAll, findById, getPersistentClass, getSession, getSessionStrategy, getTransaction, getTransactionStrategy, setEntityManager, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.perfectjpattern.jee.api.integration.dao.IBaseDao |
---|
create, delete, deleteAll, update |
Methods inherited from interface org.perfectjpattern.jee.api.integration.dao.IBaseReadOnlyDao |
---|
contains, count, findAll, findById, getSession, getTransaction |
Constructor Detail |
---|
protected SpringGenericDao(Class<Element> aPersistentClass, ISessionStrategy aSessionStrategy, ITransactionStrategy aTransactionStrategy)
SpringGenericReadOnlyDao
instance from the
persistent class type and the ISessionStrategy
that creates
Session
instances and the ITransactionStrategy
that
creates Transaction
instances
aPersistentClass
- The persistent Java Bean classaSessionStrategy
- Strategy that creates SessionsaTransactionStrategy
- Strategy that creates Transaction
IllegalArgumentException
- 'aPersistentClass' must not be null
IllegalArgumentException
- 'aPersistentClass' must be a class type
IllegalArgumentException
- 'aDaoSessionStrategy' must not be null
IllegalArgumentException
- 'aDaoTransactionStrategy' must not be
nullMethod Detail |
---|
public List<Element> execute(Method aMethod, Object... anArguments)
execute
in interface IFinderExecutor<Element>
public final IFinderNamingStrategy getNamingStrategy()
public final void setNamingStrategy(IFinderNamingStrategy aNamingStrategy)
aNamingStrategy
- the namingStrategy to setpublic final IArgumentTypeResolver getArgumentTypeResolver()
public final void setArgumentTypeResolver(IArgumentTypeResolver anArgumentTypeResolver)
anArgumentTypeResolver
- the argumentTypeResolver to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |