public abstract class LegacyJavaAppserverClientProxy
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected LegacyJavaAppserverClient |
client
Helper which is used to connect and invoke remote programs.
|
protected static LegacyJavaAppserver |
HELPER
A static helper which is used by generated proxy's metadata APIs.
|
protected handle |
proxy
The proxy procedure.
|
| Constructor and Description |
|---|
LegacyJavaAppserverClientProxy(LegacyJavaAppserverClient client)
Create a new instance with the specified client.
|
LegacyJavaAppserverClientProxy(LegacyJavaAppserverClient client,
boolean trackChanges)
Create a new instance with the specified client.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addRow(commonj.sdo.DataGraph graph,
commonj.sdo.DataObject row)
Add the specified row to its table.
|
void |
cancelAllRequests()
Cancel all active requests on this client.
|
static void |
configureMetadataHelper(boolean defaultTrackingChanges,
boolean normalizedExtent)
Configure the
HELPER used by the generated proxies to create the metadata. |
commonj.sdo.DataObject |
createRow(commonj.sdo.DataGraph graph,
java.lang.String table)
Create a row for the specified table.
|
void |
dispose()
Delete the
proxy. |
LegacyJavaAppserver |
getMetadataHelper()
Get the helper used by generated proxy metadata APIs.
|
void |
invokeWithArgs(java.lang.String target,
LegacyJavaAppserverParameter... paramArray)
Perform a pseudo-dynamic call where the target procedure doesn't receive the parameter as arguments at
the Java method definition, but instead they are managed via
LegacyOpenClientCaller APIs. |
java.util.List<commonj.sdo.DataObject> |
listRows(commonj.sdo.DataGraph graph,
java.lang.String table)
List all the rows in the specified table.
|
protected static final LegacyJavaAppserver HELPER
protected final LegacyJavaAppserverClient client
protected handle proxy
public LegacyJavaAppserverClientProxy(LegacyJavaAppserverClient client)
client - The proxy client.public LegacyJavaAppserverClientProxy(LegacyJavaAppserverClient client, boolean trackChanges)
client - The proxy client.trackChanges - Flag indicating if changes are tracked for all datasets, by default.public static void configureMetadataHelper(boolean defaultTrackingChanges,
boolean normalizedExtent)
HELPER used by the generated proxies to create the metadata.defaultTrackingChanges - Flag indicating if changes are tracked for all datasets, by default.normalizedExtent - The extent mode.public LegacyJavaAppserver getMetadataHelper()
HELPER.public void dispose()
proxy.public java.util.List<commonj.sdo.DataObject> listRows(commonj.sdo.DataGraph graph,
java.lang.String table)
graph - The parent data graph.table - The table name.public commonj.sdo.DataObject createRow(commonj.sdo.DataGraph graph,
java.lang.String table)
graph - The parent data graph.table - The table name.addRow(commonj.sdo.DataGraph, commonj.sdo.DataObject) to add it.public void addRow(commonj.sdo.DataGraph graph,
commonj.sdo.DataObject row)
graph - The parent data graph.row - The row to insert.public void cancelAllRequests()
public void invokeWithArgs(java.lang.String target,
LegacyJavaAppserverParameter... paramArray)
LegacyOpenClientCaller APIs.
This allows the target program to act as a controller, where it can prepare the arguments, perform security checks, etc, before dispatching the call to the real target, which can be resolved from the arguments or in some other way.
target - The target external program. Must have no parameters defined.paramArray - The parameter array.