Class DecisionRequirementsDefinitionEntity
java.lang.Object
org.camunda.bpm.dmn.engine.impl.DmnDecisionRequirementsGraphImpl
org.camunda.bpm.engine.impl.dmn.entity.repository.DecisionRequirementsDefinitionEntity
- All Implemented Interfaces:
Serializable
,DmnDecisionRequirementsGraph
,DbEntity
,HasDbRevision
,ResourceDefinitionEntity<DecisionRequirementsDefinitionEntity>
,DecisionRequirementsDefinition
,ResourceDefinition
public class DecisionRequirementsDefinitionEntity
extends DmnDecisionRequirementsGraphImpl
implements DecisionRequirementsDefinition, ResourceDefinitionEntity<DecisionRequirementsDefinitionEntity>, DbEntity, HasDbRevision, Serializable
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
protected String
protected String
protected boolean
protected String
protected String
protected String
protected String
protected String
protected int
protected String
protected int
Fields inherited from class org.camunda.bpm.dmn.engine.impl.DmnDecisionRequirementsGraphImpl
decisions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
category name which is derived from the targetNamespace attribute in the definitions elementThe 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 diagram if exists.getName()
The human readable name of the diagram 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 definitionprotected DecisionRequirementsDefinitionEntity
loadDecisionRequirementsDefinition
(String decisionRequirementsDefinitionId) Returns the cached version if exists; does not update the entity from the database in that caseprotected void
void
setCategory
(String category) 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) toString()
void
updateModifiableFieldsFromEntity
(DecisionRequirementsDefinitionEntity updatingDefinition) Methods inherited from class org.camunda.bpm.dmn.engine.impl.DmnDecisionRequirementsGraphImpl
addDecision, getDecision, getDecisionKeys, getDecisions, setDecisions
-
Field Details
-
id
-
revision
protected int revision -
name
-
category
-
key
-
version
protected int version -
deploymentId
-
resourceName
-
diagramResourceName
-
tenantId
-
firstVersion
protected boolean firstVersion -
previousDecisionRequirementsDefinitionId
-
-
Constructor Details
-
DecisionRequirementsDefinitionEntity
public DecisionRequirementsDefinitionEntity()
-
-
Method Details
-
getId
Description copied from interface:ResourceDefinition
unique identifier- Specified by:
getId
in interfaceDbEntity
- Specified by:
getId
in interfaceResourceDefinition
-
getCategory
Description copied from interface:ResourceDefinition
category name which is derived from the targetNamespace attribute in the definitions element- Specified by:
getCategory
in interfaceResourceDefinition
-
getName
Description copied from interface:DmnDecisionRequirementsGraph
The human readable name of the diagram if exists.- Specified by:
getName
in interfaceDmnDecisionRequirementsGraph
- Specified by:
getName
in interfaceResourceDefinition
- Overrides:
getName
in classDmnDecisionRequirementsGraphImpl
- Returns:
- the name or null if not set
-
getKey
Description copied from interface:DmnDecisionRequirementsGraph
The unique identifier of the diagram if exists.- Specified by:
getKey
in interfaceDmnDecisionRequirementsGraph
- Specified by:
getKey
in interfaceResourceDefinition
- Overrides:
getKey
in classDmnDecisionRequirementsGraphImpl
- Returns:
- the identifier or null if not set
-
getVersion
public int getVersion()Description copied from interface:ResourceDefinition
version of this definition- Specified by:
getVersion
in interfaceResourceDefinition
-
getResourceName
Description copied from interface:ResourceDefinition
name ofthe resource
of this definition- Specified by:
getResourceName
in interfaceResourceDefinition
-
getDeploymentId
Description copied from interface:ResourceDefinition
The deployment in which this definition is contained.- Specified by:
getDeploymentId
in interfaceResourceDefinition
-
getDiagramResourceName
Description copied from interface:ResourceDefinition
The diagram resource name for this definition if exist- Specified by:
getDiagramResourceName
in interfaceResourceDefinition
-
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
-
getHistoryTimeToLive
Description copied from interface:ResourceDefinition
History time to live. Is taken into account in history cleanup.- Specified by:
getHistoryTimeToLive
in interfaceResourceDefinition
-
setRevision
public void setRevision(int revision) - Specified by:
setRevision
in interfaceHasDbRevision
-
getRevision
public int getRevision()- Specified by:
getRevision
in interfaceHasDbRevision
-
getRevisionNext
public int getRevisionNext()- Specified by:
getRevisionNext
in interfaceHasDbRevision
-
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
-
setId
- Specified by:
setId
in interfaceDbEntity
- Specified by:
setId
in interfaceResourceDefinitionEntity<DecisionRequirementsDefinitionEntity>
-
setCategory
- Specified by:
setCategory
in interfaceResourceDefinitionEntity<DecisionRequirementsDefinitionEntity>
-
setName
- Specified by:
setName
in interfaceResourceDefinitionEntity<DecisionRequirementsDefinitionEntity>
- Overrides:
setName
in classDmnDecisionRequirementsGraphImpl
-
setKey
- Specified by:
setKey
in interfaceResourceDefinitionEntity<DecisionRequirementsDefinitionEntity>
- Overrides:
setKey
in classDmnDecisionRequirementsGraphImpl
-
setVersion
public void setVersion(int version) - Specified by:
setVersion
in interfaceResourceDefinitionEntity<DecisionRequirementsDefinitionEntity>
-
setResourceName
- Specified by:
setResourceName
in interfaceResourceDefinitionEntity<DecisionRequirementsDefinitionEntity>
-
setDeploymentId
- Specified by:
setDeploymentId
in interfaceResourceDefinitionEntity<DecisionRequirementsDefinitionEntity>
-
setDiagramResourceName
- Specified by:
setDiagramResourceName
in interfaceResourceDefinitionEntity<DecisionRequirementsDefinitionEntity>
-
setTenantId
- Specified by:
setTenantId
in interfaceResourceDefinitionEntity<DecisionRequirementsDefinitionEntity>
-
getPreviousDefinition
- Specified by:
getPreviousDefinition
in interfaceResourceDefinitionEntity<DecisionRequirementsDefinitionEntity>
-
updateModifiableFieldsFromEntity
public void updateModifiableFieldsFromEntity(DecisionRequirementsDefinitionEntity updatingDefinition) - Specified by:
updateModifiableFieldsFromEntity
in interfaceResourceDefinitionEntity<DecisionRequirementsDefinitionEntity>
-
loadDecisionRequirementsDefinition
protected DecisionRequirementsDefinitionEntity loadDecisionRequirementsDefinition(String decisionRequirementsDefinitionId) Returns the cached version if exists; does not update the entity from the database in that case -
getPreviousDecisionRequirementsDefinitionId
-
setPreviousDecisionDefinitionId
-
resetPreviousDecisionRequirementsDefinitionId
protected void resetPreviousDecisionRequirementsDefinitionId() -
ensurePreviousDecisionRequirementsDefinitionIdInitialized
protected void ensurePreviousDecisionRequirementsDefinitionIdInitialized() -
setHistoryTimeToLive
- Specified by:
setHistoryTimeToLive
in interfaceResourceDefinitionEntity<DecisionRequirementsDefinitionEntity>
-
toString
- Overrides:
toString
in classDmnDecisionRequirementsGraphImpl
-