public class SequenceType extends ObjectType implements Serializable, Cloneable
<?xml version="1.0" encoding="UTF-8"?><p xmlns:a="http://prism.evolveum.com/xml/ns/public/annotation-3" xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3" xmlns:cap="http://midpoint.evolveum.com/xml/ns/public/resource/capabilities-3" xmlns:icfs="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3" xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" xmlns:q="http://prism.evolveum.com/xml/ns/public/query-3" xmlns:t="http://prism.evolveum.com/xml/ns/public/types-3" xmlns:tns="http://midpoint.evolveum.com/xml/ns/public/common/common-3" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
Definition of a sequence object that produces unique values. The sequence state is
persistently stored in the repository, therefore it can efficiently produce unique
identifiers in a controlled and predictable manner.
</p>
<?xml version="1.0" encoding="UTF-8"?><p xmlns:a="http://prism.evolveum.com/xml/ns/public/annotation-3" xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3" xmlns:cap="http://midpoint.evolveum.com/xml/ns/public/resource/capabilities-3" xmlns:icfs="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3" xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" xmlns:q="http://prism.evolveum.com/xml/ns/public/query-3" xmlns:t="http://prism.evolveum.com/xml/ns/public/types-3" xmlns:tns="http://midpoint.evolveum.com/xml/ns/public/common/common-3" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
The sequence is atomic. If two threads or even two nodes request a value from
the same sequence at the same time then different values will be returned. Therefore the
use of the sequence has some inherent cost (e.g. database locking overhead).
</p>
<?xml version="1.0" encoding="UTF-8"?><p xmlns:a="http://prism.evolveum.com/xml/ns/public/annotation-3" xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3" xmlns:cap="http://midpoint.evolveum.com/xml/ns/public/resource/capabilities-3" xmlns:icfs="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3" xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" xmlns:q="http://prism.evolveum.com/xml/ns/public/query-3" xmlns:t="http://prism.evolveum.com/xml/ns/public/types-3" xmlns:tns="http://midpoint.evolveum.com/xml/ns/public/common/common-3" xmlns:xenc="http://www.w3.org/2001/04/xmlenc#" xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
The sequence produces only values of type "long". If any other type or format is needed
then an expression must be used to transform the value.
</p>
Java class for SequenceType complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="SequenceType">
<complexContent>
<extension base="{http://midpoint.evolveum.com/xml/ns/public/common/common-3}ObjectType">
<sequence>
<element name="counter" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
<element name="unusedValues" type="{http://www.w3.org/2001/XMLSchema}long" maxOccurs="unbounded" minOccurs="0"/>
<element name="maxCounter" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
<element name="allowRewind" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
<element name="maxUnusedValues" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
</sequence>
</extension>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
static QName |
COMPLEX_TYPE |
static QName |
F_ALLOW_REWIND |
static QName |
F_COUNTER |
static QName |
F_MAX_COUNTER |
static QName |
F_MAX_UNUSED_VALUES |
static QName |
F_UNUSED_VALUES |
F_DESCRIPTION, F_EXTENSION, F_FETCH_RESULT, F_METADATA, F_NAME, F_PARENT_ORG, F_PARENT_ORG_REF, F_TENANT_REF, F_TRIGGER| Constructor and Description |
|---|
SequenceType() |
SequenceType(com.evolveum.midpoint.prism.PrismContext prismContext) |
| Modifier and Type | Method and Description |
|---|---|
SequenceType |
clone() |
Long |
getCounter() |
Long |
getMaxCounter() |
Integer |
getMaxUnusedValues() |
List<Long> |
getUnusedValues() |
Boolean |
isAllowRewind() |
void |
setAllowRewind(Boolean value) |
void |
setCounter(Long value) |
void |
setMaxCounter(Long value) |
void |
setMaxUnusedValues(Integer value) |
asPrismContainer, asPrismContainerValue, asPrismObject, equals, getDescription, getExtension, getFetchResult, getMetadata, getName, getOid, getParentOrg, getParentOrgRef, getTenantRef, getTrigger, getVersion, hashCode, setDescription, setExtension, setFetchResult, setMetadata, setName, setOid, setTenantRef, setupContainer, setupContainerValue, setVersion, toDebugName, toDebugType, toStringpublic static final QName COMPLEX_TYPE
public static final QName F_COUNTER
public static final QName F_UNUSED_VALUES
public static final QName F_MAX_COUNTER
public static final QName F_ALLOW_REWIND
public static final QName F_MAX_UNUSED_VALUES
public SequenceType()
public SequenceType(com.evolveum.midpoint.prism.PrismContext prismContext)
public Long getCounter()
public void setCounter(Long value)
public Long getMaxCounter()
public void setMaxCounter(Long value)
public Boolean isAllowRewind()
public void setAllowRewind(Boolean value)
public Integer getMaxUnusedValues()
public void setMaxUnusedValues(Integer value)
public SequenceType clone()
clone in class ObjectTypeCopyright © 2016 Evolveum. All rights reserved.