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

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

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

See Also:
Serialized Form

Field Summary
protected  String category
           
protected  String deploymentId
           
protected  String diagramResourceName
           
protected  boolean firstVersion
           
protected  String id
           
protected  String key
           
protected  String name
           
protected  String previousDecisionDefinitionId
           
protected  String resourceName
           
protected  int revision
           
protected  String tenantId
           
protected  int version
           
 
Fields inherited from class org.camunda.bpm.dmn.engine.impl.DmnDecisionTableImpl
hitPolicyHandler, inputs, outputs, rules
 
Constructor Summary
DecisionDefinitionEntity()
           
 
Method Summary
protected  void ensurePreviousDecisionDefinitionIdInitialized()
           
 String getCategory()
          category name which is derived from the targetNamespace attribute in the definitions element
 String getDeploymentId()
          The deployment in which this definition is contained.
 String getDiagramResourceName()
          The diagram resource name for this definition if exist
 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
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 setDeploymentId(String deploymentId)
           
 void setDiagramResourceName(String diagramResourceName)
           
 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)
           
 String toString()
           
 
Methods inherited from class org.camunda.bpm.dmn.engine.impl.DmnDecisionTableImpl
getHitPolicyHandler, getInputs, getOutputs, getRules, isDecisionTable, setHitPolicyHandler, setInputs, setOutputs, setRules
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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

firstVersion

protected boolean firstVersion

previousDecisionDefinitionId

protected String previousDecisionDefinitionId
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

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.DmnDecisionTableImpl

setName

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

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

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.DmnDecisionTableImpl

setKey

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

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

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

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

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

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

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

getPreviousDefinition

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

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()

toString

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


Copyright © 2016 camunda services GmbH. All rights reserved.