| com.db4o.ext.StoredField
All known Subclasses: com.db4o.internal.FieldMetadata, com.db4o.internal.StoredFieldImpl,
StoredField | public interface StoredField (Code) | | the internal representation of a field on a stored class.
|
Method Summary | |
public void | createIndex() creates an index on this field at runtime. | public Object | get(Object onObject) returns the field value on the passed object.
This method will also work, if the field is not present in the current
version of the class.
It is recommended to use this method for refactoring purposes, if fields
are removed and the field values need to be copied to other fields. | public String | getName() returns the name of the field. | public ReflectClass | getStoredType() returns the Class (Java) / Type (.NET) of the field.
For array fields this method will return the type of the array.
Use
StoredField.isArray() to detect arrays. | public boolean | hasIndex() Returns whether this field has an index or not. | public boolean | isArray() returns true if the field is an array. | public void | rename(String name) modifies the name of this stored field. | public void | traverseValues(Visitor4 visitor) specialized highspeed API to collect all values of a field for all instances
of a class, if the field is indexed. |
createIndex | public void createIndex()(Code) | | creates an index on this field at runtime.
|
get | public Object get(Object onObject)(Code) | | returns the field value on the passed object.
This method will also work, if the field is not present in the current
version of the class.
It is recommended to use this method for refactoring purposes, if fields
are removed and the field values need to be copied to other fields.
|
getName | public String getName()(Code) | | returns the name of the field.
|
getStoredType | public ReflectClass getStoredType()(Code) | | returns the Class (Java) / Type (.NET) of the field.
For array fields this method will return the type of the array.
Use
StoredField.isArray() to detect arrays.
|
hasIndex | public boolean hasIndex()(Code) | | Returns whether this field has an index or not.
true if this field has an index. |
isArray | public boolean isArray()(Code) | | returns true if the field is an array.
|
rename | public void rename(String name)(Code) | | modifies the name of this stored field.
After renaming one or multiple fields the ObjectContainer has
to be closed and reopened to allow internal caches to be refreshed.
Parameters: name - the new name |
traverseValues | public void traverseValues(Visitor4 visitor)(Code) | | specialized highspeed API to collect all values of a field for all instances
of a class, if the field is indexed.
The field values will be taken directly from the index without the
detour through class indexes or object instantiation.
If this method is used to get the values of a first class object index,
deactivated objects will be passed to the visitor.
Parameters: visitor - the visitor to be called with each index value. |
|
|