Top Fields Constructors Methods
org.apache.derby.client.net

pack-priv Class NetResultSet42

extends NetResultSet
Class Inheritance
Imports
java.sql.SQLException, .SQLType, org.apache.derby.client.am.Cursor, .SqlException, .Utils42

Field Summary

Inherited from org.apache.derby.client.net.NetResultSet:
firstOutovrBuilt_netCursor_

Constructor Summary

AccessConstructor and Description
pack-priv
NetResultSet42(NetAgent netAgent, NetStatement netStatement, Cursor cursor, int qryprctyp, int sqlcsrhld, int qryattscr, int qryattsns, int qryattset, long qryinsid, int actualResultSetType, int actualResultSetConcurrency, int actualResultSetHoldability)

Method Summary

Modifier and TypeMethod and Description
private void
checkClosed(String methodName)

public void
updateObject(int
the first column is 1, the second is 2, ...
columnIndex
,
Object
the new column value
x
,
SQLType
the SQL type to be sent to the database
targetSqlType
)

Overrides default java.sql.ResultSet.updateObject.

Updates the designated column with an Object value.
public void
updateObject(int
the first column is 1, the second is 2, ...
columnIndex
,
Object
the new column value
x
,
SQLType
the SQL type to be sent to the database
targetSqlType
,
int
for an object of java.math.BigDecimal , this is the number of digits after the decimal point. For Java Object types InputStream and Reader, this is the length of the data in the stream or reader. For all other types, this value will be ignored.
scaleOrLength
)

Overrides default java.sql.ResultSet.updateObject.

Updates the designated column with an Object value.
public void
updateObject(String
the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the column
columnName
,
Object
the new column value
x
,
SQLType
the SQL type to be sent to the database
targetSqlType
)

Overrides default java.sql.ResultSet.updateObject.

Updates the designated column with an Object value.
public void
updateObject(String
the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the column
columnName
,
Object
the new column value
x
,
SQLType
the SQL type to be sent to the database
targetSqlType
,
int
for an object of java.math.BigDecimal , this is the number of digits after the decimal point. For Java Object types InputStream and Reader, this is the length of the data in the stream or reader. For all other types, this value will be ignored.
scaleOrLength
)

Overrides default java.sql.ResultSet.updateObject.

Updates the designated column with an Object value.
Inherited from org.apache.derby.client.net.NetResultSet:
flowFetchflowFetchToCompleteRowsetparseRowset_preClose_readCursorClose_readFetch_readPositioningFetch_readScrollableFetch_setFetchSize_writeCursorClose_writeFetch_writePositioningFetch_writeScrollableFetch_

Constructor Detail

NetResultSet42back to summary
pack-priv NetResultSet42(NetAgent netAgent, NetStatement netStatement, Cursor cursor, int qryprctyp, int sqlcsrhld, int qryattscr, int qryattsns, int qryattset, long qryinsid, int actualResultSetType, int actualResultSetConcurrency, int actualResultSetHoldability)

Method Detail

checkClosedback to summary
private void checkClosed(String methodName) throws SQLException
updateObjectback to summary
public void updateObject(int columnIndex, Object x, SQLType targetSqlType) throws SQLException

Overrides default java.sql.ResultSet.updateObject.

Doc from java.sql.ResultSet.updateObject.

Updates the designated column with an Object value. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.

The default implementation will throw SQLFeatureNotSupportedException

Parameters
columnIndex:int

the first column is 1, the second is 2, ...

x:Object

the new column value

targetSqlType:SQLType

the SQL type to be sent to the database

Exceptions
SQLException:
if the columnIndex is not valid; if a database access error occurs; the result set concurrency is CONCUR_READ_ONLY or this method is called on a closed result set
updateObjectback to summary
public void updateObject(int columnIndex, Object x, SQLType targetSqlType, int scaleOrLength) throws SQLException

Overrides default java.sql.ResultSet.updateObject.

Doc from java.sql.ResultSet.updateObject.

Updates the designated column with an Object value. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.

If the second argument is an InputStream then the stream must contain the number of bytes specified by scaleOrLength. If the second argument is a Reader then the reader must contain the number of characters specified by scaleOrLength. If these conditions are not true the driver will generate a SQLException when the statement is executed.

The default implementation will throw SQLFeatureNotSupportedException

Parameters
columnIndex:int

the first column is 1, the second is 2, ...

x:Object

the new column value

targetSqlType:SQLType

the SQL type to be sent to the database

scaleOrLength:int

for an object of java.math.BigDecimal , this is the number of digits after the decimal point. For Java Object types InputStream and Reader, this is the length of the data in the stream or reader. For all other types, this value will be ignored.

Exceptions
SQLException:
if the columnIndex is not valid; if a database access error occurs; the result set concurrency is CONCUR_READ_ONLY or this method is called on a closed result set
updateObjectback to summary
public void updateObject(String columnName, Object x, SQLType targetSqlType) throws SQLException

Overrides default java.sql.ResultSet.updateObject.

Doc from java.sql.ResultSet.updateObject.

Updates the designated column with an Object value. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.

The default implementation will throw SQLFeatureNotSupportedException

Parameters
columnName:String

the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the column

x:Object

the new column value

targetSqlType:SQLType

the SQL type to be sent to the database

Exceptions
SQLException:
if the columnLabel is not valid; if a database access error occurs; the result set concurrency is CONCUR_READ_ONLY or this method is called on a closed result set
updateObjectback to summary
public void updateObject(String columnName, Object x, SQLType targetSqlType, int scaleOrLength) throws SQLException

Overrides default java.sql.ResultSet.updateObject.

Doc from java.sql.ResultSet.updateObject.

Updates the designated column with an Object value. The updater methods are used to update column values in the current row or the insert row. The updater methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.

If the second argument is an InputStream then the stream must contain number of bytes specified by scaleOrLength. If the second argument is a Reader then the reader must contain the number of characters specified by scaleOrLength. If these conditions are not true the driver will generate a SQLException when the statement is executed.

The default implementation will throw SQLFeatureNotSupportedException

Parameters
columnName:String

the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the column

x:Object

the new column value

targetSqlType:SQLType

the SQL type to be sent to the database

scaleOrLength:int

for an object of java.math.BigDecimal , this is the number of digits after the decimal point. For Java Object types InputStream and Reader, this is the length of the data in the stream or reader. For all other types, this value will be ignored.

Exceptions
SQLException:
if the columnLabel is not valid; if a database access error occurs; the result set concurrency is CONCUR_READ_ONLY or this method is called on a closed result set