Class SequenceType
- java.lang.Object
-
- com.evolveum.prism.xml.ns._public.types_3.ObjectType
-
- com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType
-
- com.evolveum.midpoint.xml.ns._public.common.common_3.AssignmentHolderType
-
- com.evolveum.midpoint.xml.ns._public.common.common_3.SequenceType
-
- All Implemented Interfaces:
Containerable
,JaxbVisitable
,Objectable
,DebugDumpable
,Serializable
,Cloneable
public class SequenceType extends AssignmentHolderType 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:s="http://midpoint.evolveum.com/xml/ns/public/model/scripting-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:s="http://midpoint.evolveum.com/xml/ns/public/model/scripting-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:s="http://midpoint.evolveum.com/xml/ns/public/model/scripting-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}AssignmentHolderType"> <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>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static QName
COMPLEX_TYPE
static ItemName
F_ALLOW_REWIND
static ItemName
F_COUNTER
static ItemName
F_MAX_COUNTER
static ItemName
F_MAX_UNUSED_VALUES
static ItemName
F_UNUSED_VALUES
-
Fields inherited from class com.evolveum.midpoint.xml.ns._public.common.common_3.AssignmentHolderType
F_ARCHETYPE_REF, F_ASSIGNMENT, F_DELEGATED_REF, F_ITERATION, F_ITERATION_TOKEN, F_ROLE_INFLUENCE_REF, F_ROLE_MEMBERSHIP_REF
-
Fields inherited from class com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType
F_DESCRIPTION, F_DIAGNOSTIC_INFORMATION, F_DOCUMENTATION, F_EXTENSION, F_FETCH_RESULT, F_INDESTRUCTIBLE, F_LENS_CONTEXT, F_LIFECYCLE_STATE, F_METADATA, F_NAME, F_OPERATION_EXECUTION, F_PARENT_ORG_REF, F_POLICY_EXCEPTION, F_POLICY_SITUATION, F_SUBTYPE, F_TENANT_REF, F_TRIGGER, F_TRIGGERED_POLICY_RULE
-
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
-
Constructor Summary
Constructors Constructor Description SequenceType()
SequenceType(PrismContext prismContext)
-
Method Summary
-
Methods inherited from class com.evolveum.midpoint.xml.ns._public.common.common_3.AssignmentHolderType
asPrismContainer, asPrismContainerValue, createArchetypeRefList, createAssignmentList, createDelegatedRefList, createRoleInfluenceRefList, createRoleMembershipRefList, equals, getArchetypeRef, getAssignment, getDelegatedRef, getIteration, getIterationToken, getRoleInfluenceRef, getRoleMembershipRef, hashCode, setIteration, setIterationToken, setupContainer, setupContainerValue, toDebugName, toDebugType, toString
-
Methods inherited from class com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType
createDiagnosticInformationList, createOperationExecutionList, createParentOrgRefList, createPolicyExceptionList, createPolicySituationList, createSubtypeList, createTriggeredPolicyRuleList, createTriggerList, getDescription, getDiagnosticInformation, getDocumentation, getExtension, getFetchResult, getLensContext, getLifecycleState, getMetadata, getName, getOid, getOperationExecution, getParentOrgRef, getPolicyException, getPolicySituation, getSubtype, getTenantRef, getTrigger, getTriggeredPolicyRule, getVersion, isIndestructible, setDescription, setDocumentation, setExtension, setFetchResult, setIndestructible, setLensContext, setLifecycleState, setMetadata, setName, setOid, setTenantRef, setVersion
-
Methods inherited from class com.evolveum.prism.xml.ns._public.types_3.ObjectType
accept
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.evolveum.midpoint.prism.Containerable
cloneWithoutId, debugDump
-
Methods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDumpLazily, debugDumpLazily
-
Methods inherited from interface com.evolveum.midpoint.prism.Objectable
getDescription, getName, getOid, getVersion, setDescription, setName, setOid, setVersion
-
-
-
-
Field Detail
-
COMPLEX_TYPE
public static final QName COMPLEX_TYPE
-
F_COUNTER
public static final ItemName F_COUNTER
-
F_UNUSED_VALUES
public static final ItemName F_UNUSED_VALUES
-
F_MAX_COUNTER
public static final ItemName F_MAX_COUNTER
-
F_ALLOW_REWIND
public static final ItemName F_ALLOW_REWIND
-
F_MAX_UNUSED_VALUES
public static final ItemName F_MAX_UNUSED_VALUES
-
-
Constructor Detail
-
SequenceType
public SequenceType()
-
SequenceType
public SequenceType(PrismContext prismContext)
-
-
Method Detail
-
asPrismObject
public PrismObject<SequenceType> asPrismObject()
- Specified by:
asPrismObject
in interfaceObjectable
- Overrides:
asPrismObject
in classAssignmentHolderType
-
end
public <X> X end()
- Overrides:
end
in classAssignmentHolderType
-
getCounter
public Long getCounter()
-
setCounter
public void setCounter(Long value)
-
getMaxCounter
public Long getMaxCounter()
-
setMaxCounter
public void setMaxCounter(Long value)
-
isAllowRewind
public Boolean isAllowRewind()
-
setAllowRewind
public void setAllowRewind(Boolean value)
-
getMaxUnusedValues
public Integer getMaxUnusedValues()
-
setMaxUnusedValues
public void setMaxUnusedValues(Integer value)
-
counter
public SequenceType counter(Long value)
-
unusedValues
public SequenceType unusedValues(Long value)
-
maxCounter
public SequenceType maxCounter(Long value)
-
allowRewind
public SequenceType allowRewind(Boolean value)
-
maxUnusedValues
public SequenceType maxUnusedValues(Integer value)
-
assignment
public SequenceType assignment(AssignmentType value)
- Overrides:
assignment
in classAssignmentHolderType
-
beginAssignment
public AssignmentType beginAssignment()
- Overrides:
beginAssignment
in classAssignmentHolderType
-
iteration
public SequenceType iteration(Integer value)
- Overrides:
iteration
in classAssignmentHolderType
-
iterationToken
public SequenceType iterationToken(String value)
- Overrides:
iterationToken
in classAssignmentHolderType
-
archetypeRef
public SequenceType archetypeRef(ObjectReferenceType value)
- Overrides:
archetypeRef
in classAssignmentHolderType
-
archetypeRef
public SequenceType archetypeRef(String oid, QName type)
- Overrides:
archetypeRef
in classAssignmentHolderType
-
archetypeRef
public SequenceType archetypeRef(String oid, QName type, QName relation)
- Overrides:
archetypeRef
in classAssignmentHolderType
-
beginArchetypeRef
public ObjectReferenceType beginArchetypeRef()
- Overrides:
beginArchetypeRef
in classAssignmentHolderType
-
roleMembershipRef
public SequenceType roleMembershipRef(ObjectReferenceType value)
- Overrides:
roleMembershipRef
in classAssignmentHolderType
-
roleMembershipRef
public SequenceType roleMembershipRef(String oid, QName type)
- Overrides:
roleMembershipRef
in classAssignmentHolderType
-
roleMembershipRef
public SequenceType roleMembershipRef(String oid, QName type, QName relation)
- Overrides:
roleMembershipRef
in classAssignmentHolderType
-
beginRoleMembershipRef
public ObjectReferenceType beginRoleMembershipRef()
- Overrides:
beginRoleMembershipRef
in classAssignmentHolderType
-
delegatedRef
public SequenceType delegatedRef(ObjectReferenceType value)
- Overrides:
delegatedRef
in classAssignmentHolderType
-
delegatedRef
public SequenceType delegatedRef(String oid, QName type)
- Overrides:
delegatedRef
in classAssignmentHolderType
-
delegatedRef
public SequenceType delegatedRef(String oid, QName type, QName relation)
- Overrides:
delegatedRef
in classAssignmentHolderType
-
beginDelegatedRef
public ObjectReferenceType beginDelegatedRef()
- Overrides:
beginDelegatedRef
in classAssignmentHolderType
-
roleInfluenceRef
public SequenceType roleInfluenceRef(ObjectReferenceType value)
- Overrides:
roleInfluenceRef
in classAssignmentHolderType
-
roleInfluenceRef
public SequenceType roleInfluenceRef(String oid, QName type)
- Overrides:
roleInfluenceRef
in classAssignmentHolderType
-
roleInfluenceRef
public SequenceType roleInfluenceRef(String oid, QName type, QName relation)
- Overrides:
roleInfluenceRef
in classAssignmentHolderType
-
beginRoleInfluenceRef
public ObjectReferenceType beginRoleInfluenceRef()
- Overrides:
beginRoleInfluenceRef
in classAssignmentHolderType
-
name
public SequenceType name(PolyStringType value)
- Overrides:
name
in classAssignmentHolderType
-
name
public SequenceType name(String value)
- Overrides:
name
in classAssignmentHolderType
-
beginName
public PolyStringType beginName()
- Overrides:
beginName
in classAssignmentHolderType
-
description
public SequenceType description(String value)
- Overrides:
description
in classAssignmentHolderType
-
documentation
public SequenceType documentation(String value)
- Overrides:
documentation
in classAssignmentHolderType
-
subtype
public SequenceType subtype(String value)
- Overrides:
subtype
in classAssignmentHolderType
-
fetchResult
public SequenceType fetchResult(OperationResultType value)
- Overrides:
fetchResult
in classAssignmentHolderType
-
beginFetchResult
public OperationResultType beginFetchResult()
- Overrides:
beginFetchResult
in classAssignmentHolderType
-
extension
public SequenceType extension(ExtensionType value)
- Overrides:
extension
in classAssignmentHolderType
-
beginExtension
public ExtensionType beginExtension()
- Overrides:
beginExtension
in classAssignmentHolderType
-
parentOrgRef
public SequenceType parentOrgRef(ObjectReferenceType value)
- Overrides:
parentOrgRef
in classAssignmentHolderType
-
parentOrgRef
public SequenceType parentOrgRef(String oid, QName type)
- Overrides:
parentOrgRef
in classAssignmentHolderType
-
parentOrgRef
public SequenceType parentOrgRef(String oid, QName type, QName relation)
- Overrides:
parentOrgRef
in classAssignmentHolderType
-
beginParentOrgRef
public ObjectReferenceType beginParentOrgRef()
- Overrides:
beginParentOrgRef
in classAssignmentHolderType
-
trigger
public SequenceType trigger(TriggerType value)
- Overrides:
trigger
in classAssignmentHolderType
-
beginTrigger
public TriggerType beginTrigger()
- Overrides:
beginTrigger
in classAssignmentHolderType
-
metadata
public SequenceType metadata(MetadataType value)
- Overrides:
metadata
in classAssignmentHolderType
-
beginMetadata
public MetadataType beginMetadata()
- Overrides:
beginMetadata
in classAssignmentHolderType
-
tenantRef
public SequenceType tenantRef(ObjectReferenceType value)
- Overrides:
tenantRef
in classAssignmentHolderType
-
tenantRef
public SequenceType tenantRef(String oid, QName type)
- Overrides:
tenantRef
in classAssignmentHolderType
-
tenantRef
public SequenceType tenantRef(String oid, QName type, QName relation)
- Overrides:
tenantRef
in classAssignmentHolderType
-
beginTenantRef
public ObjectReferenceType beginTenantRef()
- Overrides:
beginTenantRef
in classAssignmentHolderType
-
lifecycleState
public SequenceType lifecycleState(String value)
- Overrides:
lifecycleState
in classAssignmentHolderType
-
operationExecution
public SequenceType operationExecution(OperationExecutionType value)
- Overrides:
operationExecution
in classAssignmentHolderType
-
beginOperationExecution
public OperationExecutionType beginOperationExecution()
- Overrides:
beginOperationExecution
in classAssignmentHolderType
-
lensContext
public SequenceType lensContext(LensContextType value)
- Overrides:
lensContext
in classAssignmentHolderType
-
beginLensContext
public LensContextType beginLensContext()
- Overrides:
beginLensContext
in classAssignmentHolderType
-
policySituation
public SequenceType policySituation(String value)
- Overrides:
policySituation
in classAssignmentHolderType
-
triggeredPolicyRule
public SequenceType triggeredPolicyRule(EvaluatedPolicyRuleType value)
- Overrides:
triggeredPolicyRule
in classAssignmentHolderType
-
beginTriggeredPolicyRule
public EvaluatedPolicyRuleType beginTriggeredPolicyRule()
- Overrides:
beginTriggeredPolicyRule
in classAssignmentHolderType
-
policyException
public SequenceType policyException(PolicyExceptionType value)
- Overrides:
policyException
in classAssignmentHolderType
-
beginPolicyException
public PolicyExceptionType beginPolicyException()
- Overrides:
beginPolicyException
in classAssignmentHolderType
-
diagnosticInformation
public SequenceType diagnosticInformation(DiagnosticInformationType value)
- Overrides:
diagnosticInformation
in classAssignmentHolderType
-
beginDiagnosticInformation
public DiagnosticInformationType beginDiagnosticInformation()
- Overrides:
beginDiagnosticInformation
in classAssignmentHolderType
-
indestructible
public SequenceType indestructible(Boolean value)
- Overrides:
indestructible
in classAssignmentHolderType
-
oid
public SequenceType oid(String value)
- Overrides:
oid
in classAssignmentHolderType
-
version
public SequenceType version(String value)
- Overrides:
version
in classAssignmentHolderType
-
clone
public SequenceType clone()
- Overrides:
clone
in classAssignmentHolderType
-
-