|
db4o - database for objects v1.04 | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
- the db4o storage and query interface.
The ObjectContainer
provides all functions to store,
retrieve and delete objects and to change object state. Test functions
provide information on the storage state of an object within
the ObjectContainer
.
Method Summary | |
void |
activate(java.lang.Object object)
instantiates all stored Object members on a stored object.
|
void |
close()
shuts down the ObjectContainer and writes all cached data.
|
void |
deactivate(java.lang.Object object)
deactivates a stored object by setting all non-primitive members to NULL .
|
void |
delete(java.lang.Object object)
deletes a stored object permanently from the ObjectContainer .
|
ObjectSet |
get(java.lang.Object template)
Query-By-Example interface to retrieve objects from an ObjectContainer .
|
boolean |
isActive(java.lang.Object object)
tests if an object is activated within the ObjectContainer .
|
boolean |
isStored(java.lang.Object object)
tests if an object is stored within the ObjectContainer .
|
void |
set(java.lang.Object object)
newly stores objects or updates stored objects. |
Method Detail |
public void activate(java.lang.Object object)
Object
members on a stored object.
Object
members themselves are instantiated in
deactivated state.
activate()
.
activate()
calls on the same object have no effect.
ObjectContainer
has no effect.Object
- the object to be activated.public void close()
ObjectContainer
and writes all cached data.
ObjectContainer
functions will result in
exceptions.public void deactivate(java.lang.Object object)
NULL
.
ObjectContainer
.object
- the object to be deactivated.public void delete(java.lang.Object object)
ObjectContainer
.
ObjectContainer
.
set()
with the same object parameter newly adds the object
to the ObjectContainer
.object
- the object to be deleted from the
ObjectContainer
.public ObjectSet get(java.lang.Object template)
ObjectContainer
.
get()
creates an ObjectSet
containing all objects
of the ObjectContainer
that match the passed template
object.
get(NULL)
returns all objects stored in the
ObjectContainer
.template
- object to be evaluated.ObjectSet
of all objects found.public boolean isActive(java.lang.Object object)
ObjectContainer
.
isActive
returns false
if an object is not
stored within the ObjectContainer
.object
- to be testedtrue
if the passed object is active.public boolean isStored(java.lang.Object object)
ObjectContainer
.
true
if the passed object is stored.public void set(java.lang.Object object)
ObjectContainer
will be added when it is passed to set()
.
ObjectContainer
will be added.
ObjectContainer
will be updated.
set()
.Object
- the object to be stored or updated.
|
db4o - database for objects v1.04 | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |