| java.lang.Object org.ozoneDB.AbstractDatabase org.ozoneDB.Database
Database | final public class Database extends AbstractDatabase implements OzoneInterface(Code) | | This class represents the database for OzoneObjects within the server.
Note: The method parameters of type
OzoneRemote are supposed to by
proxy objects (of type
OzoneProxy ). However, since we are inside the
server it's possible to pass an database object (of type
OzoneCompatible ) as a parameter. In this case the parameter should be
substituted. Currently this is done by the invoke() method only.
author: SMB author: Medium.net version: $Revision: 1.3 $Date: 2002/06/08 00:49:38 $ See Also: OzoneInterface |
Field Summary | |
protected transient Env | env |
Method Summary | |
public OzoneProxy | copyObject(OzoneRemote rObj) | public OzoneProxy | createObject(String className, int access, String objName, String sig, Object[] args) | public User | currentOwner() | public void | deleteObject(OzoneRemote rObj) | public OzoneCompatible | fetch(OzoneProxy rObj, int lockLevel) | public Object | invoke(OzoneProxy rObj, String methodName, String sig, Object[] args, int lockLevel) | public Object | invoke(OzoneProxy rObj, int methodIndex, Object[] args, int lockLevel) | public void | nameObject(OzoneRemote rObj, String name) | public void | notifyProxyDeath(OzoneProxy proxy) Internal method. | public OzoneProxy | objectForHandle(String handle) | public OzoneProxy | objectForName(String name) | public OzoneProxy[] | objectsOfClass(String name) | public void | reloadClasses() | public Node | xmlForObject(OzoneRemote rObj, Document domFactory) | public void | xmlForObject(OzoneRemote rObj, ContentHandler ch) |
Database | public Database()(Code) | | |
notifyProxyDeath | public void notifyProxyDeath(OzoneProxy proxy)(Code) | | Internal method. This method is called by
OzoneProxy s when they are dying (during finalize()). This
is required, as the database may track the references the database client has to objects within the database
in order to properly support garbage collection. If this method is called from anyone else than from the
OzoneProxy .finalize()-Method, data loss may occur!
Parameters: proxy - the OzoneProxy object which is dying. It may call this method exaclty once. |
Fields inherited from org.ozoneDB.AbstractDatabase | final public static int DefaultAccessRight(Code)(Java Doc)
|
Methods inherited from org.ozoneDB.AbstractDatabase | public OzoneProxy createObject(String className) throws RuntimeException(Code)(Java Doc) public OzoneProxy createObject(String className, int access) throws RuntimeException(Code)(Java Doc) public OzoneProxy createObject(String className, int access, String objName) throws RuntimeException(Code)(Java Doc) public OzoneProxy createObject(String className, String sig, Object[] args) throws RuntimeException(Code)(Java Doc) public OzoneProxy createObject(Class type) throws RuntimeException(Code)(Java Doc) public OzoneProxy createObject(Class type, int access) throws RuntimeException(Code)(Java Doc) public OzoneProxy createObject(Class type, int access, String objName) throws RuntimeException(Code)(Java Doc) public OzoneProxy createObject(Class type, int access, String objName, String sig, Object[] args) throws RuntimeException(Code)(Java Doc) public OzoneProxy createObject(Class type, String sig, Object[] args) throws RuntimeException(Code)(Java Doc)
|
|
|