public class Config4Class extends Config4Abstract implements ObjectClass, DeepClone
_config| Modifier | Constructor and Description |
|---|---|
protected |
Config4Class(Config4Impl configuration,
KeySpecHashtable4 config) |
| Modifier and Type | Method and Description |
|---|---|
int |
adjustActivationDepth(int depth) |
TernaryBool |
callConstructor() |
void |
callConstructor(boolean flag)
advises db4o to try instantiating objects of this class with/without
calling constructors.
|
void |
compare(ObjectAttribute comparator)
Deprecated.
|
java.lang.Object |
deepClone(java.lang.Object param)
The parameter allows passing one new object so parent
references can be corrected on children.
|
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.
|
void |
generateUUIDs(boolean setting)
generate UUIDs for stored objects of this class.
|
void |
generateVersionNumbers(boolean setting)
generate version numbers for stored objects of this class.
|
ObjectTranslator |
getTranslator() |
boolean |
indexed() |
void |
indexed(boolean flag)
turns the class index on or off.
|
void |
maximumActivationDepth(int depth)
sets the maximum activation depth to the desired value.
|
int |
minimumActivationDepth()
gets the configured minimum activation depth.
|
void |
minimumActivationDepth(int depth)
sets the minimum activation depth to the desired value.
|
ObjectField |
objectField(java.lang.String fieldName)
returns an
ObjectField object
to configure the specified field. |
void |
persistStaticFieldValues()
turns on storing static field values for this class.
|
ObjectAttribute |
queryAttributeProvider() |
void |
rename(java.lang.String newName)
renames a stored class.
|
boolean |
storeTransientFields() |
void |
storeTransientFields(boolean flag)
allows to specify if transient fields are to be stored.
|
void |
translate(ObjectTranslator translator)
registers a translator for this class.
|
void |
updateDepth(int depth)
specifies the updateDepth for this class.
|
cascadeOnActivate, cascadeOnActivate, cascadeOnDelete, cascadeOnDelete, cascadeOnUpdate, cascadeOnUpdate, equals, getName, hashCode, putThreeValued, putThreeValuedInt, setNameclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitcascadeOnActivate, cascadeOnDelete, cascadeOnUpdateprotected Config4Class(Config4Impl configuration, KeySpecHashtable4 config)
public int adjustActivationDepth(int depth)
public void callConstructor(boolean flag)
ObjectClassConfiguration.callConstructors(boolean).callConstructor in interface ObjectClassflag - - specify true, to request calling constructors, specify
false to request not calling constructors.Configuration.callConstructors(boolean)public void compare(ObjectAttribute comparator)
ObjectClasscompare in interface ObjectClasscomparator - the attribute provider to be usedpublic java.lang.Object deepClone(java.lang.Object param)
DeepClonepublic void enableReplication(boolean setting)
ObjectClassenableReplication in interface ObjectClasspublic void generateUUIDs(boolean setting)
ObjectClassgenerateUUIDs in interface ObjectClasspublic void generateVersionNumbers(boolean setting)
ObjectClassgenerateVersionNumbers in interface ObjectClasspublic ObjectTranslator getTranslator()
public void indexed(boolean flag)
ObjectClassindexed in interface ObjectClasspublic boolean indexed()
public void maximumActivationDepth(int depth)
ObjectClassglobal setting
maximumActivationDepth in interface ObjectClassdepth - the desired maximum activation depthWhy activation?,
ObjectClass.cascadeOnActivate(boolean)public void minimumActivationDepth(int depth)
ObjectClassglobal setting
minimumActivationDepth in interface ObjectClassdepth - the desired minimum activation depthWhy activation?,
ObjectClass.cascadeOnActivate(boolean)public int minimumActivationDepth()
ObjectClassminimumActivationDepth in interface ObjectClasspublic TernaryBool callConstructor()
public ObjectField objectField(java.lang.String fieldName)
ObjectClassobjectField in interface ObjectClassfieldName - the name of the field to be configured.ObjectField
object for configuration.public void persistStaticFieldValues()
ObjectClassobjectContainer.query().constrain(Foo.class); // JavaobjectContainer.Query().Constrain(typeof(Foo)); // C#objectContainer.store(Foo.staticMember); // Java
persistStaticFieldValues in interface ObjectClasspublic void rename(java.lang.String newName)
ObjectClassrename in interface ObjectClassnewName - the new fully qualified class name.public void storeTransientFields(boolean flag)
ObjectClassfalse.storeTransientFields in interface ObjectClassflag - whether or not transient fields are to be stored.public void translate(ObjectTranslator translator)
ObjectClassObjectTranslator is not
compatible with the use of an
internal class ObjectMarshaller.translate in interface ObjectClasstranslator - this may be an ObjectTranslator
or an ObjectConstructorObjectTranslator,
ObjectConstructorpublic void updateDepth(int depth)
ObjectClassObjectContainer.store(Object)
for further details.ObjectContainer.store(Object) will be updated.updateDepth in interface ObjectClassdepth - the depth of the desired update for this class.Configuration.updateDepth(int),
ObjectClass.cascadeOnUpdate(boolean),
ObjectField.cascadeOnUpdate(boolean),
Using callbackspublic ObjectAttribute queryAttributeProvider()
public boolean storeTransientFields()