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

public Class EmbedResultSet42

extends EmbedResultSet
Class Inheritance
Imports
org.apache.derby.iapi.sql.ResultSet, java.sql.SQLException, .SQLType

JDBC 4.2 specific methods that cannot be implemented in superclasses.

Field Summary

Inherited from org.apache.derby.impl.jdbc.EmbedResultSet:
ABSOLUTEAFTERLASTBEFOREFIRSTFIRSTisClosedLASTNEXTorderPREVIOUSRELATIVEsingleUseActivationwasNull

Constructor Summary

AccessConstructor and Description
public
EmbedResultSet42(EmbedConnection conn, ResultSet resultsToWrap, boolean forMetaData, EmbedStatement stmt, boolean isAtomic)

Creates a new instance of EmbedResultSet42

Method Summary

Modifier and TypeMethod and Description
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.impl.jdbc.EmbedResultSet:
absoluteadjustScaleafterLastbeforeFirstcancelRowUpdatescheckExecIfClosedcheckIfClosedcheckOnRowchecksBeforeInsertchecksBeforeUpdateOrDeletechecksBeforeUpdateXXXclearWarningsclosecloseOnTransactionErrorcompareTodeleteRowfindColumnfindColumnNamefirstgetArraygetArraygetAsciiStreamgetAsciiStreamgetBigDecimalgetBigDecimalgetBigDecimalgetBigDecimalgetBinaryStreamgetBinaryStreamgetBlobgetBlobgetBooleangetBooleangetBytegetBytegetBytesgetBytesgetCharacterStreamgetCharacterStreamgetClobgetClobgetColumngetColumnSQLTypegetColumnTypegetConcurrencygetCursorNamegetDategetDategetDategetDategetDoublegetDoublegetDVDforColumnToBeUpdatedgetFetchDirectiongetFetchSizegetFloatgetFloatgetHoldabilitygetIntgetIntgetLengthgetLonggetLonggetMetaDatagetNCharacterStreamgetNCharacterStreamgetNClobgetNClobgetNStringgetNStringgetObjectgetObjectgetObjectgetObjectgetObjectgetObjectgetParameterValueSetgetRefgetRefgetRowgetRowIdgetRowIdgetShortgetShortgetSQLTextgetSQLXMLgetSQLXMLgetStatementgetStringgetStringgetTimegetTimegetTimegetTimegetTimestampgetTimestampgetTimestampgetTimestampgetTypegetUnicodeStreamgetUnicodeStreamgetURLgetURLgetWarningsinsertRowisAfterLastisBeforeFirstisClosedisFirstisForUpdateisLastisNullisWrapperForlastmovePositionmovePositionmoveToCurrentRowmoveToInsertRownextnoStateChangeExceptionpreviousrefreshRowrelativerowDeletedrowInsertedrowUpdatedsetApplicationStatementsetDynamicResultSetsetFetchDirectionsetFetchedRowBasesetFetchSizeunwrapupdateArrayupdateArrayupdateAsciiStreamupdateAsciiStreamupdateAsciiStreamupdateAsciiStreamupdateAsciiStreamupdateAsciiStreamupdateBigDecimalupdateBigDecimalupdateBinaryStreamupdateBinaryStreamupdateBinaryStreamupdateBinaryStreamupdateBinaryStreamupdateBinaryStreamupdateBlobupdateBlobupdateBlobupdateBlobupdateBlobupdateBlobupdateBooleanupdateBooleanupdateByteupdateByteupdateBytesupdateBytesupdateCharacterStreamupdateCharacterStreamupdateCharacterStreamupdateCharacterStreamupdateCharacterStreamupdateCharacterStreamupdateClobupdateClobupdateClobupdateClobupdateClobupdateClobupdateDateupdateDateupdateDoubleupdateDoubleupdateFloatupdateFloatupdateIntupdateIntupdateLongupdateLongupdateNCharacterStreamupdateNCharacterStreamupdateNCharacterStreamupdateNCharacterStreamupdateNClobupdateNClobupdateNClobupdateNClobupdateNClobupdateNClobupdateNStringupdateNStringupdateNullupdateNullupdateObjectupdateObjectupdateObjectupdateObjectupdateRefupdateRefupdateRowupdateRowIdupdateRowIdupdateShortupdateShortupdateSQLXMLupdateSQLXMLupdateStringupdateStringupdateTimeupdateTimeupdateTimestampupdateTimestampuseStreamOrLOBwasNull

Constructor Detail

EmbedResultSet42back to summary
public EmbedResultSet42(EmbedConnection conn, ResultSet resultsToWrap, boolean forMetaData, EmbedStatement stmt, boolean isAtomic) throws SQLException

Creates a new instance of EmbedResultSet42

Method Detail

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