Class DecisionDefinitionEntity
- java.lang.Object
-
- org.camunda.bpm.dmn.engine.impl.DmnDecisionImpl
-
- org.camunda.bpm.engine.impl.dmn.entity.repository.DecisionDefinitionEntity
-
- All Implemented Interfaces:
java.io.Serializable
,DmnDecision
,DbEntity
,HasDbRevision
,ResourceDefinitionEntity<DecisionDefinitionEntity>
,DecisionDefinition
,ResourceDefinition
public class DecisionDefinitionEntity extends DmnDecisionImpl implements DecisionDefinition, ResourceDefinitionEntity<DecisionDefinitionEntity>, DbEntity, HasDbRevision, java.io.Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
category
protected java.lang.String
decisionRequirementsDefinitionId
protected java.lang.String
decisionRequirementsDefinitionKey
protected java.lang.String
deploymentId
protected java.lang.String
diagramResourceName
protected boolean
firstVersion
protected java.lang.Integer
historyTimeToLive
protected java.lang.String
id
protected java.lang.String
key
protected static EnginePersistenceLogger
LOG
protected java.lang.String
name
protected java.lang.String
previousDecisionDefinitionId
protected java.lang.String
resourceName
protected int
revision
protected java.lang.String
tenantId
protected int
version
protected java.lang.String
versionTag
-
Fields inherited from class org.camunda.bpm.dmn.engine.impl.DmnDecisionImpl
decisionLogic, requiredDecision
-
-
Constructor Summary
Constructors Constructor Description DecisionDefinitionEntity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
ensurePreviousDecisionDefinitionIdInitialized()
java.lang.String
getCategory()
category name which is derived from the targetNamespace attribute in the definitions elementjava.lang.String
getDecisionRequirementsDefinitionId()
Returns the id of the related decision requirements definition.java.lang.String
getDecisionRequirementsDefinitionKey()
Returns the key of the related decision requirements definition.java.lang.String
getDeploymentId()
The deployment in which this definition is contained.java.lang.String
getDiagramResourceName()
The diagram resource name for this definition if existjava.lang.Integer
getHistoryTimeToLive()
History time to live.java.lang.String
getId()
unique identifierjava.lang.String
getKey()
The unique identifier of the decision if exists.java.lang.String
getName()
The human readable name of the decision if exists.java.lang.Object
getPersistentState()
Returns a representation of the object, as would be stored in the database.java.lang.String
getPreviousDecisionDefinitionId()
DecisionDefinitionEntity
getPreviousDefinition()
java.lang.String
getResourceName()
name ofthe resource
of this definitionint
getRevision()
int
getRevisionNext()
java.lang.String
getTenantId()
The id of the tenant this definition belongs to.int
getVersion()
version of this definitionjava.lang.String
getVersionTag()
Version tag of the decision definition.protected DecisionDefinitionEntity
loadDecisionDefinition(java.lang.String decisionDefinitionId)
Returns the cached version if exists; does not update the entity from the database in that caseprotected void
resetPreviousDecisionDefinitionId()
void
setCategory(java.lang.String category)
void
setDecisionRequirementsDefinitionId(java.lang.String decisionRequirementsDefinitionId)
void
setDecisionRequirementsDefinitionKey(java.lang.String decisionRequirementsDefinitionKey)
void
setDeploymentId(java.lang.String deploymentId)
void
setDiagramResourceName(java.lang.String diagramResourceName)
void
setHistoryTimeToLive(java.lang.Integer historyTimeToLive)
void
setId(java.lang.String id)
void
setKey(java.lang.String key)
void
setName(java.lang.String name)
void
setPreviousDecisionDefinitionId(java.lang.String previousDecisionDefinitionId)
void
setResourceName(java.lang.String resourceName)
void
setRevision(int revision)
void
setTenantId(java.lang.String tenantId)
void
setVersion(int version)
void
setVersionTag(java.lang.String versionTag)
java.lang.String
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 Detail
-
LOG
protected static final EnginePersistenceLogger LOG
-
id
protected java.lang.String id
-
revision
protected int revision
-
name
protected java.lang.String name
-
category
protected java.lang.String category
-
key
protected java.lang.String key
-
version
protected int version
-
deploymentId
protected java.lang.String deploymentId
-
resourceName
protected java.lang.String resourceName
-
diagramResourceName
protected java.lang.String diagramResourceName
-
tenantId
protected java.lang.String tenantId
-
decisionRequirementsDefinitionId
protected java.lang.String decisionRequirementsDefinitionId
-
decisionRequirementsDefinitionKey
protected java.lang.String decisionRequirementsDefinitionKey
-
firstVersion
protected boolean firstVersion
-
previousDecisionDefinitionId
protected java.lang.String previousDecisionDefinitionId
-
historyTimeToLive
protected java.lang.Integer historyTimeToLive
-
versionTag
protected java.lang.String versionTag
-
-
Method Detail
-
getId
public java.lang.String getId()
Description copied from interface:ResourceDefinition
unique identifier- Specified by:
getId
in interfaceDbEntity
- Specified by:
getId
in interfaceResourceDefinition
-
setId
public void setId(java.lang.String id)
- 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
public java.lang.String 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
public void setName(java.lang.String name)
- Specified by:
setName
in interfaceResourceDefinitionEntity<DecisionDefinitionEntity>
- Overrides:
setName
in classDmnDecisionImpl
-
getCategory
public java.lang.String 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
public void setCategory(java.lang.String category)
- Specified by:
setCategory
in interfaceResourceDefinitionEntity<DecisionDefinitionEntity>
-
getKey
public java.lang.String 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
public void setKey(java.lang.String key)
- 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
public java.lang.String getDeploymentId()
Description copied from interface:ResourceDefinition
The deployment in which this definition is contained.- Specified by:
getDeploymentId
in interfaceResourceDefinition
-
setDeploymentId
public void setDeploymentId(java.lang.String deploymentId)
- Specified by:
setDeploymentId
in interfaceResourceDefinitionEntity<DecisionDefinitionEntity>
-
getResourceName
public java.lang.String getResourceName()
Description copied from interface:ResourceDefinition
name ofthe resource
of this definition- Specified by:
getResourceName
in interfaceResourceDefinition
-
setResourceName
public void setResourceName(java.lang.String resourceName)
- Specified by:
setResourceName
in interfaceResourceDefinitionEntity<DecisionDefinitionEntity>
-
getDiagramResourceName
public java.lang.String getDiagramResourceName()
Description copied from interface:ResourceDefinition
The diagram resource name for this definition if exist- Specified by:
getDiagramResourceName
in interfaceResourceDefinition
-
setDiagramResourceName
public void setDiagramResourceName(java.lang.String diagramResourceName)
- Specified by:
setDiagramResourceName
in interfaceResourceDefinitionEntity<DecisionDefinitionEntity>
-
getTenantId
public java.lang.String 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
public void setTenantId(java.lang.String tenantId)
- Specified by:
setTenantId
in interfaceResourceDefinitionEntity<DecisionDefinitionEntity>
-
getDecisionRequirementsDefinitionId
public java.lang.String 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
public void setDecisionRequirementsDefinitionId(java.lang.String decisionRequirementsDefinitionId)
-
getDecisionRequirementsDefinitionKey
public java.lang.String 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
public void setDecisionRequirementsDefinitionKey(java.lang.String decisionRequirementsDefinitionKey)
-
getPersistentState
public java.lang.Object 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
public void updateModifiableFieldsFromEntity(DecisionDefinitionEntity updatingDecisionDefinition)
Updates all modifiable fields from another decision definition entity.- Specified by:
updateModifiableFieldsFromEntity
in interfaceResourceDefinitionEntity<DecisionDefinitionEntity>
- Parameters:
updatingDecisionDefinition
-
-
getPreviousDefinition
public DecisionDefinitionEntity getPreviousDefinition()
- Specified by:
getPreviousDefinition
in interfaceResourceDefinitionEntity<DecisionDefinitionEntity>
-
loadDecisionDefinition
protected DecisionDefinitionEntity loadDecisionDefinition(java.lang.String decisionDefinitionId)
Returns the cached version if exists; does not update the entity from the database in that case
-
getPreviousDecisionDefinitionId
public java.lang.String getPreviousDecisionDefinitionId()
-
setPreviousDecisionDefinitionId
public void setPreviousDecisionDefinitionId(java.lang.String previousDecisionDefinitionId)
-
resetPreviousDecisionDefinitionId
protected void resetPreviousDecisionDefinitionId()
-
ensurePreviousDecisionDefinitionIdInitialized
protected void ensurePreviousDecisionDefinitionIdInitialized()
-
getHistoryTimeToLive
public java.lang.Integer getHistoryTimeToLive()
Description copied from interface:ResourceDefinition
History time to live. Is taken into account in history cleanup.- Specified by:
getHistoryTimeToLive
in interfaceResourceDefinition
-
setHistoryTimeToLive
public void setHistoryTimeToLive(java.lang.Integer historyTimeToLive)
- Specified by:
setHistoryTimeToLive
in interfaceResourceDefinitionEntity<DecisionDefinitionEntity>
-
getVersionTag
public java.lang.String getVersionTag()
Description copied from interface:DecisionDefinition
Version tag of the decision definition.- Specified by:
getVersionTag
in interfaceDecisionDefinition
-
setVersionTag
public void setVersionTag(java.lang.String versionTag)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classDmnDecisionImpl
-
-