| java.lang.Object org.ozoneDB.OzoneProxy
Method Summary | |
public void | createProxyLinkAttributes(AttributesImpl atts) | public boolean | equals(Object obj) Base implementation of equals(). | public void | finalize() Notify the database link that this reference dies. | public ObjectID | getObjectID() Returns the ObjectID of the represented ozone object. | public String | handle() Retrieves a handle to a specific instance of an OzoneObject. | public int | hashCode() Base implementation of hashCode(). | public Object | invoke(String methodName, int lockLevel) Method to use the proxy without a generated stub. | public Object | invoke(String methodName, Object arg1, int lockLevel) Method to use the proxy without a generated stub. | public Object | invoke(String methodName, Object arg1, Object arg2, int lockLevel) Method to use the proxy without a generated stub. | public Object | invoke(String methodName, Object arg1, Object arg2, Object arg3, int lockLevel) Method to use the proxy without a generated stub. | public boolean | isSame(OzoneProxy proxy) | public void | readExternal(ObjectInput in) | public ObjectID | remoteID() | public String | toString() Base implementation of toString(). | public void | writeExternal(ObjectOutput out) |
linkTable | public static DxMap linkTable(Code) | | Table of stream to OzoneInterface pairs. readExternal() checks this
table to find corresponding database link.
|
OzoneProxy | public OzoneProxy()(Code) | | This constructor will only be called, when the object is constructed
from a stream.
|
OzoneProxy | public OzoneProxy(ObjectID id, OzoneInterface link)(Code) | | This constructor is only be called, when this object is constructed
inside the database. However, it may be the result of a RMI call.
|
createProxyLinkAttributes | public void createProxyLinkAttributes(AttributesImpl atts)(Code) | | Adds the required attributes for a simple XLink which points to this
proxy to an attribute list.
Parameters: atts - The SAX attribute list to which the attributes will be added. |
equals | public boolean equals(Object obj)(Code) | | Base implementation of equals(). May be overwritten by an implementation
of the actual database object. In that case the method is handled, as all
remote methods, on the server side.
|
finalize | public void finalize()(Code) | | Notify the database link that this reference dies.
|
getObjectID | public ObjectID getObjectID()(Code) | | Returns the ObjectID of the represented ozone object. ObjectIDs are equal for equal
ozone objects and different for different ozone objects. They are comparable, so that
ozone objects may use
ObjectID#compareTo) in comparison functions. Currently, ObjectID exposes other methods than
ObjectID#equals) and ObjectID#compareTo). However, they should not be used, as ObjectIDs shouldbe, apart from this methods, opaque. |
handle | public String handle()(Code) | | Retrieves a handle to a specific instance of an OzoneObject.
A handle is
the externalizeable equivalent of OzoneProxy. The purpose of handles is to enable
detached systems (such as web interfaces) that are not able to use OzoneProxy
objects directly a means to access specific objects where object naming is not
practical or convenient. A handle is valid for the lifetime of
the OzoneObject it references. Unlike OzoneProxy, retrieving a handle on an
object does nothing to guarantee its existence. While the handle is valid
for the lifetime of the object it refers to, that object's lifetime may
be shorter than the handle's.
The resultant string representation will be composed
entirely of alphanumeric characters [A-Z], [a-z], and [0-9]; as such,
it can safely and reliably be used in URLs without need for escaping.
|
hashCode | public int hashCode()(Code) | | Base implementation of hashCode(). May be overwritten by an implementation
of the actual database object. In that case the method is handled, as all
remote methods, on the server side.
|
invoke | public Object invoke(String methodName, int lockLevel) throws Exception(Code) | | Method to use the proxy without a generated stub. The method signature
will be generated from the actual argument types. This may be in
some cases!
|
toString | public String toString()(Code) | | Base implementation of toString(). May be overwritten by an implementation
of the actual database object. In that case the method is handled, as all
remote methods, on the server side.
|
|
|