Method Summary |
|
public void | callConstructor(boolean flag) advises db4o to try instantiating objects of this class with/without
calling constructors.
Not all JDKs / .NET-environments support this feature. |
public void | cascadeOnActivate(boolean flag) sets cascaded activation behaviour.
Setting cascadeOnActivate to true will result in the activation
of all member objects if an instance of this class is activated.
The default setting is false.
In client-server environment this setting should be used on both
client and server. |
public void | cascadeOnDelete(boolean flag) sets cascaded delete behaviour.
Setting cascadeOnDelete to true will result in the deletion of
all member objects of instances of this class, if they are
passed to
com.db4o.ObjectContainer.delete(Object) . |
public void | cascadeOnUpdate(boolean flag) sets cascaded update behaviour.
Setting cascadeOnUpdate to true will result in the update
of all member objects if a stored instance of this class is passed
to
com.db4o.ObjectContainer.set(Object) .
The default setting is false.
In client-server environment this setting should be used on both
client and server. |
public void | compare(ObjectAttribute attributeProvider) registers an attribute provider for special query behavior.
The query processor will compare the object returned by the
attribute provider instead of the actual object, both for the constraint
and the candidate persistent object.
In client-server environment this setting should be used on both
client and server. |
public void | enableReplication(boolean setting) Must be called before databases are created or opened
so that db4o will control versions and generate UUIDs
for objects of this class, which is required for using replication. |
public void | generateUUIDs(boolean setting) generate UUIDs for stored objects of this class. |
public void | generateVersionNumbers(boolean setting) generate version numbers for stored objects of this class. |
public void | indexed(boolean flag) turns the class index on or off.
db4o maintains an index for each class to be able to
deliver all instances of a class in a query. |
public void | maximumActivationDepth(int depth) sets the maximum activation depth to the desired value.
A class specific setting overrides the
Configuration.activationDepth(int) global setting
In client-server environment this setting should be used on both
client and server. |
public void | minimumActivationDepth(int depth) sets the minimum activation depth to the desired value.
A class specific setting overrides the
Configuration.activationDepth(int) global setting
In client-server environment this setting should be used on both
client and server. |
public int | minimumActivationDepth() gets the configured minimum activation depth.
In client-server environment this setting should be used on both
client and server. |
public ObjectField | objectField(String fieldName) returns an
ObjectField ObjectField object
to configure the specified field. |
public void | persistStaticFieldValues() turns on storing static field values for this class.
By default, static field values of classes are not stored
to the database file. |
public void | readAs(Object clazz) creates a temporary mapping of a persistent class to a different class.
If meta information for this ObjectClass has been stored to
the database file, it will be read from the database file as if it
was representing the class specified by the clazz parameter passed to
this method. |
public void | rename(String newName) renames a stored class.
Use this method to refactor classes.
In client-server environment this setting should be used on both
client and server. |
public void | storeTransientFields(boolean flag) allows to specify if transient fields are to be stored.
The default for every class is false .
In client-server environment this setting should be used on both
client and server. |
public void | translate(ObjectTranslator translator) registers a translator for this class.
The use of an
ObjectTranslator ObjectTranslator is not
compatible with the use of an
internal class ObjectMarshaller.
In client-server environment this setting should be used on both
client and server. |
public void | updateDepth(int depth) specifies the updateDepth for this class.
see the documentation of
com.db4o.ObjectContainer.set(Object) for further details.
The default setting is 0: Only the object passed to
com.db4o.ObjectContainer.set(Object) will be updated.
In client-server environment this setting should be used on both
client and server. |