|
jxDBCon 0.9z | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.sourceforge.jxdbcon.AbstractResultSet
AbstractResultSet implements generics of the ResultSet interface. The get/update functions delegate to their corresponding calls in AbstractType.
Field Summary | |
protected int |
fetchDirection
Fetch direction. |
protected int |
fetchSize
Fetch size. |
protected boolean |
isClosed
Closed flag. |
protected ConversionContext |
resContext
The conversion context. |
protected Object |
resData
The current row's data. |
protected AbstractType[] |
resTypes
The column's types. |
private int |
resultSetType
Scroll type. |
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 |
Constructor Summary | |
protected |
AbstractResultSet(int fetchDirection,
int resultSetType,
ConversionContext resContext,
AbstractType[] resTypes)
Construct the ResultSet. |
Method Summary | |
void |
clearWarnings()
|
void |
close()
|
void |
finalize()
Close the ResultSet, if it was left open. |
int |
findColumn(String columnName)
Find a column by name. |
Array |
getArray(int columnIndex)
|
Array |
getArray(String columnName)
|
InputStream |
getAsciiStream(int columnIndex)
|
InputStream |
getAsciiStream(String columnName)
|
BigDecimal |
getBigDecimal(int columnIndex)
|
BigDecimal |
getBigDecimal(String columnName)
|
InputStream |
getBinaryStream(int columnIndex)
|
InputStream |
getBinaryStream(String columnName)
|
Blob |
getBlob(int columnIndex)
|
Blob |
getBlob(String columnName)
|
boolean |
getBoolean(int columnIndex)
|
boolean |
getBoolean(String columnName)
|
byte |
getByte(int columnIndex)
|
byte |
getByte(String columnName)
|
byte[] |
getBytes(int columnIndex)
|
byte[] |
getBytes(String columnName)
|
Reader |
getCharacterStream(int columnIndex)
|
Reader |
getCharacterStream(String columnName)
|
Clob |
getClob(int columnIndex)
|
Clob |
getClob(String columnName)
|
ConversionContext |
getContext()
|
Date |
getDate(int columnIndex)
|
Date |
getDate(int columnIndex,
Calendar cal)
|
Date |
getDate(String columnName)
|
Date |
getDate(String columnName,
Calendar cal)
|
double |
getDouble(int columnIndex)
|
double |
getDouble(String columnName)
|
int |
getFetchDirection()
|
int |
getFetchSize()
|
float |
getFloat(int columnIndex)
|
float |
getFloat(String columnName)
|
int |
getInt(int columnIndex)
|
int |
getInt(String columnName)
|
long |
getLong(int columnIndex)
|
long |
getLong(String columnName)
|
Object |
getObject(int columnIndex)
|
Object |
getObject(int columnIndex,
Map map)
|
Object |
getObject(String columnName)
|
Object |
getObject(String columnName,
Map map)
|
Ref |
getRef(int columnIndex)
|
Ref |
getRef(String columnName)
|
short |
getShort(int columnIndex)
|
short |
getShort(String columnName)
|
String |
getString(int columnIndex)
|
String |
getString(String columnName)
|
Time |
getTime(int columnIndex)
|
Time |
getTime(int columnIndex,
Calendar cal)
|
Time |
getTime(String columnName)
|
Time |
getTime(String columnName,
Calendar cal)
|
Timestamp |
getTimestamp(int columnIndex)
|
Timestamp |
getTimestamp(int columnIndex,
Calendar cal)
|
Timestamp |
getTimestamp(String columnName)
|
Timestamp |
getTimestamp(String columnName,
Calendar cal)
|
int |
getType()
|
AbstractType |
getType(int columnIndex)
|
URL |
getURL(int columnIndex)
|
URL |
getURL(String columnName)
|
SQLWarning |
getWarnings()
|
void |
setFetchDirection(int direction)
|
void |
setFetchSize(int rows)
|
boolean |
wasNull()
Return the wasNull flag. |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected int fetchDirection
protected int fetchSize
protected boolean isClosed
protected ConversionContext resContext
protected Object resData
protected AbstractType[] resTypes
private int resultSetType
Constructor Detail |
protected AbstractResultSet(int fetchDirection, int resultSetType, ConversionContext resContext, AbstractType[] resTypes)
Method Detail |
public final void clearWarnings() throws SQLException
clearWarnings
in interface ResultSet
SQLException
public void close()
close
in interface ResultSet
public final void finalize() throws Throwable
finalize
in class Object
Throwable
close()
public int findColumn(String columnName) throws SQLException
findColumn
in interface ResultSet
SQLException
public final Array getArray(int columnIndex) throws SQLException
getArray
in interface ResultSet
SQLException
public final Array getArray(String columnName) throws SQLException
getArray
in interface ResultSet
SQLException
public final InputStream getAsciiStream(int columnIndex) throws SQLException
getAsciiStream
in interface ResultSet
SQLException
public final InputStream getAsciiStream(String columnName) throws SQLException
getAsciiStream
in interface ResultSet
SQLException
public final BigDecimal getBigDecimal(int columnIndex) throws SQLException
getBigDecimal
in interface ResultSet
SQLException
public final BigDecimal getBigDecimal(String columnName) throws SQLException
getBigDecimal
in interface ResultSet
SQLException
public final InputStream getBinaryStream(int columnIndex) throws SQLException
getBinaryStream
in interface ResultSet
SQLException
public final InputStream getBinaryStream(String columnName) throws SQLException
getBinaryStream
in interface ResultSet
SQLException
public final Blob getBlob(int columnIndex) throws SQLException
getBlob
in interface ResultSet
SQLException
public final Blob getBlob(String columnName) throws SQLException
getBlob
in interface ResultSet
SQLException
public final boolean getBoolean(int columnIndex) throws SQLException
getBoolean
in interface ResultSet
SQLException
public final boolean getBoolean(String columnName) throws SQLException
getBoolean
in interface ResultSet
SQLException
public final byte getByte(int columnIndex) throws SQLException
getByte
in interface ResultSet
SQLException
public final byte getByte(String columnName) throws SQLException
getByte
in interface ResultSet
SQLException
public final byte[] getBytes(int columnIndex) throws SQLException
getBytes
in interface ResultSet
SQLException
public final byte[] getBytes(String columnName) throws SQLException
getBytes
in interface ResultSet
SQLException
public final Reader getCharacterStream(int columnIndex) throws SQLException
getCharacterStream
in interface ResultSet
SQLException
public final Reader getCharacterStream(String columnName) throws SQLException
getCharacterStream
in interface ResultSet
SQLException
public final Clob getClob(int columnIndex) throws SQLException
getClob
in interface ResultSet
SQLException
public final Clob getClob(String columnName) throws SQLException
getClob
in interface ResultSet
SQLException
public final ConversionContext getContext()
public final Date getDate(int columnIndex) throws SQLException
getDate
in interface ResultSet
SQLException
public final Date getDate(int columnIndex, Calendar cal) throws SQLException
getDate
in interface ResultSet
SQLException
public final Date getDate(String columnName) throws SQLException
getDate
in interface ResultSet
SQLException
public final Date getDate(String columnName, Calendar cal) throws SQLException
getDate
in interface ResultSet
SQLException
public final double getDouble(int columnIndex) throws SQLException
getDouble
in interface ResultSet
SQLException
public final double getDouble(String columnName) throws SQLException
getDouble
in interface ResultSet
SQLException
public final int getFetchDirection() throws SQLException
getFetchDirection
in interface ResultSet
SQLException
public final int getFetchSize() throws SQLException
getFetchSize
in interface ResultSet
SQLException
public final float getFloat(int columnIndex) throws SQLException
getFloat
in interface ResultSet
SQLException
public final float getFloat(String columnName) throws SQLException
getFloat
in interface ResultSet
SQLException
public final int getInt(int columnIndex) throws SQLException
getInt
in interface ResultSet
SQLException
public final int getInt(String columnName) throws SQLException
getInt
in interface ResultSet
SQLException
public final long getLong(int columnIndex) throws SQLException
getLong
in interface ResultSet
SQLException
public final long getLong(String columnName) throws SQLException
getLong
in interface ResultSet
SQLException
public final Object getObject(int columnIndex) throws SQLException
getObject
in interface ResultSet
SQLException
public final Object getObject(int columnIndex, Map map) throws SQLException
getObject
in interface ResultSet
SQLException
public final Object getObject(String columnName) throws SQLException
getObject
in interface ResultSet
SQLException
public final Object getObject(String columnName, Map map) throws SQLException
getObject
in interface ResultSet
SQLException
public final Ref getRef(int columnIndex) throws SQLException
getRef
in interface ResultSet
SQLException
public final Ref getRef(String columnName) throws SQLException
getRef
in interface ResultSet
SQLException
public final short getShort(int columnIndex) throws SQLException
getShort
in interface ResultSet
SQLException
public final short getShort(String columnName) throws SQLException
getShort
in interface ResultSet
SQLException
public final String getString(int columnIndex) throws SQLException
getString
in interface ResultSet
SQLException
public final String getString(String columnName) throws SQLException
getString
in interface ResultSet
SQLException
public final Time getTime(int columnIndex) throws SQLException
getTime
in interface ResultSet
SQLException
public final Time getTime(int columnIndex, Calendar cal) throws SQLException
getTime
in interface ResultSet
SQLException
public final Time getTime(String columnName) throws SQLException
getTime
in interface ResultSet
SQLException
public final Time getTime(String columnName, Calendar cal) throws SQLException
getTime
in interface ResultSet
SQLException
public final Timestamp getTimestamp(int columnIndex) throws SQLException
getTimestamp
in interface ResultSet
SQLException
public final Timestamp getTimestamp(int columnIndex, Calendar cal) throws SQLException
getTimestamp
in interface ResultSet
SQLException
public final Timestamp getTimestamp(String columnName) throws SQLException
getTimestamp
in interface ResultSet
SQLException
public final Timestamp getTimestamp(String columnName, Calendar cal) throws SQLException
getTimestamp
in interface ResultSet
SQLException
public final int getType()
getType
in interface ResultSet
public final AbstractType getType(int columnIndex)
public final URL getURL(int columnIndex) throws SQLException
getURL
in interface ResultSet
SQLException
public final URL getURL(String columnName) throws SQLException
getURL
in interface ResultSet
SQLException
public final SQLWarning getWarnings() throws SQLException
getWarnings
in interface ResultSet
SQLException
public final void setFetchDirection(int direction) throws SQLException
setFetchDirection
in interface ResultSet
SQLException
public final void setFetchSize(int rows) throws SQLException
setFetchSize
in interface ResultSet
SQLException
public final boolean wasNull() throws SQLException
wasNull
in interface ResultSet
SQLException
|
jxDBCon 0.9z | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |