|
ozone API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
All objects that are stored in ozone have to implement this interface. The easiest way to build database objects is to extend the OzoneObject class, which implements OzoneCompatible already.
Method Summary | |
org.ozoneDB.core.ObjectContainer |
container()
Return the container of the receiver. |
OzoneInterface |
database()
Return the database link |
void |
onActivate()
This method will be automatically called after this object is loaded (deserialized) from storage. |
void |
onCreate()
This method will be automaticly called when this object is created using createObject(). |
void |
onDelete()
This method will be automaticly called when this object is deleted using deleteObject(). |
void |
onPassivate()
This method will be automaticly called emediately before this object is stored (serialized) to storage. |
OzoneProxy |
self()
Return a proxy for the receiver. |
void |
setContainer(org.ozoneDB.core.ObjectContainer _container)
Set the container of the receiver. |
boolean |
toXML(org.xml.sax.ContentHandler ch)
This method is automatically called by the ozone server to get an idea of the size of this object. |
Methods inherited from interface org.ozoneDB.OzoneCompatibleOrProxy |
getObjectID |
Method Detail |
public void setContainer(org.ozoneDB.core.ObjectContainer _container)
public org.ozoneDB.core.ObjectContainer container()
public OzoneProxy self()
public OzoneInterface database()
public void onCreate()
public void onActivate()
ObjectContainer
). If you detect within onActivate() that you need to change something,
you need to call org.ozoneDB.OzoneObject#requireWriteLocking
before the first change.
Then, the lock is upgraded to write-locking.
public void onPassivate()
public void onDelete()
public boolean toXML(org.xml.sax.ContentHandler ch) throws org.xml.sax.SAXException
org.xml.sax.SAXException
|
ozone API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |