db4o 4.0

com.db4o.ext
Interface StoredClass


public interface StoredClass

the internal representation of a stored class.


Method Summary
 long[] getIDs()
          returns an array of IDs of all stored object instances of this stored class.
 java.lang.String getName()
          returns the name of this stored class.
 StoredField[] getStoredFields()
          returns all stored fields of this stored class.
 void rename(java.lang.String name)
          renames this stored class.
 StoredField storedField(java.lang.String name, java.lang.Object type)
          returns an existing stored field of this stored class.
 

Method Detail

getName

public java.lang.String getName()
returns the name of this stored class.


getIDs

public long[] getIDs()
returns an array of IDs of all stored object instances of this stored class.


getStoredFields

public StoredField[] getStoredFields()
returns all stored fields of this stored class.


rename

public void rename(java.lang.String name)
renames this stored class.

After renaming one or multiple classes the ObjectContainer has to be closed and reopened to allow internal caches to be refreshed.

.NET: As the name you should provide [Classname, Assemblyname]


storedField

public StoredField storedField(java.lang.String name,
                               java.lang.Object type)
returns an existing stored field of this stored class.

Parameters:
name - the name of the field
type - the type of the field. There are four possibilities how to supply the type:
- a Class object. (.NET: a Type object)
- a fully qualified classname.
- any object to be used as a template.

- null, if the first found field should be returned.
Returns:
the StoredField

db4o 4.0