|
ozone API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ozoneDB.OzoneObject
This class can be extended to build actual database objects. It provides a
default implementation of the OzoneCompatible
interface.
Constructor Summary | |
OzoneObject()
|
Method Summary | |
org.ozoneDB.core.ObjectContainer |
container()
Return the container of the receiver. |
OzoneInterface |
database()
Return the database link |
void |
deleteRecursive()
|
boolean |
equals(java.lang.Object o)
Returns wether or not the passed object is equal to this object. |
java.lang.String |
getHandle()
Retrieves a handle to a specific instance of an OzoneObject. |
org.ozoneDB.core.ObjectID |
getObjectID()
Returns the ObjectID of the represented ozone object. |
java.lang.String |
handle()
Deprecated. use getHandle() |
int |
hashCode()
|
void |
onActivate()
This method will be automaticly called immediately after this object is loaded (deserialized) from storage. |
void |
onCreate()
This default implementation of the onCreate() method does nothing. |
void |
onDelete()
This default implementation of the onDelete() method does nothing. |
void |
onPassivate()
This method will be automaticly called immediately 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. |
java.lang.String |
toString()
|
boolean |
toXML(org.xml.sax.ContentHandler ch)
This default implementation of the toSAX() method. |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public OzoneObject()
Method Detail |
public int hashCode()
public void setContainer(org.ozoneDB.core.ObjectContainer _container)
OzoneCompatible
setContainer
in interface OzoneCompatible
public OzoneProxy self()
OzoneCompatible
self
in interface OzoneCompatible
public org.ozoneDB.core.ObjectContainer container()
OzoneCompatible
container
in interface OzoneCompatible
public java.lang.String getHandle()
public java.lang.String handle()
public OzoneInterface database()
OzoneCompatible
database
in interface OzoneCompatible
public java.lang.String toString()
public void onCreate()
onCreate
in interface OzoneCompatible
public void onActivate()
onActivate
in interface OzoneCompatible
public void onPassivate()
onPassivate
in interface OzoneCompatible
public void onDelete()
onDelete
in interface OzoneCompatible
public boolean toXML(org.xml.sax.ContentHandler ch) throws org.xml.sax.SAXException
toXML
in interface OzoneCompatible
org.xml.sax.SAXException
public void deleteRecursive()
public org.ozoneDB.core.ObjectID getObjectID()
ObjectID.compareTo(Object)
in comparison functions.
Currently, ObjectID exposes other methods than ObjectID.equals(Object)
and
ObjectID.compareTo(Object)
. However, they should not be used, as ObjectIDs should
be, apart from this method, opaque.
getObjectID
in interface OzoneCompatibleOrProxy
public boolean equals(java.lang.Object o)
getObjectID()
will be called
and compared with this.getObjectID()
. The same goes for
OzoneProxy
instances.
o
- the object to test for equality
|
ozone API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |