| Modifier and Type | Class and Description |
|---|---|
| private static class | DRDAStatement.DrdaParamState
This class is used to keep track of the statement's parameters as they are received from the client. |
| Modifier and Type | Field and Description |
|---|---|
| protected int | |
| protected int | |
| protected int | |
| protected String | |
| protected int | |
| protected String | |
| protected int | |
| protected String | |
| protected int | |
| private DRDAResultSet | |
| protected String | |
| protected Database | |
| private DRDAStatement. | |
| pack-priv boolean | |
| protected boolean | |
| protected int | |
| protected int | |
| protected int | |
| protected int | |
| pack-priv boolean | |
| protected static int | |
| private int | |
| protected int | |
| protected boolean | |
| private int[] | |
| private int[] | |
| private int[] | |
| private Pkgnamcsn | |
| protected String | |
| protected EnginePreparedStatement | |
| private int | |
| protected boolean | |
| protected int | |
| private ArrayList | resultSetKeyList
Ordered list of hash keys. |
| private Hashtable | resultSetTable
Hashtable with resultsets. |
| protected long | |
| protected byte[] | |
| protected int | |
| pack-priv int | sqldaType
Saved value returned from |
| private EngineStatement | |
| protected ParameterMetaData | |
| private DataTruncation | truncationWarnings
A chain of warnings indicating whether some of the data values returned by this statement had to be truncated before being sent to the client. |
| protected String | |
| pack-priv long | versionCounter
If this changes, we need to re-send result set metadata to client, since a change indicates the engine has recompiled the prepared statement. |
| pack-priv int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected void | addDrdaParam(byte
- type of the parameter t, int - length in bytes of the parameter l)Add another parameter to this statement. |
| protected void | |
| protected void | addExtPosition(int
- zero-based index into list of external parameters pos)Mark the pos'th parameter as external |
| protected ConsistencyToken | Returns: Consistency token for this resultSet For a single resultSet that is the same as the statement's For multiple resultSets just the consistency token is changed- ResultSet to add value, int - Holdability of the ResultSet holdValue)Add a new resultSet to this statement. |
| protected void | addTruncationWarning(DataTruncation
the warning to add w)Add a warning about data having been truncated. |
| protected ConsistencyToken | Returns: Consistency token for result set- result set # starting with 0 rsNum)For a single result set, just echo the consistency token that the client sent us. |
| protected void | clearDrdaParams()
Clears the parameter state (type, length and ext information) stored in this statement, but does not release any storage. |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected boolean | Returns: true if the execution has resultSetsExecutes the prepared statement and populates the resultSetTable. |
| protected PreparedStatement | |
| protected void | |
| protected int | |
| protected int | |
| protected DRDAResultSet | |
| protected int | Returns: the number of parametersGet the number of parameters, internal and external, that has been added to this statement. |
| private DRDAResultSet | |
| private DRDAResultSet | |
| protected ArrayList | |
| protected int | Returns: the parameter position of the i'th external parameter- zero-based index into list of external parameters i)Get the parameter position of the i'th external parameter |
| protected int | Returns: the number of external parametersGet the number of external parameters in this statement. |
| private boolean | Returns: true if there are more results.- flag to pass to Statement.getMoreResults(current) current)get more results using reflection. |
| protected int | |
| protected int | Returns: number of columnsget the number of result set columns for the current resultSet |
| protected int[] | |
| protected static int | Returns: type from java.sql.TypesClass name of object being evaluated.
indicating if this an output parameter objectName)Given an object class name get the paramameter type if the parameter mode is unknown. |
| pack-priv int | Returns: precision or NOT_OUTPUT_PARAM if this is not an output parameter- parameter number starting with 1 paramNum)get precision for output parameter. |
| pack-priv int | Returns: scale or NOT_OUTPUT_PARAM if this is not an output parameter- parameter number starting with 1 paramNum)get scale for output parameter. |
| pack-priv int | Returns: jdbcType or NOT_OUTPUT_PARAM if this is not an output parameter- parameter number starting with 1 paramNum)get type for output parameter. |
| protected int | |
| protected ParameterMetaData | Returns: ParameterMetaData for the prepared statement.Note there is no separate BrokeredParameterSetMetaData. Retrieve the ParameterMetaData for the prepared statement. |
| protected int | Returns: data length- starting with 1 index)returns drda length of parameter as sent by client. |
| protected int | Returns: precisionparameter index starting with 1 index)get parameter precision or DB2 max (31) |
| protected int | Returns: scaleparameter index starting with 1 index)get parameter scale or DB2 max (31) |
| protected Pkgnamcsn | |
| protected EnginePreparedStatement | |
| protected int | |
| protected long | |
| protected int | |
| protected boolean | |
| protected int | |
| protected ResultSet | |
| public String | |
| protected ConsistencyToken | Returns: consistency token (key) for the result setresult set starting with 0 rsNum)
|
| protected int | Returns: DRDA Type of column- starting with 1 index)get resultset/out parameter DRDAType |
| protected int[] | |
| protected int | |
| protected int | Returns: precision of column-starting with 1 index)get resultset /out parameter precision |
| protected int | |
| protected int | |
| public byte[] | |
| private String | Returns: SQL textUse reflection to retrieve SQL Text for EmbedPreparedStatement or BrokeredPreparedStatement. |
| protected EngineStatement | |
| private int | Returns: isolation- Package identifier string (e.g. SYSSTAT) pkgid)get the isolation level for a static package. |
| protected DataTruncation | Returns: chain of truncation warnings, possiblynullGet the chain of truncation warnings added to this statement. |
| protected boolean | |
| protected boolean | |
| protected void | |
| private boolean | |
| protected boolean | |
| private boolean | |
| protected boolean | |
| pack-priv boolean | isOutputParam(int
parameter number starting with 1.
return true if this is an output parameter. paramNum)is parameter an ouput parameter |
| pack-priv boolean | Returns: implicit close booleantrue if the client expects
QRYCLSIMP to be respected for the LMTBLKPRC protocolMethod to decide whether the ResultSet should be closed implicitly based on the QRYCLSIMP value sent from the client. |
| protected boolean | |
| private void | |
| protected PreparedStatement | |
| public void | |
| public void | |
| protected void | |
| protected void | |
| protected boolean | |
| protected void | |
| protected void | |
| protected void | |
| protected void | setCurrentDrdaResultSet(Pkgnamcsn
The pkgid section number and unique resultset
consistency token pkgnamcsn)Set currentDrdaResultSet |
| protected void | |
| protected void | |
| protected void | setOPNQRYOptions(int
QRYBLKSZ (Query Block Size) blksize, int QRYPRCTYP (Query Protocol Type) qryblkctl, int MAXBLKEXT (Maximum Number of Extra Blocks) maxblkext, int OUTOVROPT (Output Override Option) outovropt, int QRYROWSET (Query Rowset Size) qryrowset, int QRYCLSIMP (Query Close Implicit) qryclsimpl)Set query options sent on OPNQRY and pass options down to the
current |
| protected void | |
| protected void | setPkgnamcsn(Pkgnamcsn
package id section number and token from the client pkgnamcsn)Set the pkgid sec num for this statement and the consistency token that will be used for the first resultSet. |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | setQueryOptions(int blksize, boolean qryrelscr, long qryrownbr, boolean qryfrtbl, int nbrrow, int maxblkext, int qryscrorn, boolean qryrowsns, boolean qryblkrst, boolean qryrtndta, int qryrowset, int rtnextdta)
|
| protected void | setRsDefaultOptions(DRDAResultSet drs)
Set resultSet defaults to match the statement defaults sent on EXCSQLSTT This might be overridden on OPNQRY or CNTQRY |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| public void | |
| protected void | |
| protected void | |
| protected void | |
| private void | |
| protected String | |
| protected boolean | |
| protected boolean |