private static class DRDAStatement.DrdaParamState
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
private int[] |
extLst_ |
|
private int |
extLstEnd_ |
|
private int[] |
lenLst_ |
|
private EXTDTAReaderInputStream |
streamedParameter |
|
private byte[] |
typeLst_ |
|
private int |
typeLstEnd_ |
Modifier | Constructor | Description |
---|---|---|
private |
DrdaParamState() |
Modifier and Type | Method | Description |
---|---|---|
protected void |
addDrdaParam(byte t,
int s) |
addDrdaParam adds a new parameter with its
DRDA type and byte length. |
protected void |
addExtPos(int p) |
addExtPos marks parameter i as external. |
protected void |
clear(boolean trim) |
clear resets the arrays so that new parameters
will be added at the beginning. |
protected void |
drainStreamedParameter() |
Read the rest of the streamed parameter if not consumed
by the executing statement.
|
protected int |
getDrdaLen(int i) |
getDrdaLen returns the length in bytes of the
ith parameter. |
protected int |
getDrdaParamCount() |
getDrdaParamCount return the number of
parameters added so far (since last clear). |
protected byte |
getDrdaType(int i) |
getDrdaType returns a byte that represents the
DRDA type of the ith parameter. |
protected int |
getExtPos(int i) |
getExtPos returns the actual parameter position
of the ith external parameter. |
protected int |
getExtPosCount() |
getExtPosCount returns the number of
parameters marked as external so far (since last clear). |
private static java.lang.Object |
growArray(java.lang.Object array) |
|
void |
setStreamedParameter(EXTDTAReaderInputStream eis) |
private EXTDTAReaderInputStream streamedParameter
private int typeLstEnd_
private byte[] typeLst_
private int[] lenLst_
private int extLstEnd_
private int[] extLst_
private static java.lang.Object growArray(java.lang.Object array)
protected void clear(boolean trim)
clear
resets the arrays so that new parameters
will be added at the beginning. No initialization or
releasing of storage takes place unless the trim argument
is true.trim
- - if true; release excess storageprotected void addDrdaParam(byte t, int s)
addDrdaParam
adds a new parameter with its
DRDA type and byte length. The arrays are automatically
grown if needed.t
- a byte
value, the DRDA type of the
parameter being addeds
- an int
value, the length in bytes of
the parameter being addedprotected int getDrdaParamCount()
getDrdaParamCount
return the number of
parameters added so far (since last clear).int
value, the number of parametersprotected byte getDrdaType(int i)
getDrdaType
returns a byte that represents the
DRDA type of the ith parameter.i
- an int
value, a parameter position
(zero-based)byte
value, the DRDA typeprotected int getDrdaLen(int i)
getDrdaLen
returns the length in bytes of the
ith parameter.i
- an int
value, a parameter position
(zero-based)int
valueprotected void addExtPos(int p)
addExtPos
marks parameter i as external. The
array is grown as needed.p
- an int
value, a parameter position
(zero-based)protected int getExtPosCount()
getExtPosCount
returns the number of
parameters marked as external so far (since last clear).int
value, the number of external
parameters.protected int getExtPos(int i)
getExtPos
returns the actual parameter position
of the ith external parameter.i
- an int
value, index into the list of
external parameters, zero-basedint
value, the parameter position
of the ith external parameter (zero-based)protected void drainStreamedParameter() throws java.io.IOException
java.io.IOException
public void setStreamedParameter(EXTDTAReaderInputStream eis)
Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.