Package com.atlassian.bamboo.versioning
Class VersionHibernateDao
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate5.support.HibernateDaoSupport
com.atlassian.bamboo.persistence3.StatelessSessionHibernateDaoSupport
com.atlassian.bamboo.versioning.VersionHibernateDao
- All Implemented Interfaces:
VersionDao
,org.springframework.beans.factory.InitializingBean
This is the read only DAO, the versions should never be updated by this DAO.
-
Field Summary
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T extends Versionable>
@NotNull List<IdWithVersionDto>getVersions
(@NotNull Set<Long> ids, @NotNull Class<? extends T> clazz) Gets the versions corresponding to the given ids and the class.Methods inherited from class com.atlassian.bamboo.persistence3.StatelessSessionHibernateDaoSupport
getCacheAwareHibernateTemplate
Methods inherited from class org.springframework.orm.hibernate5.support.HibernateDaoSupport
checkDaoConfig, createHibernateTemplate, currentSession, getHibernateTemplate, getSessionFactory, setHibernateTemplate, setSessionFactory
Methods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet, initDao
-
Constructor Details
-
VersionHibernateDao
public VersionHibernateDao()
-
-
Method Details
-
getVersions
@NotNull public <T extends Versionable> @NotNull List<IdWithVersionDto> getVersions(@NotNull @NotNull Set<Long> ids, @NotNull @NotNull Class<? extends T> clazz) Description copied from interface:VersionDao
Gets the versions corresponding to the given ids and the class.- Specified by:
getVersions
in interfaceVersionDao
- Parameters:
ids
- list of entity ids for which the versions will be gathered forclazz
- class of the versionable entity- Returns:
- list of entity id and version
-