public class LicensingSummaryDaoHibernate extends HibernateDao<LicensingSummary> implements LicensingSummaryDao
batchFinder, batchProcessor, logger, statelessSessionBatchProcessor, timeSource
sessionFactory
Constructor and Description |
---|
LicensingSummaryDaoHibernate() |
Modifier and Type | Method and Description |
---|---|
void |
activate(LicensingSummary licensingSummary)
Marks current version as an active one and deletes all other versions.
|
Optional<LicensingSummary> |
findByApplication(Application application,
ApplicationSubtype applicationSubtype) |
List<LicensingSummary> |
findByApplication(Application application,
Long version) |
LicensingSummary |
findById(Long id) |
Optional<LicensingSummary> |
getLatestLicensingSummary(Application application) |
Optional<LicensingSummary> |
getLicensingSummaryByVersion(Application application,
ApplicationSubtype applicationSubtype,
long version) |
Class<LicensingSummary> |
getPersistentClass()
All subclasses of HibernateDao must implement this method for
HibernateDao.load(Serializable) to work
correctly. |
void |
removeByApplicationId(Long id) |
void |
saveAfterCleanup(LicensingSummary licensingSummary) |
void |
setDirectoryInfoDao(DirectoryInfoDao directoryInfoDao) |
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
setSessionFactory, withStatelessSession
public LicensingSummary findById(Long id) throws ObjectNotFoundException
findById
in interface LicensingSummaryDao
ObjectNotFoundException
public Optional<LicensingSummary> getLicensingSummaryByVersion(Application application, ApplicationSubtype applicationSubtype, long version)
getLicensingSummaryByVersion
in interface LicensingSummaryDao
public Optional<LicensingSummary> getLatestLicensingSummary(Application application)
getLatestLicensingSummary
in interface LicensingSummaryDao
public List<LicensingSummary> findByApplication(Application application, Long version)
findByApplication
in interface LicensingSummaryDao
public Optional<LicensingSummary> findByApplication(Application application, ApplicationSubtype applicationSubtype)
findByApplication
in interface LicensingSummaryDao
public void saveAfterCleanup(LicensingSummary licensingSummary)
saveAfterCleanup
in interface LicensingSummaryDao
public void activate(LicensingSummary licensingSummary)
LicensingSummaryDao
activate
in interface LicensingSummaryDao
public void removeByApplicationId(Long id)
removeByApplicationId
in interface LicensingSummaryDao
public Class<LicensingSummary> getPersistentClass()
HibernateDao
HibernateDao.load(Serializable)
to work
correctly.getPersistentClass
in class HibernateDao<LicensingSummary>
@Autowired public void setDirectoryInfoDao(DirectoryInfoDao directoryInfoDao)
Copyright © 2021 Atlassian. All rights reserved.