| org.ozoneDB.OzoneCompatible
All known Subclasses: org.ozoneDB.OzoneObject,
OzoneCompatible | public interface OzoneCompatible extends Serializable,OzoneCompatibleOrProxy(Code) | | 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.
author: SMB version: $Revision: 1.3 $Date: 2002/07/12 09:25:11 $ |
Method Summary | |
public ObjectContainer | container() Return the container of the receiver. | public OzoneInterface | database() | public void | onCreate() This method will be automaticly called when this object is created
using createObject(). | public void | onDelete() This method will be automaticly called when this object is deleted
using deleteObject(). | public OzoneProxy | self() Return a proxy for the receiver. | public void | setContainer(ObjectContainer _container) Set the container of the receiver. | public boolean | toXML(ContentHandler ch) This method is automatically called by the ozone server to get an idea
of the size of this object. |
onCreate | public void onCreate() throws Exception(Code) | | This method will be automaticly called when this object is created
using createObject().
|
onDelete | public void onDelete() throws Exception(Code) | | This method will be automaticly called when this object is deleted
using deleteObject(). It should delete all database objects that depend
on it and that are not otherwise reachable. In other words, this is the
persistent destructor of the object.
|
setContainer | public void setContainer(ObjectContainer _container)(Code) | | Set the container of the receiver. The member that holds the actual
reference must be transient.
|
toXML | public boolean toXML(ContentHandler ch) throws SAXException(Code) | | This method is automatically called by the ozone server to get an idea
of the size of this object. The method should not return the actual
current size of the object but the size the object will probably reach
during its life time.
The to be expected size of the object or -1 if a default valueshould be used.public int size() throws Exception; |
|
|