|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mysql.jdbc.ResultSetImpl
com.mysql.jdbc.UpdatableResultSet
com.mysql.jdbc.JDBC4UpdatableResultSet
public class JDBC4UpdatableResultSet
Field Summary |
---|
Fields inherited from class com.mysql.jdbc.UpdatableResultSet |
---|
charConverter, inserter, STREAM_DATA_MARKER, updater |
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 |
Constructor Summary | |
---|---|
JDBC4UpdatableResultSet(java.lang.String catalog,
Field[] fields,
RowData tuples,
ConnectionImpl conn,
StatementImpl creatorStmt)
|
Method Summary | ||
---|---|---|
int |
getHoldability()
|
|
protected java.sql.NClob |
getNativeNClob(int columnIndex)
JDBC 4.0 Get a NCLOB column. |
|
java.io.Reader |
getNCharacterStream(int columnIndex)
JDBC 4.0 Get the value of a column in the current row as a java.io.Reader. |
|
java.io.Reader |
getNCharacterStream(java.lang.String columnName)
JDBC 4.0 Get the value of a column in the current row as a java.io.Reader. |
|
java.sql.NClob |
getNClob(int columnIndex)
JDBC 4.0 Get a NCLOB column. |
|
java.sql.NClob |
getNClob(java.lang.String columnName)
JDBC 4.0 Get a NCLOB column. |
|
java.lang.String |
getNString(int columnIndex)
JDBC 4.0 Get the value of a column in the current row as a Java String |
|
java.lang.String |
getNString(java.lang.String columnName)
JDBC 4.0 The following routines simply convert the columnName into a columnIndex and then call the appropriate routine above. |
|
java.sql.RowId |
getRowId(int columnIndex)
|
|
java.sql.RowId |
getRowId(java.lang.String columnLabel)
|
|
java.sql.SQLXML |
getSQLXML(int columnIndex)
|
|
java.sql.SQLXML |
getSQLXML(java.lang.String columnLabel)
|
|
boolean |
isClosed()
|
|
boolean |
isWrapperFor(java.lang.Class<?> iface)
Returns true if this either implements the interface argument or is directly or indirectly a wrapper for an object that does. |
|
|
unwrap(java.lang.Class<T> iface)
Returns an object that implements the given interface to allow access to non-standard methods, or standard methods not exposed by the proxy. |
|
void |
updateAsciiStream(int columnIndex,
java.io.InputStream x)
|
|
void |
updateAsciiStream(int columnIndex,
java.io.InputStream x,
long length)
|
|
void |
updateAsciiStream(java.lang.String columnLabel,
java.io.InputStream x)
|
|
void |
updateAsciiStream(java.lang.String columnLabel,
java.io.InputStream x,
long length)
|
|
void |
updateBinaryStream(int columnIndex,
java.io.InputStream x)
|
|
void |
updateBinaryStream(int columnIndex,
java.io.InputStream x,
long length)
|
|
void |
updateBinaryStream(java.lang.String columnLabel,
java.io.InputStream x)
|
|
void |
updateBinaryStream(java.lang.String columnLabel,
java.io.InputStream x,
long length)
|
|
void |
updateBlob(int columnIndex,
java.io.InputStream inputStream)
|
|
void |
updateBlob(int columnIndex,
java.io.InputStream inputStream,
long length)
|
|
void |
updateBlob(java.lang.String columnLabel,
java.io.InputStream inputStream)
|
|
void |
updateBlob(java.lang.String columnLabel,
java.io.InputStream inputStream,
long length)
|
|
void |
updateCharacterStream(int columnIndex,
java.io.Reader x)
|
|
void |
updateCharacterStream(int columnIndex,
java.io.Reader x,
long length)
|
|
void |
updateCharacterStream(java.lang.String columnLabel,
java.io.Reader reader)
|
|
void |
updateCharacterStream(java.lang.String columnLabel,
java.io.Reader reader,
long length)
|
|
void |
updateClob(int columnIndex,
java.io.Reader reader)
|
|
void |
updateClob(int columnIndex,
java.io.Reader reader,
long length)
|
|
void |
updateClob(java.lang.String columnLabel,
java.io.Reader reader)
|
|
void |
updateClob(java.lang.String columnLabel,
java.io.Reader reader,
long length)
|
|
void |
updateNCharacterStream(int columnIndex,
java.io.Reader x)
|
|
void |
updateNCharacterStream(int columnIndex,
java.io.Reader x,
int length)
JDBC 4.0 Update a column with a character stream value. |
|
void |
updateNCharacterStream(int columnIndex,
java.io.Reader x,
long length)
|
|
void |
updateNCharacterStream(java.lang.String columnLabel,
java.io.Reader reader)
|
|
void |
updateNCharacterStream(java.lang.String columnName,
java.io.Reader reader,
int length)
JDBC 4.0 Update a column with a character stream value. |
|
void |
updateNCharacterStream(java.lang.String columnLabel,
java.io.Reader reader,
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 reader,
long length)
|
|
void |
updateNClob(java.lang.String columnName,
java.sql.NClob nClob)
|
|
void |
updateNClob(java.lang.String columnLabel,
java.io.Reader reader)
|
|
void |
updateNClob(java.lang.String columnLabel,
java.io.Reader reader,
long length)
|
|
void |
updateNString(int columnIndex,
java.lang.String x)
JDBC 4.0 Update a column with NATIONAL CHARACTER. |
|
void |
updateNString(java.lang.String columnName,
java.lang.String x)
JDBC 4.0 Update a column with NATIONAL CHARACTER. |
|
void |
updateRowId(int columnIndex,
java.sql.RowId x)
|
|
void |
updateSQLXML(int columnIndex,
java.sql.SQLXML xmlObject)
|
|
void |
updateSQLXML(java.lang.String columnLabel,
java.sql.SQLXML xmlObject)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.sql.ResultSet |
---|
updateRowId |
Constructor Detail |
---|
public JDBC4UpdatableResultSet(java.lang.String catalog, Field[] fields, RowData tuples, ConnectionImpl conn, StatementImpl creatorStmt) throws java.sql.SQLException
java.sql.SQLException
Method Detail |
---|
public void updateAsciiStream(int columnIndex, java.io.InputStream x) throws java.sql.SQLException
java.sql.SQLException
public void updateAsciiStream(int columnIndex, java.io.InputStream x, long length) throws java.sql.SQLException
java.sql.SQLException
public void updateBinaryStream(int columnIndex, java.io.InputStream x) throws java.sql.SQLException
java.sql.SQLException
public void updateBinaryStream(int columnIndex, java.io.InputStream x, long length) throws java.sql.SQLException
java.sql.SQLException
public void updateBlob(int columnIndex, java.io.InputStream inputStream) throws java.sql.SQLException
java.sql.SQLException
public void updateBlob(int columnIndex, java.io.InputStream inputStream, long length) throws java.sql.SQLException
java.sql.SQLException
public void updateCharacterStream(int columnIndex, java.io.Reader x) throws java.sql.SQLException
java.sql.SQLException
public void updateCharacterStream(int columnIndex, java.io.Reader x, long length) throws java.sql.SQLException
java.sql.SQLException
public void updateClob(int columnIndex, java.io.Reader reader) throws java.sql.SQLException
java.sql.SQLException
public void updateClob(int columnIndex, java.io.Reader reader, long length) throws java.sql.SQLException
java.sql.SQLException
public void updateNCharacterStream(int columnIndex, java.io.Reader x) throws java.sql.SQLException
java.sql.SQLException
public void updateNCharacterStream(int columnIndex, java.io.Reader x, long length) throws java.sql.SQLException
java.sql.SQLException
public void updateNClob(int columnIndex, java.io.Reader reader) throws java.sql.SQLException
java.sql.SQLException
public void updateNClob(int columnIndex, java.io.Reader reader, long length) throws java.sql.SQLException
java.sql.SQLException
public void updateSQLXML(int columnIndex, java.sql.SQLXML xmlObject) throws java.sql.SQLException
java.sql.SQLException
public void updateRowId(int columnIndex, java.sql.RowId x) throws java.sql.SQLException
java.sql.SQLException
public void updateAsciiStream(java.lang.String columnLabel, java.io.InputStream x) throws java.sql.SQLException
java.sql.SQLException
public void updateAsciiStream(java.lang.String columnLabel, java.io.InputStream x, long length) throws java.sql.SQLException
java.sql.SQLException
public void updateBinaryStream(java.lang.String columnLabel, java.io.InputStream x) throws java.sql.SQLException
java.sql.SQLException
public void updateBinaryStream(java.lang.String columnLabel, java.io.InputStream x, long length) throws java.sql.SQLException
java.sql.SQLException
public void updateBlob(java.lang.String columnLabel, java.io.InputStream inputStream) throws java.sql.SQLException
java.sql.SQLException
public void updateBlob(java.lang.String columnLabel, java.io.InputStream inputStream, long length) throws java.sql.SQLException
java.sql.SQLException
public void updateCharacterStream(java.lang.String columnLabel, java.io.Reader reader) throws java.sql.SQLException
java.sql.SQLException
public void updateCharacterStream(java.lang.String columnLabel, java.io.Reader reader, long length) throws java.sql.SQLException
java.sql.SQLException
public void updateClob(java.lang.String columnLabel, java.io.Reader reader) throws java.sql.SQLException
java.sql.SQLException
public void updateClob(java.lang.String columnLabel, java.io.Reader reader, long length) throws java.sql.SQLException
java.sql.SQLException
public void updateNCharacterStream(java.lang.String columnLabel, java.io.Reader reader) throws java.sql.SQLException
java.sql.SQLException
public void updateNCharacterStream(java.lang.String columnLabel, java.io.Reader reader, long length) throws java.sql.SQLException
java.sql.SQLException
public void updateNClob(java.lang.String columnLabel, java.io.Reader reader) throws java.sql.SQLException
java.sql.SQLException
public void updateNClob(java.lang.String columnLabel, java.io.Reader reader, long length) throws java.sql.SQLException
java.sql.SQLException
public void updateSQLXML(java.lang.String columnLabel, java.sql.SQLXML xmlObject) throws java.sql.SQLException
java.sql.SQLException
public void updateNCharacterStream(int columnIndex, java.io.Reader x, int length) throws java.sql.SQLException
columnIndex
- the first column is 1, the second is 2, ...x
- the new column valuelength
- the length of the stream
java.sql.SQLException
- if a database-access error occurspublic void updateNCharacterStream(java.lang.String columnName, java.io.Reader reader, int length) throws java.sql.SQLException
columnName
- the name of the columnreader
- the new column valuelength
- of the stream
java.sql.SQLException
- if a database-access error occurspublic void updateNClob(int columnIndex, java.sql.NClob nClob) throws java.sql.SQLException
java.sql.SQLException
ResultSet#updateNClob(int, NClob)
public void updateNClob(java.lang.String columnName, java.sql.NClob nClob) throws java.sql.SQLException
java.sql.SQLException
ResultSet#updateClob(int, Clob)
public void updateNString(int columnIndex, java.lang.String x) throws java.sql.SQLException
columnIndex
- the first column is 1, the second is 2, ...x
- the new column value
java.sql.SQLException
- if a database-access error occurspublic void updateNString(java.lang.String columnName, java.lang.String x) throws java.sql.SQLException
columnName
- the name of the columnx
- the new column value
java.sql.SQLException
- if a database-access error occurspublic int getHoldability() throws java.sql.SQLException
java.sql.SQLException
protected java.sql.NClob getNativeNClob(int columnIndex) throws java.sql.SQLException
columnIndex
- the first column is 1, the second is 2, ...
java.sql.SQLException
- if an error occurspublic java.io.Reader getNCharacterStream(int columnIndex) throws java.sql.SQLException
Get the value of a column in the current row as a java.io.Reader.
columnIndex
- the column to get the value from
java.sql.SQLException
- if an error occurspublic java.io.Reader getNCharacterStream(java.lang.String columnName) throws java.sql.SQLException
Get the value of a column in the current row as a java.io.Reader.
columnName
- the column name to retrieve the value from
java.sql.SQLException
- if an error occurspublic java.sql.NClob getNClob(int columnIndex) throws java.sql.SQLException
i
- the first column is 1, the second is 2, ...
java.sql.SQLException
- if an error occurspublic java.sql.NClob getNClob(java.lang.String columnName) throws java.sql.SQLException
colName
- the column name
java.sql.SQLException
- if an error occurspublic java.lang.String getNString(int columnIndex) throws java.sql.SQLException
columnIndex
- the first column is 1, the second is 2...
java.sql.SQLException
- if a database access error occurspublic java.lang.String getNString(java.lang.String columnName) throws java.sql.SQLException
columnName
- is the SQL name of the column
java.sql.SQLException
- if a database access error occurspublic java.sql.RowId getRowId(int columnIndex) throws java.sql.SQLException
java.sql.SQLException
public java.sql.RowId getRowId(java.lang.String columnLabel) throws java.sql.SQLException
java.sql.SQLException
public java.sql.SQLXML getSQLXML(int columnIndex) throws java.sql.SQLException
java.sql.SQLException
public java.sql.SQLXML getSQLXML(java.lang.String columnLabel) throws java.sql.SQLException
java.sql.SQLException
public boolean isClosed() throws java.sql.SQLException
java.sql.SQLException
public boolean isWrapperFor(java.lang.Class<?> iface) throws java.sql.SQLException
isWrapperFor
on the wrapped object. If this does not
implement the interface and is not a wrapper, return false. This method
should be implemented as a low-cost operation compared to
unwrap
so that callers can use this method to avoid
expensive unwrap
calls that may fail. If this method
returns true then calling unwrap
with the same argument
should succeed.
interfaces
- a Class defining an interface.
java.sql.SQLException
- if an error occurs while determining whether this is a
wrapper for an object with the given interface.public <T> T unwrap(java.lang.Class<T> iface) throws java.sql.SQLException
unwrap
recursively on the wrapped
object. If the receiver is not a wrapper and does not implement the
interface, then an SQLException
is thrown.
iface
- A Class defining an interface that the result must implement.
java.sql.SQLException
- If no object found that implements the interface
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |