public class UniqueFieldValueConstraint extends java.lang.Object implements ConfigurationItem
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Object |
_clazz |
protected java.lang.String |
_fieldName |
| Constructor and Description |
|---|
UniqueFieldValueConstraint(java.lang.Object clazz,
java.lang.String fieldName)
constructor to create a UniqueFieldValueConstraint.
|
| Modifier and Type | Method and Description |
|---|---|
void |
apply(InternalObjectContainer objectContainer)
internal method, public for implementation reasons.
|
void |
prepare(Configuration configuration)
Gives a chance for the item to augment the configuration.
|
protected final java.lang.Object _clazz
protected final java.lang.String _fieldName
public UniqueFieldValueConstraint(java.lang.Object clazz,
java.lang.String fieldName)
clazz - can be a class (Java) / Type (.NET) / instance of the class / fully qualified class namefieldName - the name of the field that is to be unique.public void prepare(Configuration configuration)
ConfigurationItemprepare in interface ConfigurationItemconfiguration - the configuration that the item was added topublic void apply(InternalObjectContainer objectContainer)
apply in interface ConfigurationItemobjectContainer - the ObjectContainer to configure