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: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: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: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: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: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: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_LIFECYCLE_STATE, F_METADATA, F_NAME, F_OPERATION_EXECUTION, F_PARENT_ORG, F_PARENT_ORG_REF, F_POLICY_EXCEPTION, F_POLICY_SITUATION, F_SUBTYPE, F_TENANT_REF, F_TRIGGER, F_TRIGGERED_POLICY_RULE
Constructor and Description |
---|
SequenceType() |
SequenceType(PrismContext prismContext) |
asPrismContainer, asPrismContainerValue, createOperationExecutionList, createParentOrgList, createParentOrgRefList, createPolicyExceptionList, createPolicySituationList, createSubtypeList, createTriggeredPolicyRuleList, createTriggerList, equals, getDescription, getExtension, getFetchResult, getLifecycleState, getMetadata, getName, getOid, getOperationExecution, getParentOrg, getParentOrgRef, getPolicyException, getPolicySituation, getSubtype, getTenantRef, getTrigger, getTriggeredPolicyRule, getVersion, hashCode, setDescription, setExtension, setFetchResult, setLifecycleState, setMetadata, setName, setOid, setTenantRef, setupContainer, setupContainerValue, setVersion, toDebugName, toDebugType, toString
public 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(PrismContext prismContext)
public PrismObject<SequenceType> asPrismObject()
asPrismObject
in interface Objectable
asPrismObject
in class ObjectType
public <X> X end()
end
in class ObjectType
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 counter(Long value)
public SequenceType unusedValues(Long value)
public SequenceType maxCounter(Long value)
public SequenceType allowRewind(Boolean value)
public SequenceType maxUnusedValues(Integer value)
public SequenceType name(PolyStringType value)
name
in class ObjectType
public SequenceType name(String value)
name
in class ObjectType
public PolyStringType beginName()
beginName
in class ObjectType
public SequenceType description(String value)
description
in class ObjectType
public SequenceType subtype(String value)
subtype
in class ObjectType
public SequenceType fetchResult(OperationResultType value)
fetchResult
in class ObjectType
public OperationResultType beginFetchResult()
beginFetchResult
in class ObjectType
public SequenceType extension(ExtensionType value)
extension
in class ObjectType
public ExtensionType beginExtension()
beginExtension
in class ObjectType
public SequenceType parentOrg(OrgType value)
parentOrg
in class ObjectType
public OrgType beginParentOrg()
beginParentOrg
in class ObjectType
public SequenceType parentOrgRef(ObjectReferenceType value)
parentOrgRef
in class ObjectType
public SequenceType parentOrgRef(String oid, QName type)
parentOrgRef
in class ObjectType
public SequenceType parentOrgRef(String oid, QName type, QName relation)
parentOrgRef
in class ObjectType
public ObjectReferenceType beginParentOrgRef()
beginParentOrgRef
in class ObjectType
public SequenceType trigger(TriggerType value)
trigger
in class ObjectType
public TriggerType beginTrigger()
beginTrigger
in class ObjectType
public SequenceType metadata(MetadataType value)
metadata
in class ObjectType
public MetadataType beginMetadata()
beginMetadata
in class ObjectType
public SequenceType tenantRef(ObjectReferenceType value)
tenantRef
in class ObjectType
public SequenceType tenantRef(String oid, QName type)
tenantRef
in class ObjectType
public SequenceType tenantRef(String oid, QName type, QName relation)
tenantRef
in class ObjectType
public ObjectReferenceType beginTenantRef()
beginTenantRef
in class ObjectType
public SequenceType lifecycleState(String value)
lifecycleState
in class ObjectType
public SequenceType operationExecution(OperationExecutionType value)
operationExecution
in class ObjectType
public OperationExecutionType beginOperationExecution()
beginOperationExecution
in class ObjectType
public SequenceType policySituation(String value)
policySituation
in class ObjectType
public SequenceType triggeredPolicyRule(EvaluatedPolicyRuleType value)
triggeredPolicyRule
in class ObjectType
public EvaluatedPolicyRuleType beginTriggeredPolicyRule()
beginTriggeredPolicyRule
in class ObjectType
public SequenceType policyException(PolicyExceptionType value)
policyException
in class ObjectType
public PolicyExceptionType beginPolicyException()
beginPolicyException
in class ObjectType
public SequenceType oid(String value)
oid
in class ObjectType
public SequenceType version(String value)
version
in class ObjectType
public SequenceType clone()
clone
in class ObjectType
Copyright © 2019 Evolveum. All rights reserved.