|
Reality Interface Classes | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.northgateis.reality.rsc.RSCParam
Provides a descriptor for each parameter passed to or from a subroutine.
It is not necessary to set a parameters direction as it defaults to INOUT. However if passing a large number of parameters, or a few large parameters, then setting a parameters direction can significantly improve performance. (Assuming all of the data does not need to be passed in both directions).
Another way to improve performance is for the DataBasic subroutine to null out any parameters that do not need to be returned.
See the description of RSC
class for an example of using
this class.
Field Summary | |
static int |
IN
Parameter is an input to a subroutine |
static int |
INOUT
Parameter is both input to and output from a subroutine. |
static int |
OUT
Parameter is an output from a subroutine |
static int |
UNKNOWN
Parameter direction is unknown |
Constructor Summary | |
RSCParam(java.lang.String name,
int position)
|
|
RSCParam(java.lang.String name,
int position,
int size)
|
Method Summary | |
int |
getDirection()
get parameters direction |
java.lang.String |
getName()
get the parameters name |
int |
getPosition()
get the parameters position (index) in the paramer list |
java.lang.String |
getString()
get the parameters value as a string |
byte[] |
getValue()
get parameters value |
void |
setDirection(int t)
set parameters direction |
void |
setValue(byte[] v)
set parameters value as a byte array |
void |
setValue(byte[] v,
int start,
int len)
|
void |
setValue(java.lang.String v)
set parameters value as a string |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static final int IN
public static final int OUT
public static final int INOUT
public static final int UNKNOWN
Constructor Detail |
public RSCParam(java.lang.String name, int position)
public RSCParam(java.lang.String name, int position, int size)
Method Detail |
public java.lang.String getName()
public int getPosition()
public void setDirection(int t)
public int getDirection()
public byte[] getValue()
public java.lang.String getString()
public void setValue(java.lang.String v)
public void setValue(byte[] v)
public void setValue(byte[] v, int start, int len)
public java.lang.String toString()
|
Reality Interface Classes | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |