public class SimpleResultSet extends Object implements ResultSet, ResultSetMetaData, JdbcResultSetBackwardsCompat
SimpleResultSet rs = new SimpleResultSet(); rs.addColumn("ID", Types.INTEGER, 10, 0); rs.addColumn("NAME", Types.VARCHAR, 255, 0); rs.addRow(0, "Hello" }); rs.addRow(1, "World" });
Modifier and Type | Class and Description |
---|---|
static class |
SimpleResultSet.SimpleArray
A simple array implementation,
backed by an object array
|
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
columnNoNulls, columnNullable, columnNullableUnknown
Constructor and Description |
---|
SimpleResultSet()
This constructor is used if the result set is later populated with
addRow.
|
SimpleResultSet(SimpleRowSource source)
This constructor is used if the result set should retrieve the rows using
the specified row source object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
absolute(int row)
INTERNAL
|
void |
addColumn(String name,
int sqlType,
int precision,
int scale)
Adds a column to the result set.
|
void |
addColumn(String name,
int sqlType,
String sqlTypeName,
int precision,
int scale)
Adds a column to the result set.
|
void |
addRow(Object... row)
Add a new row to the result set.
|
void |
afterLast()
INTERNAL
|
void |
beforeFirst()
Moves the current position to before the first row, that means the result
set is reset.
|
void |
cancelRowUpdates()
INTERNAL
|
void |
clearWarnings()
INTERNAL
|
void |
close()
Closes the result set and releases the resources.
|
void |
deleteRow()
INTERNAL
|
int |
findColumn(String columnLabel)
Searches for a specific column in the result set.
|
boolean |
first()
INTERNAL
|
Array |
getArray(int columnIndex)
Returns the value as a java.sql.Array.
|
Array |
getArray(String columnLabel)
Returns the value as a java.sql.Array.
|
InputStream |
getAsciiStream(int columnIndex)
INTERNAL
|
InputStream |
getAsciiStream(String columnLabel)
INTERNAL
|
boolean |
getAutoClose()
Get the current auto-close behavior.
|
BigDecimal |
getBigDecimal(int columnIndex)
Returns the value as a java.math.BigDecimal.
|
BigDecimal |
getBigDecimal(int columnIndex,
int scale)
Deprecated.
INTERNAL
|
BigDecimal |
getBigDecimal(String columnLabel)
Returns the value as a java.math.BigDecimal.
|
BigDecimal |
getBigDecimal(String columnLabel,
int scale)
Deprecated.
INTERNAL
|
InputStream |
getBinaryStream(int columnIndex)
Returns the value as a java.io.InputStream.
|
InputStream |
getBinaryStream(String columnLabel)
Returns the value as a java.io.InputStream.
|
Blob |
getBlob(int columnIndex)
Returns the value as a java.sql.Blob.
|
Blob |
getBlob(String columnLabel)
Returns the value as a java.sql.Blob.
|
boolean |
getBoolean(int columnIndex)
Returns the value as a boolean.
|
boolean |
getBoolean(String columnLabel)
Returns the value as a boolean.
|
byte |
getByte(int columnIndex)
Returns the value as a byte.
|
byte |
getByte(String columnLabel)
Returns the value as a byte.
|
byte[] |
getBytes(int columnIndex)
Returns the value as a byte array.
|
byte[] |
getBytes(String columnLabel)
Returns the value as a byte array.
|
String |
getCatalogName(int columnIndex)
Returns null.
|
Reader |
getCharacterStream(int columnIndex)
Returns the value as a java.io.Reader.
|
Reader |
getCharacterStream(String columnLabel)
Returns the value as a java.io.Reader.
|
Clob |
getClob(int columnIndex)
Returns the value as a java.sql.Clob.
|
Clob |
getClob(String columnLabel)
Returns the value as a java.sql.Clob.
|
String |
getColumnClassName(int columnIndex)
Returns the Java class name if this column.
|
int |
getColumnCount()
Returns the column count.
|
int |
getColumnDisplaySize(int columnIndex)
Returns 15.
|
String |
getColumnLabel(int columnIndex)
Returns the column label.
|
String |
getColumnName(int columnIndex)
Returns the column name.
|
int |
getColumnType(int columnIndex)
Returns the SQL type.
|
String |
getColumnTypeName(int columnIndex)
Returns the data type name of a column.
|
int |
getConcurrency()
Returns ResultSet.CONCUR_READ_ONLY.
|
String |
getCursorName()
INTERNAL
|
Date |
getDate(int columnIndex)
Returns the value as an java.sql.Date.
|
Date |
getDate(int columnIndex,
Calendar cal)
INTERNAL
|
Date |
getDate(String columnLabel)
Returns the value as a java.sql.Date.
|
Date |
getDate(String columnLabel,
Calendar cal)
INTERNAL
|
double |
getDouble(int columnIndex)
Returns the value as an double.
|
double |
getDouble(String columnLabel)
Returns the value as a double.
|
int |
getFetchDirection()
Returns ResultSet.FETCH_FORWARD.
|
int |
getFetchSize()
Returns 0.
|
float |
getFloat(int columnIndex)
Returns the value as a float.
|
float |
getFloat(String columnLabel)
Returns the value as a float.
|
int |
getHoldability()
Returns the current result set holdability.
|
int |
getInt(int columnIndex)
Returns the value as an int.
|
int |
getInt(String columnLabel)
Returns the value as an int.
|
long |
getLong(int columnIndex)
Returns the value as a long.
|
long |
getLong(String columnLabel)
Returns the value as a long.
|
ResultSetMetaData |
getMetaData()
Returns a reference to itself.
|
Reader |
getNCharacterStream(int columnIndex)
INTERNAL
|
Reader |
getNCharacterStream(String columnLabel)
INTERNAL
|
NClob |
getNClob(int columnIndex)
INTERNAL
|
NClob |
getNClob(String columnLabel)
INTERNAL
|
String |
getNString(int columnIndex)
INTERNAL
|
String |
getNString(String columnLabel)
INTERNAL
|
Object |
getObject(int columnIndex)
Returns the value as an Object.
|
<T> T |
getObject(int columnIndex,
Class<T> type)
Returns the value as an Object of the specified type.
|
Object |
getObject(int columnIndex,
Map<String,Class<?>> map)
INTERNAL
|
Object |
getObject(String columnLabel)
Returns the value as an Object.
|
<T> T |
getObject(String columnName,
Class<T> type)
Returns the value as an Object of the specified type.
|
Object |
getObject(String columnLabel,
Map<String,Class<?>> map)
INTERNAL
|
int |
getPrecision(int columnIndex)
Returns the precision.
|
Ref |
getRef(int columnIndex)
INTERNAL
|
Ref |
getRef(String columnLabel)
INTERNAL
|
int |
getRow()
Returns the row number (1, 2,...) or 0 for no row.
|
RowId |
getRowId(int columnIndex)
INTERNAL
|
RowId |
getRowId(String columnLabel)
INTERNAL
|
int |
getScale(int columnIndex)
Returns the scale.
|
String |
getSchemaName(int columnIndex)
Returns null.
|
short |
getShort(int columnIndex)
Returns the value as a short.
|
short |
getShort(String columnLabel)
Returns the value as a short.
|
SQLXML |
getSQLXML(int columnIndex)
INTERNAL
|
SQLXML |
getSQLXML(String columnLabel)
INTERNAL
|
Statement |
getStatement()
Returns null.
|
String |
getString(int columnIndex)
Returns the value as a String.
|
String |
getString(String columnLabel)
Returns the value as a String.
|
String |
getTableName(int columnIndex)
Returns null.
|
Time |
getTime(int columnIndex)
Returns the value as an java.sql.Time.
|
Time |
getTime(int columnIndex,
Calendar cal)
INTERNAL
|
Time |
getTime(String columnLabel)
Returns the value as a java.sql.Time.
|
Time |
getTime(String columnLabel,
Calendar cal)
INTERNAL
|
Timestamp |
getTimestamp(int columnIndex)
Returns the value as an java.sql.Timestamp.
|
Timestamp |
getTimestamp(int columnIndex,
Calendar cal)
INTERNAL
|
Timestamp |
getTimestamp(String columnLabel)
Returns the value as a java.sql.Timestamp.
|
Timestamp |
getTimestamp(String columnLabel,
Calendar cal)
INTERNAL
|
int |
getType()
Returns the result set type.
|
InputStream |
getUnicodeStream(int columnIndex)
Deprecated.
INTERNAL
|
InputStream |
getUnicodeStream(String columnLabel)
Deprecated.
INTERNAL
|
URL |
getURL(int columnIndex)
INTERNAL
|
URL |
getURL(String columnLabel)
INTERNAL
|
SQLWarning |
getWarnings()
Returns null.
|
void |
insertRow()
INTERNAL
|
boolean |
isAfterLast()
INTERNAL
|
boolean |
isAutoIncrement(int columnIndex)
Returns false.
|
boolean |
isBeforeFirst()
INTERNAL
|
boolean |
isCaseSensitive(int columnIndex)
Returns true.
|
boolean |
isClosed()
Returns whether this result set has been closed.
|
boolean |
isCurrency(int columnIndex)
Returns false.
|
boolean |
isDefinitelyWritable(int columnIndex)
Returns false.
|
boolean |
isFirst()
INTERNAL
|
boolean |
isLast()
INTERNAL
|
int |
isNullable(int columnIndex)
Returns ResultSetMetaData.columnNullableUnknown.
|
boolean |
isReadOnly(int columnIndex)
Returns true.
|
boolean |
isSearchable(int columnIndex)
Returns true.
|
boolean |
isSigned(int columnIndex)
Returns true.
|
boolean |
isWrapperFor(Class<?> iface)
INTERNAL
|
boolean |
isWritable(int columnIndex)
Returns false.
|
boolean |
last()
INTERNAL
|
void |
moveToCurrentRow()
INTERNAL
|
void |
moveToInsertRow()
INTERNAL
|
boolean |
next()
Moves the cursor to the next row of the result set.
|
boolean |
previous()
INTERNAL
|
void |
refreshRow()
INTERNAL
|
boolean |
relative(int offset)
INTERNAL
|
boolean |
rowDeleted()
INTERNAL
|
boolean |
rowInserted()
INTERNAL
|
boolean |
rowUpdated()
INTERNAL
|
void |
setAutoClose(boolean autoClose)
Set the auto-close behavior.
|
void |
setFetchDirection(int direction)
INTERNAL
|
void |
setFetchSize(int rows)
INTERNAL
|
<T> T |
unwrap(Class<T> iface)
INTERNAL
|
void |
updateArray(int columnIndex,
Array x)
INTERNAL
|
void |
updateArray(String columnLabel,
Array x)
INTERNAL
|
void |
updateAsciiStream(int columnIndex,
InputStream x)
INTERNAL
|
void |
updateAsciiStream(int columnIndex,
InputStream x,
int length)
INTERNAL
|
void |
updateAsciiStream(int columnIndex,
InputStream x,
long length)
INTERNAL
|
void |
updateAsciiStream(String columnLabel,
InputStream x)
INTERNAL
|
void |
updateAsciiStream(String columnLabel,
InputStream x,
int length)
INTERNAL
|
void |
updateAsciiStream(String columnLabel,
InputStream x,
long length)
INTERNAL
|
void |
updateBigDecimal(int columnIndex,
BigDecimal x)
INTERNAL
|
void |
updateBigDecimal(String columnLabel,
BigDecimal x)
INTERNAL
|
void |
updateBinaryStream(int columnIndex,
InputStream x)
INTERNAL
|
void |
updateBinaryStream(int columnIndex,
InputStream x,
int length)
INTERNAL
|
void |
updateBinaryStream(int columnIndex,
InputStream x,
long length)
INTERNAL
|
void |
updateBinaryStream(String columnLabel,
InputStream x)
INTERNAL
|
void |
updateBinaryStream(String columnLabel,
InputStream x,
int length)
INTERNAL
|
void |
updateBinaryStream(String columnLabel,
InputStream x,
long length)
INTERNAL
|
void |
updateBlob(int columnIndex,
Blob x)
INTERNAL
|
void |
updateBlob(int columnIndex,
InputStream x)
INTERNAL
|
void |
updateBlob(int columnIndex,
InputStream x,
long length)
INTERNAL
|
void |
updateBlob(String columnLabel,
Blob x)
INTERNAL
|
void |
updateBlob(String columnLabel,
InputStream x)
INTERNAL
|
void |
updateBlob(String columnLabel,
InputStream x,
long length)
INTERNAL
|
void |
updateBoolean(int columnIndex,
boolean x)
INTERNAL
|
void |
updateBoolean(String columnLabel,
boolean x)
INTERNAL
|
void |
updateByte(int columnIndex,
byte x)
INTERNAL
|
void |
updateByte(String columnLabel,
byte x)
INTERNAL
|
void |
updateBytes(int columnIndex,
byte[] x)
INTERNAL
|
void |
updateBytes(String columnLabel,
byte[] x)
INTERNAL
|
void |
updateCharacterStream(int columnIndex,
Reader x)
INTERNAL
|
void |
updateCharacterStream(int columnIndex,
Reader x,
int length)
INTERNAL
|
void |
updateCharacterStream(int columnIndex,
Reader x,
long length)
INTERNAL
|
void |
updateCharacterStream(String columnLabel,
Reader x)
INTERNAL
|
void |
updateCharacterStream(String columnLabel,
Reader x,
int length)
INTERNAL
|
void |
updateCharacterStream(String columnLabel,
Reader x,
long length)
INTERNAL
|
void |
updateClob(int columnIndex,
Clob x)
INTERNAL
|
void |
updateClob(int columnIndex,
Reader x)
INTERNAL
|
void |
updateClob(int columnIndex,
Reader x,
long length)
INTERNAL
|
void |
updateClob(String columnLabel,
Clob x)
INTERNAL
|
void |
updateClob(String columnLabel,
Reader x)
INTERNAL
|
void |
updateClob(String columnLabel,
Reader x,
long length)
INTERNAL
|
void |
updateDate(int columnIndex,
Date x)
INTERNAL
|
void |
updateDate(String columnLabel,
Date x)
INTERNAL
|
void |
updateDouble(int columnIndex,
double x)
INTERNAL
|
void |
updateDouble(String columnLabel,
double x)
INTERNAL
|
void |
updateFloat(int columnIndex,
float x)
INTERNAL
|
void |
updateFloat(String columnLabel,
float x)
INTERNAL
|
void |
updateInt(int columnIndex,
int x)
INTERNAL
|
void |
updateInt(String columnLabel,
int x)
INTERNAL
|
void |
updateLong(int columnIndex,
long x)
INTERNAL
|
void |
updateLong(String columnLabel,
long x)
INTERNAL
|
void |
updateNCharacterStream(int columnIndex,
Reader x)
INTERNAL
|
void |
updateNCharacterStream(int columnIndex,
Reader x,
long length)
INTERNAL
|
void |
updateNCharacterStream(String columnLabel,
Reader x)
INTERNAL
|
void |
updateNCharacterStream(String columnLabel,
Reader x,
long length)
INTERNAL
|
void |
updateNClob(int columnIndex,
NClob x)
INTERNAL
|
void |
updateNClob(int columnIndex,
Reader x)
INTERNAL
|
void |
updateNClob(int columnIndex,
Reader x,
long length)
INTERNAL
|
void |
updateNClob(String columnLabel,
NClob x)
INTERNAL
|
void |
updateNClob(String columnLabel,
Reader x)
INTERNAL
|
void |
updateNClob(String columnLabel,
Reader x,
long length)
INTERNAL
|
void |
updateNString(int columnIndex,
String x)
INTERNAL
|
void |
updateNString(String columnLabel,
String x)
INTERNAL
|
void |
updateNull(int columnIndex)
INTERNAL
|
void |
updateNull(String columnLabel)
INTERNAL
|
void |
updateObject(int columnIndex,
Object x)
INTERNAL
|
void |
updateObject(int columnIndex,
Object x,
int scale)
INTERNAL
|
void |
updateObject(String columnLabel,
Object x)
INTERNAL
|
void |
updateObject(String columnLabel,
Object x,
int scale)
INTERNAL
|
void |
updateRef(int columnIndex,
Ref x)
INTERNAL
|
void |
updateRef(String columnLabel,
Ref x)
INTERNAL
|
void |
updateRow()
INTERNAL
|
void |
updateRowId(int columnIndex,
RowId x)
INTERNAL
|
void |
updateRowId(String columnLabel,
RowId x)
INTERNAL
|
void |
updateShort(int columnIndex,
short x)
INTERNAL
|
void |
updateShort(String columnLabel,
short x)
INTERNAL
|
void |
updateSQLXML(int columnIndex,
SQLXML x)
INTERNAL
|
void |
updateSQLXML(String columnLabel,
SQLXML x)
INTERNAL
|
void |
updateString(int columnIndex,
String x)
INTERNAL
|
void |
updateString(String columnLabel,
String x)
INTERNAL
|
void |
updateTime(int columnIndex,
Time x)
INTERNAL
|
void |
updateTime(String columnLabel,
Time x)
INTERNAL
|
void |
updateTimestamp(int columnIndex,
Timestamp x)
INTERNAL
|
void |
updateTimestamp(String columnLabel,
Timestamp x)
INTERNAL
|
boolean |
wasNull()
Returns whether the last column accessed was null.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
updateObject, updateObject, updateObject, updateObject
public SimpleResultSet()
public SimpleResultSet(SimpleRowSource source)
source
- the row sourcepublic void addColumn(String name, int sqlType, int precision, int scale)
name
- null is replaced with C1, C2,...sqlType
- the value returned in getColumnType(..)precision
- the precisionscale
- the scalepublic void addColumn(String name, int sqlType, String sqlTypeName, int precision, int scale)
name
- null is replaced with C1, C2,...sqlType
- the value returned in getColumnType(..)sqlTypeName
- the type name return in getColumnTypeName(..)precision
- the precisionscale
- the scalepublic void addRow(Object... row)
row
- the row as an array of objectspublic int getConcurrency()
getConcurrency
in interface ResultSet
public int getFetchDirection()
getFetchDirection
in interface ResultSet
public int getFetchSize()
getFetchSize
in interface ResultSet
public int getRow()
public int getType()
public void close()
close
in interface AutoCloseable
close
in interface ResultSet
public boolean next() throws SQLException
next
in interface ResultSet
SQLException
public void beforeFirst() throws SQLException
beforeFirst
in interface ResultSet
SQLException
public boolean wasNull()
public int findColumn(String columnLabel) throws SQLException
findColumn
in interface ResultSet
columnLabel
- the column labelSQLException
- if the column is not found or if the result set is
closedpublic ResultSetMetaData getMetaData()
getMetaData
in interface ResultSet
public SQLWarning getWarnings()
getWarnings
in interface ResultSet
public Statement getStatement()
getStatement
in interface ResultSet
public void clearWarnings()
clearWarnings
in interface ResultSet
public Array getArray(int columnIndex) throws SQLException
getArray
in interface ResultSet
columnIndex
- (1,2,...)SQLException
public Array getArray(String columnLabel) throws SQLException
getArray
in interface ResultSet
columnLabel
- the column labelSQLException
public InputStream getAsciiStream(int columnIndex) throws SQLException
getAsciiStream
in interface ResultSet
SQLException
public InputStream getAsciiStream(String columnLabel) throws SQLException
getAsciiStream
in interface ResultSet
SQLException
public BigDecimal getBigDecimal(int columnIndex) throws SQLException
getBigDecimal
in interface ResultSet
columnIndex
- (1,2,...)SQLException
public BigDecimal getBigDecimal(String columnLabel) throws SQLException
getBigDecimal
in interface ResultSet
columnLabel
- the column labelSQLException
@Deprecated public BigDecimal getBigDecimal(int columnIndex, int scale) throws SQLException
getBigDecimal
in interface ResultSet
SQLException
@Deprecated public BigDecimal getBigDecimal(String columnLabel, int scale) throws SQLException
getBigDecimal
in interface ResultSet
SQLException
public InputStream getBinaryStream(int columnIndex) throws SQLException
getBinaryStream
in interface ResultSet
columnIndex
- (1,2,...)SQLException
public InputStream getBinaryStream(String columnLabel) throws SQLException
getBinaryStream
in interface ResultSet
columnLabel
- the column labelSQLException
public Blob getBlob(int columnIndex) throws SQLException
getBlob
in interface ResultSet
columnIndex
- (1,2,...)SQLException
public Blob getBlob(String columnLabel) throws SQLException
getBlob
in interface ResultSet
columnLabel
- the column labelSQLException
public boolean getBoolean(int columnIndex) throws SQLException
getBoolean
in interface ResultSet
columnIndex
- (1,2,...)SQLException
public boolean getBoolean(String columnLabel) throws SQLException
getBoolean
in interface ResultSet
columnLabel
- the column labelSQLException
public byte getByte(int columnIndex) throws SQLException
getByte
in interface ResultSet
columnIndex
- (1,2,...)SQLException
public byte getByte(String columnLabel) throws SQLException
getByte
in interface ResultSet
columnLabel
- the column labelSQLException
public byte[] getBytes(int columnIndex) throws SQLException
getBytes
in interface ResultSet
columnIndex
- (1,2,...)SQLException
public byte[] getBytes(String columnLabel) throws SQLException
getBytes
in interface ResultSet
columnLabel
- the column labelSQLException
public Reader getCharacterStream(int columnIndex) throws SQLException
getCharacterStream
in interface ResultSet
columnIndex
- (1,2,...)SQLException
public Reader getCharacterStream(String columnLabel) throws SQLException
getCharacterStream
in interface ResultSet
columnLabel
- the column labelSQLException
public Clob getClob(int columnIndex) throws SQLException
getClob
in interface ResultSet
columnIndex
- (1,2,...)SQLException
public Clob getClob(String columnLabel) throws SQLException
getClob
in interface ResultSet
columnLabel
- the column labelSQLException
public Date getDate(int columnIndex) throws SQLException
getDate
in interface ResultSet
columnIndex
- (1,2,...)SQLException
public Date getDate(String columnLabel) throws SQLException
getDate
in interface ResultSet
columnLabel
- the column labelSQLException
public Date getDate(int columnIndex, Calendar cal) throws SQLException
getDate
in interface ResultSet
SQLException
public Date getDate(String columnLabel, Calendar cal) throws SQLException
getDate
in interface ResultSet
SQLException
public double getDouble(int columnIndex) throws SQLException
getDouble
in interface ResultSet
columnIndex
- (1,2,...)SQLException
public double getDouble(String columnLabel) throws SQLException
getDouble
in interface ResultSet
columnLabel
- the column labelSQLException
public float getFloat(int columnIndex) throws SQLException
getFloat
in interface ResultSet
columnIndex
- (1,2,...)SQLException
public float getFloat(String columnLabel) throws SQLException
getFloat
in interface ResultSet
columnLabel
- the column labelSQLException
public int getInt(int columnIndex) throws SQLException
getInt
in interface ResultSet
columnIndex
- (1,2,...)SQLException
public int getInt(String columnLabel) throws SQLException
getInt
in interface ResultSet
columnLabel
- the column labelSQLException
public long getLong(int columnIndex) throws SQLException
getLong
in interface ResultSet
columnIndex
- (1,2,...)SQLException
public long getLong(String columnLabel) throws SQLException
getLong
in interface ResultSet
columnLabel
- the column labelSQLException
public Reader getNCharacterStream(int columnIndex) throws SQLException
getNCharacterStream
in interface ResultSet
SQLException
public Reader getNCharacterStream(String columnLabel) throws SQLException
getNCharacterStream
in interface ResultSet
SQLException
public NClob getNClob(int columnIndex) throws SQLException
getNClob
in interface ResultSet
SQLException
public NClob getNClob(String columnLabel) throws SQLException
getNClob
in interface ResultSet
SQLException
public String getNString(int columnIndex) throws SQLException
getNString
in interface ResultSet
SQLException
public String getNString(String columnLabel) throws SQLException
getNString
in interface ResultSet
SQLException
public Object getObject(int columnIndex) throws SQLException
getObject
in interface ResultSet
columnIndex
- (1,2,...)SQLException
public Object getObject(String columnLabel) throws SQLException
getObject
in interface ResultSet
columnLabel
- the column labelSQLException
public <T> T getObject(int columnIndex, Class<T> type) throws SQLException
getObject
in interface ResultSet
columnIndex
- the column index (1, 2, ...)type
- the class of the returned valueSQLException
public <T> T getObject(String columnName, Class<T> type) throws SQLException
getObject
in interface ResultSet
columnName
- the column nametype
- the class of the returned valueSQLException
public Object getObject(int columnIndex, Map<String,Class<?>> map) throws SQLException
getObject
in interface ResultSet
SQLException
public Object getObject(String columnLabel, Map<String,Class<?>> map) throws SQLException
getObject
in interface ResultSet
SQLException
public Ref getRef(int columnIndex) throws SQLException
getRef
in interface ResultSet
SQLException
public Ref getRef(String columnLabel) throws SQLException
getRef
in interface ResultSet
SQLException
public RowId getRowId(int columnIndex) throws SQLException
getRowId
in interface ResultSet
SQLException
public RowId getRowId(String columnLabel) throws SQLException
getRowId
in interface ResultSet
SQLException
public short getShort(int columnIndex) throws SQLException
getShort
in interface ResultSet
columnIndex
- (1,2,...)SQLException
public short getShort(String columnLabel) throws SQLException
getShort
in interface ResultSet
columnLabel
- the column labelSQLException
public SQLXML getSQLXML(int columnIndex) throws SQLException
getSQLXML
in interface ResultSet
SQLException
public SQLXML getSQLXML(String columnLabel) throws SQLException
getSQLXML
in interface ResultSet
SQLException
public String getString(int columnIndex) throws SQLException
getString
in interface ResultSet
columnIndex
- (1,2,...)SQLException
public String getString(String columnLabel) throws SQLException
getString
in interface ResultSet
columnLabel
- the column labelSQLException
public Time getTime(int columnIndex) throws SQLException
getTime
in interface ResultSet
columnIndex
- (1,2,...)SQLException
public Time getTime(String columnLabel) throws SQLException
getTime
in interface ResultSet
columnLabel
- the column labelSQLException
public Time getTime(int columnIndex, Calendar cal) throws SQLException
getTime
in interface ResultSet
SQLException
public Time getTime(String columnLabel, Calendar cal) throws SQLException
getTime
in interface ResultSet
SQLException
public Timestamp getTimestamp(int columnIndex) throws SQLException
getTimestamp
in interface ResultSet
columnIndex
- (1,2,...)SQLException
public Timestamp getTimestamp(String columnLabel) throws SQLException
getTimestamp
in interface ResultSet
columnLabel
- the column labelSQLException
public Timestamp getTimestamp(int columnIndex, Calendar cal) throws SQLException
getTimestamp
in interface ResultSet
SQLException
public Timestamp getTimestamp(String columnLabel, Calendar cal) throws SQLException
getTimestamp
in interface ResultSet
SQLException
@Deprecated public InputStream getUnicodeStream(int columnIndex) throws SQLException
getUnicodeStream
in interface ResultSet
SQLException
@Deprecated public InputStream getUnicodeStream(String columnLabel) throws SQLException
getUnicodeStream
in interface ResultSet
SQLException
public URL getURL(int columnIndex) throws SQLException
getURL
in interface ResultSet
SQLException
public URL getURL(String columnLabel) throws SQLException
getURL
in interface ResultSet
SQLException
public void updateArray(int columnIndex, Array x) throws SQLException
updateArray
in interface ResultSet
SQLException
public void updateArray(String columnLabel, Array x) throws SQLException
updateArray
in interface ResultSet
SQLException
public void updateAsciiStream(int columnIndex, InputStream x) throws SQLException
updateAsciiStream
in interface ResultSet
SQLException
public void updateAsciiStream(String columnLabel, InputStream x) throws SQLException
updateAsciiStream
in interface ResultSet
SQLException
public void updateAsciiStream(int columnIndex, InputStream x, int length) throws SQLException
updateAsciiStream
in interface ResultSet
SQLException
public void updateAsciiStream(String columnLabel, InputStream x, int length) throws SQLException
updateAsciiStream
in interface ResultSet
SQLException
public void updateAsciiStream(int columnIndex, InputStream x, long length) throws SQLException
updateAsciiStream
in interface ResultSet
SQLException
public void updateAsciiStream(String columnLabel, InputStream x, long length) throws SQLException
updateAsciiStream
in interface ResultSet
SQLException
public void updateBigDecimal(int columnIndex, BigDecimal x) throws SQLException
updateBigDecimal
in interface ResultSet
SQLException
public void updateBigDecimal(String columnLabel, BigDecimal x) throws SQLException
updateBigDecimal
in interface ResultSet
SQLException
public void updateBinaryStream(int columnIndex, InputStream x) throws SQLException
updateBinaryStream
in interface ResultSet
SQLException
public void updateBinaryStream(String columnLabel, InputStream x) throws SQLException
updateBinaryStream
in interface ResultSet
SQLException
public void updateBinaryStream(int columnIndex, InputStream x, int length) throws SQLException
updateBinaryStream
in interface ResultSet
SQLException
public void updateBinaryStream(String columnLabel, InputStream x, int length) throws SQLException
updateBinaryStream
in interface ResultSet
SQLException
public void updateBinaryStream(int columnIndex, InputStream x, long length) throws SQLException
updateBinaryStream
in interface ResultSet
SQLException
public void updateBinaryStream(String columnLabel, InputStream x, long length) throws SQLException
updateBinaryStream
in interface ResultSet
SQLException
public void updateBlob(int columnIndex, Blob x) throws SQLException
updateBlob
in interface ResultSet
SQLException
public void updateBlob(String columnLabel, Blob x) throws SQLException
updateBlob
in interface ResultSet
SQLException
public void updateBlob(int columnIndex, InputStream x) throws SQLException
updateBlob
in interface ResultSet
SQLException
public void updateBlob(String columnLabel, InputStream x) throws SQLException
updateBlob
in interface ResultSet
SQLException
public void updateBlob(int columnIndex, InputStream x, long length) throws SQLException
updateBlob
in interface ResultSet
SQLException
public void updateBlob(String columnLabel, InputStream x, long length) throws SQLException
updateBlob
in interface ResultSet
SQLException
public void updateBoolean(int columnIndex, boolean x) throws SQLException
updateBoolean
in interface ResultSet
SQLException
public void updateBoolean(String columnLabel, boolean x) throws SQLException
updateBoolean
in interface ResultSet
SQLException
public void updateByte(int columnIndex, byte x) throws SQLException
updateByte
in interface ResultSet
SQLException
public void updateByte(String columnLabel, byte x) throws SQLException
updateByte
in interface ResultSet
SQLException
public void updateBytes(int columnIndex, byte[] x) throws SQLException
updateBytes
in interface ResultSet
SQLException
public void updateBytes(String columnLabel, byte[] x) throws SQLException
updateBytes
in interface ResultSet
SQLException
public void updateCharacterStream(int columnIndex, Reader x) throws SQLException
updateCharacterStream
in interface ResultSet
SQLException
public void updateCharacterStream(String columnLabel, Reader x) throws SQLException
updateCharacterStream
in interface ResultSet
SQLException
public void updateCharacterStream(int columnIndex, Reader x, int length) throws SQLException
updateCharacterStream
in interface ResultSet
SQLException
public void updateCharacterStream(String columnLabel, Reader x, int length) throws SQLException
updateCharacterStream
in interface ResultSet
SQLException
public void updateCharacterStream(int columnIndex, Reader x, long length) throws SQLException
updateCharacterStream
in interface ResultSet
SQLException
public void updateCharacterStream(String columnLabel, Reader x, long length) throws SQLException
updateCharacterStream
in interface ResultSet
SQLException
public void updateClob(int columnIndex, Clob x) throws SQLException
updateClob
in interface ResultSet
SQLException
public void updateClob(String columnLabel, Clob x) throws SQLException
updateClob
in interface ResultSet
SQLException
public void updateClob(int columnIndex, Reader x) throws SQLException
updateClob
in interface ResultSet
SQLException
public void updateClob(String columnLabel, Reader x) throws SQLException
updateClob
in interface ResultSet
SQLException
public void updateClob(int columnIndex, Reader x, long length) throws SQLException
updateClob
in interface ResultSet
SQLException
public void updateClob(String columnLabel, Reader x, long length) throws SQLException
updateClob
in interface ResultSet
SQLException
public void updateDate(int columnIndex, Date x) throws SQLException
updateDate
in interface ResultSet
SQLException
public void updateDate(String columnLabel, Date x) throws SQLException
updateDate
in interface ResultSet
SQLException
public void updateDouble(int columnIndex, double x) throws SQLException
updateDouble
in interface ResultSet
SQLException
public void updateDouble(String columnLabel, double x) throws SQLException
updateDouble
in interface ResultSet
SQLException
public void updateFloat(int columnIndex, float x) throws SQLException
updateFloat
in interface ResultSet
SQLException
public void updateFloat(String columnLabel, float x) throws SQLException
updateFloat
in interface ResultSet
SQLException
public void updateInt(int columnIndex, int x) throws SQLException
updateInt
in interface ResultSet
SQLException
public void updateInt(String columnLabel, int x) throws SQLException
updateInt
in interface ResultSet
SQLException
public void updateLong(int columnIndex, long x) throws SQLException
updateLong
in interface ResultSet
SQLException
public void updateLong(String columnLabel, long x) throws SQLException
updateLong
in interface ResultSet
SQLException
public void updateNCharacterStream(int columnIndex, Reader x) throws SQLException
updateNCharacterStream
in interface ResultSet
SQLException
public void updateNCharacterStream(String columnLabel, Reader x) throws SQLException
updateNCharacterStream
in interface ResultSet
SQLException
public void updateNCharacterStream(int columnIndex, Reader x, long length) throws SQLException
updateNCharacterStream
in interface ResultSet
SQLException
public void updateNCharacterStream(String columnLabel, Reader x, long length) throws SQLException
updateNCharacterStream
in interface ResultSet
SQLException
public void updateNClob(int columnIndex, NClob x) throws SQLException
updateNClob
in interface ResultSet
SQLException
public void updateNClob(String columnLabel, NClob x) throws SQLException
updateNClob
in interface ResultSet
SQLException
public void updateNClob(int columnIndex, Reader x) throws SQLException
updateNClob
in interface ResultSet
SQLException
public void updateNClob(String columnLabel, Reader x) throws SQLException
updateNClob
in interface ResultSet
SQLException
public void updateNClob(int columnIndex, Reader x, long length) throws SQLException
updateNClob
in interface ResultSet
SQLException
public void updateNClob(String columnLabel, Reader x, long length) throws SQLException
updateNClob
in interface ResultSet
SQLException
public void updateNString(int columnIndex, String x) throws SQLException
updateNString
in interface ResultSet
SQLException
public void updateNString(String columnLabel, String x) throws SQLException
updateNString
in interface ResultSet
SQLException
public void updateNull(int columnIndex) throws SQLException
updateNull
in interface ResultSet
SQLException
public void updateNull(String columnLabel) throws SQLException
updateNull
in interface ResultSet
SQLException
public void updateObject(int columnIndex, Object x) throws SQLException
updateObject
in interface ResultSet
SQLException
public void updateObject(String columnLabel, Object x) throws SQLException
updateObject
in interface ResultSet
SQLException
public void updateObject(int columnIndex, Object x, int scale) throws SQLException
updateObject
in interface ResultSet
SQLException
public void updateObject(String columnLabel, Object x, int scale) throws SQLException
updateObject
in interface ResultSet
SQLException
public void updateRef(int columnIndex, Ref x) throws SQLException
updateRef
in interface ResultSet
SQLException
public void updateRef(String columnLabel, Ref x) throws SQLException
updateRef
in interface ResultSet
SQLException
public void updateRowId(int columnIndex, RowId x) throws SQLException
updateRowId
in interface ResultSet
SQLException
public void updateRowId(String columnLabel, RowId x) throws SQLException
updateRowId
in interface ResultSet
SQLException
public void updateShort(int columnIndex, short x) throws SQLException
updateShort
in interface ResultSet
SQLException
public void updateShort(String columnLabel, short x) throws SQLException
updateShort
in interface ResultSet
SQLException
public void updateSQLXML(int columnIndex, SQLXML x) throws SQLException
updateSQLXML
in interface ResultSet
SQLException
public void updateSQLXML(String columnLabel, SQLXML x) throws SQLException
updateSQLXML
in interface ResultSet
SQLException
public void updateString(int columnIndex, String x) throws SQLException
updateString
in interface ResultSet
SQLException
public void updateString(String columnLabel, String x) throws SQLException
updateString
in interface ResultSet
SQLException
public void updateTime(int columnIndex, Time x) throws SQLException
updateTime
in interface ResultSet
SQLException
public void updateTime(String columnLabel, Time x) throws SQLException
updateTime
in interface ResultSet
SQLException
public void updateTimestamp(int columnIndex, Timestamp x) throws SQLException
updateTimestamp
in interface ResultSet
SQLException
public void updateTimestamp(String columnLabel, Timestamp x) throws SQLException
updateTimestamp
in interface ResultSet
SQLException
public int getColumnCount()
getColumnCount
in interface ResultSetMetaData
public int getColumnDisplaySize(int columnIndex)
getColumnDisplaySize
in interface ResultSetMetaData
columnIndex
- (1,2,...)public int getColumnType(int columnIndex) throws SQLException
getColumnType
in interface ResultSetMetaData
columnIndex
- (1,2,...)SQLException
public int getPrecision(int columnIndex) throws SQLException
getPrecision
in interface ResultSetMetaData
columnIndex
- (1,2,...)SQLException
public int getScale(int columnIndex) throws SQLException
getScale
in interface ResultSetMetaData
columnIndex
- (1,2,...)SQLException
public int isNullable(int columnIndex)
isNullable
in interface ResultSetMetaData
columnIndex
- (1,2,...)public boolean isAutoIncrement(int columnIndex)
isAutoIncrement
in interface ResultSetMetaData
columnIndex
- (1,2,...)public boolean isCaseSensitive(int columnIndex)
isCaseSensitive
in interface ResultSetMetaData
columnIndex
- (1,2,...)public boolean isCurrency(int columnIndex)
isCurrency
in interface ResultSetMetaData
columnIndex
- (1,2,...)public boolean isDefinitelyWritable(int columnIndex)
isDefinitelyWritable
in interface ResultSetMetaData
columnIndex
- (1,2,...)public boolean isReadOnly(int columnIndex)
isReadOnly
in interface ResultSetMetaData
columnIndex
- (1,2,...)public boolean isSearchable(int columnIndex)
isSearchable
in interface ResultSetMetaData
columnIndex
- (1,2,...)public boolean isSigned(int columnIndex)
isSigned
in interface ResultSetMetaData
columnIndex
- (1,2,...)public boolean isWritable(int columnIndex)
isWritable
in interface ResultSetMetaData
columnIndex
- (1,2,...)public String getCatalogName(int columnIndex)
getCatalogName
in interface ResultSetMetaData
columnIndex
- (1,2,...)public String getColumnClassName(int columnIndex) throws SQLException
getColumnClassName
in interface ResultSetMetaData
columnIndex
- (1,2,...)SQLException
public String getColumnLabel(int columnIndex) throws SQLException
getColumnLabel
in interface ResultSetMetaData
columnIndex
- (1,2,...)SQLException
public String getColumnName(int columnIndex) throws SQLException
getColumnName
in interface ResultSetMetaData
columnIndex
- (1,2,...)SQLException
public String getColumnTypeName(int columnIndex) throws SQLException
getColumnTypeName
in interface ResultSetMetaData
columnIndex
- (1,2,...)SQLException
public String getSchemaName(int columnIndex)
getSchemaName
in interface ResultSetMetaData
columnIndex
- (1,2,...)public String getTableName(int columnIndex)
getTableName
in interface ResultSetMetaData
columnIndex
- (1,2,...)public void afterLast() throws SQLException
afterLast
in interface ResultSet
SQLException
public void cancelRowUpdates() throws SQLException
cancelRowUpdates
in interface ResultSet
SQLException
public void deleteRow() throws SQLException
deleteRow
in interface ResultSet
SQLException
public void insertRow() throws SQLException
insertRow
in interface ResultSet
SQLException
public void moveToCurrentRow() throws SQLException
moveToCurrentRow
in interface ResultSet
SQLException
public void moveToInsertRow() throws SQLException
moveToInsertRow
in interface ResultSet
SQLException
public void refreshRow() throws SQLException
refreshRow
in interface ResultSet
SQLException
public void updateRow() throws SQLException
updateRow
in interface ResultSet
SQLException
public boolean first() throws SQLException
first
in interface ResultSet
SQLException
public boolean isAfterLast() throws SQLException
isAfterLast
in interface ResultSet
SQLException
public boolean isBeforeFirst() throws SQLException
isBeforeFirst
in interface ResultSet
SQLException
public boolean isFirst() throws SQLException
isFirst
in interface ResultSet
SQLException
public boolean isLast() throws SQLException
isLast
in interface ResultSet
SQLException
public boolean last() throws SQLException
last
in interface ResultSet
SQLException
public boolean previous() throws SQLException
previous
in interface ResultSet
SQLException
public boolean rowDeleted() throws SQLException
rowDeleted
in interface ResultSet
SQLException
public boolean rowInserted() throws SQLException
rowInserted
in interface ResultSet
SQLException
public boolean rowUpdated() throws SQLException
rowUpdated
in interface ResultSet
SQLException
public void setFetchDirection(int direction) throws SQLException
setFetchDirection
in interface ResultSet
SQLException
public void setFetchSize(int rows) throws SQLException
setFetchSize
in interface ResultSet
SQLException
public boolean absolute(int row) throws SQLException
absolute
in interface ResultSet
SQLException
public boolean relative(int offset) throws SQLException
relative
in interface ResultSet
SQLException
public String getCursorName() throws SQLException
getCursorName
in interface ResultSet
SQLException
public int getHoldability()
getHoldability
in interface ResultSet
public boolean isClosed()
public <T> T unwrap(Class<T> iface) throws SQLException
unwrap
in interface Wrapper
SQLException
public boolean isWrapperFor(Class<?> iface) throws SQLException
isWrapperFor
in interface Wrapper
SQLException
public void setAutoClose(boolean autoClose)
autoClose
- the new valuepublic boolean getAutoClose()
Copyright © 2020 JBoss by Red Hat. All rights reserved.