Object_To_String PowerScript function
Description
Gets the string form of an object.
This function is used by PowerBuilder clients connecting to EAServer.
Controls
JaguarORB objects
Syntax
1 |
<span>jaguarorb</span>.<span>Object_To_String</span> ( <span>object </span>) |
Argument |
Description |
---|---|
jaguarorb |
An instance of JaguarORB. |
object |
The CORBA object that will be converted The string representation of a CORBA object is an Interoperable |
Return Values
String. Returns the string representation
of a CORBA object.
Usage
The Object_To_String function
can be used to serialize a proxy object reference. By serializing
an object reference, you can save the state of the object so that it
persists after the client terminates processing.
Object_To_String is typically
used in conjunction with String_To_Object,
which allows you to deserialize an object reference.
Examples
The following example shows the use of the Object_To_String function
to serialize a proxy object reference:
1 |
Payroll payroll |
1 |
JaguarORB my_orb |
1 |
... |
1 |
my_orb = CREATE JaguarORB |
1 |
my_orb.init("ORBRetryCount=3,ORBRetryDelay=1000") |
1 |
... |
1 |
String payroll_ior = my_orb.<span>Object_To_String</span>(payroll) |