Class VersionDaoImpl

java.lang.Object
com.broadleafcommerce.enterprise.workflow.dao.VersionDaoImpl
All Implemented Interfaces:
VersionDao

@Repository("blVersionDao") public class VersionDaoImpl extends Object implements VersionDao
Author:
Jeff Fischer
See Also:
  • Field Details

    • idGenerationService

      protected org.broadleafcommerce.common.id.service.IdGenerationService idGenerationService
    • em

      protected jakarta.persistence.EntityManager em
  • Constructor Details

    • VersionDaoImpl

      public VersionDaoImpl()
  • Method Details

    • getMaxVersionForGroup

      public Long getMaxVersionForGroup(Long targetSandBox, Long mySandBox, String groupName)
      Description copied from interface: VersionDao
      Retrieve the highest version value currently in the database
      Specified by:
      getMaxVersionForGroup in interface VersionDao
      Parameters:
      targetSandBox - the sandbox to search in
      groupName - the group name for the change
      Returns:
      the max version
    • getVersionForGroup

      public Long getVersionForGroup(Long sandBoxId, String groupName)
      Description copied from interface: VersionDao
      Retrieve the current version for the change in the database
      Specified by:
      getVersionForGroup in interface VersionDao
      Parameters:
      sandBoxId - the sandbox to search in
      groupName - the group name for the change
      Returns:
      the current version
    • getNextVersionForGroup

      public Long getNextVersionForGroup(String groupName)
      Description copied from interface: VersionDao
      Increment to the next unused version for this change group
      Specified by:
      getNextVersionForGroup in interface VersionDao
      Parameters:
      groupName - the group name for the change
      Returns:
      the next version