|
Mimer JDBC Engine 2.12 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--com.mimer.jdbc.ResultSet
Represents a result set, either forward only or scrollable.
The below table shows which Mimer SQL server data types are accessible from the
specified JDBC getter methods. Those data types that may be retrieved using a specific getter
method may also be set using the corresponding setter method with a PreparedStatement
object.
| OT | SI | IN | N(n) | BI | RE | FL | FL(n) | DP | DC | NU | BI | CH | CV | BI | BV | NCH | NCV | DT | TI | TS | IV | IV2 | BL | CL | NCL | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| getByte | X | x | x | x | x | x | x | x | x | x | x | x | x | x | - | - | x | x | - | - | - | - | - | - | - | - |
| getShort | x | X | x | x | x | x | x | x | x | x | x | x | x | x | - | - | x | x | - | - | - | - | - | - | - | - |
| getInt | x | x | X | x | x | x | x | x | x | x | x | x | x | x | - | - | x | x | - | - | - | - | - | - | - | - |
| getLong | x | x | x | x | X | x | x | x | x | x | x | x | x | x | - | - | x | x | - | - | - | - | - | - | - | - |
| getFloat | x | x | x | x | x | X | x | x | x | x | x | x | x | x | - | - | x | x | - | - | - | - | - | - | - | - |
| getDouble | x | x | x | x | x | x | X | X | X | x | x | x | x | x | - | - | x | x | - | - | - | - | - | - | - | - |
| getBigDecimal | x | x | x | x | x | x | x | x | x | X | X | x | x | x | - | - | x | x | - | - | - | - | - | - | - | - |
| getBoolean | x | x | x | x | x | x | x | x | x | x | x | X | x | x | - | - | x | x | - | - | - | - | - | - | - | - |
| getString | x | x | x | x | x | x | x | x | x | x | x | x | X | X | - | - | x | x | x | x | x | x | x | - | - | - |
| getBytes | - | - | - | - | - | - | - | - | - | - | - | - | - | - | X | X | - | - | - | - | - | - | - | - | - | - |
| getDate | - | - | - | - | - | - | - | - | - | - | - | - | x | x | - | - | x | x | X | x | x | - | - | - | - | - |
| getTime | - | - | - | - | - | - | - | - | - | - | - | - | x | x | - | - | x | x | x | X | x | - | - | - | - | - |
| getTimestamp | - | - | - | - | - | - | - | - | - | - | - | - | x | x | - | - | x | x | x | x | X | - | - | - | - | - |
| getAsciiStream | - | - | - | - | - | - | - | - | - | - | - | - | x | x | x | x | x | x | - | - | - | - | - | - | x | x |
| getBinaryStream | - | - | - | - | - | - | - | - | - | - | - | - | - | - | x | x | - | - | - | - | - | - | - | x | - | - |
| getCharacterStream | - | - | - | - | - | - | - | - | - | - | - | - | x | x | - | - | x | x | - | - | - | - | - | - | x | x |
| getClob | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | x | x |
| getBlob | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | x | - | - |
| getArray | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - |
| getRef | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - |
| getURL | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - |
| getObject | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x | x |
Abbreviations in table above:
| Field Summary |
| Fields inherited from interface java.sql.ResultSet |
CLOSE_CURSORS_AT_COMMIT, CONCUR_READ_ONLY, CONCUR_UPDATABLE, FETCH_FORWARD, FETCH_REVERSE, FETCH_UNKNOWN, HOLD_CURSORS_OVER_COMMIT, TYPE_FORWARD_ONLY, TYPE_SCROLL_INSENSITIVE, TYPE_SCROLL_SENSITIVE |
| Method Summary | |
boolean |
absolute(int row)
Positions the cursor on a absolute position. |
void |
afterLast()
Positions the cursor after the end of the result set. |
void |
beforeFirst()
Positions the cursor before the beginning of the result set. |
void |
cancelRowUpdates()
Cancels the updates made to the current row in this ResultSet object.
|
void |
clearWarnings()
Clears all warnings reported on the object. |
void |
close()
Closes the statement. |
void |
deleteRow()
Deletes the current row from this ResultSet object
and from the underlying database. |
int |
findColumn(String columnName)
Finds a column index from a column name. |
boolean |
first()
Positions the cursor at the first row of the result set. |
Array |
getArray(int columnIndex)
Get an SQL array. |
Array |
getArray(String columnName)
Get an SQL array. |
InputStream |
getAsciiStream(int columnIndex)
Returns an ascii stream representing the result set column. |
InputStream |
getAsciiStream(String columnName)
Returns an ascii stream representing the result set column. |
BigDecimal |
getBigDecimal(int columnIndex)
Returns a java.math.BigDecimal object without scale. |
BigDecimal |
getBigDecimal(int columnIndex,
int scale)
Returns a java.math.BigDecimal object. |
BigDecimal |
getBigDecimal(String columnName)
Returns a java.math.BigDecimal object. |
BigDecimal |
getBigDecimal(String columnName,
int scale)
Returns a java.math.BigDecimal object. |
InputStream |
getBinaryStream(int columnIndex)
Returns an binary stream representing the result set column. |
InputStream |
getBinaryStream(String columnName)
Returns an binary stream representing the result set column. |
Blob |
getBlob(int columnIndex)
Get a BLOB LOCATOR object. |
Blob |
getBlob(String columnName)
Get a BLOB LOCATOR object. |
boolean |
getBoolean(int columnIndex)
Returns a boolean. |
boolean |
getBoolean(String columnName)
Returns a boolean. |
byte |
getByte(int columnIndex)
Returns a byte. |
byte |
getByte(String columnName)
Returns a byte. |
byte[] |
getBytes(int columnIndex)
Returns an array of bytes. |
byte[] |
getBytes(String columnName)
Returns an array of bytes. |
Reader |
getCharacterStream(int columnIndex)
Get a character stream. |
Reader |
getCharacterStream(String columnName)
Get a character stream. |
Clob |
getClob(int columnIndex)
Get a CLOB LOCATOR object. |
Clob |
getClob(String columnName)
Get a CLOB LOCATOR object. |
int |
getConcurrency()
Returns the concurrency mode for this result set. |
String |
getCursorName()
Returns the name of this cursor. |
Date |
getDate(int columnIndex)
Returns a Date. |
Date |
getDate(int columnIndex,
Calendar cal)
Get a date with timezone compensation. |
Date |
getDate(String columnName)
Return a date. |
Date |
getDate(String columnName,
Calendar cal)
Get a date with timezone compensation. |
double |
getDouble(int columnIndex)
Returns a double. |
double |
getDouble(String columnName)
Returns a double. |
int |
getFetchDirection()
Gets the current fetch direction hint. |
int |
getFetchSize()
Retrieves the current fetch size. |
float |
getFloat(int columnIndex)
Returns a float. |
float |
getFloat(String columnName)
Returns a float. |
int |
getInt(int columnIndex)
Returns an integer. |
int |
getInt(String columnName)
Returns an integer. |
long |
getLong(int columnIndex)
Returns an long. |
long |
getLong(String columnName)
Returns an long. |
ResultSetMetaData |
getMetaData()
Returns a ResultSetMetaData object describing the result set. |
Object |
getObject(int columnIndex)
Returns an object. |
Object |
getObject(int columnIndex,
Map map)
Get object with type map. |
Object |
getObject(String columnName)
Returns an object. |
Object |
getObject(String columnName,
Map map)
Get object with type map. |
Ref |
getRef(int columnIndex)
Get a reference type. |
Ref |
getRef(String columnName)
Get a reference type. |
int |
getRow()
Return the current row number. |
short |
getShort(int columnIndex)
Returns a short. |
short |
getShort(String columnName)
Returns a short. |
Statement |
getStatement()
Get the statement that belongs to this result set. |
String |
getString(int columnIndex)
Returns a string. |
String |
getString(String columnName)
Returns a string. |
Time |
getTime(int columnIndex)
Returns a time. |
Time |
getTime(int columnIndex,
Calendar cal)
Get a time with timezone compensation. |
Time |
getTime(String columnName)
Returns a time. |
Time |
getTime(String columnName,
Calendar cal)
Get a time with timezone compensation. |
Timestamp |
getTimestamp(int columnIndex)
Returns a timestamp. |
Timestamp |
getTimestamp(int columnIndex,
Calendar cal)
Get a timestamp with timezone compensation. |
Timestamp |
getTimestamp(String columnName)
Returns a time. |
Timestamp |
getTimestamp(String columnName,
Calendar cal)
Get a timestamp with timezone compensation. |
int |
getType()
Return the type of the result set. |
InputStream |
getUnicodeStream(int columnIndex)
|
InputStream |
getUnicodeStream(String columnName)
|
SQLWarning |
getWarnings()
Returns the first warning posted to this object. |
void |
insertRow()
Inserts the contents of the insert row into this ResultSet object and into the database.
|
boolean |
isAfterLast()
Returns true if the current row is after the last row of the result set. |
boolean |
isBeforeFirst()
Returns true if the current row is before the first row of the result set. |
boolean |
isFirst()
Returns true if the current row is at the first row of the result set. |
boolean |
isLast()
Returns true if the current row is at the last row of the result set. |
boolean |
last()
Positions the cursor on the last row of the result set. |
void |
moveToCurrentRow()
Moves the cursor to the remembered cursor position, usually the current row. |
void |
moveToInsertRow()
Moves the cursor to the insert row. |
boolean |
next()
Moves on to the next row in the result set. |
boolean |
previous()
Positions the cursor one row backwards in the result set. |
void |
refreshRow()
The refreshRow method provides a way for an
application to
explicitly tell the JDBC driver to refetch a row(s) from the
database.
|
boolean |
relative(int rows)
Positioning relative to the current cursor position. |
boolean |
rowDeleted()
Indicates whether a row has been deleted. |
boolean |
rowInserted()
Indicates whether the current row has had an insertion. |
boolean |
rowUpdated()
Indicates whether the current row has been updated. |
void |
setFetchDirection(int direction)
Sets the current fetch direction hint. |
void |
setFetchSize(int rows)
Sets the current fetch size. |
void |
updateAsciiStream(int columnIndex,
InputStream x,
int length)
Updates the designated column with an ascii stream value. |
void |
updateAsciiStream(String columnName,
InputStream x,
int length)
Updates the designated column with an ascii stream value. |
void |
updateBigDecimal(int columnIndex,
BigDecimal x)
Updates the designated column with a java.math.BigDecimal
value.
|
void |
updateBigDecimal(String columnName,
BigDecimal x)
Updates the designated column with a java.math.BigDecimal
value.
|
void |
updateBinaryStream(int columnIndex,
InputStream x,
int length)
Updates the designated column with a binary stream value. |
void |
updateBinaryStream(String columnName,
InputStream x,
int length)
Updates the designated column with a binary stream value. |
void |
updateBoolean(int columnIndex,
boolean x)
Updates the designated column with a boolean value.
|
void |
updateBoolean(String columnName,
boolean x)
Updates the designated column with a boolean value.
|
void |
updateByte(int columnIndex,
byte x)
Updates the designated column with a byte value.
|
void |
updateByte(String columnName,
byte x)
Updates the designated column with a byte value.
|
void |
updateBytes(int columnIndex,
byte[] x)
Updates the designated column with a byte array value.
|
void |
updateBytes(String columnName,
byte[] x)
Updates the designated column with a byte array value.
|
void |
updateCharacterStream(int columnIndex,
Reader x,
int length)
Updates the designated column with a character stream value. |
void |
updateCharacterStream(String columnName,
Reader x,
int length)
Updates the designated column with a character stream value. |
void |
updateDate(int columnIndex,
Date x)
Updates the designated column with a java.sql.Date value.
|
void |
updateDate(String columnName,
Date x)
Updates the designated column with a java.sql.Date value.
|
void |
updateDouble(int columnIndex,
double x)
Updates the designated column with a double value.
|
void |
updateDouble(String columnName,
double x)
Updates the designated column with a double value.
|
void |
updateFloat(int columnIndex,
float x)
Updates the designated column with a float value.
|
void |
updateFloat(String columnName,
float x)
Updates the designated column with a float value.
|
void |
updateInt(int columnIndex,
int x)
Updates the designated column with an int value.
|
void |
updateInt(String columnName,
int x)
Updates the designated column with an int value.
|
void |
updateLong(int columnIndex,
long x)
Updates the designated column with a long value.
|
void |
updateLong(String columnName,
long x)
Updates the designated column with a long value.
|
void |
updateNull(int columnIndex)
Gives a nullable column a null value. |
void |
updateNull(String columnName)
Gives a nullable column a null value. |
void |
updateObject(int columnIndex,
Object x)
Updates the designated column with an Object value.
|
void |
updateObject(int columnIndex,
Object x,
int scale)
Updates the designated column with an Object value.
|
void |
updateObject(String columnName,
Object x)
Updates the designated column with an Object value.
|
void |
updateObject(String columnName,
Object x,
int scale)
Updates the designated column with an Object value.
|
void |
updateRow()
Updates the underlying database with the new contents of the current row of this ResultSet object.
|
void |
updateShort(int columnIndex,
short x)
Updates the designated column with a short value.
|
void |
updateShort(String columnName,
short x)
Updates the designated column with a short value.
|
void |
updateString(int columnIndex,
String x)
Updates the designated column with a String value.
|
void |
updateString(String columnName,
String x)
Updates the designated column with a String value.
|
void |
updateTime(int columnIndex,
Time x)
Updates the designated column with a java.sql.Time value.
|
void |
updateTime(String columnName,
Time x)
Updates the designated column with a java.sql.Time value.
|
void |
updateTimestamp(int columnIndex,
Timestamp x)
Updates the designated column with a java.sql.Timestamp
value.
|
void |
updateTimestamp(String columnName,
Timestamp x)
Updates the designated column with a java.sql.Timestamp
value.
|
boolean |
wasNull()
Returns true if the last column read was a NULL. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.sql.ResultSet |
getURL, getURL, updateArray, updateArray, updateBlob, updateBlob, updateClob, updateClob, updateRef, updateRef |
| Method Detail |
public boolean absolute(int row)
throws SQLException
Performance consideration: If the application calls ResultSet.absolute
to position itself to a particular row, the entire result set up to that point has
to mbecome materialized on the server. This means that positioning far ahead in the result
set might take some time, but returning to a position once visited is fast. For example:
ResultSet is created.ResultSet is advanced one row at a time until the 10th row.ResultSet.absolute(1000000) is called. At this time, only the beginning of
the result set has been formed. To get to row 1000000 the server has to materialize all
rows up to that point. This can take a while.ResultSet.absolute(100) is called. This row has already been formed, so returning
to it should be nearly instantaneous.ResultSet.absolute(1000000) is called. This row has also already been formed, so
returning to it is also nearly instantaneous.In some situations, the entire result set is formed before the first row can be returned. An example of such a situation is when we have an ORDER BY clause on a non-indexed column. If this is so, we experience the penalty of forming the entire result set before the first row is returned, and then we don't see the effects outlined above.
absolute in interface ResultSetrow - If positive it is an absolute position from the start of the result set.
If negative it is a absolute position coutned from the end of the result set.
SQLException - if an error occurs. SQLSTATE HY109 is thrown if this is a forward-only result set.
HY107 is thrown if the row parameter was 0.
public void afterLast()
throws SQLException
Performance consideration: If the end of result set hasn't been formed before, this operation may take some time since all rows up until the end of the result set has be formed on the server. The only workaround for this is to work with smaller result sets.
afterLast in interface ResultSetSQLException - if an error occurs. SQLSTATE HY109 is thrown if this is a forward-only result set.
public void beforeFirst()
throws SQLException
beforeFirst in interface ResultSetSQLException - if an error occurs. SQLSTATE HY109 is thrown if this is a forward-only result set.
public void cancelRowUpdates()
throws SQLException
ResultSet object.
Mimer SQL currently don't support updatable cursors. Use positioned UPDATE/DELETE:s instead.
cancelRowUpdates in interface ResultSetSQLException - if a database access error
occurs or if this method is called when the cursor is on the insert row
public void clearWarnings()
throws SQLException
clearWarnings in interface ResultSetSQLException - if an error occurs.
public void close()
throws SQLException
close in interface ResultSetSQLException - if an error occurs.
public void deleteRow()
throws SQLException
ResultSet object
and from the underlying database. This method cannot be called when
the cursor is on the insert row.
Mimer SQL currently don't support updatable cursors. Use positioned UPDATE/DELETE:s instead.
deleteRow in interface ResultSetSQLException - if a database access error occurs
or if this method is called when the cursor is on the insert row
public int findColumn(String columnName)
throws SQLException
findColumn in interface ResultSetcolumnName - The column name.
SQLException - if an error occurs. SQLSTATE HY010 is thrown if the result set is not open. 07009 is thrown if the column name doesn't exist.
public boolean first()
throws SQLException
first in interface ResultSetSQLException - if an error occurs. SQLSTATE HY109 is thrown if this is a forward-only result set.
public Array getArray(int columnIndex)
throws SQLException
Mimer SQL (as of 9.2) does not support SQL arrays. This method will always throw an error.
getArray in interface ResultSetcolumnIndex - The column index.
SQLException - if an error occurs. SQLSTATE HY010 is thrown if the cursor is not open. 24000 is thrown if the cursor is not located on a valid row. 07009 is thrown if the columnIndex is not valid. 2200G is thrown if the column type wasn't castable to a string, see ResultSet for an overview of which column types are castable to which Java types.
public Array getArray(String columnName)
throws SQLException
Mimer SQL (as of 9.2) does not support SQL arrays. This method will always throw an error.
getArray in interface ResultSetcolumnName - The column name.
SQLException - if an error occurs. SQLSTATE HY010 is thrown if the cursor is not open. 24000 is thrown if the cursor is not located on a valid row. 07009 is thrown if the columnName is not valid. 2200G is thrown if the column type wasn't castable to a string, see ResultSet for an overview of which column types are castable to which Java types.
public InputStream getAsciiStream(int columnIndex)
throws SQLException
Performance consideration: When calling this method on a CLOB or NCLOB server column, this call
makes a separate server call to retrieve the object. This is different from all other data types, since they
are fully transferred to the client no later when the cursor is moved to the current column. If you only wish
to keep a reference to the CLOB or NCLOB for later use, please consider using the ResultSet.getClob
since this only returns a LOCATOR reference to the object, and no server calls are being made.
getAsciiStream in interface ResultSetcolumnIndex - The column number.
SQLException - if an error occurs. SQLSTATE HY010 is thrown if the cursor is not open. 24000 is thrown if the cursor is not located on a valid row. 07009 is thrown if the columnIndex is invalid. 08S01 is thrown on a network receive error. 2200G is thrown if the column type wasn't castable to a string, see {link #ResultSetTypeCasting} for an overview of which column types are castable to which Java types.getClob(int)
public InputStream getAsciiStream(String columnName)
throws SQLException
getAsciiStream in interface ResultSetcolumnName - The column name.
SQLException - if an error occurs. SQLSTATE HY010 is thrown if the cursor is not open. 24000 is thrown if the cursor is not located on a valid row. 07009 is thrown if the columnName does not exist. 08S01 is thrown on a network receive error. 2200G is thrown if the column type wasn't castable to a string, see ResultSet for an overview of which column types are castable to which Java types.
public BigDecimal getBigDecimal(int columnIndex)
throws SQLException
getBigDecimal in interface ResultSetcolumnIndex - The column number.
SQLException - if an error occurs. SQLSTATE HY010 is thrown if the cursor is not open. 24000 is thrown if the cursor is not located on a valid row. 07009 is thrown if the columnIndex is invalid. 22018 is thrown if a character value could not be casted to a numeric value. 2200G is thrown if the column type wasn't castable to a string, see ResultSet for an overview of which column types are castable to which Java types.
public BigDecimal getBigDecimal(int columnIndex,
int scale)
throws SQLException
getBigDecimal in interface ResultSetcolumnIndex - The column number.scale - The scale.
SQLException - if an error occurs. SQLSTATE HY010 is thrown if the cursor is not open. 24000 is thrown if the cursor is not located on a valid row. 07009 is thrown if the columnIndex is invalid. 22018 is thrown if a character value could not be casted to a numeric value. 2200G is thrown if the column type wasn't castable to a string, see ResultSet for an overview of which column types are castable to which Java types.
public BigDecimal getBigDecimal(String columnName)
throws SQLException
getBigDecimal in interface ResultSetcolumnName - The column name.
SQLException - if an error occurs. SQLSTATE HY010 is thrown if the cursor is not open. 24000 is thrown if the cursor is not located on a valid row. 07009 is thrown if the columnName does not exist. 22018 is thrown if a character value could not be casted to a numeric value. 2200G is thrown if the column type wasn't castable to a string, see ResultSet for an overview of which column types are castable to which Java types.
public BigDecimal getBigDecimal(String columnName,
int scale)
throws SQLException
getBigDecimal in interface ResultSetcolumnName - The column name.scale - The scale.
SQLException - if an error occurs. SQLSTATE HY010 is thrown if the cursor is not open. 24000 is thrown if the cursor is not located on a valid row. 07009 is thrown if the columnName does not exist. 22018 is thrown if a character value could not be casted to a numeric value. 2200G is thrown if the column type wasn't castable to a string, see ResultSet for an overview of which column types are castable to which Java types.
public InputStream getBinaryStream(int columnIndex)
throws SQLException
Performance consideration: When calling this method on a BLOB server column, this call
makes a separate server call to retrieve the BLOB. This is different from all other data types, since they
are fully transferred to the client no later when the cursor is moved to the current column. If you only wish
to keep a reference to the BLOB for later use, please consider using the ResultSet.getBlob
since this only returns a LOCATOR reference to the object, and no server calls are being made.
getBinaryStream in interface ResultSetcolumnIndex - The column number.
SQLException - if an error occurs. SQLSTATE HY010 is thrown if the cursor is not open. 24000 is thrown if the cursor is not located on a valid row. 07009 is thrown if the columnIndex is invalid. 08S01 is thrown on a network receive error. 2200G is thrown if the column type wasn't castable to a string, see ResultSet for an overview of which column types are castable to which Java types.getBlob(int)
public InputStream getBinaryStream(String columnName)
throws SQLException
getBinaryStream in interface ResultSetcolumnName - The column name.
SQLException - if an error occurs. SQLSTATE HY010 is thrown if the cursor is not open. 24000 is thrown if the cursor is not located on a valid row. 07009 is thrown if the columnName does not exist. 08S01 is thrown on a network receive error. 2200G is thrown if the column type wasn't castable to a string, see ResultSet for an overview of which column types are castable to which Java types.
public Blob getBlob(int columnIndex)
throws SQLException
getBlob in interface ResultSetcolumnIndex - The column number.
SQLException - if an error occurs. SQLSTATE HY010 is thrown if the cursor is not open. 24000 is thrown if the cursor is not located on a valid row. 07009 is thrown if the columnIndex is invalid.
public Blob getBlob(String columnName)
throws SQLException
getBlob in interface ResultSetcolumnName - The column name..
SQLException - if an error occurs. SQLSTATE HY010 is thrown if the cursor is not open. 24000 is thrown if the cursor is not located on a valid row. 07009 is thrown if the columnName does not exist.
public boolean getBoolean(int columnIndex)
throws SQLException
If the column is a CHARACTER, CHARACTER VARYING, NATIONAL CHARACTER or
NATIONAL CHARACTER VARYING, this returns true if the character has the values "true" or "1".
getBoolean in interface ResultSetcolumnIndex - The column number.
SQLException - if an error occurs. SQLSTATE HY010 is thrown if the cursor is not open. 24000 is thrown if the cursor is not located on a valid row. 07009 is thrown if the columnIndex is invalid. 2200G is thrown if the column type wasn't castable to a string, see ResultSet for an overview of which column types are castable to which Java types.
public boolean getBoolean(String columnName)
throws SQLException
If the column is a CHARACTER, CHARACTER VARYING, NATIONAL CHARACTER or
NATIONAL CHARACTER VARYING, this returns true if the character has the values "true" or "1".
getBoolean in interface ResultSetcolumnName - The column name.
SQLException - if an error occurs. SQLSTATE HY010 is thrown if the cursor is not open. 24000 is thrown if the cursor is not located on a valid row. 07009 is thrown if the columnName does not exist. 2200G is thrown if the column type wasn't castable to a string, see ResultSet for an overview of which column types are castable to which Java types.
public byte getByte(int columnIndex)
throws SQLException
getByte in interface ResultSetcolumnIndex - The column number.
SQLException - if an error occurs. SQLSTATE HY010 is thrown if the cursor is not open. 24000 is thrown if the cursor is not located on a valid row. 07009 is thrown if the columnIndex is invalid. 22003 is thrown if the numeric value could not be fitted into a byte. 22018 is thrown if a character value could not be casted to a numeric value. 2200G is thrown if the column type wasn't castable to a string, see ResultSet for an overview of which column types are castable to which Java types.
public byte getByte(String columnName)
throws SQLException
getByte in interface ResultSetcolumnName - The column name.
SQLException - if an error occurs. SQLSTATE HY010 is thrown if the cursor is not open. 24000 is thrown if the cursor is not located on a valid row. 07009 is thrown if the columnName does not exist. 22003 is thrown if the numeric value could not be fitted into a byte. 22018 is thrown if a character value could not be casted to a numeric value. 2200G is thrown if the column type wasn't castable to a string, see ResultSet for an overview of which column types are castable to which Java types.
public byte[] getBytes(int columnIndex)
throws SQLException
getBytes in interface ResultSetcolumnIndex - The column number.
SQLException - if an error occurs. SQLSTATE HY010 is thrown if the cursor is not open. 24000 is thrown if the cursor is not located on a valid row. 07009 is thrown if the columnIndex is invalid. 08S01 is thrown on a network receive error. 2200G is thrown if the column type wasn't castable to a string, see ResultSet for an overview of which column types are castable to which Java types.
public byte[] getBytes(String columnName)
throws SQLException
getBytes in interface ResultSetcolumnName - The column name.
SQLException - if an error occurs. SQLSTATE HY010 is thrown if the cursor is not open. 24000 is thrown if the cursor is not located on a valid row. 07009 is thrown if the columnName does not exist. 08S01 is thrown on a network receive error. 2200G is thrown if the column type wasn't castable to a string, see ResultSet for an overview of which column types are castable to which Java types.
public Reader getCharacterStream(int columnIndex)
throws SQLException
getCharacterStream in interface ResultSetcolumnIndex - The column number.
SQLException - if an error occurs. SQLSTATE HY010 is thrown if the cursor is not open. 24000 is thrown if the cursor is not located on a valid row. 07009 is thrown if the columnIndex is invalid. 08S01 is thrown on a network receive error.
public Reader getCharacterStream(String columnName)
throws SQLException
getCharacterStream in interface ResultSetcolumnName - The column name..
SQLException - if an error occurs. SQLSTATE HY010 is thrown if the cursor is not open. 24000 is thrown if the cursor is not located on a valid row. 07009 is thrown if the columnName does not exist. 08S01 is thrown on a network receive error.
public Clob getClob(int columnIndex)
throws SQLException
getClob in interface ResultSetcolumnIndex - The column number.
SQLException - if an error occurs. SQLSTATE HY010 is thrown if the cursor is not open. 24000 is thrown if the cursor is not located on a valid row. 07009 is thrown if the columnIndex is invalid.
public Clob getClob(String columnName)
throws SQLException
getClob in interface ResultSetcolumnName - The column name..
SQLException - if an error occurs. SQLSTATE HY010 is thrown if the cursor is not open. 24000 is thrown if the cursor is not located on a valid row. 07009 is thrown if the columnName does not exist.
public int getConcurrency()
throws SQLException
getConcurrency in interface ResultSetSQLException - if an error occurs.
public String getCursorName()
throws SQLException
The name of the cursor can be used in conjunction with the UPDATE WHERE CURRENT OF or DELETE WHERE CURRENT OF
SQL statements. See Statement.setCursorName for more information on this feature.
getCursorName in interface ResultSetSQLException - if an error occurs.Statement.setCursorName(java.lang.String)
public Date getDate(int columnIndex)
throws SQLException
When the column is a CHARACTER, CHARACTER VARYING, NATIONAL CHARACTER or NATIONAL CHARACTER VARYING only the column values of the following grammar are castable to the result object.
<time castable literal> ::= <unquoted timestamp string> | <unquoted date string>
<unquoted timestamp string> ::= <unquoted date string> <space>unquoted time string>
<unquoted date string> ::= <date value>
<unquoted time string> ::= <tíme value>
<date value> ::= <years value> <minus sign> <months value> <minus sign> <days value>
<time value> ::= <hours value> <colon> <minutes value> <colon> <seconds value>
<years value> ::= <digit> <digit> <digit> <digit>
<months value> ::= <digit> <digit>
<days value> ::= <digit> <digit>
<hours value> ::= <digit> <digit>
<minutes value> ::= <digit> <digit>
<seconds value> ::= <digit> <digit> [ <period> [ <second fraction> ]]
<second fraction> ::= <digit> [ <digit> [ <digit> [ <digit> [ <digit> [ <digit> [ <digit> [ <digit> [ <digit> ]]]]]]]]
When the string represents an <unquoted timestamp string> the time part is simply dropped, and only the date part is returned.
Examples of strings castable to a date.
1914-06-28
2003-12-31 14:49:23.234
Note that Mimer SQL servers up until 9.2 does not support time zones. If time zone handling is required, please consider using the ResultSet.getDate(int,Calendar) method instead.
getDate in interface ResultSetcolumnIndex - The column number.
SQLException - if an error occurs. SQLSTATE HY010 is thrown if the cursor is not open. 24000 is thrown if the cursor is not located on a valid row. 07009 is thrown if the columnIndex is invalid. 22018 if the column type was a character which could not be casted to a date. 2200G is thrown if the column type wasn't castable to a date, see ResultSet for an overview of which column types are castable to which Java types.getDate(int,Calendar)
public Date getDate(int columnIndex,
Calendar cal)
throws SQLException
getDate in interface ResultSetcolumnIndex - The column number.cal - Calendar object defining time zone.
SQLException - if an error occurs. SQLSTATE HY010 is thrown if the cursor is not open. 24000 is thrown if the cursor is not located on a valid row. 07009 is thrown if the columnIndex is invalid. 22018 if the column type was a character which could not be casted to a date. 2200G is thrown if the column type wasn't castable to a date, see ResultSet for an overview of which column types are castable to which Java types.getDate(int)
public Date getDate(String columnName)
throws SQLException
getDate in interface ResultSetcolumnName - The column name.
SQLException - if an error occurs. SQLSTATE HY010 is thrown if the cursor is not open. 24000 is thrown if the cursor is not located on a valid row. 07009 is thrown if the columnName does not exist. 22018 if the column type was a character which could not be casted to a date. 2200G is thrown if the column type wasn't castable to a string, see ResultSet for an overview of which column types are castable to which Java types.getDate(int)
public Date getDate(String columnName,
Calendar cal)
throws SQLException
getDate in interface ResultSetcolumnName - The column name.cal - Calendar object defining time zone.
SQLException - if an error occurs. SQLSTATE HY010 is thrown if the cursor is not open. 24000 is thrown if the cursor is not located on a valid row. 07009 is thrown if the columnName does not exist. 22018 if the column type was a character which could not be casted to a date. 2200G is thrown if the column type wasn't castable to a string, see ResultSet for an overview of which column types are castable to which Java types.getDate(int)
public double getDouble(int columnIndex)
throws SQLException
getDouble in interface ResultSetcolumnIndex - The column number.
SQLException - if an error occurs. SQLSTATE HY010 is thrown if the cursor is not open. 24000 is thrown if the cursor is not located on a valid row. 07009 is thrown if the columnIndex is invalid. 22003 is thrown if the numeric value could not be fitted into a double. 22018 is thrown if a character value could not be casted to a numeric value. 2200G is thrown if the column type wasn't castable to a string, see ResultSet for an overview of which column types are castable to which Java types.
public double getDouble(String columnName)
throws SQLException
getDouble in interface ResultSetcolumnName - The column name.
SQLException - if an error occurs. SQLSTATE HY010 is thrown if the cursor is not open. 24000 is thrown if the cursor is not located on a valid row. 07009 is thrown if the columnIndex is invalid. 22003 is thrown if the numeric value could not be fitted into a double. 22018 is thrown if a character value could not be casted to a numeric value. 2200G is thrown if the column type wasn't castable to a string, see ResultSet for an overview of which column types are castable to which Java types.
public int getFetchDirection()
throws SQLException
getFetchDirection in interface ResultSetSQLException - if an error occurs.setFetchDirection(int)
public int getFetchSize()
throws SQLException
getFetchSize in interface ResultSetSQLException - if an error occurs.setFetchSize(int)
public float getFloat(int columnIndex)
throws SQLException
getFloat in interface ResultSetcolumnIndex - The column number.
SQLException - if an error occurs. SQLSTATE HY010 is thrown if the cursor is not open. 24000 is thrown if the cursor is not located on a valid row. 07009 is thrown if the columnIndex is invalid. 22003 is thrown if the numeric value could not be fitted into a float. 22018 is thrown if a character value could not be casted to a numeric value. 2200G is thrown if the column type wasn't castable to a string, see ResultSet for an overview of which column types are castable to which Java types.
public float getFloat(String columnName)
throws SQLException
getFloat in interface ResultSetcolumnName - The column name.
SQLException - if an error occurs. SQLSTATE HY010 is thrown if the cursor is not open. 24000 is thrown if the cursor is not located on a valid row. 07009 is thrown if the columnIndex is invalid. 22003 is thrown if the numeric value could not be fitted into a float. 22018 is thrown if a character value could not be casted to a numeric value. 2200G is thrown if the column type wasn't castable to a string, see ResultSet for an overview of which column types are castable to which Java types.
public int getInt(int columnIndex)
throws SQLException
getInt in interface ResultSetcolumnIndex - The column number.
SQLException - if an error occurs. SQLSTATE HY010 is thrown if the cursor is not open. 24000 is thrown if the cursor is not located on a valid row. 07009 is thrown if the columnIndex is invalid. 22003 is thrown if the numeric value could not be fitted into an int. 22018 is thrown if a character value could not be casted to a numeric value. 2200G is thrown if the column type wasn't castable to a string, see ResultSet for an overview of which column types are castable to which Java types.
public int getInt(String columnName)
throws SQLException
getInt in interface ResultSetcolumnName - The column name.
SQLException - if an error occurs. SQLSTATE HY010 is thrown if the cursor is not open. 24000 is thrown if the cursor is not located on a valid row. 07009 is thrown if the columnIndex is invalid. 22003 is thrown if the numeric value could not be fitted into an int. 22018 is thrown if a character value could not be casted to a numeric value. 2200G is thrown if the column type wasn't castable to a string, see ResultSet for an overview of which column types are castable to which Java types.
public long getLong(int columnIndex)
throws SQLException
getLong in interface ResultSetcolumnIndex - The column number.
SQLException - if an error occurs. SQLSTATE HY010 is thrown if the cursor is not open. 24000 is thrown if the cursor is not located on a valid row. 07009 is thrown if the columnIndex is invalid. 22003 is thrown if the numeric value could not be fitted into an long. 22018 is thrown if a character value could not be casted to a numeric value. 2200G is thrown if the column type wasn't castable to a string, see ResultSet for an overview of which column types are castable to which Java types.
public long getLong(String columnName)
throws SQLException
getLong in interface ResultSetcolumnName - The column name.
SQLException - if an error occurs. SQLSTATE HY010 is thrown if the cursor is not open. 24000 is thrown if the cursor is not located on a valid row. 07009 is thrown if the columnIndex is invalid. 22003 is thrown if the numeric value could not be fitted into an long. 22018 is thrown if a character value could not be casted to a numeric value. 2200G is thrown if the column type wasn't castable to a string, see ResultSet for an overview of which column types are castable to which Java types.
public ResultSetMetaData getMetaData()
throws SQLException
A ResultSetMetaData object is always internally created at the same time the ResultSet object is created.
The driver must have this information somewhere to return data from the result set. This method
simply returns this object.
getMetaData in interface ResultSetSQLException - if an error occurs. SQLSTATE HY010 is thrown if the cursor is not open.
public Object getObject(int columnIndex)
throws SQLException
getObject in interface ResultSetcolumnIndex - The column number.
SQLException - if an error occurs. SQLSTATE HY010 is thrown if the cursor is not open. 24000 is thrown if the cursor is not located on a valid row. 07009 is thrown if the columnIndex is not valid.
public Object getObject(int columnIndex,
Map map)
throws SQLException
Mimer SQL (as of 9.2) does not support either User Defined Data types, structured data types or distinct data types so Mimer JDBC
currently only accepts and uses the default type mapping. The map argument is ignored.
getObject in interface ResultSetcolumnIndex - The column number.map - The type map.
SQLException - if an error occurs. SQLSTATE HY010 is thrown if the cursor is not open. 24000 is thrown if the cursor is not located on a valid row. 07009 is thrown if the columnIndex is invalid.
public Object getObject(String columnName)
throws SQLException
getObject in interface ResultSetcolumnName - The column name.
SQLException - if an error occurs. SQLSTATE HY010 is thrown if the cursor is not open. 24000 is thrown if the cursor is not located on a valid row. 07009 is thrown if the columnName does not exist.
public Object getObject(String columnName,
Map map)
throws SQLException
Mimer SQL (as of 9.2) does not support either User Defined Data types, structured data types or distinct data types so Mimer JDBC
currently only accepts and uses the default type mapping. The map argument is ignored.
getObject in interface ResultSetcolumnName - The column name.map - The type map.
SQLException - if an error occurs. SQLSTATE HY010 is thrown if the cursor is not open. 24000 is thrown if the cursor is not located on a valid row. 07009 is thrown if the columnName does not exist.
public Ref getRef(int columnIndex)
throws SQLException
Mimer SQL (as of 9.2) does not support references. This method will always throw an error.
getRef in interface ResultSetcolumnIndex - The column index.
SQLException - if an error occurs. SQLSTATE HY010 is thrown if the cursor is not open. 24000 is thrown if the cursor is not located on a valid row. 07009 is thrown if the columnIndex is not valid. 2200G is thrown if the column type wasn't castable to a string, see ResultSet for an overview of which column types are castable to which Java types.
public Ref getRef(String columnName)
throws SQLException
Mimer SQL (as of 9.2) does not support references. This method will always throw an error.
getRef in interface ResultSetcolumnName - The column name.
SQLException - if an error occurs. SQLSTATE HY010 is thrown if the cursor is not open. 24000 is thrown if the cursor is not located on a valid row. 07009 is thrown if the columnName is not valid. 2200G is thrown if the column type wasn't castable to a string, see ResultSet for an overview of which column types are castable to which Java types.
public int getRow()
throws SQLException
getRow in interface ResultSetSQLException - if an error occurs.
public short getShort(int columnIndex)
throws SQLException
getShort in interface ResultSetcolumnIndex - The column number.
SQLException - if an error occurs. SQLSTATE HY010 is thrown if the cursor is not open. 24000 is thrown if the cursor is not located on a valid row. 07009 is thrown if the columnIndex is invalid. 22003 is thrown if the numeric value could not be fitted into an short. 22018 is thrown if a character value could not be casted to a numeric value. 2200G is thrown if the column type wasn't castable to a short, see ResultSet for an overview of which column types are castable to which Java types.
public short getShort(String columnName)
throws SQLException
getShort in interface ResultSetcolumnName - The column name.
SQLException - if an error occurs. SQLSTATE HY010 is thrown if the cursor is not open. 24000 is thrown if the cursor is not located on a valid row. 07009 is thrown if the columnName is invalid. 22003 is thrown if the numeric value could not be fitted into an short. 22018 is thrown if a character value could not be casted to a numeric value. 2200G is thrown if the column type wasn't castable to a short, see ResultSet for an overview of which column types are castable to which Java types.
public Statement getStatement()
throws SQLException
getStatement in interface ResultSetSQLException - if an error occurs.
public String getString(int columnIndex)
throws SQLException
getString in interface ResultSetcolumnIndex - The column number.
SQLException - if an error occurs. SQLSTATE HY010 is thrown if the cursor is not open. 24000 is thrown if the cursor is not located on a valid row. 07009 is thrown if the columnIndex is invalid.
public String getString(String columnName)
throws SQLException
getString in interface ResultSetcolumnName - The column name..
SQLException - if an error occurs. SQLSTATE HY010 is thrown if the cursor is not open. 24000 is thrown if the cursor is not located on a valid row. 07009 is thrown if the columnName does not exist.
public Time getTime(int columnIndex)
throws SQLException
When the column is a CHARACTER, CHARACTER VARYING, NATIONAL CHARACTER or NATIONAL CHARACTER VARYING only the column values of the following grammar are castable to the result object.
<time castable literal> ::= <unquoted timestamp string> | <unquoted time string>
<unquoted timestamp string> ::= <unquoted date string> <space>unquoted time string>
<unquoted date string> ::= <date value>
<unquoted time string> ::= <tíme value>
<date value> ::= <years value> <minus sign> <months value> <minus sign> <days value>
<time value> ::= <hours value> <colon> <minutes value> <colon> <seconds value>
<years value> ::= <digit> <digit> <digit> <digit>
<months value> ::= <digit> <digit>
<days value> ::= <digit> <digit>
<hours value> ::= <digit> <digit>
<minutes value> ::= <digit> <digit>
<seconds value> ::= <digit> <digit> [ <period> [ <second fraction> ]]
<second fraction> ::= <digit> [ <digit> [ <digit> [ <digit> [ <digit> [ <digit> [ <digit> [ <digit> [ <digit> ]]]]]]]]
When the string represents an <unquoted timestamp string> the date part is simply dropped, and only the time part is returned.
Examples of strings castable to a time.
23:59:59
2003-12-31 14:49:23.234
18:00:00.0012
A warning (SQLWarning SQLSTATE 01S07) is registered if the time or timestamp contains a fraction that was truncated because the java time object doesn't hold second fractions.
getTime in interface ResultSetcolumnIndex - The column number.
SQLException - if an error occurs. SQLSTATE HY010 is thrown if the cursor is not open. 24000 is thrown if the cursor is not located on a valid row. 07009 is thrown if the columnIndex is invalid. 22018 is thrown if a character value could not be casted to a time value. 2200G is thrown if the column type wasn't castable to a time, see ResultSet for an overview of which column types are castable to which Java types.
public Time getTime(int columnIndex,
Calendar cal)
throws SQLException
getTime in interface ResultSetcolumnIndex - The column number.
SQLException - if an error occurs. SQLSTATE HY010 is thrown if the cursor is not open. 24000 is thrown if the cursor is not located on a valid row. 07009 is thrown if the columnIndex is invalid. 22018 if the column type was a character which could not be casted to a time. 2200G is thrown if the column type wasn't castable to a time, see ResultSet for an overview of which column types are castable to which Java types.getTime(int)
public Time getTime(String columnName)
throws SQLException
getTime in interface ResultSetcolumnName - The column name..
SQLException - if an error occurs. SQLSTATE HY010 is thrown if the cursor is not open. 24000 is thrown if the cursor is not located on a valid row. 07009 is thrown if the columnName is invalid. 22018 is thrown if a character value could not be casted to a time value. 2200G is thrown if the column type wasn't castable to a time, see ResultSet for an overview of which column types are castable to which Java types.getTime(int)
public Time getTime(String columnName,
Calendar cal)
throws SQLException
getTime in interface ResultSetcolumnName - The column name.
SQLException - if an error occurs. SQLSTATE HY010 is thrown if the cursor is not open. 24000 is thrown if the cursor is not located on a valid row. 07009 is thrown if the columnName does not exist. 22018 if the column type was a character which could not be casted to a time. 2200G is thrown if the column type wasn't castable to a string, see ResultSet for an overview of which column types are castable to which Java types.getTime(int)
public Timestamp getTimestamp(int columnIndex)
throws SQLException
When the column is a CHARACTER, CHARACTER VARYING, NATIONAL CHARACTER or NATIONAL CHARACTER VARYING only the column values of the following grammar are castable to the result object.
<time castable literal> ::= <unquoted timestamp string> | <unquoted date string> | <unquoted time string>
<unquoted timestamp string> ::= <unquoted date string> <space>unquoted time string>
<unquoted date string> ::= <date value>
<unquoted time string> ::= <tíme value>
<date value> ::= <years value> <minus sign> <months value> <minus sign> <days value>
<time value> ::= <hours value> <colon> <minutes value> <colon> <seconds value>
<years value> ::= <digit> <digit> <digit> <digit>
<months value> ::= <digit> <digit>
<days value> ::= <digit> <digit>
<hours value> ::= <digit> <digit>
<minutes value> ::= <digit> <digit>
<seconds value> ::= <digit> <digit> [ <period> [ <second fraction> ]]
<second fraction> ::= <digit> [ <digit> [ <digit> [ <digit> [ <digit> [ <digit> [ <digit> [ <digit> [ <digit> ]]]]]]]]
When the string represents an <unquoted timestamp string> the date part is simply dropped, and only the time part is returned.
If the string represents a time value, the returned timestamp will contain that time at the current date. Examples of strings castable to a time.
1914-06-28
23:59:59
2003-12-31 14:49:23.234
18:00:00.0012
getTimestamp in interface ResultSetcolumnIndex - The column number.
SQLException - if an error occurs. SQLSTATE HY010 is thrown if the cursor is not open. 24000 is thrown if the cursor is not located on a valid row. 07009 is thrown if the columnIndex is invalid. 22018 is thrown if a character value could not be casted to a timestamp value. 2200G is thrown if the column type wasn't castable to a timestamp, see ResultSet for an overview of which column types are castable to which Java types.
public Timestamp getTimestamp(int columnIndex,
Calendar cal)
throws SQLException
getTimestamp in interface ResultSetcolumnIndex - The column number.
SQLException - if an error occurs. SQLSTATE HY010 is thrown if the cursor is not open. 24000 is thrown if the cursor is not located on a valid row. 07009 is thrown if the columnIndex is invalid. 22018 if the column type was a character which could not be casted to a timestamp. 2200G is thrown if the column type wasn't castable to a timestamp, see ResultSet for an overview of which column types are castable to which Java types.getTimestamp(int)
public Timestamp getTimestamp(String columnName)
throws SQLException
getTimestamp in interface ResultSetcolumnName - The column name..
SQLException - if an error occurs. SQLSTATE HY010 is thrown if the cursor is not open. 24000 is thrown if the cursor is not located on a valid row. 07009 is thrown if the columnName does not exist.getTimestamp(int)
public Timestamp getTimestamp(String columnName,
Calendar cal)
throws SQLException
getTimestamp in interface ResultSetcolumnName - The column name.
SQLException - if an error occurs. SQLSTATE HY010 is thrown if the cursor is not open. 24000 is thrown if the cursor is not located on a valid row. 07009 is thrown if the columnName does not exist. 22018 if the column type was a character which could not be casted to a timestamp. 2200G is thrown if the column type wasn't castable to a string, see ResultSet for an overview of which column types are castable to which Java types.getTimestamp(int)
public int getType()
throws SQLException
getType in interface ResultSetSQLException - if an error occurs.
public InputStream getUnicodeStream(int columnIndex)
throws SQLException
getUnicodeStream in interface ResultSetcolumnIndex - The column number.
SQLException - if an error occurs. SQLSTATE HY010 is thrown if the cursor is not open. 24000 is thrown if the cursor is not located on a valid row. 07009 is thrown if the columnIndex is invalid. 08S01 is thrown on a network receive error.
public InputStream getUnicodeStream(String columnName)
throws SQLException
getUnicodeStream in interface ResultSetcolumnName - The column name..
SQLException - if an error occurs. SQLSTATE HY010 is thrown if the cursor is not open. 24000 is thrown if the cursor is not located on a valid row. 07009 is thrown if the columnName does not exist. 08S01 is thrown on a network receive error.
public SQLWarning getWarnings()
throws SQLException
getWarnings in interface ResultSetSQLException - if an error occurred.clearWarnings()
public void insertRow()
throws SQLException
ResultSet object and into the database.
Mimer SQL currently don't support updatable cursors. Use positioned UPDATE/DELETE:s instead.
insertRow in interface ResultSetSQLException - if a database access error occurs
public boolean isAfterLast()
throws SQLException
isAfterLast in interface ResultSetSQLException - if an error occurs.
public boolean isBeforeFirst()
throws SQLException
isBeforeFirst in interface ResultSetSQLException - if an error occurs.
public boolean isFirst()
throws SQLException
isFirst in interface ResultSetSQLException - if an error occurs.
public boolean isLast()
throws SQLException
isLast in interface ResultSetSQLException - if an error occurs.
public boolean last()
throws SQLException
Performance consideration: If the end of result set hasn't been formed before, this operation may take some time since all rows up until the end of the result set has be formed on the server. The only workaround for this is to work with smaller result sets.
last in interface ResultSetSQLException - if an error occurs. SQLSTATE HY109 is thrown if this is a forward-only result set.
public void moveToCurrentRow()
throws SQLException
Mimer SQL currently don't support updatable cursors. Use positioned UPDATE/DELETE:s instead.
moveToCurrentRow in interface ResultSetSQLException - if a database access error occurs
or the result set is not updatable
public void moveToInsertRow()
throws SQLException
Mimer SQL currently don't support updatable cursors. Use positioned UPDATE/DELETE:s instead.
moveToInsertRow in interface ResultSetSQLException - if a database access error occurs
or the result set is not updatable
public boolean next()
throws SQLException
next in interface ResultSetSQLException - if an error occurs. SQLSTATE HY010 is thrown if the cursor is not open. 08S01 is thrown on a network receive error.previous(),
absolute(int),
first(),
last()
public boolean previous()
throws SQLException
previous in interface ResultSetSQLException - if an error occurs. SQLSTATE HY109 is thrown if this is a forward-only result set.
public void refreshRow()
throws SQLException
The refreshRow method provides a way for an
application to
explicitly tell the JDBC driver to refetch a row(s) from the
database.
Mimer SQL currently don't support updatable cursors. Use positioned UPDATE/DELETE:s instead.
refreshRow in interface ResultSetSQLException - if a database access error
occurs or if this method is called when the cursor is on the insert row
public boolean relative(int rows)
throws SQLException
relative in interface ResultSetrows - If positive the cursor is repositioned forward in the result set.
If negative it is repositioned backwards.
SQLException - if an error occurs. SQLSTATE HY109 is thrown if this is a forward-only result set.
public boolean rowDeleted()
throws SQLException
Mimer SQL currently don't support updatable cursors. Use positioned UPDATE/DELETE:s instead.
rowDeleted in interface ResultSettrue if a row was deleted and deletions are detected;
false otherwise
SQLException - if a database access error occurs
public boolean rowInserted()
throws SQLException
Mimer SQL currently don't support updatable cursors. Use positioned UPDATE/DELETE:s instead.
rowInserted in interface ResultSettrue if a row has had an insertion
and insertions are detected; false otherwise
SQLException - if a database access error occurs
public boolean rowUpdated()
throws SQLException
Mimer SQL currently don't support updatable cursors. Use positioned UPDATE/DELETE:s instead.
rowUpdated in interface ResultSettrue if the row has been visibly updated
by the owner or another, and updates are detected
SQLException - if a database access error occurs
public void setFetchDirection(int direction)
throws SQLException
See Statement.setFetchDirection for a deeper descissuion on fetch direction and Mimer SQL.
setFetchDirection in interface ResultSetdirection - The fetch direction hint.
SQLException - if an error occurs. If the Statement object is closed, SQLSTATE HY010 is thrown. If the fetch direction is illegal HY024 is thrown.Statement.setFetchDirection(int),
getFetchDirection()
public void setFetchSize(int rows)
throws SQLException
See Statement.setFetchSize for a deeper descissuion on fetch size and Mimer SQL.
setFetchSize in interface ResultSetrows - The fetch size.
SQLException - if an error occurs. If the Statement object is closed, SQLSTATE HY010 is thrown. HY024 is thrown if the fetch size is negative.Statement.setMaxRows(int),
Statement.setFetchSize(int),
getFetchSize()
public void updateAsciiStream(int columnIndex,
InputStream x,
int length)
throws SQLException
Mimer SQL currently don't support updatable cursors. Use positioned UPDATE/DELETE:s instead.
updateAsciiStream in interface ResultSetcolumnIndex - the first column is 1, the second is 2, ...x - the new column valuelength - the length of the stream
SQLException - if a database access error occurs
public void updateAsciiStream(String columnName,
InputStream x,
int length)
throws SQLException
Mimer SQL currently don't support updatable cursors. Use positioned UPDATE/DELETE:s instead.
updateAsciiStream in interface ResultSetcolumnName - the name of the columnx - the new column valuelength - the length of the stream
SQLException - if a database access error occurs
public void updateBigDecimal(int columnIndex,
BigDecimal x)
throws SQLException
java.math.BigDecimal
value.
Mimer SQL currently don't support updatable cursors. Use positioned UPDATE/DELETE:s instead.
updateBigDecimal in interface ResultSetcolumnIndex - the first column is 1, the second is 2, ...x - the new column value
SQLException - if a database access error occurs
public void updateBigDecimal(String columnName,
BigDecimal x)
throws SQLException
java.math.BigDecimal
value.
Mimer SQL currently don't support updatable cursors. Use positioned UPDATE/DELETE:s instead.
updateBigDecimal in interface ResultSetcolumnName - the name of the columnx - the new column value
SQLException - if a database access error occurs
public void updateBinaryStream(int columnIndex,
InputStream x,
int length)
throws SQLException
Mimer SQL currently don't support updatable cursors. Use positioned UPDATE/DELETE:s instead.
updateBinaryStream in interface ResultSetcolumnIndex - the first column is 1, the second is 2, ...x - the new column valuelength - the length of the stream
SQLException - if a database access error occurs
public void updateBinaryStream(String columnName,
InputStream x,
int length)
throws SQLException
Mimer SQL currently don't support updatable cursors. Use positioned UPDATE/DELETE:s instead.
updateBinaryStream in interface ResultSetcolumnName - the name of the columnx - the new column valuelength - the length of the stream
SQLException - if a database access error occurs
public void updateBoolean(int columnIndex,
boolean x)
throws SQLException
boolean value.
Mimer SQL currently don't support updatable cursors. Use positioned UPDATE/DELETE:s instead.
updateBoolean in interface ResultSetcolumnIndex - the first column is 1, the second is 2, ...x - the new column value
SQLException - if a database access error occurs
public void updateBoolean(String columnName,
boolean x)
throws SQLException
boolean value.
Mimer SQL currently don't support updatable cursors. Use positioned UPDATE/DELETE:s instead.
updateBoolean in interface ResultSetcolumnName - the name of the columnx - the new column value
SQLException - if a database access error occurs
public void updateByte(int columnIndex,
byte x)
throws SQLException
byte value.
Mimer SQL currently don't support updatable cursors. Use positioned UPDATE/DELETE:s instead.
updateByte in interface ResultSetcolumnIndex - the first column is 1, the second is 2, ...x - the new column value
SQLException - if a database access error occurs
public void updateByte(String columnName,
byte x)
throws SQLException
byte value.
Mimer SQL currently don't support updatable cursors. Use positioned UPDATE/DELETE:s instead.
updateByte in interface ResultSetcolumnName - the name of the columnx - the new column value
SQLException - if a database access error occurs
public void updateBytes(int columnIndex,
byte[] x)
throws SQLException
byte array value.
Mimer SQL currently don't support updatable cursors. Use positioned UPDATE/DELETE:s instead.
updateBytes in interface ResultSetcolumnIndex - the first column is 1, the second is 2, ...x - the new column value
SQLException - if a database access error occurs
public void updateBytes(String columnName,
byte[] x)
throws SQLException
byte array value.
Mimer SQL currently don't support updatable cursors. Use positioned UPDATE/DELETE:s instead.
updateBytes in interface ResultSetcolumnName - the name of the columnx - the new column value
SQLException - if a database access error occurs
public void updateCharacterStream(int columnIndex,
Reader x,
int length)
throws SQLException
Mimer SQL currently don't support updatable cursors. Use positioned UPDATE/DELETE:s instead.
updateCharacterStream in interface ResultSetcolumnIndex - the first column is 1, the second is 2, ...x - the new column valuelength - the length of the stream
SQLException - if a database access error occurs
public void updateCharacterStream(String columnName,
Reader x,
int length)
throws SQLException
Mimer SQL currently don't support updatable cursors. Use positioned UPDATE/DELETE:s instead.
updateCharacterStream in interface ResultSetcolumnName - the name of the columnx - the new column valuelength - the length of the stream
SQLException - if a database access error occurs
public void updateDate(int columnIndex,
Date x)
throws SQLException
java.sql.Date value.
Mimer SQL currently don't support updatable cursors. Use positioned UPDATE/DELETE:s instead.
updateDate in interface ResultSetcolumnIndex - the first column is 1, the second is 2, ...x - the new column value
SQLException - if a database access error occurs
public void updateDate(String columnName,
Date x)
throws SQLException
java.sql.Date value.
Mimer SQL currently don't support updatable cursors. Use positioned UPDATE/DELETE:s instead.
updateDate in interface ResultSetcolumnName - the name of the columnx - the new column value
SQLException - if a database access error occurs
public void updateDouble(int columnIndex,
double x)
throws SQLException
double value.
Mimer SQL currently don't support updatable cursors. Use positioned UPDATE/DELETE:s instead.
updateDouble in interface ResultSetcolumnIndex - the first column is 1, the second is 2, ...x - the new column value
SQLException - if a database access error occurs
public void updateDouble(String columnName,
double x)
throws SQLException
double value.
Mimer SQL currently don't support updatable cursors. Use positioned UPDATE/DELETE:s instead.
updateDouble in interface ResultSetcolumnName - the name of the columnx - the new column value
SQLException - if a database access error occurs
public void updateFloat(int columnIndex,
float x)
throws SQLException
float value.
Mimer SQL currently don't support updatable cursors. Use positioned UPDATE/DELETE:s instead.
updateFloat in interface ResultSetcolumnIndex - the first column is 1, the second is 2, ...x - the new column value
SQLException - if a database access error occurs
public void updateFloat(String columnName,
float x)
throws SQLException
float value.
Mimer SQL currently don't support updatable cursors. Use positioned UPDATE/DELETE:s instead.
updateFloat in interface ResultSetcolumnName - the name of the columnx - the new column value
SQLException - if a database access error occurs
public void updateInt(int columnIndex,
int x)
throws SQLException
int value.
Mimer SQL currently don't support updatable cursors. Use positioned UPDATE/DELETE:s instead.
updateInt in interface ResultSetcolumnIndex - the first column is 1, the second is 2, ...x - the new column value
SQLException - if a database access error occurs
public void updateInt(String columnName,
int x)
throws SQLException
int value.
Mimer SQL currently don't support updatable cursors. Use positioned UPDATE/DELETE:s instead.
updateInt in interface ResultSetcolumnName - the name of the columnx - the new column value
SQLException - if a database access error occurs
public void updateLong(int columnIndex,
long x)
throws SQLException
long value.
Mimer SQL currently don't support updatable cursors. Use positioned UPDATE/DELETE:s instead.
updateLong in interface ResultSetcolumnIndex - the first column is 1, the second is 2, ...x - the new column value
SQLException - if a database access error occurs
public void updateLong(String columnName,
long x)
throws SQLException
long value.
Mimer SQL currently don't support updatable cursors. Use positioned UPDATE/DELETE:s instead.
updateLong in interface ResultSetcolumnName - the name of the columnx - the new column value
SQLException - if a database access error occurs
public void updateNull(int columnIndex)
throws SQLException
Mimer SQL currently don't support updatable cursors. Use positioned UPDATE/DELETE:s instead.
updateNull in interface ResultSetcolumnIndex - the first column is 1, the second is 2, ...
SQLException - if a database access error occurs
public void updateNull(String columnName)
throws SQLException
Mimer SQL currently don't support updatable cursors. Use positioned UPDATE/DELETE:s instead.
updateNull in interface ResultSetcolumnName - the name of the column
SQLException - if a database access error occurs
public void updateObject(int columnIndex,
Object x)
throws SQLException
Object value.
Mimer SQL currently don't support updatable cursors. Use positioned UPDATE/DELETE:s instead.
updateObject in interface ResultSetcolumnIndex - the first column is 1, the second is 2, ...x - the new column value
SQLException - if a database access error occurs
public void updateObject(int columnIndex,
Object x,
int scale)
throws SQLException
Object value.
Mimer SQL currently don't support updatable cursors. Use positioned UPDATE/DELETE:s instead.
updateObject in interface ResultSetcolumnIndex - the first column is 1, the second is 2, ...x - the new column valuescale - for java.sql.Types.DECIMA
or java.sql.Types.NUMERIC types,
this is the number of digits after the decimal point. For all other
types this value will be ignored.
SQLException - if a database access error occurs
public void updateObject(String columnName,
Object x)
throws SQLException
Object value.
Mimer SQL currently don't support updatable cursors. Use positioned UPDATE/DELETE:s instead.
updateObject in interface ResultSetcolumnName - the name of the columnx - the new column value
SQLException - if a database access error occurs
public void updateObject(String columnName,
Object x,
int scale)
throws SQLException
Object value.
Mimer SQL currently don't support updatable cursors. Use positioned UPDATE/DELETE:s instead.
updateObject in interface ResultSetcolumnName - the name of the columnx - the new column valuescale - for java.sql.Types.DECIMA
or java.sql.Types.NUMERIC types,
this is the number of digits after the decimal point. For all other
types this value will be ignored.
SQLException - if a database access error occurs
public void updateRow()
throws SQLException
ResultSet object.
Mimer SQL currently don't support updatable cursors. Use positioned UPDATE/DELETE:s instead.
updateRow in interface ResultSetSQLException - if a database access error occurs or
if this method is called when the cursor is on the insert row
public void updateShort(int columnIndex,
short x)
throws SQLException
short value.
Mimer SQL currently don't support updatable cursors. Use positioned UPDATE/DELETE:s instead.
updateShort in interface ResultSetcolumnIndex - the first column is 1, the second is 2, ...x - the new column value
SQLException - if a database access error occurs
public void updateShort(String columnName,
short x)
throws SQLException
short value.
Mimer SQL currently don't support updatable cursors. Use positioned UPDATE/DELETE:s instead.
updateShort in interface ResultSetcolumnName - the name of the columnx - the new column value
SQLException - if a database access error occurs
public void updateString(int columnIndex,
String x)
throws SQLException
String value.
Mimer SQL currently don't support updatable cursors. Use positioned UPDATE/DELETE:s instead.
updateString in interface ResultSetcolumnIndex - the first column is 1, the second is 2, ...x - the new column value
SQLException - if a database access error occurs
public void updateString(String columnName,
String x)
throws SQLException
String value.
Mimer SQL currently don't support updatable cursors. Use positioned UPDATE/DELETE:s instead.
updateString in interface ResultSetcolumnName - the name of the columnx - the new column value
SQLException - if a database access error occurs
public void updateTime(int columnIndex,
Time x)
throws SQLException
java.sql.Time value.
Mimer SQL currently don't support updatable cursors. Use positioned UPDATE/DELETE:s instead.
updateTime in interface ResultSetcolumnIndex - the first column is 1, the second is 2, ...x - the new column value
SQLException - if a database access error occurs
public void updateTime(String columnName,
Time x)
throws SQLException
java.sql.Time value.
Mimer SQL currently don't support updatable cursors. Use positioned UPDATE/DELETE:s instead.
updateTime in interface ResultSetcolumnName - the name of the columnx - the new column value
SQLException - if a database access error occurs
public void updateTimestamp(int columnIndex,
Timestamp x)
throws SQLException
java.sql.Timestamp
value.
Mimer SQL currently don't support updatable cursors. Use positioned UPDATE/DELETE:s instead.
updateTimestamp in interface ResultSetcolumnIndex - the first column is 1, the second is 2, ...x - the new column value
SQLException - if a database access error occurs
public void updateTimestamp(String columnName,
Timestamp x)
throws SQLException
java.sql.Timestamp
value.
Mimer SQL currently don't support updatable cursors. Use positioned UPDATE/DELETE:s instead.
updateTimestamp in interface ResultSetcolumnName - the name of the columnx - the new column value
SQLException - if a database access error occurs
public boolean wasNull()
throws SQLException
wasNull in interface ResultSetSQLException - if an error occurs.
|
Mimer JDBC Engine 2.12 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||