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 Details

    • defaultBatchSize

      protected Long defaultBatchSize
    • defaultBatchStart

      protected Long defaultBatchStart
    • em

      protected jakarta.persistence.EntityManager em
    • entityConfiguration

      protected EntityConfiguration 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 interface IdGenerationDao
      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 interface IdGenerationDao
      Throws:
      jakarta.persistence.OptimisticLockException
      Exception
    • getDefaultBatchSize

      public Long getDefaultBatchSize()
    • setDefaultBatchSize

      public void setDefaultBatchSize(Long defaultBatchSize)
    • getDefaultBatchStart

      public Long getDefaultBatchStart()
    • setDefaultBatchStart

      public void setDefaultBatchStart(Long defaultBatchStart)