public class SequenceManagerImpl extends Object implements SequenceManager
| Constructor and Description |
|---|
SequenceManagerImpl(org.bonitasoft.engine.lock.LockService lockService,
SequenceMappingProvider sequenceMappingProvider,
DataSource datasource,
int retries,
int delay,
int delayFactor) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
clear all in memory sequence
|
void |
clear(long tenantId)
clear in memory sequence for only one tenant
|
void |
close() |
long |
getNextId(String entityName,
long tenantId) |
void |
reset() |
public SequenceManagerImpl(org.bonitasoft.engine.lock.LockService lockService,
SequenceMappingProvider sequenceMappingProvider,
DataSource datasource,
int retries,
int delay,
int delayFactor)
public void reset()
reset in interface SequenceManagerpublic long getNextId(String entityName, long tenantId) throws org.bonitasoft.engine.commons.exceptions.SObjectNotFoundException
getNextId in interface SequenceManagerorg.bonitasoft.engine.commons.exceptions.SObjectNotFoundExceptionpublic void clear()
SequenceManagerclear in interface SequenceManagerpublic void close()
close in interface SequenceManagerpublic void clear(long tenantId)
SequenceManagerclear in interface SequenceManagerCopyright © 2017 Bonitasoft S.A.. All rights reserved.