Class DecisionDefinitionEntity
java.lang.Object
org.camunda.bpm.dmn.engine.impl.DmnDecisionImpl
org.camunda.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
Modifier and TypeFieldDescriptionprotected String
protected String
protected String
protected String
protected String
protected boolean
protected Integer
protected String
protected String
protected static final EnginePersistenceLogger
protected String
protected String
protected String
protected int
protected String
protected int
protected String
Fields inherited from class org.camunda.bpm.dmn.engine.impl.DmnDecisionImpl
decisionLogic, requiredDecision
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
category 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 resource
of this definitionint
int
The id of the tenant this definition belongs to.int
version of this definitionVersion tag of the decision definition.protected DecisionDefinitionEntity
loadDecisionDefinition
(String decisionDefinitionId) Returns the cached version if exists; does not update the entity from the database in that caseprotected void
void
setCategory
(String category) void
setDecisionRequirementsDefinitionId
(String decisionRequirementsDefinitionId) void
setDecisionRequirementsDefinitionKey
(String decisionRequirementsDefinitionKey) void
setDeploymentId
(String deploymentId) void
setDiagramResourceName
(String diagramResourceName) void
setHistoryTimeToLive
(Integer historyTimeToLive) void
void
void
void
setPreviousDecisionDefinitionId
(String previousDecisionDefinitionId) void
setResourceName
(String resourceName) void
setRevision
(int revision) void
setTenantId
(String tenantId) void
setVersion
(int version) void
setVersionTag
(String versionTag) toString()
void
updateModifiableFieldsFromEntity
(DecisionDefinitionEntity updatingDecisionDefinition) Updates all modifiable fields from another decision definition entity.Methods inherited from class org.camunda.bpm.dmn.engine.impl.DmnDecisionImpl
getDecisionLogic, getRequiredDecisions, isDecisionTable, setDecisionLogic, setRequiredDecision
-
Field Details
-
LOG
-
id
-
revision
protected int revision -
name
-
category
-
key
-
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:ResourceDefinition
unique identifier- Specified by:
getId
in interfaceDbEntity
- Specified by:
getId
in interfaceResourceDefinition
-
setId
- Specified by:
setId
in interfaceDbEntity
- Specified by:
setId
in interfaceResourceDefinitionEntity<DecisionDefinitionEntity>
-
getRevision
public int getRevision()- Specified by:
getRevision
in interfaceHasDbRevision
-
setRevision
public void setRevision(int revision) - Specified by:
setRevision
in interfaceHasDbRevision
-
getRevisionNext
public int getRevisionNext()- Specified by:
getRevisionNext
in interfaceHasDbRevision
-
getName
Description copied from interface:DmnDecision
The human readable name of the decision if exists.- Specified by:
getName
in interfaceDmnDecision
- Specified by:
getName
in interfaceResourceDefinition
- Overrides:
getName
in classDmnDecisionImpl
- Returns:
- the name or null if not set
-
setName
- Specified by:
setName
in interfaceResourceDefinitionEntity<DecisionDefinitionEntity>
- Overrides:
setName
in classDmnDecisionImpl
-
getCategory
Description copied from interface:ResourceDefinition
category name which is derived from the targetNamespace attribute in the definitions element- Specified by:
getCategory
in interfaceResourceDefinition
-
setCategory
- Specified by:
setCategory
in interfaceResourceDefinitionEntity<DecisionDefinitionEntity>
-
getKey
Description copied from interface:DmnDecision
The unique identifier of the decision if exists.- Specified by:
getKey
in interfaceDmnDecision
- Specified by:
getKey
in interfaceResourceDefinition
- Overrides:
getKey
in classDmnDecisionImpl
- Returns:
- the identifier or null if not set
-
setKey
- Specified by:
setKey
in interfaceResourceDefinitionEntity<DecisionDefinitionEntity>
- Overrides:
setKey
in classDmnDecisionImpl
-
getVersion
public int getVersion()Description copied from interface:ResourceDefinition
version of this definition- Specified by:
getVersion
in interfaceResourceDefinition
-
setVersion
public void setVersion(int version) - Specified by:
setVersion
in interfaceResourceDefinitionEntity<DecisionDefinitionEntity>
-
getDeploymentId
Description copied from interface:ResourceDefinition
The deployment in which this definition is contained.- Specified by:
getDeploymentId
in interfaceResourceDefinition
-
setDeploymentId
- Specified by:
setDeploymentId
in interfaceResourceDefinitionEntity<DecisionDefinitionEntity>
-
getResourceName
Description copied from interface:ResourceDefinition
name ofthe resource
of this definition- Specified by:
getResourceName
in interfaceResourceDefinition
-
setResourceName
- Specified by:
setResourceName
in interfaceResourceDefinitionEntity<DecisionDefinitionEntity>
-
getDiagramResourceName
Description copied from interface:ResourceDefinition
The diagram resource name for this definition if exist- Specified by:
getDiagramResourceName
in interfaceResourceDefinition
-
setDiagramResourceName
- Specified by:
setDiagramResourceName
in interfaceResourceDefinitionEntity<DecisionDefinitionEntity>
-
getTenantId
Description copied from interface:ResourceDefinition
The id of the tenant this definition belongs to. Can benull
if the definition belongs to no single tenant.- Specified by:
getTenantId
in interfaceResourceDefinition
-
setTenantId
- Specified by:
setTenantId
in interfaceResourceDefinitionEntity<DecisionDefinitionEntity>
-
getDecisionRequirementsDefinitionId
Description copied from interface:DecisionDefinition
Returns the id of the related decision requirements definition. Can benull
if the decision has no relations to other decisions.- Specified by:
getDecisionRequirementsDefinitionId
in interfaceDecisionDefinition
- Returns:
- the id of the decision requirements definition if exists.
-
setDecisionRequirementsDefinitionId
-
getDecisionRequirementsDefinitionKey
Description copied from interface:DecisionDefinition
Returns the key of the related decision requirements definition. Can benull
if the decision has no relations to other decisions.- Specified by:
getDecisionRequirementsDefinitionKey
in interfaceDecisionDefinition
- Returns:
- the key of the decision requirements definition if exists.
-
setDecisionRequirementsDefinitionKey
-
getPersistentState
Description copied from interface:DbEntity
Returns 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:
getPersistentState
in interfaceDbEntity
-
updateModifiableFieldsFromEntity
Updates all modifiable fields from another decision definition entity.- Specified by:
updateModifiableFieldsFromEntity
in interfaceResourceDefinitionEntity<DecisionDefinitionEntity>
- Parameters:
updatingDecisionDefinition
-
-
getPreviousDefinition
- Specified by:
getPreviousDefinition
in 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:ResourceDefinition
History time to live. Is taken into account in history cleanup.- Specified by:
getHistoryTimeToLive
in interfaceResourceDefinition
-
setHistoryTimeToLive
- Specified by:
setHistoryTimeToLive
in interfaceResourceDefinitionEntity<DecisionDefinitionEntity>
-
getVersionTag
Description copied from interface:DecisionDefinition
Version tag of the decision definition.- Specified by:
getVersionTag
in interfaceDecisionDefinition
-
setVersionTag
-
toString
- Overrides:
toString
in classDmnDecisionImpl
-