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 |
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()
The unique identifier of the decision if exists.
|
String |
getName()
The human readable name of the decision if exists.
|
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 |
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) |
String |
toString() |
void |
updateModifiableFieldsFromEntity(DecisionDefinitionEntity updatingDecisionDefinition)
Updates all modifiable fields from another decision definition entity.
|
getDecisionLogic, getRequiredDecisions, isDecisionTable, setDecisionLogic, setRequiredDecision
protected 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
public String getId()
ResourceDefinition
getId
in interface DbEntity
getId
in interface ResourceDefinition
public void setId(String id)
setId
in interface DbEntity
setId
in interface ResourceDefinitionEntity<DecisionDefinitionEntity>
public int getRevision()
getRevision
in interface HasDbRevision
public void setRevision(int revision)
setRevision
in interface HasDbRevision
public int getRevisionNext()
getRevisionNext
in interface HasDbRevision
public String getName()
DmnDecision
getName
in interface DmnDecision
getName
in interface ResourceDefinition
getName
in class DmnDecisionImpl
public void setName(String name)
setName
in interface ResourceDefinitionEntity<DecisionDefinitionEntity>
setName
in class DmnDecisionImpl
public String getCategory()
ResourceDefinition
getCategory
in interface ResourceDefinition
public void setCategory(String category)
setCategory
in interface ResourceDefinitionEntity<DecisionDefinitionEntity>
public String getKey()
DmnDecision
getKey
in interface DmnDecision
getKey
in interface ResourceDefinition
getKey
in class DmnDecisionImpl
public void setKey(String key)
setKey
in interface ResourceDefinitionEntity<DecisionDefinitionEntity>
setKey
in class DmnDecisionImpl
public int getVersion()
ResourceDefinition
getVersion
in interface ResourceDefinition
public void setVersion(int version)
setVersion
in interface ResourceDefinitionEntity<DecisionDefinitionEntity>
public String getDeploymentId()
ResourceDefinition
getDeploymentId
in interface ResourceDefinition
public void setDeploymentId(String deploymentId)
setDeploymentId
in interface ResourceDefinitionEntity<DecisionDefinitionEntity>
public String getResourceName()
ResourceDefinition
the resource
of this definitiongetResourceName
in interface ResourceDefinition
public void setResourceName(String resourceName)
setResourceName
in interface ResourceDefinitionEntity<DecisionDefinitionEntity>
public String getDiagramResourceName()
ResourceDefinition
getDiagramResourceName
in interface ResourceDefinition
public void setDiagramResourceName(String diagramResourceName)
setDiagramResourceName
in interface ResourceDefinitionEntity<DecisionDefinitionEntity>
public String getTenantId()
ResourceDefinition
null
if the definition belongs to no single tenant.getTenantId
in interface ResourceDefinition
public void setTenantId(String tenantId)
setTenantId
in interface ResourceDefinitionEntity<DecisionDefinitionEntity>
public String getDecisionRequirementsDefinitionId()
DecisionDefinition
null
if the decision has no relations to other decisions.getDecisionRequirementsDefinitionId
in interface DecisionDefinition
public void setDecisionRequirementsDefinitionId(String decisionRequirementsDefinitionId)
public String getDecisionRequirementsDefinitionKey()
DecisionDefinition
null
if the decision has no relations to other decisions.getDecisionRequirementsDefinitionKey
in interface DecisionDefinition
public void setDecisionRequirementsDefinitionKey(String decisionRequirementsDefinitionKey)
public Object getPersistentState()
DbEntity
getPersistentState
in interface DbEntity
public 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()
ResourceDefinition
getHistoryTimeToLive
in interface ResourceDefinition
public void setHistoryTimeToLive(Integer historyTimeToLive)
public String toString()
toString
in class DmnDecisionImpl
Copyright © 2017. All rights reserved.