Class DecisionRequirementsDefinitionEntity
- java.lang.Object
-
- org.camunda.bpm.dmn.engine.impl.DmnDecisionRequirementsGraphImpl
-
- org.camunda.bpm.engine.impl.dmn.entity.repository.DecisionRequirementsDefinitionEntity
-
- All Implemented Interfaces:
java.io.Serializable
,DmnDecisionRequirementsGraph
,DbEntity
,HasDbRevision
,ResourceDefinitionEntity<DecisionRequirementsDefinitionEntity>
,DecisionRequirementsDefinition
,ResourceDefinition
public class DecisionRequirementsDefinitionEntity extends DmnDecisionRequirementsGraphImpl implements DecisionRequirementsDefinition, ResourceDefinitionEntity<DecisionRequirementsDefinitionEntity>, 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
deploymentId
protected java.lang.String
diagramResourceName
protected boolean
firstVersion
protected java.lang.String
id
protected java.lang.String
key
protected java.lang.String
name
protected java.lang.String
previousDecisionRequirementsDefinitionId
protected java.lang.String
resourceName
protected int
revision
protected java.lang.String
tenantId
protected int
version
-
Fields inherited from class org.camunda.bpm.dmn.engine.impl.DmnDecisionRequirementsGraphImpl
decisions
-
-
Constructor Summary
Constructors Constructor Description DecisionRequirementsDefinitionEntity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
ensurePreviousDecisionRequirementsDefinitionIdInitialized()
java.lang.String
getCategory()
category name which is derived from the targetNamespace attribute in the definitions elementjava.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 diagram if exists.java.lang.String
getName()
The human readable name of the diagram if exists.java.lang.Object
getPersistentState()
Returns a representation of the object, as would be stored in the database.java.lang.String
getPreviousDecisionRequirementsDefinitionId()
ResourceDefinitionEntity
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 definitionprotected DecisionRequirementsDefinitionEntity
loadDecisionRequirementsDefinition(java.lang.String decisionRequirementsDefinitionId)
Returns the cached version if exists; does not update the entity from the database in that caseprotected void
resetPreviousDecisionRequirementsDefinitionId()
void
setCategory(java.lang.String category)
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)
java.lang.String
toString()
void
updateModifiableFieldsFromEntity(DecisionRequirementsDefinitionEntity updatingDefinition)
-
Methods inherited from class org.camunda.bpm.dmn.engine.impl.DmnDecisionRequirementsGraphImpl
addDecision, getDecision, getDecisionKeys, getDecisions, setDecisions
-
-
-
-
Field Detail
-
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
-
firstVersion
protected boolean firstVersion
-
previousDecisionRequirementsDefinitionId
protected java.lang.String previousDecisionRequirementsDefinitionId
-
-
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
-
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
-
getName
public java.lang.String 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
public java.lang.String 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
public java.lang.String getResourceName()
Description copied from interface:ResourceDefinition
name ofthe resource
of this definition- Specified by:
getResourceName
in interfaceResourceDefinition
-
getDeploymentId
public java.lang.String getDeploymentId()
Description copied from interface:ResourceDefinition
The deployment in which this definition is contained.- Specified by:
getDeploymentId
in interfaceResourceDefinition
-
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
-
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
-
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
-
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
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
-
setId
public void setId(java.lang.String id)
- Specified by:
setId
in interfaceDbEntity
- Specified by:
setId
in interfaceResourceDefinitionEntity<DecisionRequirementsDefinitionEntity>
-
setCategory
public void setCategory(java.lang.String category)
- Specified by:
setCategory
in interfaceResourceDefinitionEntity<DecisionRequirementsDefinitionEntity>
-
setName
public void setName(java.lang.String name)
- Specified by:
setName
in interfaceResourceDefinitionEntity<DecisionRequirementsDefinitionEntity>
- Overrides:
setName
in classDmnDecisionRequirementsGraphImpl
-
setKey
public void setKey(java.lang.String key)
- Specified by:
setKey
in interfaceResourceDefinitionEntity<DecisionRequirementsDefinitionEntity>
- Overrides:
setKey
in classDmnDecisionRequirementsGraphImpl
-
setVersion
public void setVersion(int version)
- Specified by:
setVersion
in interfaceResourceDefinitionEntity<DecisionRequirementsDefinitionEntity>
-
setResourceName
public void setResourceName(java.lang.String resourceName)
- Specified by:
setResourceName
in interfaceResourceDefinitionEntity<DecisionRequirementsDefinitionEntity>
-
setDeploymentId
public void setDeploymentId(java.lang.String deploymentId)
- Specified by:
setDeploymentId
in interfaceResourceDefinitionEntity<DecisionRequirementsDefinitionEntity>
-
setDiagramResourceName
public void setDiagramResourceName(java.lang.String diagramResourceName)
- Specified by:
setDiagramResourceName
in interfaceResourceDefinitionEntity<DecisionRequirementsDefinitionEntity>
-
setTenantId
public void setTenantId(java.lang.String tenantId)
- Specified by:
setTenantId
in interfaceResourceDefinitionEntity<DecisionRequirementsDefinitionEntity>
-
getPreviousDefinition
public ResourceDefinitionEntity getPreviousDefinition()
- Specified by:
getPreviousDefinition
in interfaceResourceDefinitionEntity<DecisionRequirementsDefinitionEntity>
-
updateModifiableFieldsFromEntity
public void updateModifiableFieldsFromEntity(DecisionRequirementsDefinitionEntity updatingDefinition)
- Specified by:
updateModifiableFieldsFromEntity
in interfaceResourceDefinitionEntity<DecisionRequirementsDefinitionEntity>
-
loadDecisionRequirementsDefinition
protected DecisionRequirementsDefinitionEntity loadDecisionRequirementsDefinition(java.lang.String decisionRequirementsDefinitionId)
Returns the cached version if exists; does not update the entity from the database in that case
-
getPreviousDecisionRequirementsDefinitionId
public java.lang.String getPreviousDecisionRequirementsDefinitionId()
-
setPreviousDecisionDefinitionId
public void setPreviousDecisionDefinitionId(java.lang.String previousDecisionDefinitionId)
-
resetPreviousDecisionRequirementsDefinitionId
protected void resetPreviousDecisionRequirementsDefinitionId()
-
ensurePreviousDecisionRequirementsDefinitionIdInitialized
protected void ensurePreviousDecisionRequirementsDefinitionIdInitialized()
-
setHistoryTimeToLive
public void setHistoryTimeToLive(java.lang.Integer historyTimeToLive)
- Specified by:
setHistoryTimeToLive
in interfaceResourceDefinitionEntity<DecisionRequirementsDefinitionEntity>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classDmnDecisionRequirementsGraphImpl
-
-