public class DecisionDefinitionEntity extends DmnDecisionImpl implements DecisionDefinition, ResourceDefinitionEntity<DecisionDefinitionEntity>, DbEntity, HasDbRevision, Serializable
| Modifier and Type | Field and Description |
|---|---|
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 |
decisionLogic, requiredDecision| Constructor and Description |
|---|
DecisionDefinitionEntity() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
getDecisionLogic, getRequiredDecisions, isDecisionTable, setDecisionLogic, setRequiredDecisionprotected static final EnginePersistenceLogger LOG
protected String id
protected int revision
protected String name
protected String category
protected String key
protected int version
protected String deploymentId
protected String resourceName
protected String diagramResourceName
protected String tenantId
protected String decisionRequirementsDefinitionId
protected String decisionRequirementsDefinitionKey
protected boolean firstVersion
protected String previousDecisionDefinitionId
protected Integer historyTimeToLive
protected String versionTag
public String getId()
ResourceDefinitiongetId in interface DbEntitygetId in interface ResourceDefinitionpublic void setId(String id)
setId in interface DbEntitysetId in interface ResourceDefinitionEntity<DecisionDefinitionEntity>public int getRevision()
getRevision in interface HasDbRevisionpublic void setRevision(int revision)
setRevision in interface HasDbRevisionpublic int getRevisionNext()
getRevisionNext in interface HasDbRevisionpublic String getName()
ResourceDefinitiongetName in interface DmnDecisiongetName in interface ResourceDefinitiongetName in class DmnDecisionImplpublic void setName(String name)
setName in interface ResourceDefinitionEntity<DecisionDefinitionEntity>setName in class DmnDecisionImplpublic String getCategory()
ResourceDefinitiongetCategory in interface ResourceDefinitionpublic void setCategory(String category)
setCategory in interface ResourceDefinitionEntity<DecisionDefinitionEntity>public String getKey()
ResourceDefinitiongetKey in interface DmnDecisiongetKey in interface ResourceDefinitiongetKey in class DmnDecisionImplpublic void setKey(String key)
setKey in interface ResourceDefinitionEntity<DecisionDefinitionEntity>setKey in class DmnDecisionImplpublic int getVersion()
ResourceDefinitiongetVersion in interface ResourceDefinitionpublic void setVersion(int version)
setVersion in interface ResourceDefinitionEntity<DecisionDefinitionEntity>public String getDeploymentId()
ResourceDefinitiongetDeploymentId in interface ResourceDefinitionpublic void setDeploymentId(String deploymentId)
setDeploymentId in interface ResourceDefinitionEntity<DecisionDefinitionEntity>public String getResourceName()
ResourceDefinitionthe resource of this definitiongetResourceName in interface ResourceDefinitionpublic void setResourceName(String resourceName)
setResourceName in interface ResourceDefinitionEntity<DecisionDefinitionEntity>public String getDiagramResourceName()
ResourceDefinitiongetDiagramResourceName in interface ResourceDefinitionpublic void setDiagramResourceName(String diagramResourceName)
setDiagramResourceName in interface ResourceDefinitionEntity<DecisionDefinitionEntity>public String getTenantId()
ResourceDefinitionnull
if the definition belongs to no single tenant.getTenantId in interface ResourceDefinitionpublic void setTenantId(String tenantId)
setTenantId in interface ResourceDefinitionEntity<DecisionDefinitionEntity>public String getDecisionRequirementsDefinitionId()
DecisionDefinitionnull if the decision has no relations to other decisions.getDecisionRequirementsDefinitionId in interface DecisionDefinitionpublic void setDecisionRequirementsDefinitionId(String decisionRequirementsDefinitionId)
public String getDecisionRequirementsDefinitionKey()
DecisionDefinitionnull if the decision has no relations to other decisions.getDecisionRequirementsDefinitionKey in interface DecisionDefinitionpublic void setDecisionRequirementsDefinitionKey(String decisionRequirementsDefinitionKey)
public Object getPersistentState()
DbEntitygetPersistentState in interface DbEntitypublic void updateModifiableFieldsFromEntity(DecisionDefinitionEntity updatingDecisionDefinition)
updateModifiableFieldsFromEntity in interface ResourceDefinitionEntity<DecisionDefinitionEntity>updatingDecisionDefinition - public DecisionDefinitionEntity getPreviousDefinition()
getPreviousDefinition in interface ResourceDefinitionEntity<DecisionDefinitionEntity>protected DecisionDefinitionEntity loadDecisionDefinition(String decisionDefinitionId)
public String getPreviousDecisionDefinitionId()
public void setPreviousDecisionDefinitionId(String previousDecisionDefinitionId)
protected void resetPreviousDecisionDefinitionId()
protected void ensurePreviousDecisionDefinitionIdInitialized()
public Integer getHistoryTimeToLive()
ResourceDefinitiongetHistoryTimeToLive in interface ResourceDefinitionpublic void setHistoryTimeToLive(Integer historyTimeToLive)
setHistoryTimeToLive in interface ResourceDefinitionEntity<DecisionDefinitionEntity>public String getVersionTag()
DecisionDefinitiongetVersionTag in interface DecisionDefinitionpublic void setVersionTag(String versionTag)
public String toString()
toString in class DmnDecisionImplCopyright © 2013–2021 camunda services GmbH. All rights reserved.