|
ozone API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ozoneDB.OzoneProxy
Proxy of an OzoneRemote object.
Field Summary | |
OzoneInterface |
link
|
static DxMap |
linkTable
Table of stream to OzoneInterface pairs. |
org.ozoneDB.core.ObjectID |
remoteID
|
Constructor Summary | |
OzoneProxy()
This constructor will only be called, when the object is constructed from a stream. |
|
OzoneProxy(org.ozoneDB.core.ObjectID id,
OzoneInterface link)
This constructor is only be called, when this object is constructed inside the database. |
|
OzoneProxy(OzoneProxy rhs)
|
Method Summary | |
void |
createProxyLinkAttributes(org.xml.sax.helpers.AttributesImpl atts)
Adds the required attributes for a simple XLink which points to this proxy to an attribute list. |
boolean |
equals(java.lang.Object obj)
Base implementation of equals(). |
void |
finalize()
Notify the database link that this reference dies. |
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()
Base implementation of hashCode(). |
java.lang.Object |
invoke(java.lang.String methodName,
int lockLevel)
Method to use the proxy without a generated stub. |
java.lang.Object |
invoke(java.lang.String methodName,
java.lang.Object arg1,
int lockLevel)
Method to use the proxy without a generated stub. |
java.lang.Object |
invoke(java.lang.String methodName,
java.lang.Object arg1,
java.lang.Object arg2,
int lockLevel)
Method to use the proxy without a generated stub. |
java.lang.Object |
invoke(java.lang.String methodName,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3,
int lockLevel)
Method to use the proxy without a generated stub. |
boolean |
isSame(OzoneProxy proxy)
|
void |
readExternal(java.io.ObjectInput in)
|
org.ozoneDB.core.ObjectID |
remoteID()
|
java.lang.String |
toString()
Base implementation of toString() that runs client side only. |
void |
writeExternal(java.io.ObjectOutput out)
|
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static DxMap linkTable
readExternal(ObjectInput)
checks this
table to find corresponding database link.
public transient OzoneInterface link
public org.ozoneDB.core.ObjectID remoteID
Constructor Detail |
public OzoneProxy()
public OzoneProxy(org.ozoneDB.core.ObjectID id, OzoneInterface link)
public OzoneProxy(OzoneProxy rhs)
Method Detail |
public boolean isSame(OzoneProxy proxy)
public boolean equals(java.lang.Object obj)
public int hashCode()
public java.lang.String toString()
public String toString()
in your OzoneRemote
extending interface so that OPP will
generate a remote call. For instance:
public interface Foo extends OzoneRemote {
// ensure OPP will create a remote call
public String toString();
// other methods
}
Providing an implementation for toString()
in your
OzoneObject
extending class is optional; if you do not, then
the implementation of toString()
in OzoneObject
will be used server-side conform normal java method override rules.
public org.ozoneDB.core.ObjectID remoteID()
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 java.lang.String getHandle()
public java.lang.String handle()
public void createProxyLinkAttributes(org.xml.sax.helpers.AttributesImpl atts)
Adds the required attributes for a simple XLink which points to this proxy to an attribute list.
atts
- The SAX attribute list to which the attributes will be added.public java.lang.Object invoke(java.lang.String methodName, int lockLevel) throws java.lang.Exception
java.lang.Exception
public java.lang.Object invoke(java.lang.String methodName, java.lang.Object arg1, int lockLevel) throws java.lang.Exception
java.lang.Exception
public java.lang.Object invoke(java.lang.String methodName, java.lang.Object arg1, java.lang.Object arg2, int lockLevel) throws java.lang.Exception
java.lang.Exception
public java.lang.Object invoke(java.lang.String methodName, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3, int lockLevel) throws java.lang.Exception
java.lang.Exception
public void finalize()
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException
|
ozone API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |