Class StatelessDao
java.lang.Object
com.atlassian.crowd.util.persistence.hibernate.StatelessDao
- Direct Known Subclasses:
ClusterJobDAOHibernate
,ClusterMessageDAOHibernate
,HibernateDao
Minimal Hibernate DAO operating with stateless sessions.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
setSessionFactory
(org.hibernate.SessionFactory sessionFactory) protected <T> T
withStatelessSession
(Function<org.hibernate.StatelessSession, T> effect)
-
Field Details
-
sessionFactory
protected org.hibernate.SessionFactory sessionFactory
-
-
Constructor Details
-
StatelessDao
public StatelessDao()
-
-
Method Details
-
setSessionFactory
@Autowired public void setSessionFactory(org.hibernate.SessionFactory sessionFactory) -
withStatelessSession
-