org.camunda.bpm.engine.impl.dmn.entity.repository
Class DecisionDefinitionEntity

java.lang.Object
  extended by org.camunda.bpm.dmn.engine.impl.DmnDecisionImpl
      extended by org.camunda.bpm.engine.impl.dmn.entity.repository.DecisionDefinitionEntity
All Implemented Interfaces:
Serializable, org.camunda.bpm.dmn.engine.DmnDecision, DbEntity, HasDbRevision, ResourceDefinitionEntity<DecisionDefinitionEntity>, DecisionDefinition, ResourceDefinition

public class DecisionDefinitionEntity
extends org.camunda.bpm.dmn.engine.impl.DmnDecisionImpl
implements DecisionDefinition, ResourceDefinitionEntity<DecisionDefinitionEntity>, DbEntity, HasDbRevision, Serializable

See Also:
Serialized Form

Field Summary
protected  String category
           
protected  String decisionRequirementsDefinitionId
           
protected  String decisionRequirementsDefinitionKey
           
protected  String deploymentId
           
protected  String diagramResourceName
           
protected  boolean firstVersion
           
protected  Integer historyTimeToLive
           
protected  String id
           
protected  String key
           
protected static EnginePersistenceLogger LOG
           
protected  String name
           
protected  String previousDecisionDefinitionId
           
protected  String resourceName
           
protected  int revision
           
protected  String tenantId
           
protected  int version
           
protected  String versionTag
           
 
Fields inherited from class org.camunda.bpm.dmn.engine.impl.DmnDecisionImpl
decisionLogic, requiredDecision
 
Constructor Summary
DecisionDefinitionEntity()
           
 
Method Summary
protected  void ensurePreviousDecisionDefinitionIdInitialized()
           
 String getCategory()
          category name which is derived from the targetNamespace attribute in the definitions element
 String getDecisionRequirementsDefinitionId()
          Returns the id of the related decision requirements definition.
 String getDecisionRequirementsDefinitionKey()
          Returns the key of the related decision requirements definition.
 String getDeploymentId()
          The deployment in which this definition is contained.
 String getDiagramResourceName()
          The diagram resource name for this definition if exist
 Integer getHistoryTimeToLive()
          History time to live.
 String getId()
          unique identifier
 String getKey()
          unique name for all versions this definition
 String getName()
          label used for display purposes
 Object getPersistentState()
          Returns a representation of the object, as would be stored in the database.
 String getPreviousDecisionDefinitionId()
           
 DecisionDefinitionEntity getPreviousDefinition()
           
 String getResourceName()
          name of the resource of this definition
 int getRevision()
           
 int getRevisionNext()
           
 String getTenantId()
          The id of the tenant this definition belongs to.
 int getVersion()
          version of this definition
 String getVersionTag()
          Version 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 case
protected  void resetPreviousDecisionDefinitionId()
           
 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 setId(String id)
           
 void setKey(String key)
           
 void setName(String name)
           
 void setPreviousDecisionDefinitionId(String previousDecisionDefinitionId)
           
 void setResourceName(String resourceName)
           
 void setRevision(int revision)
           
 void setTenantId(String tenantId)
           
 void setVersion(int version)
           
 void setVersionTag(String versionTag)
           
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LOG

protected static final EnginePersistenceLogger LOG

id

protected String id

revision

protected int revision

name

protected String name

category

protected String category

key

protected String key

version

protected int version

deploymentId

protected String deploymentId

resourceName

protected String resourceName

diagramResourceName

protected String diagramResourceName

tenantId

protected String tenantId

decisionRequirementsDefinitionId

protected String decisionRequirementsDefinitionId

decisionRequirementsDefinitionKey

protected String decisionRequirementsDefinitionKey

firstVersion

protected boolean firstVersion

previousDecisionDefinitionId

protected String previousDecisionDefinitionId

historyTimeToLive

protected Integer historyTimeToLive

versionTag

protected String versionTag
Constructor Detail

DecisionDefinitionEntity

public DecisionDefinitionEntity()
Method Detail

getId

public String getId()
Description copied from interface: ResourceDefinition
unique identifier

Specified by:
getId in interface DbEntity
Specified by:
getId in interface ResourceDefinition

setId

public void setId(String id)
Specified by:
setId in interface DbEntity
Specified by:
setId in interface ResourceDefinitionEntity<DecisionDefinitionEntity>

getRevision

public int getRevision()
Specified by:
getRevision in interface HasDbRevision

setRevision

public void setRevision(int revision)
Specified by:
setRevision in interface HasDbRevision

getRevisionNext

public int getRevisionNext()
Specified by:
getRevisionNext in interface HasDbRevision

getName

public String getName()
Description copied from interface: ResourceDefinition
label used for display purposes

Specified by:
getName in interface org.camunda.bpm.dmn.engine.DmnDecision
Specified by:
getName in interface ResourceDefinition
Overrides:
getName in class org.camunda.bpm.dmn.engine.impl.DmnDecisionImpl

setName

public void setName(String name)
Specified by:
setName in interface ResourceDefinitionEntity<DecisionDefinitionEntity>
Overrides:
setName in class org.camunda.bpm.dmn.engine.impl.DmnDecisionImpl

getCategory

public String getCategory()
Description copied from interface: ResourceDefinition
category name which is derived from the targetNamespace attribute in the definitions element

Specified by:
getCategory in interface ResourceDefinition

setCategory

public void setCategory(String category)
Specified by:
setCategory in interface ResourceDefinitionEntity<DecisionDefinitionEntity>

