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

java.lang.Object
  extended by org.camunda.bpm.dmn.engine.impl.DmnDecisionRequirementsGraphImpl
      extended by org.camunda.bpm.engine.impl.dmn.entity.repository.DecisionRequirementsDefinitionEntity
All Implemented Interfaces:
Serializable, org.camunda.bpm.dmn.engine.DmnDecisionRequirementsGraph, DbEntity, HasDbRevision, ResourceDefinitionEntity<DecisionRequirementsDefinitionEntity>, DecisionRequirementsDefinition, ResourceDefinition

public class DecisionRequirementsDefinitionEntity
extends org.camunda.bpm.dmn.engine.impl.DmnDecisionRequirementsGraphImpl
implements DecisionRequirementsDefinition, ResourceDefinitionEntity<DecisionRequirementsDefinitionEntity>, 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 previousDecisionRequirementsDefinitionId
           
protected  String resourceName
           
protected  int revision
           
protected  String tenantId
           
protected  int version
           
 
Fields inherited from class org.camunda.bpm.dmn.engine.impl.DmnDecisionRequirementsGraphImpl
decisions
 
Constructor Summary
DecisionRequirementsDefinitionEntity()
           
 
Method Summary
protected  void ensurePreviousDecisionRequirementsDefinitionIdInitialized()
           
 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
 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 getPreviousDecisionRequirementsDefinitionId()
           
 ResourceDefinitionEntity 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  DecisionRequirementsDefinitionEntity loadDecisionRequirementsDefinition(String decisionRequirementsDefinitionId)
          Returns the cached version if exists; does not update the entity from the database in that case
protected  void resetPreviousDecisionRequirementsDefinitionId()
           
 void setCategory(String category)
           
 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)
           
 String toString()
           
 void updateModifiableFieldsFromEntity(DecisionRequirementsDefinitionEntity updatingDefinition)
           
 
Methods inherited from class org.camunda.bpm.dmn.engine.impl.DmnDecisionRequirementsGraphImpl
addDecision, getDecision, getDecisionKeys, getDecisions, setDecisions
 
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

previousDecisionRequirementsDefinitionId

protected String previousDecisionRequirementsDefinitionId
Constructor Detail

DecisionRequirementsDefinitionEntity

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

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

getName

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

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

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.DmnDecisionRequirementsGraph
Specified by:
getKey in interface ResourceDefinition
Overrides:
getKey in class org.camunda.bpm.dmn.engine.impl.DmnDecisionRequirementsGraphImpl

getVersion

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

Specified by:
getVersion in interface ResourceDefinition

getResourceName

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

Specified by:
getResourceName in interface ResourceDefinition

getDeploymentId

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

Specified by:
getDeploymentId in interface ResourceDefinition

getDiagramResourceName

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

Specified by:
getDiagramResourceName in interface ResourceDefinition

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

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

setRevision

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

getRevision

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

getRevisionNext

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

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

setId

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

setCategory

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

setName

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

setKey

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

setVersion

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

setResourceName

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

setDeploymentId

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

setDiagramResourceName

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

setTenantId

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

getPreviousDefinition

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

updateModifiableFieldsFromEntity

public void updateModifiableFieldsFromEntity(DecisionRequirementsDefinitionEntity updatingDefinition)
Specified by:
updateModifiableFieldsFromEntity in interface ResourceDefinitionEntity<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

public String getPreviousDecisionRequirementsDefinitionId()

setPreviousDecisionDefinitionId

public void setPreviousDecisionDefinitionId(String previousDecisionDefinitionId)

resetPreviousDecisionRequirementsDefinitionId

protected void resetPreviousDecisionRequirementsDefinitionId()

ensurePreviousDecisionRequirementsDefinitionIdInitialized

protected void ensurePreviousDecisionRequirementsDefinitionIdInitialized()

setHistoryTimeToLive

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

toString

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


Copyright © 2017 camunda services GmbH. All rights reserved.