|
db4o 7.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.db4o.constraints.UniqueFieldValueConstraint
public class UniqueFieldValueConstraint
configures a field of a class to allow unique values only.
Constructor Summary | |
---|---|
UniqueFieldValueConstraint(java.lang.Object clazz,
java.lang.String fieldName)
constructor to create a UniqueFieldValueConstraint. |
Method Summary | |
---|---|
void |
apply(com.db4o.internal.InternalObjectContainer objectContainer)
internal method, public for implementation reasons. |
void |
prepare(Configuration configuration)
Gives a chance for the item to augment the configuration. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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.Method Detail |
---|
public void prepare(Configuration configuration)
ConfigurationItem
prepare
in interface ConfigurationItem
configuration
- the configuration that the item was added topublic void apply(com.db4o.internal.InternalObjectContainer objectContainer)
apply
in interface ConfigurationItem
objectContainer
- the ObjectContainer to configure
|
db4o 7.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |