Package org.mariadb.jdbc.client.result
Class UpdatableResult
- java.lang.Object
-
- org.mariadb.jdbc.client.result.Result
-
- org.mariadb.jdbc.client.result.CompleteResult
-
- org.mariadb.jdbc.client.result.UpdatableResult
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,java.sql.ResultSet
,java.sql.Wrapper
,Completion
,ServerMessage
public class UpdatableResult extends CompleteResult
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
canInsert
private boolean
canUpdate
private java.lang.String
changeError
private java.lang.String
database
private boolean
isAutoincrementPk
private ParameterList
parameters
private int
savedRowPointer
private java.lang.String
sqlStateError
private int
state
private static int
STATE_INSERT
private static int
STATE_INSERTED
private static int
STATE_STANDARD
private static int
STATE_UPDATE
private static int
STATE_UPDATED
private java.lang.String
table
-
Fields inherited from class org.mariadb.jdbc.client.result.CompleteResult
BEFORE_FIRST_POS
-
Fields inherited from class org.mariadb.jdbc.client.result.Result
closed, context, data, dataSize, exceptionFactory, loaded, maxRows, metadataList, outputParameter, reader, resultSetType, row, rowPointer, statement
-
-
Constructor Summary
Constructors Constructor Description UpdatableResult(Statement stmt, boolean binaryProtocol, long maxRows, ColumnDefinitionPacket[] metadataList, PacketReader reader, Context context, int resultSetType, boolean closeOnCompletion, boolean traceEnable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
absolute(int row)
void
afterLast()
void
beforeFirst()
private java.lang.String
buildInsertQuery()
Build insert queryvoid
cancelRowUpdates()
private void
cannotUpdateInsertRow(java.lang.String reason)
private void
checkIfUpdatable()
private void
checkUpdatable(int position)
void
deleteRow()
boolean
first()
int
getConcurrency()
void
insertRow()
boolean
last()
void
moveToCurrentRow()
void
moveToInsertRow()
boolean
next()
private java.sql.PreparedStatement
prepareRefreshStmt()
boolean
previous()
private byte[]
refreshRawData()
void
refreshRow()
private java.lang.String
refreshStmt()
boolean
relative(int rows)
private void
resetToRowPointer()
boolean
rowDeleted()
boolean
rowInserted()
boolean
rowUpdated()
void
updateAsciiStream(int columnIndex, java.io.InputStream x)
void
updateAsciiStream(int columnIndex, java.io.InputStream x, int length)
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, int length)
void
updateAsciiStream(java.lang.String columnLabel, java.io.InputStream x, long length)
void
updateBigDecimal(int columnIndex, java.math.BigDecimal x)
void
updateBigDecimal(java.lang.String columnLabel, java.math.BigDecimal x)
void
updateBinaryStream(int columnIndex, java.io.InputStream x)
void
updateBinaryStream(int columnIndex, java.io.InputStream x, int length)
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, int length)
void
updateBinaryStream(java.lang.String columnLabel, java.io.InputStream x, long length)
void
updateBlob(int columnIndex, java.io.InputStream x)
void
updateBlob(int columnIndex, java.io.InputStream x, long length)
void
updateBlob(int columnIndex, java.sql.Blob x)
void
updateBlob(java.lang.String columnLabel, java.io.InputStream inputStream)
void
updateBlob(java.lang.String columnLabel, java.io.InputStream inputStream, long length)
void
updateBlob(java.lang.String columnLabel, java.sql.Blob x)
void
updateBoolean(int columnIndex, boolean x)
void
updateBoolean(java.lang.String columnLabel, boolean x)
void
updateByte(int columnIndex, byte x)
void
updateByte(java.lang.String columnLabel, byte x)
void
updateBytes(int columnIndex, byte[] x)
void
updateBytes(java.lang.String columnLabel, byte[] x)
void
updateCharacterStream(int columnIndex, java.io.Reader x)
void
updateCharacterStream(int columnIndex, java.io.Reader x, int length)
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, int length)
void
updateCharacterStream(java.lang.String columnLabel, java.io.Reader reader, long length)
void
updateClob(int columnIndex, java.io.Reader x)
void
updateClob(int columnIndex, java.io.Reader x, long length)
void
updateClob(int columnIndex, java.sql.Clob x)
void
updateClob(java.lang.String columnLabel, java.io.Reader reader)
void
updateClob(java.lang.String columnLabel, java.io.Reader reader, long length)
void
updateClob(java.lang.String columnLabel, java.sql.Clob x)
void
updateDate(int columnIndex, java.sql.Date x)
void
updateDate(java.lang.String columnLabel, java.sql.Date x)
void
updateDouble(int columnIndex, double x)
void
updateDouble(java.lang.String columnLabel, double x)
void
updateFloat(int columnIndex, float x)
void
updateFloat(java.lang.String columnLabel, float x)
void
updateInt(int columnIndex, int x)
void
updateInt(java.lang.String columnLabel, int x)
private void
updateInternalObject(int columnIndex, java.lang.Object x, java.lang.Long scaleOrLength)
void
updateLong(int columnIndex, long x)
void
updateLong(java.lang.String columnLabel, long x)
void
updateNCharacterStream(int columnIndex, java.io.Reader x)
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 columnLabel, java.io.Reader reader, long length)
void
updateNClob(int columnIndex, java.io.Reader reader)
void
updateNClob(int columnIndex, java.io.Reader reader, long length)
void
updateNClob(int columnIndex, 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
updateNClob(java.lang.String columnLabel, java.sql.NClob nClob)
void
updateNString(int columnIndex, java.lang.String nString)
void
updateNString(java.lang.String columnLabel, java.lang.String nString)
void
updateNull(int columnIndex)
void
updateNull(java.lang.String columnLabel)
void
updateObject(int columnIndex, java.lang.Object x)
void
updateObject(int columnIndex, java.lang.Object x, int scaleOrLength)
void
updateObject(int columnIndex, java.lang.Object x, java.sql.SQLType targetSqlType)
void
updateObject(int columnIndex, java.lang.Object x, java.sql.SQLType targetSqlType, int scaleOrLength)
void
updateObject(java.lang.String columnLabel, java.lang.Object x)
void
updateObject(java.lang.String columnLabel, java.lang.Object x, int scaleOrLength)
void
updateObject(java.lang.String columnLabel, java.lang.Object x, java.sql.SQLType targetSqlType)
void
updateObject(java.lang.String columnLabel, java.lang.Object x, java.sql.SQLType targetSqlType, int scaleOrLength)
private java.lang.String
updateQuery()
void
updateRow()
void
updateShort(int columnIndex, short x)
void
updateShort(java.lang.String columnLabel, short x)
void
updateString(int columnIndex, java.lang.String x)
void
updateString(java.lang.String columnLabel, java.lang.String x)
void
updateTime(int columnIndex, java.sql.Time x)
void
updateTime(java.lang.String columnLabel, java.sql.Time x)
void
updateTimestamp(int columnIndex, java.sql.Timestamp x)
void
updateTimestamp(java.lang.String columnLabel, java.sql.Timestamp x)
-
Methods inherited from class org.mariadb.jdbc.client.result.CompleteResult
closeFromStmtClose, createResultSet, createResultSet, fetchRemaining, getFetchSize, getRow, isAfterLast, isFirst, isLast, setFetchSize, streaming
-
Methods inherited from class org.mariadb.jdbc.client.result.Result
abort, addRowData, checkClose, checkNotForwardOnly, clearWarnings, close, findColumn, getArray, getArray, getAsciiStream, getAsciiStream, getBigDecimal, getBigDecimal, getBigDecimal, getBigDecimal, getBigInteger, getBigInteger, getBinaryStream, getBinaryStream, getBlob, getBlob, getBoolean, getBoolean, getByte, getByte, getBytes, getBytes, getCharacterStream, getCharacterStream, getClob, getClob, getCurrentRowData, getCursorName, getDate, getDate, getDate, getDate, getDouble, getDouble, getFetchDirection, getFloat, getFloat, getHoldability, getInt, getInt, getLong, getLong, getMetaData, getNCharacterStream, getNCharacterStream, getNClob, getNClob, getNString, getNString, getObject, getObject, getObject, getObject, getObject, getObject, getRef, getRef, getRowId, getRowId, getShort, getShort, getSQLXML, getSQLXML, getStatement, getString, getString, getTime, getTime, getTime, getTime, getTimestamp, getTimestamp, getTimestamp, getTimestamp, getType, getUnicodeStream, getUnicodeStream, getURL, getURL, getWarnings, isBeforeFirst, isClosed, isOutputParameter, isWrapperFor, loaded, readNext, setFetchDirection, setStatement, skipRemaining, unwrap, updateArray, updateArray, updateRef, updateRef, updateRowData, updateRowId, updateRowId, updateSQLXML, updateSQLXML, useAliasAsName, wasNull
-
-
-
-
Field Detail
-
STATE_STANDARD
private static final int STATE_STANDARD
- See Also:
- Constant Field Values
-
STATE_UPDATE
private static final int STATE_UPDATE
- See Also:
- Constant Field Values
-
STATE_UPDATED
private static final int STATE_UPDATED
- See Also:
- Constant Field Values
-
STATE_INSERT
private static final int STATE_INSERT
- See Also:
- Constant Field Values
-
STATE_INSERTED
private static final int STATE_INSERTED
- See Also:
- Constant Field Values
-
database
private java.lang.String database
-
table
private java.lang.String table
-
canInsert
private boolean canInsert
-
canUpdate
private boolean canUpdate
-
sqlStateError
private java.lang.String sqlStateError
-
isAutoincrementPk
private boolean isAutoincrementPk
-
savedRowPointer
private int savedRowPointer
-
changeError
private java.lang.String changeError
-
state
private int state
-
parameters
private ParameterList parameters
-
-
Constructor Detail
-
UpdatableResult
public UpdatableResult(Statement stmt, boolean binaryProtocol, long maxRows, ColumnDefinitionPacket[] metadataList, PacketReader reader, Context context, int resultSetType, boolean closeOnCompletion, boolean traceEnable) throws java.io.IOException, java.sql.SQLException
- Throws:
java.io.IOException
java.sql.SQLException
-
-
Method Detail
-
checkIfUpdatable
private void checkIfUpdatable() throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
cannotUpdateInsertRow
private void cannotUpdateInsertRow(java.lang.String reason)
-
checkUpdatable
private void checkUpdatable(int position) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
rowUpdated
public boolean rowUpdated()
- Specified by:
rowUpdated
in interfacejava.sql.ResultSet
- Overrides:
rowUpdated
in classResult
-
rowInserted
public boolean rowInserted()
- Specified by:
rowInserted
in interfacejava.sql.ResultSet
- Overrides:
rowInserted
in classResult
-
rowDeleted
public boolean rowDeleted()
- Specified by:
rowDeleted
in interfacejava.sql.ResultSet
- Overrides:
rowDeleted
in classResult
-
updateNull
public void updateNull(int columnIndex) throws java.sql.SQLException
- Specified by:
updateNull
in interfacejava.sql.ResultSet
- Overrides:
updateNull
in classResult
- Throws:
java.sql.SQLException
-
updateBoolean
public void updateBoolean(int columnIndex, boolean x) throws java.sql.SQLException
- Specified by:
updateBoolean
in interfacejava.sql.ResultSet
- Overrides:
updateBoolean
in classResult
- Throws:
java.sql.SQLException
-
updateByte
public void updateByte(int columnIndex, byte x) throws java.sql.SQLException
- Specified by:
updateByte
in interfacejava.sql.ResultSet
- Overrides:
updateByte
in classResult
- Throws:
java.sql.SQLException
-
updateShort
public void updateShort(int columnIndex, short x) throws java.sql.SQLException
- Specified by:
updateShort
in interfacejava.sql.ResultSet
- Overrides:
updateShort
in classResult
- Throws:
java.sql.SQLException
-
updateInt
public void updateInt(int columnIndex, int x) throws java.sql.SQLException
-
updateLong
public void updateLong(int columnIndex, long x) throws java.sql.SQLException
- Specified by:
updateLong
in interfacejava.sql.ResultSet
- Overrides:
updateLong
in classResult
- Throws:
java.sql.SQLException
-
updateFloat
public void updateFloat(int columnIndex, float x) throws java.sql.SQLException
- Specified by:
updateFloat
in interfacejava.sql.ResultSet
- Overrides:
updateFloat
in classResult
- Throws:
java.sql.SQLException
-
updateDouble
public void updateDouble(int columnIndex, double x) throws java.sql.SQLException
- Specified by:
updateDouble
in interfacejava.sql.ResultSet
- Overrides:
updateDouble
in classResult
- Throws:
java.sql.SQLException
-
updateBigDecimal
public void updateBigDecimal(int columnIndex, java.math.BigDecimal x) throws java.sql.SQLException
- Specified by:
updateBigDecimal
in interfacejava.sql.ResultSet
- Overrides:
updateBigDecimal
in classResult
- Throws:
java.sql.SQLException
-
updateString
public void updateString(int columnIndex, java.lang.String x) throws java.sql.SQLException
- Specified by:
updateString
in interfacejava.sql.ResultSet
- Overrides:
updateString
in classResult
- Throws:
java.sql.SQLException
-
updateBytes
public void updateBytes(int columnIndex, byte[] x) throws java.sql.SQLException
- Specified by:
updateBytes
in interfacejava.sql.ResultSet
- Overrides:
updateBytes
in classResult
- Throws:
java.sql.SQLException
-
updateDate
public void updateDate(int columnIndex, java.sql.Date x) throws java.sql.SQLException
- Specified by:
updateDate
in interfacejava.sql.ResultSet
- Overrides:
updateDate
in classResult
- Throws:
java.sql.SQLException
-
updateTime
public void updateTime(int columnIndex, java.sql.Time x) throws java.sql.SQLException
- Specified by:
updateTime
in interfacejava.sql.ResultSet
- Overrides:
updateTime
in classResult
- Throws:
java.sql.SQLException
-
updateTimestamp
public void updateTimestamp(int columnIndex, java.sql.Timestamp x) throws java.sql.SQLException
- Specified by:
updateTimestamp
in interfacejava.sql.ResultSet
- Overrides:
updateTimestamp
in classResult
- Throws:
java.sql.SQLException
-
updateAsciiStream
public void updateAsciiStream(int columnIndex, java.io.InputStream x, int length) throws java.sql.SQLException
- Specified by:
updateAsciiStream
in interfacejava.sql.ResultSet
- Overrides:
updateAsciiStream
in classResult
- Throws:
java.sql.SQLException
-
updateBinaryStream
public void updateBinaryStream(int columnIndex, java.io.InputStream x, int length) throws java.sql.SQLException
- Specified by:
updateBinaryStream
in interfacejava.sql.ResultSet
- Overrides:
updateBinaryStream
in classResult
- Throws:
java.sql.SQLException
-
updateCharacterStream
public void updateCharacterStream(int columnIndex, java.io.Reader x, int length) throws java.sql.SQLException
- Specified by:
updateCharacterStream
in interfacejava.sql.ResultSet
- Overrides:
updateCharacterStream
in classResult
- Throws:
java.sql.SQLException
-
updateObject
public void updateObject(int columnIndex, java.lang.Object x, int scaleOrLength) throws java.sql.SQLException
- Specified by:
updateObject
in interfacejava.sql.ResultSet
- Overrides:
updateObject
in classResult
- Throws:
java.sql.SQLException
-
updateObject
public void updateObject(int columnIndex, java.lang.Object x) throws java.sql.SQLException
- Specified by:
updateObject
in interfacejava.sql.ResultSet
- Overrides:
updateObject
in classResult
- Throws:
java.sql.SQLException
-
updateNull
public void updateNull(java.lang.String columnLabel) throws java.sql.SQLException
- Specified by:
updateNull
in interfacejava.sql.ResultSet
- Overrides:
updateNull
in classResult
- Throws:
java.sql.SQLException
-
updateBoolean
public void updateBoolean(java.lang.String columnLabel, boolean x) throws java.sql.SQLException
- Specified by:
updateBoolean
in interfacejava.sql.ResultSet
- Overrides:
updateBoolean
in classResult
- Throws:
java.sql.SQLException
-
updateByte
public void updateByte(java.lang.String columnLabel, byte x) throws java.sql.SQLException
- Specified by:
updateByte
in interfacejava.sql.ResultSet
- Overrides:
updateByte
in classResult
- Throws:
java.sql.SQLException
-
updateShort
public void updateShort(java.lang.String columnLabel, short x) throws java.sql.SQLException
- Specified by:
updateShort
in interfacejava.sql.ResultSet
- Overrides:
updateShort
in classResult
- Throws:
java.sql.SQLException
-
updateInt
public void updateInt(java.lang.String columnLabel, int x) throws java.sql.SQLException
-
updateLong
public void updateLong(java.lang.String columnLabel, long x) throws java.sql.SQLException
- Specified by:
updateLong
in interfacejava.sql.ResultSet
- Overrides:
updateLong
in classResult
- Throws:
java.sql.SQLException
-
updateFloat
public void updateFloat(java.lang.String columnLabel, float x) throws java.sql.SQLException
- Specified by:
updateFloat
in interfacejava.sql.ResultSet
- Overrides:
updateFloat
in classResult
- Throws:
java.sql.SQLException
-
updateDouble
public void updateDouble(java.lang.String columnLabel, double x) throws java.sql.SQLException
- Specified by:
updateDouble
in interfacejava.sql.ResultSet
- Overrides:
updateDouble
in classResult
- Throws:
java.sql.SQLException
-
updateBigDecimal
public void updateBigDecimal(java.lang.String columnLabel, java.math.BigDecimal x) throws java.sql.SQLException
- Specified by:
updateBigDecimal
in interfacejava.sql.ResultSet
- Overrides:
updateBigDecimal
in classResult
- Throws:
java.sql.SQLException
-
updateString
public void updateString(java.lang.String columnLabel, java.lang.String x) throws java.sql.SQLException
- Specified by:
updateString
in interfacejava.sql.ResultSet
- Overrides:
updateString
in classResult
- Throws:
java.sql.SQLException
-
updateBytes
public void updateBytes(java.lang.String columnLabel, byte[] x) throws java.sql.SQLException
- Specified by:
updateBytes
in interfacejava.sql.ResultSet
- Overrides:
updateBytes
in classResult
- Throws:
java.sql.SQLException
-
updateDate
public void updateDate(java.lang.String columnLabel, java.sql.Date x) throws java.sql.SQLException
- Specified by:
updateDate
in interfacejava.sql.ResultSet
- Overrides:
updateDate
in classResult
- Throws:
java.sql.SQLException
-
updateTime
public void updateTime(java.lang.String columnLabel, java.sql.Time x) throws java.sql.SQLException
- Specified by:
updateTime
in interfacejava.sql.ResultSet
- Overrides:
updateTime
in classResult
- Throws:
java.sql.SQLException
-
updateTimestamp
public void updateTimestamp(java.lang.String columnLabel, java.sql.Timestamp x) throws java.sql.SQLException
- Specified by:
updateTimestamp
in interfacejava.sql.ResultSet
- Overrides:
updateTimestamp
in classResult
- Throws:
java.sql.SQLException
-
updateAsciiStream
public void updateAsciiStream(java.lang.String columnLabel, java.io.InputStream x, int length) throws java.sql.SQLException
- Specified by:
updateAsciiStream
in interfacejava.sql.ResultSet
- Overrides:
updateAsciiStream
in classResult
- Throws:
java.sql.SQLException
-
updateBinaryStream
public void updateBinaryStream(java.lang.String columnLabel, java.io.InputStream x, int length) throws java.sql.SQLException
- Specified by:
updateBinaryStream
in interfacejava.sql.ResultSet
- Overrides:
updateBinaryStream
in classResult
- Throws:
java.sql.SQLException
-
updateCharacterStream
public void updateCharacterStream(java.lang.String columnLabel, java.io.Reader reader, int length) throws java.sql.SQLException
- Specified by:
updateCharacterStream
in interfacejava.sql.ResultSet
- Overrides:
updateCharacterStream
in classResult
- Throws:
java.sql.SQLException
-
updateObject
public void updateObject(java.lang.String columnLabel, java.lang.Object x, int scaleOrLength) throws java.sql.SQLException
- Specified by:
updateObject
in interfacejava.sql.ResultSet
- Overrides:
updateObject
in classResult
- Throws:
java.sql.SQLException
-
updateObject
public void updateObject(java.lang.String columnLabel, java.lang.Object x) throws java.sql.SQLException
- Specified by:
updateObject
in interfacejava.sql.ResultSet
- Overrides:
updateObject
in classResult
- Throws:
java.sql.SQLException
-
insertRow
public void insertRow() throws java.sql.SQLException
-
buildInsertQuery
private java.lang.String buildInsertQuery() throws java.sql.SQLException
Build insert query- Returns:
- insert sql
- Throws:
java.sql.SQLException
- exception
-
refreshStmt
private java.lang.String refreshStmt()
-
prepareRefreshStmt
private java.sql.PreparedStatement prepareRefreshStmt() throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
refreshRawData
private byte[] refreshRawData() throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
updateQuery
private java.lang.String updateQuery()
-
updateRow
public void updateRow() throws java.sql.SQLException
-
deleteRow
public void deleteRow() throws java.sql.SQLException
-
refreshRow
public void refreshRow() throws java.sql.SQLException
- Specified by:
refreshRow
in interfacejava.sql.ResultSet
- Overrides:
refreshRow
in classResult
- Throws:
java.sql.SQLException
-
cancelRowUpdates
public void cancelRowUpdates()
- Specified by:
cancelRowUpdates
in interfacejava.sql.ResultSet
- Overrides:
cancelRowUpdates
in classResult
-
moveToInsertRow
public void moveToInsertRow() throws java.sql.SQLException
- Specified by:
moveToInsertRow
in interfacejava.sql.ResultSet
- Overrides:
moveToInsertRow
in classResult
- Throws:
java.sql.SQLException
-
moveToCurrentRow
public void moveToCurrentRow()
- Specified by:
moveToCurrentRow
in interfacejava.sql.ResultSet
- Overrides:
moveToCurrentRow
in classResult
-
updateBlob
public void updateBlob(int columnIndex, java.sql.Blob x) throws java.sql.SQLException
- Specified by:
updateBlob
in interfacejava.sql.ResultSet
- Overrides:
updateBlob
in classResult
- Throws:
java.sql.SQLException
-
updateBlob
public void updateBlob(java.lang.String columnLabel, java.sql.Blob x) throws java.sql.SQLException
- Specified by:
updateBlob
in interfacejava.sql.ResultSet
- Overrides:
updateBlob
in classResult
- Throws:
java.sql.SQLException
-
updateClob
public void updateClob(int columnIndex, java.sql.Clob x) throws java.sql.SQLException
- Specified by:
updateClob
in interfacejava.sql.ResultSet
- Overrides:
updateClob
in classResult
- Throws:
java.sql.SQLException
-
updateClob
public void updateClob(java.lang.String columnLabel, java.sql.Clob x) throws java.sql.SQLException
- Specified by:
updateClob
in interfacejava.sql.ResultSet
- Overrides:
updateClob
in classResult
- Throws:
java.sql.SQLException
-
updateNString
public void updateNString(int columnIndex, java.lang.String nString) throws java.sql.SQLException
- Specified by:
updateNString
in interfacejava.sql.ResultSet
- Overrides:
updateNString
in classResult
- Throws:
java.sql.SQLException
-
updateNString
public void updateNString(java.lang.String columnLabel, java.lang.String nString) throws java.sql.SQLException
- Specified by:
updateNString
in interfacejava.sql.ResultSet
- Overrides:
updateNString
in classResult
- Throws:
java.sql.SQLException
-
updateNClob
public void updateNClob(int columnIndex, java.sql.NClob nClob) throws java.sql.SQLException
- Specified by:
updateNClob
in interfacejava.sql.ResultSet
- Overrides:
updateNClob
in classResult
- Throws:
java.sql.SQLException
-
updateNClob
public void updateNClob(java.lang.String columnLabel, java.sql.NClob nClob) throws java.sql.SQLException
- Specified by:
updateNClob
in interfacejava.sql.ResultSet
- Overrides:
updateNClob
in classResult
- Throws:
java.sql.SQLException
-
updateNCharacterStream
public void updateNCharacterStream(int columnIndex, java.io.Reader x, long length) throws java.sql.SQLException
- Specified by:
updateNCharacterStream
in interfacejava.sql.ResultSet
- Overrides:
updateNCharacterStream
in classResult
- Throws:
java.sql.SQLException
-
updateNCharacterStream
public void updateNCharacterStream(java.lang.String columnLabel, java.io.Reader reader, long length) throws java.sql.SQLException
- Specified by:
updateNCharacterStream
in interfacejava.sql.ResultSet
- Overrides:
updateNCharacterStream
in classResult
- Throws:
java.sql.SQLException
-
updateAsciiStream
public void updateAsciiStream(int columnIndex, java.io.InputStream x, long length) throws java.sql.SQLException
- Specified by:
updateAsciiStream
in interfacejava.sql.ResultSet
- Overrides:
updateAsciiStream
in classResult
- Throws:
java.sql.SQLException
-
updateBinaryStream
public void updateBinaryStream(int columnIndex, java.io.InputStream x, long length) throws java.sql.SQLException
- Specified by:
updateBinaryStream
in interfacejava.sql.ResultSet
- Overrides:
updateBinaryStream
in classResult
- Throws:
java.sql.SQLException
-
updateCharacterStream
public void updateCharacterStream(int columnIndex, java.io.Reader x, long length) throws java.sql.SQLException
- Specified by:
updateCharacterStream
in interfacejava.sql.ResultSet
- Overrides:
updateCharacterStream
in classResult
- Throws:
java.sql.SQLException
-
updateAsciiStream
public void updateAsciiStream(java.lang.String columnLabel, java.io.InputStream x, long length) throws java.sql.SQLException
- Specified by:
updateAsciiStream
in interfacejava.sql.ResultSet
- Overrides:
updateAsciiStream
in classResult
- Throws:
java.sql.SQLException
-
updateBinaryStream
public void updateBinaryStream(java.lang.String columnLabel, java.io.InputStream x, long length) throws java.sql.SQLException
- Specified by:
updateBinaryStream
in interfacejava.sql.ResultSet
- Overrides:
updateBinaryStream
in classResult
- Throws:
java.sql.SQLException
-
updateCharacterStream
public void updateCharacterStream(java.lang.String columnLabel, java.io.Reader reader, long length) throws java.sql.SQLException
- Specified by:
updateCharacterStream
in interfacejava.sql.ResultSet
- Overrides:
updateCharacterStream
in classResult
- Throws:
java.sql.SQLException
-
updateBlob
public void updateBlob(int columnIndex, java.io.InputStream x, long length) throws java.sql.SQLException
- Specified by:
updateBlob
in interfacejava.sql.ResultSet
- Overrides:
updateBlob
in classResult
- Throws:
java.sql.SQLException
-
updateBlob
public void updateBlob(java.lang.String columnLabel, java.io.InputStream inputStream, long length) throws java.sql.SQLException
- Specified by:
updateBlob
in interfacejava.sql.ResultSet
- Overrides:
updateBlob
in classResult
- Throws:
java.sql.SQLException
-
updateClob
public void updateClob(int columnIndex, java.io.Reader x, long length) throws java.sql.SQLException
- Specified by:
updateClob
in interfacejava.sql.ResultSet
- Overrides:
updateClob
in classResult
- Throws:
java.sql.SQLException
-
updateClob
public void updateClob(java.lang.String columnLabel, java.io.Reader reader, long length) throws java.sql.SQLException
- Specified by:
updateClob
in interfacejava.sql.ResultSet
- Overrides:
updateClob
in classResult
- Throws:
java.sql.SQLException
-
updateNClob
public void updateNClob(int columnIndex, java.io.Reader reader, long length) throws java.sql.SQLException
- Specified by:
updateNClob
in interfacejava.sql.ResultSet
- Overrides:
updateNClob
in classResult
- Throws:
java.sql.SQLException
-
updateNClob
public void updateNClob(java.lang.String columnLabel, java.io.Reader reader, long length) throws java.sql.SQLException
- Specified by:
updateNClob
in interfacejava.sql.ResultSet
- Overrides:
updateNClob
in classResult
- Throws:
java.sql.SQLException
-
updateNCharacterStream
public void updateNCharacterStream(int columnIndex, java.io.Reader x) throws java.sql.SQLException
- Specified by:
updateNCharacterStream
in interfacejava.sql.ResultSet
- Overrides:
updateNCharacterStream
in classResult
- Throws:
java.sql.SQLException
-
updateNCharacterStream
public void updateNCharacterStream(java.lang.String columnLabel, java.io.Reader reader) throws java.sql.SQLException
- Specified by:
updateNCharacterStream
in interfacejava.sql.ResultSet
- Overrides:
updateNCharacterStream
in classResult
- Throws:
java.sql.SQLException
-
updateAsciiStream
public void updateAsciiStream(int columnIndex, java.io.InputStream x) throws java.sql.SQLException
- Specified by:
updateAsciiStream
in interfacejava.sql.ResultSet
- Overrides:
updateAsciiStream
in classResult
- Throws:
java.sql.SQLException
-
updateBinaryStream
public void updateBinaryStream(int columnIndex, java.io.InputStream x) throws java.sql.SQLException
- Specified by:
updateBinaryStream
in interfacejava.sql.ResultSet
- Overrides:
updateBinaryStream
in classResult
- Throws:
java.sql.SQLException
-
updateCharacterStream
public void updateCharacterStream(int columnIndex, java.io.Reader x) throws java.sql.SQLException
- Specified by:
updateCharacterStream
in interfacejava.sql.ResultSet
- Overrides:
updateCharacterStream
in classResult
- Throws:
java.sql.SQLException
-
updateAsciiStream
public void updateAsciiStream(java.lang.String columnLabel, java.io.InputStream x) throws java.sql.SQLException
- Specified by:
updateAsciiStream
in interfacejava.sql.ResultSet
- Overrides:
updateAsciiStream
in classResult
- Throws:
java.sql.SQLException
-
updateBinaryStream
public void updateBinaryStream(java.lang.String columnLabel, java.io.InputStream x) throws java.sql.SQLException
- Specified by:
updateBinaryStream
in interfacejava.sql.ResultSet
- Overrides:
updateBinaryStream
in classResult
- Throws:
java.sql.SQLException
-
updateCharacterStream
public void updateCharacterStream(java.lang.String columnLabel, java.io.Reader reader) throws java.sql.SQLException
- Specified by:
updateCharacterStream
in interfacejava.sql.ResultSet
- Overrides:
updateCharacterStream
in classResult
- Throws:
java.sql.SQLException
-
updateBlob
public void updateBlob(int columnIndex, java.io.InputStream x) throws java.sql.SQLException
- Specified by:
updateBlob
in interfacejava.sql.ResultSet
- Overrides:
updateBlob
in classResult
- Throws:
java.sql.SQLException
-
updateBlob
public void updateBlob(java.lang.String columnLabel, java.io.InputStream inputStream) throws java.sql.SQLException
- Specified by:
updateBlob
in interfacejava.sql.ResultSet
- Overrides:
updateBlob
in classResult
- Throws:
java.sql.SQLException
-
updateClob
public void updateClob(int columnIndex, java.io.Reader x) throws java.sql.SQLException
- Specified by:
updateClob
in interfacejava.sql.ResultSet
- Overrides:
updateClob
in classResult
- Throws:
java.sql.SQLException
-
updateClob
public void updateClob(java.lang.String columnLabel, java.io.Reader reader) throws java.sql.SQLException
- Specified by:
updateClob
in interfacejava.sql.ResultSet
- Overrides:
updateClob
in classResult
- Throws:
java.sql.SQLException
-
updateNClob
public void updateNClob(int columnIndex, java.io.Reader reader) throws java.sql.SQLException
- Specified by:
updateNClob
in interfacejava.sql.ResultSet
- Overrides:
updateNClob
in classResult
- Throws:
java.sql.SQLException
-
updateNClob
public void updateNClob(java.lang.String columnLabel, java.io.Reader reader) throws java.sql.SQLException
- Specified by:
updateNClob
in interfacejava.sql.ResultSet
- Overrides:
updateNClob
in classResult
- Throws:
java.sql.SQLException
-
updateObject
public void updateObject(int columnIndex, java.lang.Object x, java.sql.SQLType targetSqlType, int scaleOrLength) throws java.sql.SQLException
- Specified by:
updateObject
in interfacejava.sql.ResultSet
- Overrides:
updateObject
in classResult
- Throws:
java.sql.SQLException
-
updateInternalObject
private void updateInternalObject(int columnIndex, java.lang.Object x, java.lang.Long scaleOrLength) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
updateObject
public void updateObject(java.lang.String columnLabel, java.lang.Object x, java.sql.SQLType targetSqlType, int scaleOrLength) throws java.sql.SQLException
- Specified by:
updateObject
in interfacejava.sql.ResultSet
- Overrides:
updateObject
in classResult
- Throws:
java.sql.SQLException
-
updateObject
public void updateObject(int columnIndex, java.lang.Object x, java.sql.SQLType targetSqlType) throws java.sql.SQLException
- Specified by:
updateObject
in interfacejava.sql.ResultSet
- Overrides:
updateObject
in classResult
- Throws:
java.sql.SQLException
-
updateObject
public void updateObject(java.lang.String columnLabel, java.lang.Object x, java.sql.SQLType targetSqlType) throws java.sql.SQLException
- Specified by:
updateObject
in interfacejava.sql.ResultSet
- Overrides:
updateObject
in classResult
- Throws:
java.sql.SQLException
-
getConcurrency
public int getConcurrency()
- Specified by:
getConcurrency
in interfacejava.sql.ResultSet
- Overrides:
getConcurrency
in classResult
-
resetToRowPointer
private void resetToRowPointer()
-
beforeFirst
public void beforeFirst() throws java.sql.SQLException
- Specified by:
beforeFirst
in interfacejava.sql.ResultSet
- Overrides:
beforeFirst
in classCompleteResult
- Throws:
java.sql.SQLException
-
first
public boolean first() throws java.sql.SQLException
- Specified by:
first
in interfacejava.sql.ResultSet
- Overrides:
first
in classCompleteResult
- Throws:
java.sql.SQLException
-
last
public boolean last() throws java.sql.SQLException
- Specified by:
last
in interfacejava.sql.ResultSet
- Overrides:
last
in classCompleteResult
- Throws:
java.sql.SQLException
-
afterLast
public void afterLast() throws java.sql.SQLException
- Specified by:
afterLast
in interfacejava.sql.ResultSet
- Overrides:
afterLast
in classCompleteResult
- Throws:
java.sql.SQLException
-
absolute
public boolean absolute(int row) throws java.sql.SQLException
- Specified by:
absolute
in interfacejava.sql.ResultSet
- Overrides:
absolute
in classCompleteResult
- Throws:
java.sql.SQLException
-
relative
public boolean relative(int rows) throws java.sql.SQLException
- Specified by:
relative
in interfacejava.sql.ResultSet
- Overrides:
relative
in classCompleteResult
- Throws:
java.sql.SQLException
-
next
public boolean next() throws java.sql.SQLException
- Specified by:
next
in interfacejava.sql.ResultSet
- Overrides:
next
in classCompleteResult
- Throws:
java.sql.SQLException
-
previous
public boolean previous() throws java.sql.SQLException
- Specified by:
previous
in interfacejava.sql.ResultSet
- Overrides:
previous
in classCompleteResult
- Throws:
java.sql.SQLException
-
-