Class LicensingSummaryDaoHibernate
java.lang.Object
com.atlassian.crowd.util.persistence.hibernate.StatelessDao
com.atlassian.crowd.util.persistence.hibernate.HibernateDao<LicensingSummary>
com.atlassian.crowd.dao.licensing.LicensingSummaryDaoHibernate
- All Implemented Interfaces:
LicensingSummaryDao
public class LicensingSummaryDaoHibernate
extends HibernateDao<LicensingSummary>
implements LicensingSummaryDao
-
Field Summary
Fields inherited from class com.atlassian.crowd.util.persistence.hibernate.HibernateDao
batchFinder, batchProcessor, logger, statelessSessionBatchProcessor, timeSourceFields inherited from class com.atlassian.crowd.util.persistence.hibernate.StatelessDao
sessionFactory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate(LicensingSummary licensingSummary) Marks current version as an active one and deletes all other versions.findByApplication(Application application, ApplicationSubtype applicationSubtype) findByApplication(Application application, Long version) getLatestLicensingSummary(Application application) getLicensingSummaryByVersion(Application application, ApplicationSubtype applicationSubtype, long version) All subclasses of HibernateDao must implement this method forHibernateDao.load(Serializable)to work correctly.voidvoidsaveAfterCleanup(LicensingSummary licensingSummary) voidsetDirectoryInfoDao(DirectoryInfoDao directoryInfoDao) 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, updateMethods inherited from class com.atlassian.crowd.util.persistence.hibernate.StatelessDao
setSessionFactory, withStatelessSession
-
Constructor Details
-
LicensingSummaryDaoHibernate
public LicensingSummaryDaoHibernate()
-
-
Method Details
-
findById
- Specified by:
findByIdin interfaceLicensingSummaryDao- Throws:
ObjectNotFoundException
-
getLicensingSummaryByVersion
public Optional<LicensingSummary> getLicensingSummaryByVersion(Application application, ApplicationSubtype applicationSubtype, long version) - Specified by:
getLicensingSummaryByVersionin interfaceLicensingSummaryDao
-
getLatestLicensingSummary
- Specified by:
getLatestLicensingSummaryin interfaceLicensingSummaryDao
-
findByApplication
- Specified by:
findByApplicationin interfaceLicensingSummaryDao
-
findByApplication
public Optional<LicensingSummary> findByApplication(Application application, ApplicationSubtype applicationSubtype) - Specified by:
findByApplicationin interfaceLicensingSummaryDao
-
saveAfterCleanup
- Specified by:
saveAfterCleanupin interfaceLicensingSummaryDao
-
activate
Description copied from interface:LicensingSummaryDaoMarks current version as an active one and deletes all other versions.- Specified by:
activatein interfaceLicensingSummaryDao
-
removeByApplicationId
- Specified by:
removeByApplicationIdin interfaceLicensingSummaryDao
-
getPersistentClass
Description copied from class:HibernateDaoAll subclasses of HibernateDao must implement this method forHibernateDao.load(Serializable)to work correctly.- Specified by:
getPersistentClassin classHibernateDao<LicensingSummary>- Returns:
- the entity class for this DAO
-
setDirectoryInfoDao
-