Class DecisionDefinitionEntity
java.lang.Object
org.operaton.bpm.dmn.engine.impl.DmnDecisionImpl
org.operaton.bpm.engine.impl.dmn.entity.repository.DecisionDefinitionEntity
- All Implemented Interfaces:
Serializable,DmnDecision,DbEntity,HasDbRevision,ResourceDefinitionEntity<DecisionDefinitionEntity>,DecisionDefinition,ResourceDefinition
public class DecisionDefinitionEntity
extends DmnDecisionImpl
implements DecisionDefinition, ResourceDefinitionEntity<DecisionDefinitionEntity>, DbEntity, HasDbRevision, Serializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected booleanprotected Integerprotected Stringprotected static final EnginePersistenceLoggerprotected Stringprotected Stringprotected intprotected Stringprotected intprotected StringFields inherited from class org.operaton.bpm.dmn.engine.impl.DmnDecisionImpl
decisionLogic, key, name, requiredDecision -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcategory name which is derived from the targetNamespace attribute in the definitions elementReturns the id of the related decision requirements definition.Returns the key of the related decision requirements definition.The deployment in which this definition is contained.The diagram resource name for this definition if existHistory time to live.getId()unique identifiergetKey()The unique identifier of the decision if exists.getName()The human readable name of the decision if exists.Returns a representation of the object, as would be stored in the database.name ofthe resourceof this definitionintintThe id of the tenant this definition belongs to.intversion of this definitionVersion tag of the decision definition.protected DecisionDefinitionEntityloadDecisionDefinition(String decisionDefinitionId) Returns the cached version if exists; does not update the entity from the database in that caseprotected voidvoidsetCategory(String category) voidsetDecisionRequirementsDefinitionId(String decisionRequirementsDefinitionId) voidsetDecisionRequirementsDefinitionKey(String decisionRequirementsDefinitionKey) voidsetDeploymentId(String deploymentId) voidsetDiagramResourceName(String diagramResourceName) voidsetHistoryTimeToLive(Integer historyTimeToLive) voidvoidvoidvoidsetPreviousDecisionDefinitionId(String previousDecisionDefinitionId) voidsetResourceName(String resourceName) voidsetRevision(int revision) voidsetTenantId(String tenantId) voidsetVersion(int version) voidsetVersionTag(String versionTag) toString()voidupdateModifiableFieldsFromEntity(DecisionDefinitionEntity updatingDecisionDefinition) Updates all modifiable fields from another decision definition entity.Methods inherited from class org.operaton.bpm.dmn.engine.impl.DmnDecisionImpl
getDecisionLogic, getRequiredDecisions, isDecisionTable, setDecisionLogic, setRequiredDecision
-
Field Details
-
LOG
-
id
-
revision
protected int revision -
category
-
version
protected int version -
deploymentId
-
resourceName
-
diagramResourceName
-
tenantId
-
decisionRequirementsDefinitionId
-
decisionRequirementsDefinitionKey
-
firstVersion
protected boolean firstVersion -
previousDecisionDefinitionId
-
historyTimeToLive
-
versionTag
-
-
Constructor Details
-
DecisionDefinitionEntity
public DecisionDefinitionEntity()
-
-
Method Details
-
getId
Description copied from interface:ResourceDefinitionunique identifier- Specified by:
getIdin interfaceDbEntity- Specified by:
getIdin interfaceResourceDefinition
-
setId
- Specified by:
setIdin interfaceDbEntity- Specified by:
setIdin interfaceResourceDefinitionEntity<DecisionDefinitionEntity>
-
getRevision
public int getRevision()- Specified by:
getRevisionin interfaceHasDbRevision
-
setRevision
public void setRevision(int revision) - Specified by:
setRevisionin interfaceHasDbRevision
-
getRevisionNext
public int getRevisionNext()- Specified by:
getRevisionNextin interfaceHasDbRevision
-
getName
Description copied from interface:DmnDecisionThe human readable name of the decision if exists.- Specified by:
getNamein interfaceDmnDecision- Specified by:
getNamein interfaceResourceDefinition- Overrides:
getNamein classDmnDecisionImpl- Returns:
- the name or null if not set
-
setName
- Specified by:
setNamein interfaceResourceDefinitionEntity<DecisionDefinitionEntity>- Overrides:
setNamein classDmnDecisionImpl
-
getCategory
Description copied from interface:ResourceDefinitioncategory name which is derived from the targetNamespace attribute in the definitions element- Specified by:
getCategoryin interfaceResourceDefinition
-
setCategory
- Specified by:
setCategoryin interfaceResourceDefinitionEntity<DecisionDefinitionEntity>
-
getKey
Description copied from interface:DmnDecisionThe unique identifier of the decision if exists.- Specified by:
getKeyin interfaceDmnDecision- Specified by:
getKeyin interfaceResourceDefinition- Overrides:
getKeyin classDmnDecisionImpl- Returns:
- the identifier or null if not set
-
setKey
- Specified by:
setKeyin interfaceResourceDefinitionEntity<DecisionDefinitionEntity>- Overrides:
setKeyin classDmnDecisionImpl
-
getVersion
public int getVersion()Description copied from interface:ResourceDefinitionversion of this definition- Specified by:
getVersionin interfaceResourceDefinition
-
setVersion
public void setVersion(int version) - Specified by:
setVersionin interfaceResourceDefinitionEntity<DecisionDefinitionEntity>
-
getDeploymentId
Description copied from interface:ResourceDefinitionThe deployment in which this definition is contained.- Specified by:
getDeploymentIdin interfaceResourceDefinition
-
setDeploymentId
- Specified by:
setDeploymentIdin interfaceResourceDefinitionEntity<DecisionDefinitionEntity>
-
getResourceName
Description copied from interface:ResourceDefinitionname ofthe resourceof this definition- Specified by:
getResourceNamein interfaceResourceDefinition
-
setResourceName
- Specified by:
setResourceNamein interfaceResourceDefinitionEntity<DecisionDefinitionEntity>
-
getDiagramResourceName
Description copied from interface:ResourceDefinitionThe diagram resource name for this definition if exist- Specified by:
getDiagramResourceNamein interfaceResourceDefinition
-
setDiagramResourceName
- Specified by:
setDiagramResourceNamein interfaceResourceDefinitionEntity<DecisionDefinitionEntity>
-
getTenantId
Description copied from interface:ResourceDefinitionThe id of the tenant this definition belongs to. Can benullif the definition belongs to no single tenant.- Specified by:
getTenantIdin interfaceResourceDefinition
-
setTenantId
- Specified by:
setTenantIdin interfaceResourceDefinitionEntity<DecisionDefinitionEntity>
-
getDecisionRequirementsDefinitionId
Description copied from interface:DecisionDefinitionReturns the id of the related decision requirements definition. Can benullif the decision has no relations to other decisions.- Specified by:
getDecisionRequirementsDefinitionIdin interfaceDecisionDefinition- Returns:
- the id of the decision requirements definition if exists.
-
setDecisionRequirementsDefinitionId
-
getDecisionRequirementsDefinitionKey
Description copied from interface:DecisionDefinitionReturns the key of the related decision requirements definition. Can benullif the decision has no relations to other decisions.- Specified by:
getDecisionRequirementsDefinitionKeyin interfaceDecisionDefinition- Returns:
- the key of the decision requirements definition if exists.
-
setDecisionRequirementsDefinitionKey
-
getPersistentState
Description copied from interface:DbEntityReturns a representation of the object, as would be stored in the database. Used when deciding if updates have occurred to the object or not since it was last loaded.- Specified by:
getPersistentStatein interfaceDbEntity
-
updateModifiableFieldsFromEntity
Updates all modifiable fields from another decision definition entity.- Specified by:
updateModifiableFieldsFromEntityin interfaceResourceDefinitionEntity<DecisionDefinitionEntity>- Parameters:
updatingDecisionDefinition-
-
getPreviousDefinition
- Specified by:
getPreviousDefinitionin interfaceResourceDefinitionEntity<DecisionDefinitionEntity>
-
loadDecisionDefinition
Returns the cached version if exists; does not update the entity from the database in that case -
getPreviousDecisionDefinitionId
-
setPreviousDecisionDefinitionId
-
resetPreviousDecisionDefinitionId
protected void resetPreviousDecisionDefinitionId() -
ensurePreviousDecisionDefinitionIdInitialized
protected void ensurePreviousDecisionDefinitionIdInitialized() -
getHistoryTimeToLive
Description copied from interface:ResourceDefinitionHistory time to live. Is taken into account in history cleanup.- Specified by:
getHistoryTimeToLivein interfaceResourceDefinition
-
setHistoryTimeToLive
- Specified by:
setHistoryTimeToLivein interfaceResourceDefinitionEntity<DecisionDefinitionEntity>
-
getVersionTag
Description copied from interface:DecisionDefinitionVersion tag of the decision definition.- Specified by:
getVersionTagin interfaceDecisionDefinition
-
setVersionTag
-
toString
- Overrides:
toStringin classDmnDecisionImpl
-