checkRequiredObjects(svrcodReceived, qryprctypReceived, qryinsidReceived);
netAgent_.setSvrcod(svrcod);
// hack for now until event methods are used below
ClientStatement statement = (ClientStatement) statementI;
// if there is a cached Cursor object, then use the cached cursor object.
NetResultSet rs = null;
if (statement.cachedCursor_ != null) {
statement.cachedCursor_.resetDataBuffer();
((NetCursor) statement.cachedCursor_).extdtaData_.clear();
try {
rs = (NetResultSet)ClientDriver.getFactory().newNetResultSet
(netAgent_,
(NetStatement) statement.getMaterialStatement(),
statement.cachedCursor_,
qryprctyp, //protocolType, CodePoint.FIXROWPRC |
// CodePoint.LMTBLKPRC
sqlcsrhld, //holdOption, 0xF0 for false (default) | 0xF1 for true.
qryattscr, //scrollOption, 0xF0 for false (default) | 0xF1 for true.
qryattsns, //sensitivity, CodePoint.QRYUNK |
// CodePoint.QRYINS |
// CodePoint.QRYSNSSTC
qryattset,
qryinsid, //instanceIdentifier, 0 (if not returned, check default) or number
calculateResultSetType(qryattscr, qryattsns, statement.resultSetType_),
calculateResultSetConcurrency(qryattupd, statement.resultSetConcurrency_),
calculateResultSetHoldability(sqlcsrhld));
} catch(SqlException sqle) {
throw new DisconnectException(netAgent_,sqle);
}
} else {
try {
rs = (NetResultSet)ClientDriver.getFactory().newNetResultSet
(netAgent_,
(NetStatement) statement.getMaterialStatement(),
new NetCursor(netAgent_, qryprctyp),
qryprctyp, //protocolType, CodePoint.FIXROWPRC |
// CodePoint.LMTBLKPRC
sqlcsrhld, //holdOption, 0xF0 for false (default) | 0xF1 for true.
qryattscr, //scrollOption, 0xF0 for false (default) | 0xF1 for true.