Top Description Fields Constructors Methods
org.apache.derby.impl.drda

pack-priv Class DRDAResultSet

extends Object
Class Inheritance
Imports
java.sql.ResultSet, .ResultSetMetaData, .SQLException, .Types, java.util.ArrayList, org.apache.derby.iapi.jdbc.EngineResultSet

DRDAResultSet holds result set information

Field Summary

Modifier and TypeField and Description
protected int
protected int
pack-priv boolean
private ArrayList<Object>
extDtaObjects

List of Blobs and Clobs.

private boolean
protected boolean
protected int
protected int
protected static final int
protected int[]
protected int
protected ConsistencyToken
protected boolean
protected int
public static final int
private int
protected boolean
protected boolean
protected long
protected int
protected boolean
protected boolean
protected int
protected long
private ResultSet
private int[]
private ArrayList<Integer>
protected int[]
protected byte[]
private int[]
private int[]
protected int
protected int
private byte[]
pack-priv int
protected static final int
protected int

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
protected void
addExtDtaObject(Object
- object to add
o
,
int jdbcIndex)

Add extDtaObject

protected void
clearExtDtaObjects()

Clear externalized lob objects in current result set

protected void
close()

This method closes the JDBC objects and frees up all references held by this object.

protected void
CLSQRY()

Explicitly close the result set by CLSQRY needed to check for double close.

protected ArrayList<Object>

Returns:

ArrayList with extdta
getExtDtaObjects
()

Get the extData Objects

protected int
protected ResultSet

Returns:

the underlying java.sql.ResultSet
getResultSet
()

public String
getResultSetCursorName()

Get the cursor name for the ResultSet

protected int

Returns:

DRDA Type of column
getRsDRDAType
(int
- starting with 1
index
)

get resultset/out parameter DRDAType

protected int[]

Returns:

ResultSet DRDA DataTypes
getRsDRDATypes
()

protected int

Returns:

length of column value
getRsLen
(int
- starting with 1
index
)

get resultset DRDALen

protected int

Returns:

precision of column
getRsPrecision
(int
-starting with 1
index
)

get resultset /out parameter precision

protected int

Returns:

scale of column
getRsScale
(int
-starting with 1
index
)

get resultset /out parameter scale

public byte[]
private String
protected boolean

Returns:

True if the result has at least one blob/clob column; false otherwise.
hasLobColumns
()

Check to see if the result set for this statement has at least one column that is BLOB/CLOB.

protected boolean

Returns:

whether the resultSet is closed
isClosed
()

is ResultSet closed

protected boolean

Returns:

true if object is nullable
isExtDtaValueNullable
(int
- offset starting with 0
index
)

Is lob object nullable

protected void
reset()

This method resets the state of this DRDAResultset object so that it can be re-used.

protected void
setOPNQRYOptions(int
Query block Size
blksize
,
int
Use to set the query protocol type
qryblkctl
,
int
Maximum number of extra blocks
maxblkext
,
int
Output override option
outovropt
,
int
Query row set
qryrowset
,
int
Implicit query close setting
qryclsimpl
)

Sets the OPNQRYOptions.

protected void
setPkgcnstkn(ConsistencyToken pkgcnstkn)

set consistency token for this resultSet

protected void
setQryprctyp(int qryprctyp)

pack-priv void
setResultSet(ResultSet value)

Set result set and initialize type array.

protected void
setRsDRDAType(int
- starting with 1
index
,
int type)

set resultset/out parameter DRDAType

protected void
setRsPrecision(int
- starting with 1
index
,
int precision)

set resultset/out parameter precision

protected void
setRsScale(int
- starting with 1
index
,
int scale)

set resultset/out parameter scale

public void
setSplitQRYDTA(byte[] data)

protected void
suspend()

Set state to SUSPENDED (result set is opened)

protected String
protected boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

blksizeback to summary
protected int blksize
concurTypeback to summary
protected int concurType
explicitlyClosedback to summary
pack-priv boolean explicitlyClosed
extDtaObjectsback to summary
private ArrayList<Object> extDtaObjects

List of Blobs and Clobs. Return values to send with extdta objects.

gotPrctypback to summary
private boolean gotPrctyp
hasdataback to summary
protected boolean hasdata
maxblkextback to summary
protected int maxblkext
nbrrowback to summary
protected int nbrrow
NOT_OPENEDback to summary
protected static final int NOT_OPENED
outovr_drdaTypeback to summary
protected int[] outovr_drdaType
outovroptback to summary
protected int outovropt
pkgcnstknback to summary
protected ConsistencyToken pkgcnstkn
qryblkrstback to summary
protected boolean qryblkrst
qryclsimpback to summary
protected int qryclsimp
QRYCLSIMP_DEFAULTback to summary
public static final int QRYCLSIMP_DEFAULT
qryprctypback to summary
private int qryprctyp
qryrelscrback to summary
protected boolean qryrelscr
qryrfrtblback to summary
protected boolean qryrfrtbl
qryrownbrback to summary
protected long qryrownbr
qryrowsetback to summary
protected int qryrowset
qryrowsnsback to summary
protected boolean qryrowsns
qryrtndtaback to summary
protected boolean qryrtndta
qryscrornback to summary
protected int qryscrorn
rowCountback to summary
protected long rowCount
rsback to summary
private ResultSet rs
rsDRDATypesback to summary
private int[] rsDRDATypes
rsExtPositionsback to summary
private ArrayList<Integer> rsExtPositions
rsLensback to summary
protected int[] rsLens
rslsetflgback to summary
protected byte[] rslsetflg
rsPrecisionback to summary
private int[] rsPrecision
rsScaleback to summary
private int[] rsScale
rtnextdtaback to summary
protected int rtnextdta
scrollTypeback to summary
protected int scrollType
splitQRYDTAback to summary
private byte[] splitQRYDTA
stateback to summary
pack-priv int state
SUSPENDEDback to summary
protected static final int SUSPENDED
withHoldCursorback to summary
protected int withHoldCursor

