ObjectField Configuration

ObjectField/IObjectField is an interface providing configuration methods for class fields. ObjectField instance can be obtained through:

Java: 

ObjectField of = Db4o.configure().objectClass(clazz).objectField("fieldName");


Java:

public void cascadeOnActivate(boolean flag);

sets cascaded activation behavior. For more information see Activation.


Java:

public void cascadeOnDelete(boolean flag);

sets cascaded delete behavior. For more information see Delete Behavior.


Java:

public void cascadeOnUpdate(boolean flag);

sets cascaded update behavior. For more information see Update Depth.


Java:

public void indexed(boolean flag);

turns indexing on or off. For more information see Indexing.


Java:

public void rename(String newName);

renames a field of a stored class. For more information see Refactoring and Schema Evolution.


Java:

public void queryEvaluation (boolean flag);

toggles query evaluation.

All fields are evaluated by default. Use this method to turn query evaluation off for specific fields.