public class TableParameter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private boolean |
append
Corresponds calling-side APPEND option.
|
private boolean |
byReference
Corresponds calling-side BY-REFERENCE option.
|
private int |
parameterIndex
1-based index of the table parameter (in declaration of the function).
|
private boolean |
remoteParameter
Determines if this is a remote (passed to appserver) parameter.
|
private TableWrapper |
resultSet
Calling- or called-side result set (for remote parameters).
|
private Temporary |
table
Buffer of the wrapped table.
|
private handle |
tableHandle
Table handle.
|
Constructor and Description |
---|
TableParameter(handle tableHandle)
Create an instance using a table handle.
|
TableParameter(handle tableHandle,
boolean append)
Create an instance using a table handle.
|
TableParameter(handle tableHandle,
boolean append,
boolean byReference)
Create an instance using a table handle.
|
TableParameter(TableWrapper resultSet,
boolean append)
Create an instance using a result set (for remote parameters).
|
TableParameter(TableWrapper resultSet,
boolean append,
boolean byReference)
Create an instance using a result set (for remote parameters).
|
TableParameter(Temporary table)
Create an instance using a buffer.
|
TableParameter(Temporary table,
boolean append)
Create an instance using a buffer.
|
TableParameter(Temporary table,
boolean append,
boolean byReference)
Create an instance using a buffer.
|
Modifier and Type | Method and Description |
---|---|
int |
getParameterIndex()
Get 1-based index of the table parameter (in declaration of the function).
|
TableWrapper |
getResultSet()
Get result set (for remote parameters).
|
Temporary |
getTable()
Get the buffer of the wrapped table.
|
handle |
getTableHandle()
Get the handle which references the wrapped table.
|
boolean |
isAppend()
Determines if the APPEND option was specified on the calling side.
|
boolean |
isByReference()
Determines if the BY-REFERENCE option was specified on the calling side.
|
boolean |
isRemoteParameter()
Determines if this is a remote parameter.
|
void |
setParameterIndex(int parameterIndex)
Set 1-based index of the table parameter (in declaration of the function).
|
void |
setResultSet(TableWrapper resultSet)
Set result set (for remote parameters).
|
private final Temporary table
private final handle tableHandle
private final boolean append
private final boolean byReference
private TableWrapper resultSet
private boolean remoteParameter
private int parameterIndex
0
if it is not defined.public TableParameter(Temporary table)
table
- Buffer of the wrapped table.public TableParameter(Temporary table, boolean append)
table
- Buffer of the wrapped table.append
- Determines if APPEND option was specified on the calling side.public TableParameter(Temporary table, boolean append, boolean byReference)
table
- Buffer of the wrapped table.append
- Determines if APPEND option was specified on the calling side.byReference
- Determines if BY-REFERENCE option was specified on the calling side.public TableParameter(handle tableHandle)
tableHandle
- Handle to the wrapped table.public TableParameter(handle tableHandle, boolean append)
tableHandle
- Handle to the wrapped table.append
- Determines if APPEND option was specified on the calling side.public TableParameter(handle tableHandle, boolean append, boolean byReference)
tableHandle
- Handle to the wrapped table.append
- Determines if APPEND option was specified on the calling side.byReference
- Determines if BY-REFERENCE option was specified on the calling side.public TableParameter(TableWrapper resultSet, boolean append)
resultSet
- Result set containing input data.append
- Determines if APPEND option was specified on the calling side.public TableParameter(TableWrapper resultSet, boolean append, boolean byReference)
resultSet
- Result set containing input data.append
- Determines if APPEND option was specified on the calling side.byReference
- Determines if BY-REFERENCE option was specified on the calling side.public boolean isRemoteParameter()
true
if this is a remote parameter, false
if this is a
local parameter.public TableWrapper getResultSet()
public void setResultSet(TableWrapper resultSet)
resultSet
- Result set, normally containing output data.public handle getTableHandle()
public Temporary getTable()
public boolean isAppend()
true
if the APPEND option was specified on the calling side.public boolean isByReference()
true
if the BY-REFERENCE option was specified on the calling side.public int getParameterIndex()
0
if it is not defined.public void setParameterIndex(int parameterIndex)
parameterIndex
- 1-based index of the table parameter.