BBjAPI::cloneAsServerObject
Description
In BBj 8.00 and higher, this method creates a clone of a client-side object on the server.
Syntax
Return Value |
Method |
---|---|
Object |
cloneAsServerObject(ClientObjectclientObj) |
Parameters
Variable |
Description |
---|---|
clientObj |
A ClientObject which is the RMI handle for the client-side Object that is to be cloned on the server. |
Return Value
A Object on the server that is a clone of the client-side Object for which clientObj is an RMI handle.
Remarks
The client-side Object for which clientObj is an RMI handle must be serializable. The client-side Object is serialized through an ObjectOutputStream and the resulting bytes are transported to the server where they are used to create an ObjectInputStream on the server. A new Object is read from the ObjectInputStream. This Object is the return value of the method
An error is thrown if the client-side Object is not serializable.
See Also
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.