public interface WGDatabaseCoreFeatureSequenceProvider extends WGDatabaseCore
Modifier and Type | Method and Description |
---|---|
void |
deleteSequence(java.lang.String name)
Deletes a sequence, clearing all increment and initialisation data
|
long |
getLastSequenceIncrementValue(java.lang.String name)
Returns the returned value of the sequence on the last
incrementSequence(String) call. 0 if it was not yet used. |
java.util.List<java.lang.String> |
getUsedSequenceNames()
Returns names of sequences already initialized and/or in use
|
long |
incrementSequence(java.lang.String name)
Increments the sequence and returns a new unique value.
|
boolean |
initSequence(java.lang.String name,
long startValue,
boolean forceInit)
Initializes a sequence, if it either is not yet initialized or argument forceInit is true.
|
boolean |
isSequenceInitialized(java.lang.String name)
Returns if a sequence of that name is already initialized.
|
beginTransaction, beginUpdate, callBackendService, clearSessionCache, close, closeSession, commitTransaction, convertFileNameForAttaching, createContent, createCopy, createDesignDocument, createStructEntry, fastAccess, getACL, getAllContent, getAllContentKeys, getChildEntries, getContentByKey, getContentByName, getContentCount, getContentStorePatchLevel, getContentStoreVersion, getDedicatedWorkflowEngine, getDesignObject, getDesignObjects, getDummyContent, getExtensionData, getExtensionDataNames, getIncomingRelations, getNativeObject, getParentEntry, getRevision, getRevisionDate, getRoles, getRootEntries, getServerName, getStructEntryByKey, getStructEntryByName, getTitle, getTypeName, getUpdateLogs, hasFeature, isBackendServiceSupported, isContentTypeUsed, isLanguageUsed, isMemberOfUserList, moveStructEntry, open, openSession, parseStructKey, query, refresh, removeExtensionData, resultIsFalse, resultIsTrue, rollbackTransaction, setCurrentSession, writeExtensionData
boolean initSequence(java.lang.String name, long startValue, boolean forceInit) throws WGAPIException
name
- Name of the sequencestartValue
- The start value of the sequence, i.e. the first value to serve by the first incrementSequence(String)
call.forceInit
- true if you want to re-initialize the sequence even if it already existsWGBackendException
WGAPIException
long incrementSequence(java.lang.String name) throws WGAPIException
name
- Name of the sequenceWGAPIException
boolean isSequenceInitialized(java.lang.String name) throws WGAPIException
name
- Name of the sequence.WGAPIException
long getLastSequenceIncrementValue(java.lang.String name) throws WGAPIException
incrementSequence(String)
call. 0 if it was not yet used.name
- Name of the sequenceWGAPIException
void deleteSequence(java.lang.String name) throws WGAPIException
name
- Name of the sequenceWGAPIException
java.util.List<java.lang.String> getUsedSequenceNames() throws WGAPIException
WGAPIException