Class ConfigForeignKey
- java.lang.Object
-
- lumis.portal.serialization.operation.ConfigForeignKey
-
public class ConfigForeignKey extends java.lang.Object
Represents a foreign key (field) of a portal object- Since:
- 4.0.9
- Version:
- $Revision$ $Date$
-
-
Constructor Summary
Constructors Constructor Description ConfigForeignKey(java.lang.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(java.lang.String name, java.lang.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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getAbortIfViolated()
IConfigKeyChecker
getChecker()
java.lang.String
getName()
boolean
getPersistIfViolated()
java.lang.String
getViolationValue()
boolean
isMutable()
java.lang.String
toString()
-
-
-
Constructor Detail
-
ConfigForeignKey
public ConfigForeignKey(java.lang.String name, java.lang.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.- Parameters:
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.
-
ConfigForeignKey
public ConfigForeignKey(java.lang.String name)
Constructs a ConfigForeignKey that references an object that has certainly already persisted and, in this case, does not have to be analyzed.- Parameters:
name
- Config field name
-
-
Method Detail
-
getAbortIfViolated
public boolean getAbortIfViolated()
-
getChecker
public IConfigKeyChecker getChecker()
-
getName
public java.lang.String getName()
-
getPersistIfViolated
public boolean getPersistIfViolated()
-
isMutable
public boolean isMutable()
-
getViolationValue
public java.lang.String getViolationValue()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-