Class VersionDaoImpl
java.lang.Object
com.broadleafcommerce.enterprise.workflow.dao.VersionDaoImpl
- All Implemented Interfaces:
VersionDao
- Author:
- Jeff Fischer
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected jakarta.persistence.EntityManagerprotected org.broadleafcommerce.common.id.service.IdGenerationService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetMaxVersionForGroup(Long targetSandBox, Long mySandBox, String groupName) Retrieve the highest version value currently in the databasegetNextVersionForGroup(String groupName) Increment to the next unused version for this change groupgetVersionForGroup(Long sandBoxId, String groupName) Retrieve the current version for the change in the database
-
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
Description copied from interface:VersionDaoRetrieve the highest version value currently in the database- Specified by:
getMaxVersionForGroupin interfaceVersionDao- Parameters:
targetSandBox- the sandbox to search ingroupName- the group name for the change- Returns:
- the max version
-
getVersionForGroup
Description copied from interface:VersionDaoRetrieve the current version for the change in the database- Specified by:
getVersionForGroupin interfaceVersionDao- Parameters:
sandBoxId- the sandbox to search ingroupName- the group name for the change- Returns:
- the current version
-
getNextVersionForGroup
Description copied from interface:VersionDaoIncrement to the next unused version for this change group- Specified by:
getNextVersionForGroupin interfaceVersionDao- Parameters:
groupName- the group name for the change- Returns:
- the next version
-