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
Updatable result implementation
-
-
Field Summary
Fields Modifier and Type Field Description private booleancanInsertprivate booleancanUpdateprivate java.lang.StringchangeErrorprivate java.lang.Stringdatabaseprivate booleanisAutoincrementPkprivate ParameterListparametersprivate java.lang.String[]primaryColsprivate intsavedRowPointerprivate java.lang.StringsqlStateErrorprivate intstateprivate static intSTATE_INSERTprivate static intSTATE_INSERTEDprivate static intSTATE_STANDARDprivate static intSTATE_UPDATEprivate static intSTATE_UPDATEDprivate java.lang.Stringtable-
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, fieldIndex, loaded, maxRows, metadataList, NULL_LENGTH, outputParameter, reader, resultSetType, rowBuf, rowDecoder, rowPointer, statement, traceEnable
-
-
Constructor Summary
Constructors Constructor Description UpdatableResult(Statement stmt, boolean binaryProtocol, long maxRows, ColumnDecoder[] metadataList, Reader reader, Context context, int resultSetType, boolean closeOnCompletion, boolean traceEnable)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanabsolute(int row)voidafterLast()voidbeforeFirst()private java.lang.StringbuildInsertQuery()Build insert queryvoidcancelRowUpdates()private voidcannotUpdateInsertRow(java.lang.String reason)private voidcheckIfUpdatable()private voidcheckUpdatable(int position)voiddeleteRow()booleanfirst()intgetConcurrency()voidinsertRow()booleanlast()voidmoveToCurrentRow()voidmoveToInsertRow()booleannext()Position resultset to next rowprivate java.sql.PreparedStatementprepareRefreshStmt()booleanprevious()private byte[]refreshRawData()voidrefreshRow()private java.lang.StringrefreshStmt()booleanrelative(int rows)private voidresetToRowPointer()booleanrowDeleted()booleanrowInserted()booleanrowUpdated()voidupdateArray(int columnIndex, java.sql.Array x)voidupdateAsciiStream(int columnIndex, java.io.InputStream x)voidupdateAsciiStream(int columnIndex, java.io.InputStream x, int length)voidupdateAsciiStream(int columnIndex, java.io.InputStream x, long length)voidupdateAsciiStream(java.lang.String columnLabel, java.io.InputStream x)voidupdateAsciiStream(java.lang.String columnLabel, java.io.InputStream x, int length)voidupdateAsciiStream(java.lang.String columnLabel, java.io.InputStream x, long length)voidupdateBigDecimal(int columnIndex, java.math.BigDecimal x)voidupdateBigDecimal(java.lang.String columnLabel, java.math.BigDecimal x)voidupdateBinaryStream(int columnIndex, java.io.InputStream x)voidupdateBinaryStream(int columnIndex, java.io.InputStream x, int length)voidupdateBinaryStream(int columnIndex, java.io.InputStream x, long length)voidupdateBinaryStream(java.lang.String columnLabel, java.io.InputStream x)voidupdateBinaryStream(java.lang.String columnLabel, java.io.InputStream x, int length)voidupdateBinaryStream(java.lang.String columnLabel, java.io.InputStream x, long length)voidupdateBlob(int columnIndex, java.io.InputStream x)voidupdateBlob(int columnIndex, java.io.InputStream x, long length)voidupdateBlob(int columnIndex, java.sql.Blob x)voidupdateBlob(java.lang.String columnLabel, java.io.InputStream inputStream)voidupdateBlob(java.lang.String columnLabel, java.io.InputStream inputStream, long length)voidupdateBlob(java.lang.String columnLabel, java.sql.Blob x)voidupdateBoolean(int columnIndex, boolean x)voidupdateBoolean(java.lang.String columnLabel, boolean x)voidupdateByte(int columnIndex, byte x)voidupdateByte(java.lang.String columnLabel, byte x)voidupdateBytes(int columnIndex, byte[] x)voidupdateBytes(java.lang.String columnLabel, byte[] x)voidupdateCharacterStream(int columnIndex, java.io.Reader x)voidupdateCharacterStream(int columnIndex, java.io.Reader x, int length)voidupdateCharacterStream(int columnIndex, java.io.Reader x, long length)voidupdateCharacterStream(java.lang.String columnLabel, java.io.Reader reader)voidupdateCharacterStream(java.lang.String columnLabel, java.io.Reader reader, int length)voidupdateCharacterStream(java.lang.String columnLabel, java.io.Reader reader, long length)voidupdateClob(int columnIndex, java.io.Reader x)voidupdateClob(int columnIndex, java.io.Reader x, long length)voidupdateClob(int columnIndex, java.sql.Clob x)voidupdateClob(java.lang.String columnLabel, java.io.Reader reader)voidupdateClob(java.lang.String columnLabel, java.io.Reader reader, long length)voidupdateClob(java.lang.String columnLabel, java.sql.Clob x)voidupdateDate(int columnIndex, java.sql.Date x)voidupdateDate(java.lang.String columnLabel, java.sql.Date x)voidupdateDouble(int columnIndex, double x)voidupdateDouble(java.lang.String columnLabel, double x)voidupdateFloat(int columnIndex, float x)voidupdateFloat(java.lang.String columnLabel, float x)voidupdateInt(int columnIndex, int x)voidupdateInt(java.lang.String columnLabel, int x)private voidupdateInternalObject(int columnIndex, java.lang.Object x, java.lang.Long scaleOrLength)voidupdateLong(int columnIndex, long x)voidupdateLong(java.lang.String columnLabel, long x)voidupdateNCharacterStream(int columnIndex, java.io.Reader x)voidupdateNCharacterStream(int columnIndex, java.io.Reader x, long length)voidupdateNCharacterStream(java.lang.String columnLabel, java.io.Reader reader)voidupdateNCharacterStream(java.lang.String columnLabel, java.io.Reader reader, long length)voidupdateNClob(int columnIndex, java.io.Reader reader)voidupdateNClob(int columnIndex, java.io.Reader reader, long length)voidupdateNClob(int columnIndex, java.sql.NClob nClob)voidupdateNClob(java.lang.String columnLabel, java.io.Reader reader)voidupdateNClob(java.lang.String columnLabel, java.io.Reader reader, long length)voidupdateNClob(java.lang.String columnLabel, java.sql.NClob nClob)voidupdateNString(int columnIndex, java.lang.String nString)voidupdateNString(java.lang.String columnLabel, java.lang.String nString)voidupdateNull(int columnIndex)voidupdateNull(java.lang.String columnLabel)voidupdateObject(int columnIndex, java.lang.Object x)voidupdateObject(int columnIndex, java.lang.Object x, int scaleOrLength)voidupdateObject(int columnIndex, java.lang.Object x, java.sql.SQLType targetSqlType)voidupdateObject(int columnIndex, java.lang.Object x, java.sql.SQLType targetSqlType, int scaleOrLength)voidupdateObject(java.lang.String columnLabel, java.lang.Object x)voidupdateObject(java.lang.String columnLabel, java.lang.Object x, int scaleOrLength)voidupdateObject(java.lang.String columnLabel, java.lang.Object x, java.sql.SQLType targetSqlType)voidupdateObject(java.lang.String columnLabel, java.lang.Object x, java.sql.SQLType targetSqlType, int scaleOrLength)private java.lang.StringupdateQuery()voidupdateRow()voidupdateShort(int columnIndex, short x)voidupdateShort(java.lang.String columnLabel, short x)voidupdateString(int columnIndex, java.lang.String x)voidupdateString(java.lang.String columnLabel, java.lang.String x)voidupdateTime(int columnIndex, java.sql.Time x)voidupdateTime(java.lang.String columnLabel, java.sql.Time x)voidupdateTimestamp(int columnIndex, java.sql.Timestamp x)voidupdateTimestamp(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, isBulkResult, isFirst, isLast, newResultsetWithUseAliasAsName, setBulkResult, setFetchSize, streaming
-
Methods inherited from class org.mariadb.jdbc.client.result.Result
abort, addRowData, checkClose, checkNotForwardOnly, clearWarnings, close, closeOnCompletion, 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, setNullRowBuf, setRow, setStatement, skipRemaining, unwrap, updateArray, updateRef, updateRef, updateRowData, updateRowId, updateRowId, updateSQLXML, updateSQLXML, 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
-
primaryCols
private java.lang.String[] primaryCols
-
-
Constructor Detail
-
UpdatableResult
public UpdatableResult(Statement stmt, boolean binaryProtocol, long maxRows, ColumnDecoder[] metadataList, Reader reader, Context context, int resultSetType, boolean closeOnCompletion, boolean traceEnable) throws java.io.IOException, java.sql.SQLException
Constructor- Parameters:
stmt- statement that initiate this resultbinaryProtocol- are rows binary encodedmaxRows- maximum rowsmetadataList- columns metadatareader- packet readercontext- connection contextresultSetType- result-set typecloseOnCompletion- close on completiontraceEnable- must network exchanges be logged- Throws:
java.io.IOException- if any socket error occursjava.sql.SQLException- for other kind of error
-
-
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:
rowUpdatedin interfacejava.sql.ResultSet- Overrides:
rowUpdatedin classResult
-
rowInserted
public boolean rowInserted()
- Specified by:
rowInsertedin interfacejava.sql.ResultSet- Overrides:
rowInsertedin classResult
-
rowDeleted
public boolean rowDeleted()
- Specified by:
rowDeletedin interfacejava.sql.ResultSet- Overrides:
rowDeletedin classResult
-
updateNull
public void updateNull(int columnIndex) throws java.sql.SQLException- Specified by:
updateNullin interfacejava.sql.ResultSet- Overrides:
updateNullin classResult- Throws:
java.sql.SQLException
-
updateBoolean
public void updateBoolean(int columnIndex, boolean x) throws java.sql.SQLException- Specified by:
updateBooleanin interfacejava.sql.ResultSet- Overrides:
updateBooleanin classResult- Throws:
java.sql.SQLException
-
updateByte
public void updateByte(int columnIndex, byte x) throws java.sql.SQLException- Specified by:
updateBytein interfacejava.sql.ResultSet- Overrides:
updateBytein classResult- Throws:
java.sql.SQLException
-
updateShort
public void updateShort(int columnIndex, short x) throws java.sql.SQLException- Specified by:
updateShortin interfacejava.sql.ResultSet- Overrides:
updateShortin 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:
updateLongin interfacejava.sql.ResultSet- Overrides:
updateLongin classResult- Throws:
java.sql.SQLException
-
updateFloat
public void updateFloat(int columnIndex, float x) throws java.sql.SQLException- Specified by:
updateFloatin interfacejava.sql.ResultSet- Overrides:
updateFloatin classResult- Throws:
java.sql.SQLException
-
updateDouble
public void updateDouble(int columnIndex, double x) throws java.sql.SQLException- Specified by:
updateDoublein interfacejava.sql.ResultSet- Overrides:
updateDoublein classResult- Throws:
java.sql.SQLException
-
updateBigDecimal
public void updateBigDecimal(int columnIndex, java.math.BigDecimal x) throws java.sql.SQLException- Specified by:
updateBigDecimalin interfacejava.sql.ResultSet- Overrides:
updateBigDecimalin classResult- Throws:
java.sql.SQLException
-
updateString
public void updateString(int columnIndex, java.lang.String x) throws java.sql.SQLException- Specified by:
updateStringin interfacejava.sql.ResultSet- Overrides:
updateStringin classResult- Throws:
java.sql.SQLException
-
updateBytes
public void updateBytes(int columnIndex, byte[] x) throws java.sql.SQLException- Specified by:
updateBytesin interfacejava.sql.ResultSet- Overrides:
updateBytesin classResult- Throws:
java.sql.SQLException
-
updateDate
public void updateDate(int columnIndex, java.sql.Date x) throws java.sql.SQLException- Specified by:
updateDatein interfacejava.sql.ResultSet- Overrides:
updateDatein classResult- Throws:
java.sql.SQLException
-
updateTime
public void updateTime(int columnIndex, java.sql.Time x) throws java.sql.SQLException- Specified by:
updateTimein interfacejava.sql.ResultSet- Overrides:
updateTimein classResult- Throws:
java.sql.SQLException
-
updateArray
public void updateArray(int columnIndex, java.sql.Array x) throws java.sql.SQLException- Specified by:
updateArrayin interfacejava.sql.ResultSet- Overrides:
updateArrayin classResult- Throws:
java.sql.SQLException
-
updateTimestamp
public void updateTimestamp(int columnIndex, java.sql.Timestamp x) throws java.sql.SQLException- Specified by:
updateTimestampin interfacejava.sql.ResultSet- Overrides:
updateTimestampin classResult- Throws:
java.sql.SQLException
-
updateAsciiStream
public void updateAsciiStream(int columnIndex, java.io.InputStream x, int length) throws java.sql.SQLException- Specified by:
updateAsciiStreamin interfacejava.sql.ResultSet- Overrides:
updateAsciiStreamin classResult- Throws:
java.sql.SQLException
-
updateBinaryStream
public void updateBinaryStream(int columnIndex, java.io.InputStream x, int length) throws java.sql.SQLException- Specified by:
updateBinaryStreamin interfacejava.sql.ResultSet- Overrides:
updateBinaryStreamin classResult- Throws:
java.sql.SQLException
-
updateCharacterStream
public void updateCharacterStream(int columnIndex, java.io.Reader x, int length) throws java.sql.SQLException- Specified by:
updateCharacterStreamin interfacejava.sql.ResultSet- Overrides:
updateCharacterStreamin classResult- Throws:
java.sql.SQLException
-
updateObject
public void updateObject(int columnIndex, java.lang.Object x, int scaleOrLength) throws java.sql.SQLException- Specified by:
updateObjectin interfacejava.sql.ResultSet- Overrides:
updateObjectin classResult- Throws:
java.sql.SQLException
-
updateObject
public void updateObject(int columnIndex, java.lang.Object x) throws java.sql.SQLException- Specified by:
updateObjectin interfacejava.sql.ResultSet- Overrides:
updateObjectin classResult- Throws:
java.sql.SQLException
-
updateNull
public void updateNull(java.lang.String columnLabel) throws java.sql.SQLException- Specified by:
updateNullin interfacejava.sql.ResultSet- Overrides:
updateNullin classResult- Throws:
java.sql.SQLException
-
updateBoolean
public void updateBoolean(java.lang.String columnLabel, boolean x) throws java.sql.SQLException- Specified by:
updateBooleanin interfacejava.sql.ResultSet- Overrides:
updateBooleanin classResult- Throws:
java.sql.SQLException
-
updateByte
public void updateByte(java.lang.String columnLabel, byte x) throws java.sql.SQLException- Specified by:
updateBytein interfacejava.sql.ResultSet- Overrides:
updateBytein classResult- Throws:
java.sql.SQLException
-
updateShort
public void updateShort(java.lang.String columnLabel, short x) throws java.sql.SQLException- Specified by:
updateShortin interfacejava.sql.ResultSet- Overrides:
updateShortin 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:
updateLongin interfacejava.sql.ResultSet- Overrides:
updateLongin classResult- Throws:
java.sql.SQLException
-
updateFloat
public void updateFloat(java.lang.String columnLabel, float x) throws java.sql.SQLException- Specified by:
updateFloatin interfacejava.sql.ResultSet- Overrides:
updateFloatin classResult- Throws:
java.sql.SQLException
-
updateDouble
public void updateDouble(java.lang.String columnLabel, double x) throws java.sql.SQLException- Specified by:
updateDoublein interfacejava.sql.ResultSet- Overrides:
updateDoublein classResult- Throws:
java.sql.SQLException
-
updateBigDecimal
public void updateBigDecimal(java.lang.String columnLabel, java.math.BigDecimal x) throws java.sql.SQLException- Specified by:
updateBigDecimalin interfacejava.sql.ResultSet- Overrides:
updateBigDecimalin classResult- Throws:
java.sql.SQLException
-
updateString
public void updateString(java.lang.String columnLabel, java.lang.String x) throws java.sql.SQLException- Specified by:
updateStringin interfacejava.sql.ResultSet- Overrides:
updateStringin classResult- Throws:
java.sql.SQLException
-
updateBytes
public void updateBytes(java.lang.String columnLabel, byte[] x) throws java.sql.SQLException- Specified by:
updateBytesin interfacejava.sql.ResultSet- Overrides:
updateBytesin classResult- Throws:
java.sql.SQLException
-
updateDate
public void updateDate(java.lang.String columnLabel, java.sql.Date x) throws java.sql.SQLException- Specified by:
updateDatein interfacejava.sql.ResultSet- Overrides:
updateDatein classResult- Throws:
java.sql.SQLException
-
updateTime
public void updateTime(java.lang.String columnLabel, java.sql.Time x) throws java.sql.SQLException- Specified by:
updateTimein interfacejava.sql.ResultSet- Overrides:
updateTimein classResult- Throws:
java.sql.SQLException
-
updateTimestamp
public void updateTimestamp(java.lang.String columnLabel, java.sql.Timestamp x) throws java.sql.SQLException- Specified by:
updateTimestampin interfacejava.sql.ResultSet- Overrides:
updateTimestampin 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:
updateAsciiStreamin interfacejava.sql.ResultSet- Overrides:
updateAsciiStreamin 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:
updateBinaryStreamin interfacejava.sql.ResultSet- Overrides:
updateBinaryStreamin 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:
updateCharacterStreamin interfacejava.sql.ResultSet- Overrides:
updateCharacterStreamin 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:
updateObjectin interfacejava.sql.ResultSet- Overrides:
updateObjectin classResult- Throws:
java.sql.SQLException
-
updateObject
public void updateObject(java.lang.String columnLabel, java.lang.Object x) throws java.sql.SQLException- Specified by:
updateObjectin interfacejava.sql.ResultSet- Overrides:
updateObjectin classResult- Throws:
java.sql.SQLException
-
insertRow
public void insertRow() throws java.sql.SQLException
-
buildInsertQuery
private java.lang.String buildInsertQuery() throws java.sql.SQLExceptionBuild 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:
refreshRowin interfacejava.sql.ResultSet- Overrides:
refreshRowin classResult- Throws:
java.sql.SQLException
-
cancelRowUpdates
public void cancelRowUpdates()
- Specified by:
cancelRowUpdatesin interfacejava.sql.ResultSet- Overrides:
cancelRowUpdatesin classResult
-
moveToInsertRow
public void moveToInsertRow() throws java.sql.SQLException- Specified by:
moveToInsertRowin interfacejava.sql.ResultSet- Overrides:
moveToInsertRowin classResult- Throws:
java.sql.SQLException
-
moveToCurrentRow
public void moveToCurrentRow()
- Specified by:
moveToCurrentRowin interfacejava.sql.ResultSet- Overrides:
moveToCurrentRowin classResult
-
updateBlob
public void updateBlob(int columnIndex, java.sql.Blob x) throws java.sql.SQLException- Specified by:
updateBlobin interfacejava.sql.ResultSet- Overrides:
updateBlobin classResult- Throws:
java.sql.SQLException
-
updateBlob
public void updateBlob(java.lang.String columnLabel, java.sql.Blob x) throws java.sql.SQLException- Specified by:
updateBlobin interfacejava.sql.ResultSet- Overrides:
updateBlobin classResult- Throws:
java.sql.SQLException
-
updateClob
public void updateClob(int columnIndex, java.sql.Clob x) throws java.sql.SQLException- Specified by:
updateClobin interfacejava.sql.ResultSet- Overrides:
updateClobin classResult- Throws:
java.sql.SQLException
-
updateClob
public void updateClob(java.lang.String columnLabel, java.sql.Clob x) throws java.sql.SQLException- Specified by:
updateClobin interfacejava.sql.ResultSet- Overrides:
updateClobin classResult- Throws:
java.sql.SQLException
-
updateNString
public void updateNString(int columnIndex, java.lang.String nString) throws java.sql.SQLException- Specified by:
updateNStringin interfacejava.sql.ResultSet- Overrides:
updateNStringin classResult- Throws:
java.sql.SQLException
-
updateNString
public void updateNString(java.lang.String columnLabel, java.lang.String nString) throws java.sql.SQLException- Specified by:
updateNStringin interfacejava.sql.ResultSet- Overrides:
updateNStringin classResult- Throws:
java.sql.SQLException
-
updateNClob
public void updateNClob(int columnIndex, java.sql.NClob nClob) throws java.sql.SQLException- Specified by:
updateNClobin interfacejava.sql.ResultSet- Overrides:
updateNClobin classResult- Throws:
java.sql.SQLException
-
updateNClob
public void updateNClob(java.lang.String columnLabel, java.sql.NClob nClob) throws java.sql.SQLException- Specified by:
updateNClobin interfacejava.sql.ResultSet- Overrides:
updateNClobin classResult- Throws:
java.sql.SQLException
-
updateNCharacterStream
public void updateNCharacterStream(int columnIndex, java.io.Reader x, long length) throws java.sql.SQLException- Specified by:
updateNCharacterStreamin interfacejava.sql.ResultSet- Overrides:
updateNCharacterStreamin 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:
updateNCharacterStreamin interfacejava.sql.ResultSet- Overrides:
updateNCharacterStreamin classResult- Throws:
java.sql.SQLException
-
updateAsciiStream
public void updateAsciiStream(int columnIndex, java.io.InputStream x, long length) throws java.sql.SQLException- Specified by:
updateAsciiStreamin interfacejava.sql.ResultSet- Overrides:
updateAsciiStreamin classResult- Throws:
java.sql.SQLException
-
updateBinaryStream
public void updateBinaryStream(int columnIndex, java.io.InputStream x, long length) throws java.sql.SQLException- Specified by:
updateBinaryStreamin interfacejava.sql.ResultSet- Overrides:
updateBinaryStreamin classResult- Throws:
java.sql.SQLException
-
updateCharacterStream
public void updateCharacterStream(int columnIndex, java.io.Reader x, long length) throws java.sql.SQLException- Specified by:
updateCharacterStreamin interfacejava.sql.ResultSet- Overrides:
updateCharacterStreamin 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:
updateAsciiStreamin interfacejava.sql.ResultSet- Overrides:
updateAsciiStreamin 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:
updateBinaryStreamin interfacejava.sql.ResultSet- Overrides:
updateBinaryStreamin 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:
updateCharacterStreamin interfacejava.sql.ResultSet- Overrides:
updateCharacterStreamin classResult- Throws:
java.sql.SQLException
-
updateBlob
public void updateBlob(int columnIndex, java.io.InputStream x, long length) throws java.sql.SQLException- Specified by:
updateBlobin interfacejava.sql.ResultSet- Overrides:
updateBlobin 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:
updateBlobin interfacejava.sql.ResultSet- Overrides:
updateBlobin classResult- Throws:
java.sql.SQLException
-
updateClob
public void updateClob(int columnIndex, java.io.Reader x, long length) throws java.sql.SQLException- Specified by:
updateClobin interfacejava.sql.ResultSet- Overrides:
updateClobin 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:
updateClobin interfacejava.sql.ResultSet- Overrides:
updateClobin classResult- Throws:
java.sql.SQLException
-
updateNClob
public void updateNClob(int columnIndex, java.io.Reader reader, long length) throws java.sql.SQLException- Specified by:
updateNClobin interfacejava.sql.ResultSet- Overrides:
updateNClobin 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:
updateNClobin interfacejava.sql.ResultSet- Overrides:
updateNClobin classResult- Throws:
java.sql.SQLException
-
updateNCharacterStream
public void updateNCharacterStream(int columnIndex, java.io.Reader x) throws java.sql.SQLException- Specified by:
updateNCharacterStreamin interfacejava.sql.ResultSet- Overrides:
updateNCharacterStreamin classResult- Throws:
java.sql.SQLException
-
updateNCharacterStream
public void updateNCharacterStream(java.lang.String columnLabel, java.io.Reader reader) throws java.sql.SQLException- Specified by:
updateNCharacterStreamin interfacejava.sql.ResultSet- Overrides:
updateNCharacterStreamin classResult- Throws:
java.sql.SQLException
-
updateAsciiStream
public void updateAsciiStream(int columnIndex, java.io.InputStream x) throws java.sql.SQLException- Specified by:
updateAsciiStreamin interfacejava.sql.ResultSet- Overrides:
updateAsciiStreamin classResult- Throws:
java.sql.SQLException
-
updateBinaryStream
public void updateBinaryStream(int columnIndex, java.io.InputStream x) throws java.sql.SQLException- Specified by:
updateBinaryStreamin interfacejava.sql.ResultSet- Overrides:
updateBinaryStreamin classResult- Throws:
java.sql.SQLException
-
updateCharacterStream
public void updateCharacterStream(int columnIndex, java.io.Reader x) throws java.sql.SQLException- Specified by:
updateCharacterStreamin interfacejava.sql.ResultSet- Overrides:
updateCharacterStreamin classResult- Throws:
java.sql.SQLException
-
updateAsciiStream
public void updateAsciiStream(java.lang.String columnLabel, java.io.InputStream x) throws java.sql.SQLException- Specified by:
updateAsciiStreamin interfacejava.sql.ResultSet- Overrides:
updateAsciiStreamin classResult- Throws:
java.sql.SQLException
-
updateBinaryStream
public void updateBinaryStream(java.lang.String columnLabel, java.io.InputStream x) throws java.sql.SQLException- Specified by:
updateBinaryStreamin interfacejava.sql.ResultSet- Overrides:
updateBinaryStreamin classResult- Throws:
java.sql.SQLException
-
updateCharacterStream
public void updateCharacterStream(java.lang.String columnLabel, java.io.Reader reader) throws java.sql.SQLException- Specified by:
updateCharacterStreamin interfacejava.sql.ResultSet- Overrides:
updateCharacterStreamin classResult- Throws:
java.sql.SQLException
-
updateBlob
public void updateBlob(int columnIndex, java.io.InputStream x) throws java.sql.SQLException- Specified by:
updateBlobin interfacejava.sql.ResultSet- Overrides:
updateBlobin classResult- Throws:
java.sql.SQLException
-
updateBlob
public void updateBlob(java.lang.String columnLabel, java.io.InputStream inputStream) throws java.sql.SQLException- Specified by:
updateBlobin interfacejava.sql.ResultSet- Overrides:
updateBlobin classResult- Throws:
java.sql.SQLException
-
updateClob
public void updateClob(int columnIndex, java.io.Reader x) throws java.sql.SQLException- Specified by:
updateClobin interfacejava.sql.ResultSet- Overrides:
updateClobin classResult- Throws:
java.sql.SQLException
-
updateClob
public void updateClob(java.lang.String columnLabel, java.io.Reader reader) throws java.sql.SQLException- Specified by:
updateClobin interfacejava.sql.ResultSet- Overrides:
updateClobin classResult- Throws:
java.sql.SQLException
-
updateNClob
public void updateNClob(int columnIndex, java.io.Reader reader) throws java.sql.SQLException- Specified by:
updateNClobin interfacejava.sql.ResultSet- Overrides:
updateNClobin classResult- Throws:
java.sql.SQLException
-
updateNClob
public void updateNClob(java.lang.String columnLabel, java.io.Reader reader) throws java.sql.SQLException- Specified by:
updateNClobin interfacejava.sql.ResultSet- Overrides:
updateNClobin 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:
updateObjectin interfacejava.sql.ResultSet- Overrides:
updateObjectin 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:
updateObjectin interfacejava.sql.ResultSet- Overrides:
updateObjectin 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:
updateObjectin interfacejava.sql.ResultSet- Overrides:
updateObjectin 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:
updateObjectin interfacejava.sql.ResultSet- Overrides:
updateObjectin classResult- Throws:
java.sql.SQLException
-
getConcurrency
public int getConcurrency()
- Specified by:
getConcurrencyin interfacejava.sql.ResultSet- Overrides:
getConcurrencyin classResult
-
resetToRowPointer
private void resetToRowPointer()
-
beforeFirst
public void beforeFirst() throws java.sql.SQLException- Specified by:
beforeFirstin interfacejava.sql.ResultSet- Overrides:
beforeFirstin classCompleteResult- Throws:
java.sql.SQLException
-
first
public boolean first() throws java.sql.SQLException- Specified by:
firstin interfacejava.sql.ResultSet- Overrides:
firstin classCompleteResult- Throws:
java.sql.SQLException
-
last
public boolean last() throws java.sql.SQLException- Specified by:
lastin interfacejava.sql.ResultSet- Overrides:
lastin classCompleteResult- Throws:
java.sql.SQLException
-
afterLast
public void afterLast() throws java.sql.SQLException- Specified by:
afterLastin interfacejava.sql.ResultSet- Overrides:
afterLastin classCompleteResult- Throws:
java.sql.SQLException
-
absolute
public boolean absolute(int row) throws java.sql.SQLException- Specified by:
absolutein interfacejava.sql.ResultSet- Overrides:
absolutein classCompleteResult- Throws:
java.sql.SQLException
-
relative
public boolean relative(int rows) throws java.sql.SQLException- Specified by:
relativein interfacejava.sql.ResultSet- Overrides:
relativein classCompleteResult- Throws:
java.sql.SQLException
-
next
public boolean next() throws java.sql.SQLExceptionDescription copied from class:ResultPosition resultset to next row- Specified by:
nextin interfacejava.sql.ResultSet- Overrides:
nextin classCompleteResult- Returns:
- true if next row exists
- Throws:
java.sql.SQLException- if any error occurs
-
previous
public boolean previous() throws java.sql.SQLException- Specified by:
previousin interfacejava.sql.ResultSet- Overrides:
previousin classCompleteResult- Throws:
java.sql.SQLException
-
-