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, timeSource
Fields inherited from class com.atlassian.crowd.util.persistence.hibernate.StatelessDao
sessionFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
activate
(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.void
void
saveAfterCleanup
(LicensingSummary licensingSummary) void
setDirectoryInfoDao
(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, update
Methods inherited from class com.atlassian.crowd.util.persistence.hibernate.StatelessDao
setSessionFactory, withStatelessSession
-
Constructor Details
-
LicensingSummaryDaoHibernate
public LicensingSummaryDaoHibernate()
-
-
Method Details
-
findById
- Specified by:
findById
in interfaceLicensingSummaryDao
- Throws:
ObjectNotFoundException
-
getLicensingSummaryByVersion
public Optional<LicensingSummary> getLicensingSummaryByVersion(Application application, ApplicationSubtype applicationSubtype, long version) - Specified by:
getLicensingSummaryByVersion
in interfaceLicensingSummaryDao
-
getLatestLicensingSummary
- Specified by:
getLatestLicensingSummary
in interfaceLicensingSummaryDao
-
findByApplication
- Specified by:
findByApplication
in interfaceLicensingSummaryDao
-
findByApplication
public Optional<LicensingSummary> findByApplication(Application application, ApplicationSubtype applicationSubtype) - Specified by:
findByApplication
in interfaceLicensingSummaryDao
-
saveAfterCleanup
- Specified by:
saveAfterCleanup
in interfaceLicensingSummaryDao
-
activate
Description copied from interface:LicensingSummaryDao
Marks current version as an active one and deletes all other versions.- Specified by:
activate
in interfaceLicensingSummaryDao
-
removeByApplicationId
- Specified by:
removeByApplicationId
in interfaceLicensingSummaryDao
-
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<LicensingSummary>
- Returns:
- the entity class for this DAO
-
setDirectoryInfoDao
-