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
public class VersionHibernateDao extends StatelessSessionHibernateDaoSupport implements VersionDao
This is the read only DAO, the versions should never be updated by this DAO.
-
-
Constructor Summary
Constructors Constructor Description VersionHibernateDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <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
-
-
-
-
Method Detail
-
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
-
-