public class ConfigForeignKey extends Object
Constructor and Description |
---|
ConfigForeignKey(String name)
Constructs a ConfigForeignKey that references an object that has certainly already persisted and, in this case, does not have to be analyzed.
|
ConfigForeignKey(String name,
String violationValue,
boolean persistIfViolated,
boolean abortIfViolated,
boolean mutable,
IConfigKeyChecker checker)
Constructs a ConfigForeignKey that references an object that could not be already persisted and, in this case, has to be analyzed.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getAbortIfViolated() |
IConfigKeyChecker |
getChecker() |
String |
getName() |
boolean |
getPersistIfViolated() |
String |
getViolationValue() |
boolean |
isMutable() |
String |
toString() |
public ConfigForeignKey(String name, String violationValue, boolean persistIfViolated, boolean abortIfViolated, boolean mutable, IConfigKeyChecker checker)
name
- Config field nameviolationValue
- If the original value represents a violated foreign key, this value will be used to generate a persistable Config object.persistIfViolated
- The generated persistable Config object can be persisted, if the original value represents a violated foreign key.abortIfViolated
- The deserialization process must be aborted at the end, if the original value represents a violated foreign key.mutable
- The field can be mapped to a new value. e.g. channelId is a mutable value, while a serviceId is not mutable.checker
- IConfigKeyChecker
implementation that checks if the foreign key value is violated.public ConfigForeignKey(String name)
name
- Config field namepublic boolean getAbortIfViolated()
public IConfigKeyChecker getChecker()
public String getName()
public boolean getPersistIfViolated()
public boolean isMutable()
public String getViolationValue()
LumisXP 12.0.0.190809 - Copyright © 2006–2019 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.