getKey

public String getKey()
Description copied from interface: ResourceDefinition
unique name for all versions this definition

Specified by:
getKey in interface org.camunda.bpm.dmn.engine.DmnDecision
Specified by:
getKey in interface ResourceDefinition
Overrides:
getKey in class org.camunda.bpm.dmn.engine.impl.DmnDecisionImpl

setKey

public void setKey(String key)
Specified by:
setKey in interface ResourceDefinitionEntity<DecisionDefinitionEntity>
Overrides:
setKey in class org.camunda.bpm.dmn.engine.impl.DmnDecisionImpl

getVersion

public int getVersion()
Description copied from interface: ResourceDefinition
version of this definition

Specified by:
getVersion in interface ResourceDefinition

setVersion

public void setVersion(int version)
Specified by:
setVersion in interface ResourceDefinitionEntity<DecisionDefinitionEntity>

getDeploymentId

public String getDeploymentId()
Description copied from interface: ResourceDefinition
The deployment in which this definition is contained.

Specified by:
getDeploymentId in interface ResourceDefinition

setDeploymentId

public void setDeploymentId(String deploymentId)
Specified by:
setDeploymentId in interface ResourceDefinitionEntity<DecisionDefinitionEntity>

getResourceName

public String getResourceName()
Description copied from interface: ResourceDefinition
name of the resource of this definition

Specified by:
getResourceName in interface ResourceDefinition

setResourceName

public void setResourceName(String resourceName)
Specified by:
setResourceName in interface ResourceDefinitionEntity<DecisionDefinitionEntity>

getDiagramResourceName

public String getDiagramResourceName()
Description copied from interface: ResourceDefinition
The diagram resource name for this definition if exist

Specified by:
getDiagramResourceName in interface ResourceDefinition

setDiagramResourceName

public void setDiagramResourceName(String diagramResourceName)
Specified by:
setDiagramResourceName in interface ResourceDefinitionEntity<DecisionDefinitionEntity>

getTenantId

public String getTenantId()
Description copied from interface: ResourceDefinition
The id of the tenant this definition belongs to. Can be null if the definition belongs to no single tenant.

Specified by:
getTenantId in interface ResourceDefinition

setTenantId

public void setTenantId(String tenantId)
Specified by:
setTenantId in interface ResourceDefinitionEntity<DecisionDefinitionEntity>

getDecisionRequirementsDefinitionId

public String getDecisionRequirementsDefinitionId()
Description copied from interface: DecisionDefinition
Returns the id of the related decision requirements definition. Can be null if the decision has no relations to other decisions.

Specified by:
getDecisionRequirementsDefinitionId in interface DecisionDefinition
Returns:
the id of the decision requirements definition if exists.

setDecisionRequirementsDefinitionId

public void setDecisionRequirementsDefinitionId(String decisionRequirementsDefinitionId)

getDecisionRequirementsDefinitionKey

public String getDecisionRequirementsDefinitionKey()
Description copied from interface: DecisionDefinition
Returns the key of the related decision requirements definition. Can be null if the decision has no relations to other decisions.

Specified by:
getDecisionRequirementsDefinitionKey in interface DecisionDefinition
Returns:
the key of the decision requirements definition if exists.

setDecisionRequirementsDefinitionKey

public void setDecisionRequirementsDefinitionKey(String decisionRequirementsDefinitionKey)

getPersistentState

public 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 interface DbEntity

updateModifiableFieldsFromEntity

public void updateModifiableFieldsFromEntity(DecisionDefinitionEntity updatingDecisionDefinition)
Updates all modifiable fields from another decision definition entity.

Specified by:
updateModifiableFieldsFromEntity in interface ResourceDefinitionEntity<DecisionDefinitionEntity>
Parameters:
updatingDecisionDefinition -

getPreviousDefinition

public DecisionDefinitionEntity getPreviousDefinition()
Specified by:
getPreviousDefinition in interface ResourceDefinitionEntity<DecisionDefinitionEntity>

loadDecisionDefinition

protected DecisionDefinitionEntity loadDecisionDefinition(String decisionDefinitionId)
Returns the cached version if exists; does not update the entity from the database in that case


getPreviousDecisionDefinitionId

public String getPreviousDecisionDefinitionId()

setPreviousDecisionDefinitionId

public void setPreviousDecisionDefinitionId(String previousDecisionDefinitionId)

resetPreviousDecisionDefinitionId

protected void resetPreviousDecisionDefinitionId()

ensurePreviousDecisionDefinitionIdInitialized

protected void ensurePreviousDecisionDefinitionIdInitialized()

getHistoryTimeToLive

public Integer getHistoryTimeToLive()
Description copied from interface: ResourceDefinition
History time to live. Is taken into account in history cleanup.

Specified by:
getHistoryTimeToLive in interface ResourceDefinition

setHistoryTimeToLive

public void setHistoryTimeToLive(Integer historyTimeToLive)
Specified by:
setHistoryTimeToLive in interface ResourceDefinitionEntity<DecisionDefinitionEntity>

getVersionTag

public String getVersionTag()
Description copied from interface: DecisionDefinition
Version tag of the decision definition.

Specified by:
getVersionTag in interface DecisionDefinition

setVersionTag

public void setVersionTag(String versionTag)

toString

public String toString()
Overrides:
toString in class org.camunda.bpm.dmn.engine.impl.DmnDecisionImpl


Copyright © 2017 camunda services GmbH. All rights reserved.