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: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}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>
Modifier and Type | Field and 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 |
F_ARCHETYPE_REF, F_ASSIGNMENT, F_DELEGATED_REF, F_ITERATION, F_ITERATION_TOKEN, F_ROLE_INFLUENCE_REF, F_ROLE_MEMBERSHIP_REF
F_DESCRIPTION, F_DIAGNOSTIC_INFORMATION, F_EXTENSION, F_FETCH_RESULT, 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
Constructor and Description |
---|
SequenceType() |
SequenceType(PrismContext prismContext) |
asPrismContainer, asPrismContainerValue, createArchetypeRefList, createAssignmentList, createDelegatedRefList, createRoleInfluenceRefList, createRoleMembershipRefList, equals, getArchetypeRef, getAssignment, getDelegatedRef, getIteration, getIterationToken, getRoleInfluenceRef, getRoleMembershipRef, hashCode, setIteration, setIterationToken, setupContainer, setupContainerValue, toDebugName, toDebugType, toString
createDiagnosticInformationList, createOperationExecutionList, createParentOrgRefList, createPolicyExceptionList, createPolicySituationList, createSubtypeList, createTriggeredPolicyRuleList, createTriggerList, getDescription, getDiagnosticInformation, getExtension, getFetchResult, getLensContext, getLifecycleState, getMetadata, getName, getOid, getOperationExecution, getParentOrgRef, getPolicyException, getPolicySituation, getSubtype, getTenantRef, getTrigger, getTriggeredPolicyRule, getVersion, setDescription, setExtension, setFetchResult, setLensContext, setLifecycleState, setMetadata, setName, setOid, setTenantRef, setVersion
accept
finalize, getClass, notify, notifyAll, wait, wait, wait
getDescription, getName, getOid, getVersion, setDescription, setName, setOid, setVersion
visitPrismStructure
public static final QName COMPLEX_TYPE
public static final ItemName F_COUNTER
public static final ItemName F_UNUSED_VALUES
public static final ItemName F_MAX_COUNTER
public static final ItemName F_ALLOW_REWIND
public static final ItemName F_MAX_UNUSED_VALUES
public SequenceType()
public SequenceType(PrismContext prismContext)
public PrismObject<SequenceType> asPrismObject()
asPrismObject
in interface Objectable
asPrismObject
in class AssignmentHolderType
public <X> X end()
end
in class AssignmentHolderType
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 assignment(AssignmentType value)
assignment
in class AssignmentHolderType
public AssignmentType beginAssignment()
beginAssignment
in class AssignmentHolderType
public SequenceType iteration(Integer value)
iteration
in class AssignmentHolderType
public SequenceType iterationToken(String value)
iterationToken
in class AssignmentHolderType
public SequenceType archetypeRef(ObjectReferenceType value)
archetypeRef
in class AssignmentHolderType
public SequenceType archetypeRef(String oid, QName type)
archetypeRef
in class AssignmentHolderType
public SequenceType archetypeRef(String oid, QName type, QName relation)
archetypeRef
in class AssignmentHolderType
public ObjectReferenceType beginArchetypeRef()
beginArchetypeRef
in class AssignmentHolderType
public SequenceType roleMembershipRef(ObjectReferenceType value)
roleMembershipRef
in class AssignmentHolderType
public SequenceType roleMembershipRef(String oid, QName type)
roleMembershipRef
in class AssignmentHolderType
public SequenceType roleMembershipRef(String oid, QName type, QName relation)
roleMembershipRef
in class AssignmentHolderType
public ObjectReferenceType beginRoleMembershipRef()
beginRoleMembershipRef
in class AssignmentHolderType
public SequenceType delegatedRef(ObjectReferenceType value)
delegatedRef
in class AssignmentHolderType
public SequenceType delegatedRef(String oid, QName type)
delegatedRef
in class AssignmentHolderType
public SequenceType delegatedRef(String oid, QName type, QName relation)
delegatedRef
in class AssignmentHolderType
public ObjectReferenceType beginDelegatedRef()
beginDelegatedRef
in class AssignmentHolderType
public SequenceType roleInfluenceRef(ObjectReferenceType value)
roleInfluenceRef
in class AssignmentHolderType
public SequenceType roleInfluenceRef(String oid, QName type)
roleInfluenceRef
in class AssignmentHolderType
public SequenceType roleInfluenceRef(String oid, QName type, QName relation)
roleInfluenceRef
in class AssignmentHolderType
public ObjectReferenceType beginRoleInfluenceRef()
beginRoleInfluenceRef
in class AssignmentHolderType
public SequenceType name(PolyStringType value)
name
in class AssignmentHolderType
public SequenceType name(String value)
name
in class AssignmentHolderType
public PolyStringType beginName()
beginName
in class AssignmentHolderType
public SequenceType description(String value)
description
in class AssignmentHolderType
public SequenceType subtype(String value)
subtype
in class AssignmentHolderType
public SequenceType fetchResult(OperationResultType value)
fetchResult
in class AssignmentHolderType
public OperationResultType beginFetchResult()
beginFetchResult
in class AssignmentHolderType
public SequenceType extension(ExtensionType value)
extension
in class AssignmentHolderType
public ExtensionType beginExtension()
beginExtension
in class AssignmentHolderType
public SequenceType parentOrgRef(ObjectReferenceType value)
parentOrgRef
in class AssignmentHolderType
public SequenceType parentOrgRef(String oid, QName type)
parentOrgRef
in class AssignmentHolderType
public SequenceType parentOrgRef(String oid, QName type, QName relation)
parentOrgRef
in class AssignmentHolderType
public ObjectReferenceType beginParentOrgRef()
beginParentOrgRef
in class AssignmentHolderType
public SequenceType trigger(TriggerType value)
trigger
in class AssignmentHolderType
public TriggerType beginTrigger()
beginTrigger
in class AssignmentHolderType
public SequenceType metadata(MetadataType value)
metadata
in class AssignmentHolderType
public MetadataType beginMetadata()
beginMetadata
in class AssignmentHolderType
public SequenceType tenantRef(ObjectReferenceType value)
tenantRef
in class AssignmentHolderType
public SequenceType tenantRef(String oid, QName type)
tenantRef
in class AssignmentHolderType
public SequenceType tenantRef(String oid, QName type, QName relation)
tenantRef
in class AssignmentHolderType
public ObjectReferenceType beginTenantRef()
beginTenantRef
in class AssignmentHolderType
public SequenceType lifecycleState(String value)
lifecycleState
in class AssignmentHolderType
public SequenceType operationExecution(OperationExecutionType value)
operationExecution
in class AssignmentHolderType
public OperationExecutionType beginOperationExecution()
beginOperationExecution
in class AssignmentHolderType
public SequenceType lensContext(LensContextType value)
lensContext
in class AssignmentHolderType
public LensContextType beginLensContext()
beginLensContext
in class AssignmentHolderType
public SequenceType policySituation(String value)
policySituation
in class AssignmentHolderType
public SequenceType triggeredPolicyRule(EvaluatedPolicyRuleType value)
triggeredPolicyRule
in class AssignmentHolderType
public EvaluatedPolicyRuleType beginTriggeredPolicyRule()
beginTriggeredPolicyRule
in class AssignmentHolderType
public SequenceType policyException(PolicyExceptionType value)
policyException
in class AssignmentHolderType
public PolicyExceptionType beginPolicyException()
beginPolicyException
in class AssignmentHolderType
public SequenceType diagnosticInformation(DiagnosticInformationType value)
diagnosticInformation
in class AssignmentHolderType
public DiagnosticInformationType beginDiagnosticInformation()
beginDiagnosticInformation
in class AssignmentHolderType
public SequenceType oid(String value)
oid
in class AssignmentHolderType
public SequenceType version(String value)
version
in class AssignmentHolderType
public SequenceType clone()
clone
in class AssignmentHolderType
Copyright © 2019 Evolveum. All rights reserved.