|
||||||||||
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 org.perfectjpattern.jee.integration.dao.HibernateDaoFactory
public class HibernateDaoFactory
Concrete implementation for IGenericDaoFactory
Constructor Summary | |
---|---|
protected |
HibernateDaoFactory()
Defaults to JSE mode |
protected |
HibernateDaoFactory(ISessionStrategy aSessionStrategy,
ITransactionStrategy aTransactionStrategy)
Constructs HibernateDaoFactory to consume Session instances
from the given ISessionStrategy and Transaction instances from
the ITransactionStrategy |
Method Summary | ||
---|---|---|
|
createDao(Class<Element> aPersistentClass)
Returns the Base DAO implementation corresponding to the given model class type. |
|
protected
|
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. |
|
static HibernateDaoFactory |
getInstance()
Returns Singleton instance of HibernateDaoFactory |
Methods inherited from class org.perfectjpattern.jee.integration.dao.AbstractDaoFactory |
---|
setDaoSessionStrategy, setDaoTransactionStrategy, shutdown |
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.IBaseDaoFactory |
---|
setDaoSessionStrategy, setDaoTransactionStrategy, shutdown |
Constructor Detail |
---|
protected HibernateDaoFactory(ISessionStrategy aSessionStrategy, ITransactionStrategy aTransactionStrategy) throws IllegalArgumentException
HibernateDaoFactory
to consume Session instances
from the given ISessionStrategy
and Transaction instances from
the ITransactionStrategy
aSessionStrategy
- ISessionStrategy
to consume
Session instances fromaTransactionStrategy
- ITransactionStrategy
to
consume Transaction instances from
IllegalArgumentException
- 'aDaoSessionStrategy' must not be null
IllegalArgumentException
- 'aDaoTransactionStrategy' must not
be nullprotected HibernateDaoFactory()
Method Detail |
---|
public static HibernateDaoFactory getInstance()
HibernateDaoFactory
HibernateDaoFactory
public <Id extends Serializable,Element> IGenericReadOnlyDao<Id,Element> createReadOnlyDao(Class<Element> aPersistentClass) throws IllegalArgumentException
createReadOnlyDao
in interface IBaseDaoFactory
createReadOnlyDao
in interface IGenericDaoFactory
createReadOnlyDao
in class AbstractDaoFactory
Id
- Id typeElement
- Element typeaPersistentClass
- Data model class type
IllegalArgumentException
- 'aPersistentClass' must not be nullpublic <Id extends Serializable,Element> IGenericDao<Id,Element> createDao(Class<Element> aPersistentClass) throws IllegalArgumentException
createDao
in interface IBaseDaoFactory
createDao
in interface IGenericDaoFactory
createDao
in class AbstractDaoFactory
Id
- Id typeElement
- Element typeaPersistentClass
- Data model class type
IllegalArgumentException
- 'aPersistentClass' must not be nullprotected <Id extends Serializable,Element> IGenericDao<Id,Element> createDao(Class<Element> aPersistentClass, ISessionStrategy aSessionStrategy, ITransactionStrategy aTransactionStrategy)
createDao
in class AbstractDaoFactory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |