| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectorg.firebirdsql.jdbc.FBResultSetpublic class FBResultSetextends java.lang.Objectimplements ResultSet, Synchronizable, FBObjectListener.FetcherListenerResultSet interface.
Constructor Summary | |
| |
| |
Method Summary | |
boolean |
|
protected void |
|
void |
|
void |
|
void |
|
void |
|
protected void |
|
void |
|
void |
|
void |
|
void |
|
int |
|
boolean |
|
Array |
|
Array |
|
InputStream |
|
InputStream |
|
BigDecimal |
|
BigDecimal |
|
BigDecimal |
|
BigDecimal |
|
InputStream |
|
InputStream |
|
Blob |
|
Blob |
|
boolean |
|
boolean |
|
byte |
|
byte |
|
byte[] |
|
byte[] |
|
Reader |
|
Reader |
|
Clob |
|
Clob |
|
int |
|
String |
|
Date |
|
Date |
|
Date |
|
Date |
|
double |
|
double |
|
String | |
int |
|
int |
|
org.firebirdsql.jdbc.field.FBField |
|
org.firebirdsql.jdbc.field.FBField |
|
org.firebirdsql.jdbc.field.FBField |
|
float |
|
float |
|
int |
|
int |
|
long |
|
long |
|
ResultSetMetaData |
|
Object |
|
Object |
|
Object |
|
Object |
|
Ref |
|
Ref |
|
int |
|
short |
|
short |
|
Statement |
|
String |
|
String |
|
Object |
|
Time |
|
Time |
|
Time |
|
Time |
|
Timestamp |
|
Timestamp |
|
Timestamp |
|
Timestamp |
|
int |
|
URL |
|
URL |
|
InputStream |
|
InputStream |
|
SQLWarning |
|
protected XSQLVAR |
|
void |
|
boolean |
|
boolean |
|
boolean |
|
boolean |
|
boolean |
|
void |
|
void |
|
boolean |
|
boolean |
|
void |
|
boolean |
|
void |
|
boolean |
|
boolean |
|
boolean |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
boolean |
|
protected FBResultSet(org.firebirdsql.gds.impl.GDSHelper gdsHelper,
AbstractStatement fbStatement,
org.firebirdsql.gds.impl.AbstractIscStmtHandle stmt,
FBObjectListener.ResultSetListener listener,
boolean trimStrings,
int rsType,
int rsConcurrency,
int rsHoldability,
boolean cached)
throws SQLExceptionCreates a newFBResultSetinstance.
- Parameters:
gdsHelper- aAbstractConnectionvaluefbStatement- aAbstractStatementvaluestmt- anisc_stmt_handlevalue
public boolean absolute(int row)
throws SQLExceptionMoves the cursor to the given row number in thisResultSetobject. If the row number is positive, the cursor moves to the given row number with respect to the beginning of the result set. The first row is row 1, the second is row 2, and so on. If the given row number is negative, the cursor moves to an absolute row position with respect to the end of the result set. For example, calling the methodabsolute(-1)positions the cursor on the last row; calling the methodabsolute(-2)moves the cursor to the next-to-last row, and so on. An attempt to position the cursor beyond the first/last row in the result set leaves the cursor before the first row or after the last row. Note: Callingabsolute(1)is the same as callingfirst(). Callingabsolute(-1)is the same as callinglast().
- Returns:
trueif the cursor is on the result set;falseotherwise
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
protected void addWarning(SQLWarning warning)
public void afterLast()
throws SQLExceptionMoves the cursor to the end of thisResultSetobject, just after the last row. This method has no effect if the result set contains no rows.
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public void allRowsFetched(org.firebirdsql.jdbc.FBFetcher fetcher)
throws SQLExceptionNotify listener that underlying fetcher fetched all rows.
- Specified by:
- allRowsFetched in interface FBObjectListener.FetcherListener
- Parameters:
fetcher- fetcher that fetched all rows.
public void beforeFirst()
throws SQLExceptionMoves the cursor to the front of thisResultSetobject, just before the first row. This method has no effect if the result set contains no rows.
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public void cancelRowUpdates()
throws SQLExceptionCancels the updates made to the current row in thisResultSetobject. This method may be called after calling anupdateXXXmethod(s) and before calling the methodupdateRowto roll back the updates made to a row. If no updates have been made orupdateRowhas already been called, this method has no effect.
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
protected void checkCursorMove()
throws SQLExceptionCheck if statement is open and prepare statement for cursor move.
public void clearWarnings()
throws SQLExceptionClears all warnings reported on thisResultSetobject. After this method is called, the methodgetWarningsreturnsnulluntil a new warning is reported for thisResultSetobject.
public void close()
throws SQLExceptionReleases thisResultSetobject's database and JDBC resources immediately instead of waiting for this to happen when it is automatically closed. Note: AResultSetobject is automatically closed by theStatementobject that generated it when thatStatementobject is closed, re-executed, or is used to retrieve the next result from a sequence of multiple results. AResultSetobject is also automatically closed when it is garbage collected.
public void deleteRow()
throws SQLExceptionDeletes the current row from thisResultSetobject and from the underlying database. This method cannot be called when the cursor is on the insert row.
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public void fetcherClosed(org.firebirdsql.jdbc.FBFetcher fetcher)
throws SQLExceptionNotify listener that underlying fetcher is closed.
- Specified by:
- fetcherClosed in interface FBObjectListener.FetcherListener
- Parameters:
fetcher- fetcher that was closed.
public int findColumn(String columnName)
throws SQLExceptionMaps the givenResultSetcolumn name to itsResultSetcolumn index.
- Parameters:
columnName- the name of the column
- Returns:
- the column index of the given column name
public boolean first()
throws SQLExceptionMoves the cursor to the first row in thisResultSetobject.
- Returns:
trueif the cursor is on a valid row;falseif there are no rows in the result set
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public Array getArray(String columnName)
throws SQLExceptionReturns the value of the designated column in the current row of thisResultSetobject as anArrayobject in the Java programming language.
- Parameters:
columnName- the name of the column from which to retrieve the value
- Returns:
- an
Arrayobject representing the SQLARRAYvalue in the specified column
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public Array getArray(int i)
throws SQLExceptionReturns the value of the designated column in the current row of thisResultSetobject as anArrayobject in the Java programming language.
- Parameters:
i- the first column is 1, the second is 2, ...
- Returns:
- an
Arrayobject representing the SQLARRAYvalue in the specified column
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public InputStream getAsciiStream(String columnName)
throws SQLExceptionRetrieves the value of the designated column in the current row of thisResultSetobject as anInputStream.
- Parameters:
columnName- The SQL name of the column
- Returns:
- The value as an
InputStream
public InputStream getAsciiStream(int columnIndex)
throws SQLExceptionRetrieves the value of the designated column in the current row of this ResultSet object as a stream of ASCII characters. The value can then be read in chunks from the stream. This method is particularly suitable for retrieving large LONGVARCHAR values.
- Parameters:
columnIndex- The index of the parameter to retrieve, first parameter is 1, second is 2, ...
- Returns:
- a stream of ascii characters
public BigDecimal getBigDecimal(String columnName)
throws SQLExceptionGets the value of the designated column in the current row of thisResultSetobject as ajava.math.BigDecimalwith full precision.
- Parameters:
columnName- the column name
- Returns:
- the column value (full precision); if the value is SQL
NULL, the value returned isnullin the Java programming language.
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public BigDecimal getBigDecimal(String columnName,
int scale)
throws SQLExceptionDeprecated.
Retrieves the value of the designated column in the current row of thisResultSetobject as aBigDecimal.
- Parameters:
columnName- The SQL name of the column
- Returns:
- The
BigDecimalvalue
public BigDecimal getBigDecimal(int columnIndex)
throws SQLExceptionRetrieve the value of the designated column in the current row of this ResultSet as a BigDecimal object.
- Parameters:
columnIndex- The index of the parameter to retrieve, first parameter is 1, second is 2, ...
- Returns:
- The value of the field as a BigDecimal
public BigDecimal getBigDecimal(int columnIndex,
int scale)
throws SQLExceptionDeprecated.
Gets the value of the designated column in the current row of thisResultSetobject as ajava.math.BigDecimalin the Java programming language.
- Parameters:
columnIndex- the first column is 1, the second is 2, ...scale- the number of digits to the right of the decimal point
- Returns:
- the column value; if the value is SQL
NULL, the value returned isnull
public InputStream getBinaryStream(String columnName)
throws SQLExceptionRetrieves the value of the designated column in the current row of thisResultSetobject as a binaryInputStream.
- Parameters:
columnName- The SQL name of the column
- Returns:
- The value as a binary
InputStream
public InputStream getBinaryStream(int columnIndex)
throws SQLExceptionRetrieve the value of the designated column in the current row of this ResultSet as a binary InputStream.
- Parameters:
columnIndex- The index of the parameter to retrieve, first parameter is 1, second is 2, ...
- Returns:
- The value of the field as a binary input stream
public Blob getBlob(String columnName)
throws SQLExceptionReturns the value of the designated column in the current row of thisResultSetobject as aBlobobject in the Java programming language.
- Parameters:
columnName- the name of the column from which to retrieve the value
- Returns:
- a
Blobobject representing the SQLBLOBvalue in the specified column
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public Blob getBlob(int columnIndex)
throws SQLExceptionRetrieve the value of the designated column in the current row of this ResultSet as a Blob object.
- Parameters:
columnIndex- The index of the parameter to retrieve, first parameter is 1, second is 2, ...
- Returns:
- The value of the field as a Blob object
public boolean getBoolean(String columnName)
throws SQLExceptionRetrieves the value of the designated column in the current row of thisResultSetobject as abooleanvalue.
- Parameters:
columnName- The SQL name of the column
- Returns:
- The
Stringvalue
public boolean getBoolean(int columnIndex)
throws SQLExceptionRetrieve the value of the designated column in the current row of this ResultSet as abooleanvalue.
- Parameters:
columnIndex- The index of the parameter to retrieve, first parameter is 1, second is 2, ...
- Returns:
- The
booleanvalue of the field
public byte getByte(String columnName)
throws SQLExceptionRetrieves the value of the designated column in the current row of thisResultSetobject as abytevalue.
- Parameters:
columnName- The SQL name of the column
- Returns:
- The
bytevalue
public byte getByte(int columnIndex)
throws SQLExceptionRetrieve the value of the designated column in the current row of this ResultSet as abytevalue.
- Parameters:
columnIndex- The index of the parameter to retrieve, first parameter is 1, second is 2, ...
- Returns:
- The
bytevalue of the field
public byte[] getBytes(String columnName)
throws SQLExceptionRetrieves the value of the designated column in the current row of thisResultSetobject as abytearray.
- Parameters:
columnName- The SQL name of the column
- Returns:
- The
bytearray value
public byte[] getBytes(int columnIndex)
throws SQLExceptionRetrieve the value of the designated column in the current row of this ResultSet as abytearray.
- Parameters:
columnIndex- The index of the parameter to retrieve, first parameter is 1, second is 2, ...
- Returns:
- The
bytearray value of the field
public Reader getCharacterStream(String columnName)
throws SQLExceptionGets the value of the designated column in the current row of thisResultSetobject as ajava.io.Readerobject.
- Parameters:
columnName- the name of the column
- Returns:
- a
java.io.Readerobject that contains the column value; if the value is SQLNULL, the value returned isnullin the Java programming language.
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public Reader getCharacterStream(int columnIndex)
throws SQLExceptionGets the value of the designated column in the current row of thisResultSetobject as ajava.io.Readerobject.
- Parameters:
columnIndex- the first column is 1, the second is 2, ...
- Returns:
- a
java.io.Readerobject that contains the column value; if the value is SQLNULL, the value returned isnullin the Java programming language.
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public Clob getClob(String columnName)
throws SQLExceptionReturns the value of the designated column in the current row of thisResultSetobject as aClobobject in the Java programming language.
- Parameters:
columnName- the name of the column from which to retrieve the value
- Returns:
- a
Clobobject representing the SQLCLOBvalue in the specified column
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public Clob getClob(int i)
throws SQLExceptionReturns the value of the designated column in the current row of thisResultSetobject as aClobobject in the Java programming language.
- Parameters:
i- the first column is 1, the second is 2, ...
- Returns:
- a
Clobobject representing the SQLCLOBvalue in the specified column
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public int getConcurrency()
throws SQLExceptionReturns the concurrency mode of thisResultSetobject. The concurrency used is determined by theStatementobject that created the result set.
- Returns:
- the concurrency type, either
CONCUR_READ_ONLYorCONCUR_UPDATABLE
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public String getCursorName()
throws SQLExceptionGets the name of the SQL cursor used by thisResultSetobject. In SQL, a result table is retrieved through a cursor that is named. The current row of a result set can be updated or deleted using a positioned update/delete statement that references the cursor name. To insure that the cursor has the proper isolation level to support update, the cursor'sselectstatement should be of the form 'select for update'. If the 'for update' clause is omitted, the positioned updates may fail. The JDBC API supports this SQL feature by providing the name of the SQL cursor used by aResultSetobject. The current row of aResultSetobject is also the current row of this SQL cursor. Note: If positioned update is not supported, aSQLExceptionis thrown.
- Returns:
- the SQL name for this
ResultSetobject's cursor
public Date getDate(String columnName)
throws SQLExceptionRetrieves the value of the designated column in the current row of thisResultSetobject as aDate.
- Parameters:
columnName- The SQL name of the column
- Returns:
- The
Datevalue
public Date getDate(String columnName,
Calendar cal)
throws SQLExceptionReturns the value of the designated column in the current row of thisResultSetobject as ajava.sql.Dateobject in the Java programming language. This method uses the given calendar to construct an appropriate millisecond value for the date if the underlying database does not store timezone information.
- Parameters:
columnName- the SQL name of the column from which to retrieve the valuecal- thejava.util.Calendarobject to use in constructing the date
- Returns:
- the column value as a
java.sql.Dateobject; if the value is SQLNULL, the value returned isnullin the Java programming language
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public Date getDate(int columnIndex)
throws SQLExceptionRetrieve the value of the designated column in the current row of this ResultSet as aDateobject.
- Parameters:
columnIndex- The index of the parameter to retrieve, first parameter is 1, second is 2, ...
- Returns:
- The
Dateobject of the field
public Date getDate(int columnIndex,
Calendar cal)
throws SQLExceptionReturns the value of the designated column in the current row of thisResultSetobject as ajava.sql.Dateobject in the Java programming language. This method uses the given calendar to construct an appropriate millisecond value for the date if the underlying database does not store timezone information.
- Parameters:
columnIndex- the first column is 1, the second is 2, ...cal- thejava.util.Calendarobject to use in constructing the date
- Returns:
- the column value as a
java.sql.Dateobject; if the value is SQLNULL, the value returned isnullin the Java programming language
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public double getDouble(String columnName)
throws SQLExceptionRetrieves the value of the designated column in the current row of thisResultSetobject as adoublevalue.
- Parameters:
columnName- The SQL name of the column
- Returns:
- The
doublevalue
public double getDouble(int columnIndex)
throws SQLExceptionRetrieve the value of the designated column in the current row of this ResultSet as adoublevalue.
- Parameters:
columnIndex- The index of the parameter to retrieve, first parameter is 1, second is 2, ...
- Returns:
- The
doublevalue of the field
public String getExecutionPlan()
throws SQLExceptionpublic int getFetchDirection()
throws SQLExceptionReturns the fetch direction for thisResultSetobject.
- Returns:
- the current fetch direction for this
ResultSetobject
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public int getFetchSize()
throws SQLExceptionReturns the fetch size for thisResultSetobject.
- Returns:
- the current fetch size for this
ResultSetobject
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public org.firebirdsql.jdbc.field.FBField getField(String columnName)
throws SQLExceptionGet aFBFieldby name.
- Parameters:
columnName- The name of the field to be retrieved
public org.firebirdsql.jdbc.field.FBField getField(int columnIndex)
throws SQLExceptionGet theFBFieldobject at the given column index
- Parameters:
columnIndex- The index of the parameter, 1 is the first index
public org.firebirdsql.jdbc.field.FBField getField(int columnIndex,
boolean checkRowPosition)
throws SQLExceptionFactory method for the field access objects
public float getFloat(String columnName)
throws SQLExceptionRetrieves the value of the designated column in the current row of thisResultSetobject as afloatvalue.
- Parameters:
columnName- The SQL name of the column
- Returns:
- The
floatvalue
public float getFloat(int columnIndex)
throws SQLExceptionRetrieve the value of the designated column in the current row of this ResultSet as afloatvalue.
- Parameters:
columnIndex- The index of the parameter to retrieve, first parameter is 1, second is 2, ...
- Returns:
- The
floatvalue of the field
public int getInt(String columnName)
throws SQLExceptionRetrieves the value of the designated column in the current row of thisResultSetobject as anintvalue.
- Parameters:
columnName- The SQL name of the column
- Returns:
- The
intvalue
public int getInt(int columnIndex)
throws SQLExceptionRetrieve the value of the designated column in the current row of this ResultSet as anintvalue.
- Parameters:
columnIndex- The index of the parameter to retrieve, first parameter is 1, second is 2, ...
- Returns:
- The
intvalue of the field
public long getLong(String columnName)
throws SQLExceptionRetrieves the value of the designated column in the current row of thisResultSetobject as alongvalue.
- Parameters:
columnName- The SQL name of the column
- Returns:
- The
longvalue
public long getLong(int columnIndex)
throws SQLExceptionRetrieve the value of the designated column in the current row of this ResultSet as alongvalue.
- Parameters:
columnIndex- The index of the parameter to retrieve, first parameter is 1, second is 2, ...
- Returns:
- The
longvalue of the field
public ResultSetMetaData getMetaData()
throws SQLExceptionRetrieves the number, types and properties of thisResultSetobject's columns.
- Returns:
- the description of this
ResultSetobject's columns
public Object getObject(String columnName)
throws SQLExceptionGets the value of the designated column in the current row of thisResultSetobject as anObjectin the Java programming language. This method will return the value of the given column as a Java object. The type of the Java object will be the default Java object type corresponding to the column's SQL type, following the mapping for built-in types specified in the JDBC specification. This method may also be used to read datatabase-specific abstract data types. In the JDBC 2.0 API, the behavior of the methodgetObjectis extended to materialize data of SQL user-defined types. When a column contains a structured or distinct value, the behavior of this method is as if it were a call to:getObject(columnIndex, this.getStatement().getConnection().getTypeMap()).
- Parameters:
columnName- the SQL name of the column
- Returns:
- a
java.lang.Objectholding the column value
public Object getObject(String columnName,
Map map)
throws SQLExceptionReturns the value of the designated column in the current row of thisResultSetobject as anObjectin the Java programming language. This method uses the specifiedMapobject for custom mapping if appropriate.
- Parameters:
columnName- the name of the column from which to retrieve the valuemap- ajava.util.Mapobject that contains the mapping from SQL type names to classes in the Java programming language
- Returns:
- an
Objectrepresenting the SQL value in the specified column
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public Object getObject(int columnIndex)
throws SQLExceptionRetrieve the value of the designated column in the current row of this ResultSet as anObject.
- Parameters:
columnIndex- The index of the parameter to retrieve, first parameter is 1, second is 2, ...
- Returns:
- The
Objectrepresentation of the field
public Object getObject(int i,
Map map)
throws SQLExceptionReturns the value of the designated column in the current row of thisResultSetobject as anObjectin the Java programming language. This method uses the givenMapobject for the custom mapping of the SQL structured or distinct type that is being retrieved.
- Parameters:
i- the first column is 1, the second is 2, ...map- ajava.util.Mapobject that contains the mapping from SQL type names to classes in the Java programming language
- Returns:
- an
Objectin the Java programming language representing the SQL value
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public Ref getRef(String columnName)
throws SQLExceptionReturns the value of the designated column in the current row of thisResultSetobject as aRefobject in the Java programming language.
- Parameters:
columnName- the column name
- Returns:
- a
Refobject representing the SQLREFvalue in the specified column
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public Ref getRef(int i)
throws SQLExceptionReturns the value of the designated column in the current row of thisResultSetobject as aRefobject in the Java programming language.
- Parameters:
i- the first column is 1, the second is 2, ...
- Returns:
- a
Refobject representing an SQLREFvalue
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public int getRow()
throws SQLExceptionRetrieves the current row number. The first row is number 1, the second number 2, and so on.
- Returns:
- the current row number;
0if there is no current row
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public short getShort(String columnName)
throws SQLExceptionRetrieves the value of the designated column in the current row of thisResultSetobject as ashortvalue.
- Parameters:
columnName- The SQL name of the column
- Returns:
- THe
shortvalue
public short getShort(int columnIndex)
throws SQLExceptionRetrieve the value of the designated column in the current row of this ResultSet as ashortvalue.
- Parameters:
columnIndex- The index of the parameter to retrieve, first parameter is 1, second is 2, ...
- Returns:
- The
shortvalue of the field
public Statement getStatement()
Returns theStatementobject that produced thisResultSetobject. If the result set was generated some other way, such as by aDatabaseMetaDatamethod, this method returnsnull.
- Returns:
- the
Statmentobject that produced thisResultSetobject ornullif the result set was produced some other way
public String getString(String columnName)
throws SQLExceptionRetrieves the value of the designated column in the current row of thisResultSetobject as aString.
- Parameters:
columnName- The SQL name of the column
public String getString(int columnIndex)
throws SQLExceptionRetrieve the value of the designated column in the current row of this ResultSet as aStringobject.
- Parameters:
columnIndex- The index of the parameter to retrieve, first parameter is 1, second is 2, ...
- Returns:
- The
Stringrepresentation of the field
public Object getSynchronizationObject()
throws SQLExceptionGet synchronization object.
- Specified by:
- getSynchronizationObject in interface Synchronizable
- Returns:
- object, cannot be
null.
public Time getTime(String columnName)
throws SQLExceptionRetrieves the value of the designated column in the current row of thisResultSetobject as aTimeobject.
- Parameters:
columnName- The SQL name of the column
- Returns:
- The
Timevalue
public Time getTime(String columnName,
Calendar cal)
throws SQLExceptionReturns the value of the designated column in the current row of thisResultSetobject as ajava.sql.Timeobject in the Java programming language. This method uses the given calendar to construct an appropriate millisecond value for the time if the underlying database does not store timezone information.
- Parameters:
columnName- the SQL name of the columncal- thejava.util.Calendarobject to use in constructing the time
- Returns:
- the column value as a
java.sql.Timeobject; if the value is SQLNULL, the value returned isnullin the Java programming language
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public Time getTime(int columnIndex)
throws SQLExceptionRetrieve the value of the designated column in the current row of this ResultSet as aTimeobject.
- Parameters:
columnIndex- The index of the parameter to retrieve, first parameter is 1, second is 2, ...
- Returns:
- The
Timerepresentation of the field
public Time getTime(int columnIndex,
Calendar cal)
throws SQLExceptionReturns the value of the designated column in the current row of thisResultSetobject as ajava.sql.Timeobject in the Java programming language. This method uses the given calendar to construct an appropriate millisecond value for the time if the underlying database does not store timezone information.
- Parameters:
columnIndex- the first column is 1, the second is 2, ...cal- thejava.util.Calendarobject to use in constructing the time
- Returns:
- the column value as a
java.sql.Timeobject; if the value is SQLNULL, the value returned isnullin the Java programming language
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public Timestamp getTimestamp(String columnName)
throws SQLExceptionRetrieves the value of the designated column in the current row of thisResultSetobject as aTimestampobject.
- Parameters:
columnName- The SQL name of the column
- Returns:
- The
Timestampvalue
public Timestamp getTimestamp(String columnName,
Calendar cal)
throws SQLExceptionReturns the value of the designated column in the current row of thisResultSetobject as ajava.sql.Timestampobject in the Java programming language. This method uses the given calendar to construct an appropriate millisecond value for the timestamp if the underlying database does not store timezone information.
- Parameters:
columnName- the SQL name of the columncal- thejava.util.Calendarobject to use in constructing the date
- Returns:
- the column value as a
java.sql.Timestampobject; if the value is SQLNULL, the value returned isnullin the Java programming language
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public Timestamp getTimestamp(int columnIndex)
throws SQLExceptionRetrieve the value of the designated column in the current row of this ResultSet as aTimestampobject.
- Parameters:
columnIndex- The index of the parameter to retrieve, first parameter is 1, second is 2, ...
- Returns:
- The
Timestamprepresentation of the field
public Timestamp getTimestamp(int columnIndex,
Calendar cal)
throws SQLExceptionReturns the value of the designated column in the current row of thisResultSetobject as ajava.sql.Timestampobject in the Java programming language. This method uses the given calendar to construct an appropriate millisecond value for the timestamp if the underlying database does not store timezone information.
- Parameters:
columnIndex- the first column is 1, the second is 2, ...cal- thejava.util.Calendarobject to use in constructing the timestamp
- Returns:
- the column value as a
java.sql.Timestampobject; if the value is SQLNULL, the value returned isnullin the Java programming language
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public int getType()
throws SQLExceptionReturns the type of thisResultSetobject. The type is determined by theStatementobject that created the result set.
- Returns:
TYPE_FORWARD_ONLY,TYPE_SCROLL_INSENSITIVE, orTYPE_SCROLL_SENSITIVE
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public URL getURL(String param1)
throws SQLExceptionThis operation is not supported
- Parameters:
param1-
- Returns:
public URL getURL(int param1)
throws SQLExceptionThis operation is not supported
- Parameters:
param1-
- Returns:
public InputStream getUnicodeStream(String columnName)
throws SQLExceptionDeprecated.
Retrieves the value of the designated column in the current row of thisResultSetobject as a unicodeInputStream.
- Parameters:
columnName- The SQL name of the column
- Returns:
- The value as a unicode
InputStream
public InputStream getUnicodeStream(int columnIndex)
throws SQLExceptionDeprecated.
public SQLWarning getWarnings()
throws SQLExceptionReturns the first warning reported by calls on thisResultSetobject. Subsequent warnings on thisResultSetobject will be chained to theSQLWarningobject that this method returns. The warning chain is automatically cleared each time a new row is read. Note: This warning chain only covers warnings caused byResultSetmethods. Any warning caused byStatementmethods (such as reading OUT parameters) will be chained on theStatementobject.
- Returns:
- the first
SQLWarningobject reported ornull
protected XSQLVAR getXsqlvar(int columnIndex)
Returns the XSQLVAR structure for the specified column.
public void insertRow()
throws SQLExceptionInserts the contents of the insert row into thisResultSetobjaect and into the database. The cursor must be on the insert row when this method is called.
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public boolean isAfterLast()
throws SQLExceptionIndicates whether the cursor is after the last row in thisResultSetobject.
- Returns:
trueif the cursor is after the last row;falseif the cursor is at any other position or the result set contains no rows
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public boolean isBeforeFirst()
throws SQLExceptionIndicates whether the cursor is before the first row in thisResultSetobject.
- Returns:
trueif the cursor is before the first row;falseif the cursor is at any other position or the result set contains no rows
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public boolean isFirst()
throws SQLExceptionIndicates whether the cursor is on the first row of thisResultSetobject.
- Returns:
trueif the cursor is on the first row;falseotherwise
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public boolean isLast()
throws SQLExceptionIndicates whether the cursor is on the last row of thisResultSetobject. Note: Calling the methodisLastmay be expensive because the JDBC driver might need to fetch ahead one row in order to determine whether the current row is the last row in the result set.
- Returns:
trueif the cursor is on the last row;falseotherwise
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public boolean last()
throws SQLExceptionMoves the cursor to the last row in thisResultSetobject.
- Returns:
trueif the cursor is on a valid row;falseif there are no rows in the result set
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public void moveToCurrentRow()
throws SQLExceptionMoves the cursor to the remembered cursor position, usually the current row. This method has no effect if the cursor is not on the insert row.
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public void moveToInsertRow()
throws SQLExceptionMoves the cursor to the insert row. The current cursor position is remembered while the cursor is positioned on the insert row. The insert row is a special row associated with an updatable result set. It is essentially a buffer where a new row may be constructed by calling theupdateXXXmethods prior to inserting the row into the result set. Only theupdateXXX,getXXX, andinsertRowmethods may be called when the cursor is on the insert row. All of the columns in a result set must be given a value each time this method is called before callinginsertRow. AnupdateXXXmethod must be called before agetXXXmethod can be called on a column value.
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public boolean next()
throws SQLExceptionMoves the cursor down one row from its current position. AResultSetcursor is initially positioned before the first row; the first call to the methodnextmakes the first row the current row; the second call makes the second row the current row, and so on. If an input stream is open for the current row, a call to the methodnextwill implicitly close it. AResultSetobject's warning chain is cleared when a new row is read.
- Returns:
trueif the new current row is valid;falseif there are no more rows
public boolean previous()
throws SQLExceptionMoves the cursor to the previous row in thisResultSetobject. Note: Calling the methodprevious()is not the same as calling the methodrelative(-1)because it makes sense to callprevious() when there is no current row.
- Returns:
trueif the cursor is on a valid row;falseif it is off the result set
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public void refreshRow()
throws SQLExceptionRefreshes the current row with its most recent value in the database. This method cannot be called when the cursor is on the insert row. TherefreshRowmethod provides a way for an application to explicitly tell the JDBC driver to refetch a row(s) from the database. An application may want to callrefreshRowwhen caching or prefetching is being done by the JDBC driver to fetch the latest value of a row from the database. The JDBC driver may actually refresh multiple rows at once if the fetch size is greater than one. All values are refetched subject to the transaction isolation level and cursor sensitivity. IfrefreshRowis called after calling anupdateXXXmethod, but before calling the methodupdateRow, then the updates made to the row are lost. Calling the methodrefreshRowfrequently will likely slow performance.
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public boolean relative(int rows)
throws SQLExceptionMoves the cursor a relative number of rows, either positive or negative. Attempting to move beyond the first/last row in the result set positions the cursor before/after the the first/last row. Callingrelative(0)is valid, but does not change the cursor position. Note: Calling the methodrelative(1)is different from calling the methodnext()because is makes sense to callnext()when there is no current row, for example, when the cursor is positioned before the first row or after the last row of the result set.
- Returns:
trueif the cursor is on a row;falseotherwise
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public void rowChanged(org.firebirdsql.jdbc.FBFetcher fetcher,
byte[][] newRow)
throws SQLExceptionNotify listener that underlying row was changed.
- Specified by:
- rowChanged in interface FBObjectListener.FetcherListener
- Parameters:
fetcher- instance ofFBFetcherthat caused this event.newRow- new row.
public boolean rowDeleted()
throws SQLExceptionIndicates whether a row has been deleted. A deleted row may leave a visible "hole" in a result set. This method can be used to detect holes in a result set. The value returned depends on whether or not thisResultSetobject can detect deletions.
- Returns:
trueif a row was deleted and deletions are detected;falseotherwise
- Since:
- 1.2
- See Also:
DatabaseMetaData.deletesAreDetected,What Is in the JDBC 2.0 API
public boolean rowInserted()
throws SQLExceptionIndicates whether the current row has had an insertion. The value returned depends on whether or not thisResultSetobject can detect visible inserts.
- Returns:
trueif a row has had an insertion and insertions are detected;falseotherwise
- Since:
- 1.2
- See Also:
DatabaseMetaData.insertsAreDetected,What Is in the JDBC 2.0 API
public boolean rowUpdated()
throws SQLExceptionIndicates whether the current row has been updated. The value returned depends on whether or not the result set can detect updates.
- Returns:
trueif the row has been visibly updated by the owner or another, and updates are detected
- Since:
- 1.2
- See Also:
DatabaseMetaData.updatesAreDetected,What Is in the JDBC 2.0 API
public void setFetchDirection(int direction)
throws SQLExceptionGives a hint as to the direction in which the rows in thisResultSetobject will be processed. The initial value is determined by theStatementobject that produced thisResultSetobject. The fetch direction may be changed at any time.
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API,Statement.setFetchDirection
public void setFetchSize(int rows)
throws SQLExceptionGives the JDBC driver a hint as to the number of rows that should be fetched from the database when more rows are needed for thisResultSetobject. If the fetch size specified is zero, the JDBC driver ignores the value and is free to make its own best guess as to what the fetch size should be. The default value is set by theStatementobject that created the result set. The fetch size may be changed at any time.
- Parameters:
rows- the number of rows to fetch
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public void updateArray(String param1,
Array param2)
throws SQLExceptionThis operation is not supported
- Parameters:
param1-param2-
public void updateArray(int param1,
Array param2)
throws SQLExceptionThis operation is not supported
- Parameters:
param1-param2-
public void updateAsciiStream(String columnName,
InputStream x,
int length)
throws SQLExceptionUpdates the designated column with an ascii stream value. TheupdateXXXmethods are used to update column values in the current row or the insert row. TheupdateXXXmethods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.
- Parameters:
columnName- the name of the columnx- the new column valuelength- the length of the stream
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public void updateAsciiStream(int columnIndex,
InputStream x,
int length)
throws SQLExceptionUpdates the designated column with an ascii stream value. TheupdateXXXmethods are used to update column values in the current row or the insert row. TheupdateXXXmethods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.
- Parameters:
columnIndex- the first column is 1, the second is 2, ...x- the new column valuelength- the length of the stream
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public void updateBigDecimal(String columnName,
BigDecimal x)
throws SQLExceptionUpdates the designated column with ajava.sql.BigDecimalvalue. TheupdateXXXmethods are used to update column values in the current row or the insert row. TheupdateXXXmethods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.
- Parameters:
columnName- the name of the columnx- the new column value
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public void updateBigDecimal(int columnIndex,
BigDecimal x)
throws SQLExceptionUpdates the designated column with ajava.math.BigDecimalvalue. TheupdateXXXmethods are used to update column values in the current row or the insert row. TheupdateXXXmethods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.
- Parameters:
columnIndex- the first column is 1, the second is 2, ...x- the new column value
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public void updateBinaryStream(String columnName,
InputStream x,
int length)
throws SQLExceptionUpdates the designated column with a binary stream value. TheupdateXXXmethods are used to update column values in the current row or the insert row. TheupdateXXXmethods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.
- Parameters:
columnName- the name of the columnx- the new column valuelength- the length of the stream
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public void updateBinaryStream(int columnIndex,
InputStream x,
int length)
throws SQLExceptionUpdates the designated column with a binary stream value. TheupdateXXXmethods are used to update column values in the current row or the insert row. TheupdateXXXmethods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.
- Parameters:
columnIndex- the first column is 1, the second is 2, ...x- the new column valuelength- the length of the stream
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public void updateBlob(String param1,
Blob param2)
throws SQLExceptionThis operation is not supported
- Parameters:
param1-param2-
public void updateBlob(int param1,
Blob param2)
throws SQLExceptionThis operation is not supported
- Parameters:
param1-param2-
public void updateBoolean(String columnName,
boolean x)
throws SQLExceptionUpdates the designated column with abooleanvalue. TheupdateXXXmethods are used to update column values in the current row or the insert row. TheupdateXXXmethods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.
- Parameters:
columnName- the name of the columnx- the new column value
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public void updateBoolean(int columnIndex,
boolean x)
throws SQLExceptionUpdates the designated column with abooleanvalue. TheupdateXXXmethods are used to update column values in the current row or the insert row. TheupdateXXXmethods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.
- Parameters:
columnIndex- the first column is 1, the second is 2, ...x- the new column value
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public void updateByte(String columnName,
byte x)
throws SQLExceptionUpdates the designated column with abytevalue. TheupdateXXXmethods are used to update column values in the current row or the insert row. TheupdateXXXmethods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.
- Parameters:
columnName- the name of the columnx- the new column value
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public void updateByte(int columnIndex,
byte x)
throws SQLExceptionUpdates the designated column with abytevalue. TheupdateXXXmethods are used to update column values in the current row or the insert row. TheupdateXXXmethods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.
- Parameters:
columnIndex- the first column is 1, the second is 2, ...x- the new column value
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public void updateBytes(String columnName,
x[] )
throws SQLExceptionUpdates the designated column with abooleanvalue. TheupdateXXXmethods are used to update column values in the current row or the insert row. TheupdateXXXmethods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database. JDBC 2.0 Updates a column with a byte array value. TheupdateXXXmethods are used to update column values in the current row, or the insert row. TheupdateXXXmethods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.
- Parameters:
columnName- the name of the column
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public void updateBytes(int columnIndex,
x[] )
throws SQLExceptionUpdates the designated column with abytearray value. TheupdateXXXmethods are used to update column values in the current row or the insert row. TheupdateXXXmethods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.
- Parameters:
columnIndex- the first column is 1, the second is 2, ...
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public void updateCharacterStream(String columnName,
Reader reader,
int length)
throws SQLExceptionUpdates the designated column with a character stream value. TheupdateXXXmethods are used to update column values in the current row or the insert row. TheupdateXXXmethods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.
- Parameters:
columnName- the name of the columnreader- the new column valuelength- the length of the stream
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public void updateCharacterStream(int columnIndex,
Reader x,
int length)
throws SQLExceptionUpdates the designated column with a character stream value. TheupdateXXXmethods are used to update column values in the current row or the insert row. TheupdateXXXmethods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.
- Parameters:
columnIndex- the first column is 1, the second is 2, ...x- the new column valuelength- the length of the stream
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public void updateClob(String param1,
Clob param2)
throws SQLExceptionThis operation is not supported
- Parameters:
param1-param2-
public void updateClob(int param1,
Clob param2)
throws SQLExceptionThis operation is not supported
- Parameters:
param1-param2-
public void updateDate(String columnName,
Date x)
throws SQLExceptionUpdates the designated column with ajava.sql.Datevalue. TheupdateXXXmethods are used to update column values in the current row or the insert row. TheupdateXXXmethods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.
- Parameters:
columnName- the name of the columnx- the new column value
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public void updateDate(int columnIndex,
Date x)
throws SQLExceptionUpdates the designated column with ajava.sql.Datevalue. TheupdateXXXmethods are used to update column values in the current row or the insert row. TheupdateXXXmethods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.
- Parameters:
columnIndex- the first column is 1, the second is 2, ...x- the new column value
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public void updateDouble(String columnName,
double x)
throws SQLExceptionUpdates the designated column with adoublevalue. TheupdateXXXmethods are used to update column values in the current row or the insert row. TheupdateXXXmethods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.
- Parameters:
columnName- the name of the columnx- the new column value
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public void updateDouble(int columnIndex,
double x)
throws SQLExceptionUpdates the designated column with adoublevalue. TheupdateXXXmethods are used to update column values in the current row or the insert row. TheupdateXXXmethods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.
- Parameters:
columnIndex- the first column is 1, the second is 2, ...x- the new column value
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public void updateFloat(String columnName,
float x)
throws SQLExceptionUpdates the designated column with afloatvalue. TheupdateXXXmethods are used to update column values in the current row or the insert row. TheupdateXXXmethods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.
- Parameters:
columnName- the name of the columnx- the new column value
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public void updateFloat(int columnIndex,
float x)
throws SQLExceptionUpdates the designated column with afloatvalue. TheupdateXXXmethods are used to update column values in the current row or the insert row. TheupdateXXXmethods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.
- Parameters:
columnIndex- the first column is 1, the second is 2, ...x- the new column value
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public void updateInt(String columnName,
int x)
throws SQLExceptionUpdates the designated column with anintvalue. TheupdateXXXmethods are used to update column values in the current row or the insert row. TheupdateXXXmethods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.
- Parameters:
columnName- the name of the columnx- the new column value
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public void updateInt(int columnIndex,
int x)
throws SQLExceptionUpdates the designated column with anintvalue. TheupdateXXXmethods are used to update column values in the current row or the insert row. TheupdateXXXmethods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.
- Parameters:
columnIndex- the first column is 1, the second is 2, ...x- the new column value
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public void updateLong(String columnName,
long x)
throws SQLExceptionUpdates the designated column with alongvalue. TheupdateXXXmethods are used to update column values in the current row or the insert row. TheupdateXXXmethods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.
- Parameters:
columnName- the name of the columnx- the new column value
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public void updateLong(int columnIndex,
long x)
throws SQLExceptionUpdates the designated column with alongvalue. TheupdateXXXmethods are used to update column values in the current row or the insert row. TheupdateXXXmethods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.
- Parameters:
columnIndex- the first column is 1, the second is 2, ...x- the new column value
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public void updateNull(String columnName)
throws SQLExceptionUpdates the designated column with anullvalue. TheupdateXXXmethods are used to update column values in the current row or the insert row. TheupdateXXXmethods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.
- Parameters:
columnName- the name of the column
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public void updateNull(int columnIndex)
throws SQLExceptionGives a nullable column a null value. TheupdateXXXmethods are used to update column values in the current row or the insert row. TheupdateXXXmethods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.
- Parameters:
columnIndex- the first column is 1, the second is 2, ...
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public void updateObject(String columnName,
Object x)
throws SQLExceptionUpdates the designated column with anObjectvalue. TheupdateXXXmethods are used to update column values in the current row or the insert row. TheupdateXXXmethods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.
- Parameters:
columnName- the name of the columnx- the new column value
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public void updateObject(String columnName,
Object x,
int scale)
throws SQLExceptionUpdates the designated column with anObjectvalue. TheupdateXXXmethods are used to update column values in the current row or the insert row. TheupdateXXXmethods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.
- Parameters:
columnName- the name of the columnx- the new column valuescale- forjava.sql.Types.DECIMAorjava.sql.Types.NUMERICtypes, this is the number of digits after the decimal point. For all other types this value will be ignored.
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public void updateObject(int columnIndex,
Object x)
throws SQLExceptionUpdates the designated column with anObjectvalue. TheupdateXXXmethods are used to update column values in the current row or the insert row. TheupdateXXXmethods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.
- Parameters:
columnIndex- the first column is 1, the second is 2, ...x- the new column value
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public void updateObject(int columnIndex,
Object x,
int scale)
throws SQLExceptionUpdates the designated column with anObjectvalue. TheupdateXXXmethods are used to update column values in the current row or the insert row. TheupdateXXXmethods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.
- Parameters:
columnIndex- the first column is 1, the second is 2, ...x- the new column valuescale- forjava.sql.Types.DECIMAorjava.sql.Types.NUMERICtypes, this is the number of digits after the decimal point. For all other types this value will be ignored.
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public void updateRef(String param1,
Ref param2)
throws SQLExceptionThis operation is not supported
- Parameters:
param1-param2-
public void updateRef(int param1,
Ref param2)
throws SQLExceptionThis operation is not supported
- Parameters:
param1-param2-
public void updateRow()
throws SQLExceptionUpdates the underlying database with the new contents of the current row of thisResultSetobject. This method cannot be called when the cursor is on the insert row.
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public void updateShort(String columnName,
short x)
throws SQLExceptionUpdates the designated column with ashortvalue. TheupdateXXXmethods are used to update column values in the current row or the insert row. TheupdateXXXmethods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.
- Parameters:
columnName- the name of the columnx- the new column value
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public void updateShort(int columnIndex,
short x)
throws SQLExceptionUpdates the designated column with ashortvalue. TheupdateXXXmethods are used to update column values in the current row or the insert row. TheupdateXXXmethods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.
- Parameters:
columnIndex- the first column is 1, the second is 2, ...x- the new column value
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public void updateString(String columnName,
String x)
throws SQLExceptionUpdates the designated column with aStringvalue. TheupdateXXXmethods are used to update column values in the current row or the insert row. TheupdateXXXmethods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.
- Parameters:
columnName- the name of the columnx- the new column value
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public void updateString(int columnIndex,
String x)
throws SQLExceptionUpdates the designated column with aStringvalue. TheupdateXXXmethods are used to update column values in the current row or the insert row. TheupdateXXXmethods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.
- Parameters:
columnIndex- the first column is 1, the second is 2, ...x- the new column value
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public void updateTime(String columnName,
Time x)
throws SQLExceptionUpdates the designated column with ajava.sql.Timevalue. TheupdateXXXmethods are used to update column values in the current row or the insert row. TheupdateXXXmethods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.
- Parameters:
columnName- the name of the columnx- the new column value
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public void updateTime(int columnIndex,
Time x)
throws SQLExceptionUpdates the designated column with ajava.sql.Timevalue. TheupdateXXXmethods are used to update column values in the current row or the insert row. TheupdateXXXmethods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.
- Parameters:
columnIndex- the first column is 1, the second is 2, ...x- the new column value
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public void updateTimestamp(String columnName,
Timestamp x)
throws SQLExceptionUpdates the designated column with ajava.sql.Timestampvalue. TheupdateXXXmethods are used to update column values in the current row or the insert row. TheupdateXXXmethods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.
- Parameters:
columnName- the name of the columnx- the new column value
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public void updateTimestamp(int columnIndex,
Timestamp x)
throws SQLExceptionUpdates the designated column with ajava.sql.Timestampvalue. TheupdateXXXmethods are used to update column values in the current row or the insert row. TheupdateXXXmethods do not update the underlying database; instead theupdateRoworinsertRowmethods are called to update the database.
- Parameters:
columnIndex- the first column is 1, the second is 2, ...x- the new column value
- Since:
- 1.2
- See Also:
What Is in the JDBC 2.0 API
public boolean wasNull()
throws SQLExceptionReports whether the last column read had a value of SQLNULL. Note that you must first call one of thegetXXXmethods on a column to try to read its value and then call the methodwasNullto see if the value read was SQLNULL.
- Returns:
trueif the last column value read was SQLNULLandfalseotherwise