org.apache.derby.impl.jdbc
Class EmbedResultSet40
java.lang.Object
org.apache.derby.impl.jdbc.ConnectionChild
org.apache.derby.impl.jdbc.EmbedResultSet
org.apache.derby.impl.jdbc.EmbedResultSet20
org.apache.derby.impl.jdbc.EmbedResultSet40
- All Implemented Interfaces:
- java.lang.Comparable, java.sql.ResultSet, java.sql.Wrapper, EngineResultSet
public class EmbedResultSet40
- extends EmbedResultSet20
JDBC 4 specific methods that cannot be implemented in superclasses and
unimplemented JDBC 4 methods.
In general, the implementations should be pushed to the superclasses. This
is not possible if the methods use objects or features not available in the
Java version associated with the earlier JDBC version, since Derby classes
are compiled with the lowest possible Java version.
Fields inherited from class org.apache.derby.impl.jdbc.EmbedResultSet |
ABSOLUTE, AFTERLAST, BEFOREFIRST, FIRST, isClosed, LAST, NEXT, order, PREVIOUS, RELATIVE, singleUseActivation, wasNull |
Fields inherited from interface java.sql.ResultSet |
CLOSE_CURSORS_AT_COMMIT, CONCUR_READ_ONLY, CONCUR_UPDATABLE, FETCH_FORWARD, FETCH_REVERSE, FETCH_UNKNOWN, HOLD_CURSORS_OVER_COMMIT, TYPE_FORWARD_ONLY, TYPE_SCROLL_INSENSITIVE, TYPE_SCROLL_SENSITIVE |
Method Summary |
java.io.Reader |
getNCharacterStream(int columnIndex)
|
java.io.Reader |
getNCharacterStream(java.lang.String columnName)
|
java.sql.NClob |
getNClob(int i)
|
java.sql.NClob |
getNClob(java.lang.String colName)
|
java.lang.String |
getNString(int columnIndex)
|
java.lang.String |
getNString(java.lang.String columnName)
|
java.sql.RowId |
getRowId(int columnIndex)
|
java.sql.RowId |
getRowId(java.lang.String columnName)
|
java.sql.SQLXML |
getSQLXML(int columnIndex)
|
java.sql.SQLXML |
getSQLXML(java.lang.String colName)
|
boolean |
isWrapperFor(java.lang.Class<?> interfaces)
Returns false unless interfaces is implemented |
|
unwrap(java.lang.Class<T> interfaces)
Returns this if this class implements the interface |
void |
updateNCharacterStream(int columnIndex,
java.io.Reader x)
|
void |
updateNCharacterStream(int columnIndex,
java.io.Reader x,
long length)
|
void |
updateNCharacterStream(java.lang.String columnName,
java.io.Reader x)
|
void |
updateNCharacterStream(java.lang.String columnName,
java.io.Reader x,
long length)
|
void |
updateNClob(int columnIndex,
java.sql.NClob nClob)
|
void |
updateNClob(int columnIndex,
java.io.Reader reader)
|
void |
updateNClob(int columnIndex,
java.io.Reader x,
long length)
Updates the designated column using the given Reader object,
which is the given number of characters long. |
void |
updateNClob(java.lang.String columnName,
java.sql.NClob nClob)
|
void |
updateNClob(java.lang.String columnName,
java.io.Reader reader)
|
void |
updateNClob(java.lang.String columnName,
java.io.Reader x,
long length)
Updates the designated column using the given Reader object,
which is the given number of characters long. |
void |
updateNString(int columnIndex,
java.lang.String nString)
|
void |
updateNString(java.lang.String columnName,
java.lang.String nString)
|
void |
updateRowId(int columnIndex,
java.sql.RowId x)
|
void |
updateRowId(java.lang.String columnName,
java.sql.RowId x)
|
void |
updateSQLXML(int columnIndex,
java.sql.SQLXML xmlObject)
|
void |
updateSQLXML(java.lang.String columnName,
java.sql.SQLXML xmlObject)
|
Methods inherited from class org.apache.derby.impl.jdbc.EmbedResultSet20 |
getArray, getArray, getBigDecimal, getBigDecimal, getBigDecimal, getBigDecimal, getObject, getObject, getRef, getRef, getUnicodeStream, getUnicodeStream, updateArray, updateArray, updateBigDecimal, updateBigDecimal, updateObject, updateRef, updateRef |
Methods inherited from class org.apache.derby.impl.jdbc.EmbedResultSet |
absolute, afterLast, beforeFirst, cancelRowUpdates, checkExecIfClosed, checkIfClosed, checkOnRow, checksBeforeInsert, checksBeforeUpdateOrDelete, checksBeforeUpdateXXX, clearWarnings, close, closeOnTransactionError, compareTo, deleteRow, findColumn, findColumnName, first, getAsciiStream, getAsciiStream, getBinaryStream, getBinaryStream, getBlob, getBlob, getBoolean, getBoolean, getByte, getByte, getBytes, getBytes, getCharacterStream, getCharacterStream, getClob, getClob, getColumn, getColumnSQLType, getColumnType, getConcurrency, getCursorName, getDate, getDate, getDate, getDate, getDouble, getDouble, getDVDforColumnToBeUpdated, getFetchDirection, getFetchSize, getFloat, getFloat, getHoldability, getInt, getInt, getLength, getLong, getLong, getMetaData, getObject, getObject, getParameterValueSet, getRow, getShort, getShort, getSQLText, getStatement, getString, getString, getTime, getTime, getTime, getTime, getTimestamp, getTimestamp, getTimestamp, getTimestamp, getType, getURL, getURL, getWarnings, insertRow, isAfterLast, isBeforeFirst, isClosed, isFirst, isForUpdate, isLast, isNull, last, movePosition, movePosition, moveToCurrentRow, moveToInsertRow, next, noStateChangeException, previous, refreshRow, relative, rowDeleted, rowInserted, rowUpdated, setApplicationStatement, setDynamicResultSet, setFetchDirection, setFetchSize, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBlob, updateBlob, updateBlob, updateBlob, updateBlob, updateBlob, updateBoolean, updateBoolean, updateByte, updateByte, updateBytes, updateBytes, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateClob, updateClob, updateClob, updateClob, updateClob, updateClob, updateDate, updateDate, updateDouble, updateDouble, updateFloat, updateFloat, updateInt, updateInt, updateLong, updateLong, updateNull, updateNull, updateObject, updateObject, updateObject, updateRow, updateShort, updateShort, updateString, updateString, updateTime, updateTime, updateTimestamp, updateTimestamp, useStreamOrLOB, wasNull |
Methods inherited from class org.apache.derby.impl.jdbc.ConnectionChild |
commitIfAutoCommit, commitIfNeeded, getCal, getConnectionSynchronization, getEmbedConnection, handleException, needCommit, newSQLException, newSQLException, newSQLException, restoreContextStack, setupContextStack |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EmbedResultSet40
public EmbedResultSet40(EmbedConnection conn,
ResultSet resultsToWrap,
boolean forMetaData,
EmbedStatement stmt,
boolean isAtomic)
throws java.sql.SQLException
- Creates a new instance of EmbedResultSet40
- Throws:
java.sql.SQLException
getRowId
public java.sql.RowId getRowId(int columnIndex)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getRowId
public java.sql.RowId getRowId(java.lang.String columnName)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
updateNCharacterStream
public void updateNCharacterStream(int columnIndex,
java.io.Reader x)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
updateNCharacterStream
public void updateNCharacterStream(int columnIndex,
java.io.Reader x,
long length)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
updateNCharacterStream
public void updateNCharacterStream(java.lang.String columnName,
java.io.Reader x)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
updateNCharacterStream
public void updateNCharacterStream(java.lang.String columnName,
java.io.Reader x,
long length)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
updateNString
public void updateNString(int columnIndex,
java.lang.String nString)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
updateNString
public void updateNString(java.lang.String columnName,
java.lang.String nString)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
updateNClob
public void updateNClob(int columnIndex,
java.sql.NClob nClob)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
updateNClob
public void updateNClob(int columnIndex,
java.io.Reader reader)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
updateNClob
public void updateNClob(java.lang.String columnName,
java.sql.NClob nClob)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
updateNClob
public void updateNClob(java.lang.String columnName,
java.io.Reader reader)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getNCharacterStream
public java.io.Reader getNCharacterStream(int columnIndex)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getNCharacterStream
public java.io.Reader getNCharacterStream(java.lang.String columnName)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getNClob
public java.sql.NClob getNClob(int i)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getNClob
public java.sql.NClob getNClob(java.lang.String colName)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getNString
public java.lang.String getNString(int columnIndex)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getNString
public java.lang.String getNString(java.lang.String columnName)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
updateRowId
public void updateRowId(int columnIndex,
java.sql.RowId x)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
updateRowId
public void updateRowId(java.lang.String columnName,
java.sql.RowId x)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getSQLXML
public java.sql.SQLXML getSQLXML(int columnIndex)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getSQLXML
public java.sql.SQLXML getSQLXML(java.lang.String colName)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
updateSQLXML
public void updateSQLXML(int columnIndex,
java.sql.SQLXML xmlObject)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
updateSQLXML
public void updateSQLXML(java.lang.String columnName,
java.sql.SQLXML xmlObject)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
isWrapperFor
public boolean isWrapperFor(java.lang.Class<?> interfaces)
throws java.sql.SQLException
- Returns false unless
interfaces
is implemented
- Parameters:
interfaces
- a Class defining an interface.
- Returns:
- true if this implements the interface or
directly or indirectly wraps an object
that does.
- Throws:
java.sql.SQLException
- if an error occurs while determining
whether this is a wrapper for an object
with the given interface.
unwrap
public <T> T unwrap(java.lang.Class<T> interfaces)
throws java.sql.SQLException
- Returns
this
if this class implements the interface
- Parameters:
interfaces
- a Class defining an interface
- Returns:
- an object that implements the interface
- Throws:
java.sql.SQLExption
- if no object if found that implements the
interface
java.sql.SQLException
updateNClob
public void updateNClob(int columnIndex,
java.io.Reader x,
long length)
throws java.sql.SQLException
- Updates the designated column using the given Reader object,
which is the given number of characters long.
- Parameters:
columnIndex
- -
the first column is 1, the second is 2x
- -
the new column valuelength
- -
the length of the stream
- Throws:
java.sql.SQLException
- Feature not implemented for now.
updateNClob
public void updateNClob(java.lang.String columnName,
java.io.Reader x,
long length)
throws java.sql.SQLException
- Updates the designated column using the given Reader object,
which is the given number of characters long.
- Parameters:
columnName
- -
the Name of the column to be updatedx
- -
the new column valuelength
- -
the length of the stream
- Throws:
java.sql.SQLException
- Feature not implemented for now.
Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.