Class IdGenerationDaoImpl
java.lang.Object
org.broadleafcommerce.common.id.dao.IdGenerationDaoImpl
- All Implemented Interfaces:
IdGenerationDao
@Repository("blIdGenerationDao")
public class IdGenerationDaoImpl
extends Object
implements IdGenerationDao
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Long
protected Long
protected jakarta.persistence.EntityManager
protected EntityConfiguration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindNextId
(String idType) findNextId
(String idType, Long batchSize) void
setDefaultBatchSize
(Long defaultBatchSize) void
setDefaultBatchStart
(Long defaultBatchStart)
-
Field Details
-
defaultBatchSize
-
defaultBatchStart
-
em
protected jakarta.persistence.EntityManager em -
entityConfiguration
-
-
Constructor Details
-
IdGenerationDaoImpl
public IdGenerationDaoImpl()
-
-
Method Details
-
findNextId
@Transactional("blTransactionManager") public IdGeneration findNextId(String idType) throws jakarta.persistence.OptimisticLockException, Exception - Specified by:
findNextId
in interfaceIdGenerationDao
- Throws:
jakarta.persistence.OptimisticLockException
Exception
-
findNextId
@Transactional(value="blTransactionManager", propagation=REQUIRES_NEW) public IdGeneration findNextId(String idType, Long batchSize) throws jakarta.persistence.OptimisticLockException, Exception - Specified by:
findNextId
in interfaceIdGenerationDao
- Throws:
jakarta.persistence.OptimisticLockException
Exception
-
getDefaultBatchSize
-
setDefaultBatchSize
-
getDefaultBatchStart
-
setDefaultBatchStart
-