Class LicensedUserDaoHibernate
java.lang.Object
com.atlassian.crowd.util.persistence.hibernate.StatelessDao
com.atlassian.crowd.util.persistence.hibernate.HibernateDao<LicensedUser>
com.atlassian.crowd.dao.licensing.LicensedUserDaoHibernate
- All Implemented Interfaces:
LicensedUserDao
-
Field Summary
Fields inherited from class com.atlassian.crowd.util.persistence.hibernate.HibernateDao
batchFinder, batchProcessor, logger, statelessSessionBatchProcessor, timeSource
Fields inherited from class com.atlassian.crowd.util.persistence.hibernate.StatelessDao
sessionFactory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfindById
(long id) All subclasses of HibernateDao must implement this method forHibernateDao.load(Serializable)
to work correctly.void
remove
(LicensedUser licensedUser) void
removeAll
(LicensingSummary licensingSummary) void
void
save
(List<LicensedUser> licensedUsers) void
update
(LicensedUser licensedUser) Methods inherited from class com.atlassian.crowd.util.persistence.hibernate.HibernateDao
createDeleteQuery, createDeleteQuery, createQuery, createQuery, executeHQLQuery, findAllInternal, findByProperties, findByPropertiesOptional, findByProperty, findByProperty, findByPropertyOptional, findByPropertyOrThrow, getCountByProperties, load, load, loadOptional, loadReference, loadReference, remove, removeByIdIfPresent, save, saveOrUpdate, session, setBatchFinder, setBatchProcessor, setClock, setStatelessSessionBatchProcessor, toPredicates, update
Methods inherited from class com.atlassian.crowd.util.persistence.hibernate.StatelessDao
setSessionFactory, withStatelessSession
-
Constructor Details
-
LicensedUserDaoHibernate
public LicensedUserDaoHibernate()
-
-
Method Details
-
findById
- Specified by:
findById
in interfaceLicensedUserDao
- Throws:
ObjectNotFoundException
-
update
- Specified by:
update
in interfaceLicensedUserDao
-
save
- Specified by:
save
in interfaceLicensedUserDao
-
remove
- Specified by:
remove
in interfaceLicensedUserDao
-
findLicensedUsers
- Specified by:
findLicensedUsers
in interfaceLicensedUserDao
-
countLicensedUsers
- Specified by:
countLicensedUsers
in interfaceLicensedUserDao
-
removeByDirectoryId
- Specified by:
removeByDirectoryId
in interfaceLicensedUserDao
-
removeAll
- Specified by:
removeAll
in interfaceLicensedUserDao
-
getPersistentClass
Description copied from class:HibernateDao
All subclasses of HibernateDao must implement this method forHibernateDao.load(Serializable)
to work correctly.- Specified by:
getPersistentClass
in classHibernateDao<LicensedUser>
- Returns:
- the entity class for this DAO
-