Class VersionHibernateDao

java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate5.support.HibernateDaoSupport
com.atlassian.bamboo.versioning.VersionHibernateDao
All Implemented Interfaces:
VersionDao, org.springframework.beans.factory.InitializingBean

public class VersionHibernateDao extends org.springframework.orm.hibernate5.support.HibernateDaoSupport implements VersionDao
This is a read-only DAO. Versions should never be updated by this DAO.
  • Field Summary

    Fields inherited from class org.springframework.dao.support.DaoSupport

    logger
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    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 org.springframework.orm.hibernate5.support.HibernateDaoSupport

    checkDaoConfig, createHibernateTemplate, currentSession, getHibernateTemplate, getSessionFactory, setHibernateTemplate, setSessionFactory

    Methods inherited from class org.springframework.dao.support.DaoSupport

    afterPropertiesSet, initDao

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 interface VersionDao
      Parameters:
      ids - list of entity ids for which the versions will be gathered for
      clazz - class of the versionable entity
      Returns:
      list of entity id and version