Constructor Detail

DRDAResultSetback to summary
pack-priv DRDAResultSet()

Method Detail

addExtDtaObjectback to summary
protected void addExtDtaObject(Object o, int jdbcIndex)

Add extDtaObject

Parameters
o:Object

- object to add

clearExtDtaObjectsback to summary
protected void clearExtDtaObjects()

Clear externalized lob objects in current result set

closeback to summary
protected void close() throws SQLException

This method closes the JDBC objects and frees up all references held by this object.

CLSQRYback to summary
protected void CLSQRY()

Explicitly close the result set by CLSQRY needed to check for double close.

getExtDtaObjectsback to summary
protected ArrayList<Object> getExtDtaObjects()

Get the extData Objects

Returns:ArrayList<Object>

ArrayList with extdta

getQryprctypback to summary
protected int getQryprctyp() throws SQLException
getResultSetback to summary
protected ResultSet getResultSet()
Returns:ResultSet

the underlying java.sql.ResultSet

getResultSetCursorNameback to summary
public String getResultSetCursorName() throws SQLException

Get the cursor name for the ResultSet

getRsDRDATypeback to summary
protected int getRsDRDAType(int index)

get resultset/out parameter DRDAType

Parameters
index:int

- starting with 1

Returns:int

DRDA Type of column

getRsDRDATypesback to summary
protected int[] getRsDRDATypes()
Returns:int[]

ResultSet DRDA DataTypes

getRsLenback to summary
protected int getRsLen(int index)

get resultset DRDALen

Parameters
index:int

- starting with 1

Returns:int

length of column value

getRsPrecisionback to summary
protected int getRsPrecision(int index)

get resultset /out parameter precision

Parameters
index:int

-starting with 1

Returns:int

precision of column

getRsScaleback to summary
protected int getRsScale(int index)

get resultset /out parameter scale

Parameters
index:int

-starting with 1

Returns:int

scale of column

getSplitQRYDTAback to summary
public byte[] getSplitQRYDTA()
getStateStringback to summary
private String getStateString(int i)
hasLobColumnsback to summary
protected boolean hasLobColumns() throws SQLException

Check to see if the result set for this statement has at least one column that is BLOB/CLOB.

Returns:boolean

True if the result has at least one blob/clob column; false otherwise.

isClosedback to summary
protected boolean isClosed()

is ResultSet closed

Returns:boolean

whether the resultSet is closed

isExtDtaValueNullableback to summary
protected boolean isExtDtaValueNullable(int index)

Is lob object nullable

Parameters
index:int

- offset starting with 0

Returns:boolean

true if object is nullable

resetback to summary
protected void reset()

This method resets the state of this DRDAResultset object so that it can be re-used. This method should reset all variables of this class.

setOPNQRYOptionsback to summary
protected void setOPNQRYOptions(int blksize, int qryblkctl, int maxblkext, int outovropt, int qryrowset, int qryclsimpl)

Sets the OPNQRYOptions. For more information on the meaning of these values consult the DRDA Technical Standard document.

Parameters
blksize:int

Query block Size

qryblkctl:int

Use to set the query protocol type

maxblkext:int

Maximum number of extra blocks

outovropt:int

Output override option

qryrowset:int

Query row set

qryclsimpl:int

Implicit query close setting

setPkgcnstknback to summary
protected void setPkgcnstkn(ConsistencyToken pkgcnstkn)

set consistency token for this resultSet

setQryprctypback to summary
protected void setQryprctyp(int qryprctyp)
setResultSetback to summary
pack-priv void setResultSet(ResultSet value) throws SQLException

Set result set and initialize type array.

setRsDRDATypeback to summary
protected void setRsDRDAType(int index, int type)

set resultset/out parameter DRDAType

Parameters
index:int

- starting with 1

setRsPrecisionback to summary
protected void setRsPrecision(int index, int precision)

set resultset/out parameter precision

Parameters
index:int

- starting with 1

setRsScaleback to summary
protected void setRsScale(int index, int scale)

set resultset/out parameter scale

Parameters
index:int

- starting with 1

setSplitQRYDTAback to summary
public void setSplitQRYDTA(byte[] data)
suspendback to summary
protected void suspend()

Set state to SUSPENDED (result set is opened)

toDebugStringback to summary
protected String toDebugString(String indent)
wasExplicitlyClosedback to summary
protected boolean wasExplicitlyClosed()