@Repository(value="blIdGenerationDao") public class IdGenerationDaoImpl extends Object implements IdGenerationDao
| Modifier and Type | Field and Description |
|---|---|
protected Long |
defaultBatchSize |
protected Long |
defaultBatchStart |
protected javax.persistence.EntityManager |
em |
protected EntityConfiguration |
entityConfiguration |
| Constructor and Description |
|---|
IdGenerationDaoImpl() |
| Modifier and Type | Method and Description |
|---|---|
IdGeneration |
findNextId(String idType) |
IdGeneration |
findNextId(String idType,
Long batchSize) |
Long |
getDefaultBatchSize() |
Long |
getDefaultBatchStart() |
void |
setDefaultBatchSize(Long defaultBatchSize) |
void |
setDefaultBatchStart(Long defaultBatchStart) |
protected Long defaultBatchSize
protected Long defaultBatchStart
protected javax.persistence.EntityManager em
protected EntityConfiguration entityConfiguration
@Transactional(value="blTransactionManager") public IdGeneration findNextId(String idType) throws javax.persistence.OptimisticLockException, Exception
findNextId in interface IdGenerationDaojavax.persistence.OptimisticLockExceptionException@Transactional(value="blTransactionManager",
propagation=REQUIRES_NEW)
public IdGeneration findNextId(String idType,
Long batchSize)
throws javax.persistence.OptimisticLockException,
Exception
findNextId in interface IdGenerationDaojavax.persistence.OptimisticLockExceptionExceptionpublic Long getDefaultBatchSize()
public void setDefaultBatchSize(Long defaultBatchSize)
public Long getDefaultBatchStart()
public void setDefaultBatchStart(Long defaultBatchStart)
Copyright © 2022. All rights reserved.