org.postgresql.pljava.jdbc
Class AbstractResultSet
java.lang.Object
org.postgresql.pljava.jdbc.AbstractResultSet
- All Implemented Interfaces:
- ResultSet
- Direct Known Subclasses:
- ObjectResultSet
public abstract class AbstractResultSet
- extends Object
- implements ResultSet
The AbstractResultSet
serves as a base class for implementations
of theResultSet
interface. All calls using columnNames are
translated into the corresponding call with index position computed using
a call to findColumn
.
- Author:
- Thomas Hallgren
Method Summary |
Array |
getArray(String columnName)
|
InputStream |
getAsciiStream(String columnName)
|
BigDecimal |
getBigDecimal(String columnName)
|
BigDecimal |
getBigDecimal(String columnName,
int scale)
Deprecated. |
InputStream |
getBinaryStream(String columnName)
|
Blob |
getBlob(String columnName)
|
boolean |
getBoolean(String columnName)
|
byte |
getByte(String columnName)
|
byte[] |
getBytes(String columnName)
|
Reader |
getCharacterStream(String columnName)
|
Clob |
getClob(String columnName)
|
String |
getCursorName()
|
Date |
getDate(String columnName)
|
Date |
getDate(String columnName,
Calendar cal)
|
double |
getDouble(String columnName)
|
float |
getFloat(String columnName)
|
int |
getInt(String columnName)
|
long |
getLong(String columnName)
|
Object |
getObject(String columnName)
|
Object |
getObject(String columnName,
Map map)
|
Ref |
getRef(String columnName)
|
short |
getShort(String columnName)
|
Statement |
getStatement()
|
String |
getString(String columnName)
|
Time |
getTime(String columnName)
|
Time |
getTime(String columnName,
Calendar cal)
|
Timestamp |
getTimestamp(String columnName)
|
Timestamp |
getTimestamp(String columnName,
Calendar cal)
|
InputStream |
getUnicodeStream(String columnName)
Deprecated. |
URL |
getURL(String columnName)
|
void |
updateArray(String columnName,
Array x)
|
void |
updateAsciiStream(String columnName,
InputStream x,
int length)
|
void |
updateBigDecimal(String columnName,
BigDecimal x)
|
void |
updateBinaryStream(String columnName,
InputStream x,
int length)
|
void |
updateBlob(String columnName,
Blob x)
|
void |
updateBoolean(String columnName,
boolean x)
|
void |
updateByte(String columnName,
byte x)
|
void |
updateBytes(String columnName,
byte[] x)
|
void |
updateCharacterStream(String columnName,
Reader x,
int length)
|
void |
updateClob(String columnName,
Clob x)
|
void |
updateDate(String columnName,
Date x)
|
void |
updateDouble(String columnName,
double x)
|
void |
updateFloat(String columnName,
float x)
|
void |
updateInt(String columnName,
int x)
|
void |
updateLong(String columnName,
long x)
|
void |
updateNull(String columnName)
|
void |
updateObject(String columnName,
Object x)
|
void |
updateObject(String columnName,
Object x,
int scale)
|
void |
updateRef(String columnName,
Ref x)
|
void |
updateShort(String columnName,
short x)
|
void |
updateString(String columnName,
String x)
|
void |
updateTime(String columnName,
Time x)
|
void |
updateTimestamp(String columnName,
Timestamp x)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.sql.ResultSet |
absolute, afterLast, beforeFirst, cancelRowUpdates, clearWarnings, close, deleteRow, findColumn, first, getArray, getAsciiStream, getBigDecimal, getBigDecimal, getBinaryStream, getBlob, getBoolean, getByte, getBytes, getCharacterStream, getClob, getConcurrency, getDate, getDate, getDouble, getFetchDirection, getFetchSize, getFloat, getInt, getLong, getMetaData, getObject, getObject, getRef, getRow, getShort, getString, getTime, getTime, getTimestamp, getTimestamp, getType, getUnicodeStream, getURL, getWarnings, insertRow, isAfterLast, isBeforeFirst, isFirst, isLast, last, moveToCurrentRow, moveToInsertRow, next, previous, refreshRow, relative, rowDeleted, rowInserted, rowUpdated, setFetchDirection, setFetchSize, updateArray, updateAsciiStream, updateBigDecimal, updateBinaryStream, updateBlob, updateBoolean, updateByte, updateBytes, updateCharacterStream, updateClob, updateDate, updateDouble, updateFloat, updateInt, updateLong, updateNull, updateObject, updateObject, updateRef, updateRow, updateShort, updateString, updateTime, updateTimestamp, wasNull |
AbstractResultSet
public AbstractResultSet()
getArray
public Array getArray(String columnName)
throws SQLException
- Specified by:
getArray
in interface ResultSet
- Throws:
SQLException
getAsciiStream
public InputStream getAsciiStream(String columnName)
throws SQLException
- Specified by:
getAsciiStream
in interface ResultSet
- Throws:
SQLException
getBigDecimal
public BigDecimal getBigDecimal(String columnName)
throws SQLException
- Specified by:
getBigDecimal
in interface ResultSet
- Throws:
SQLException
getBigDecimal
public BigDecimal getBigDecimal(String columnName,
int scale)
throws SQLException
- Deprecated.
- Specified by:
getBigDecimal
in interface ResultSet
- Throws:
SQLException
getBinaryStream
public InputStream getBinaryStream(String columnName)
throws SQLException
- Specified by:
getBinaryStream
in interface ResultSet
- Throws:
SQLException
getBlob
public Blob getBlob(String columnName)
throws SQLException
- Specified by:
getBlob
in interface ResultSet
- Throws:
SQLException
getBoolean
public boolean getBoolean(String columnName)
throws SQLException
- Specified by:
getBoolean
in interface ResultSet
- Throws:
SQLException
getByte
public byte getByte(String columnName)
throws SQLException
- Specified by:
getByte
in interface ResultSet
- Throws:
SQLException
getBytes
public byte[] getBytes(String columnName)
throws SQLException
- Specified by:
getBytes
in interface ResultSet
- Throws:
SQLException
getCharacterStream
public Reader getCharacterStream(String columnName)
throws SQLException
- Specified by:
getCharacterStream
in interface ResultSet
- Throws:
SQLException
getClob
public Clob getClob(String columnName)
throws SQLException
- Specified by:
getClob
in interface ResultSet
- Throws:
SQLException
getCursorName
public String getCursorName()
throws SQLException
- Specified by:
getCursorName
in interface ResultSet
- Throws:
SQLException
getDate
public Date getDate(String columnName)
throws SQLException
- Specified by:
getDate
in interface ResultSet
- Throws:
SQLException
getDate
public Date getDate(String columnName,
Calendar cal)
throws SQLException
- Specified by:
getDate
in interface ResultSet
- Throws:
SQLException
getDouble
public double getDouble(String columnName)
throws SQLException
- Specified by:
getDouble
in interface ResultSet
- Throws:
SQLException
getFloat
public float getFloat(String columnName)
throws SQLException
- Specified by:
getFloat
in interface ResultSet
- Throws:
SQLException
getInt
public int getInt(String columnName)
throws SQLException
- Specified by:
getInt
in interface ResultSet
- Throws:
SQLException
getLong
public long getLong(String columnName)
throws SQLException
- Specified by:
getLong
in interface ResultSet
- Throws:
SQLException
getObject
public Object getObject(String columnName)
throws SQLException
- Specified by:
getObject
in interface ResultSet
- Throws:
SQLException
getObject
public Object getObject(String columnName,
Map map)
throws SQLException
- Specified by:
getObject
in interface ResultSet
- Throws:
SQLException
getRef
public Ref getRef(String columnName)
throws SQLException
- Specified by:
getRef
in interface ResultSet
- Throws:
SQLException
getShort
public short getShort(String columnName)
throws SQLException
- Specified by:
getShort
in interface ResultSet
- Throws:
SQLException
getStatement
public Statement getStatement()
throws SQLException
- Specified by:
getStatement
in interface ResultSet
- Throws:
SQLException
getString
public String getString(String columnName)
throws SQLException
- Specified by:
getString
in interface ResultSet
- Throws:
SQLException
getTime
public Time getTime(String columnName)
throws SQLException
- Specified by:
getTime
in interface ResultSet
- Throws:
SQLException
getTime
public Time getTime(String columnName,
Calendar cal)
throws SQLException
- Specified by:
getTime
in interface ResultSet
- Throws:
SQLException
getTimestamp
public Timestamp getTimestamp(String columnName)
throws SQLException
- Specified by:
getTimestamp
in interface ResultSet
- Throws:
SQLException
getTimestamp
public Timestamp getTimestamp(String columnName,
Calendar cal)
throws SQLException
- Specified by:
getTimestamp
in interface ResultSet
- Throws:
SQLException
getUnicodeStream
public InputStream getUnicodeStream(String columnName)
throws SQLException
- Deprecated.
- Specified by:
getUnicodeStream
in interface ResultSet
- Throws:
SQLException
getURL
public URL getURL(String columnName)
throws SQLException
- Specified by:
getURL
in interface ResultSet
- Throws:
SQLException
updateArray
public void updateArray(String columnName,
Array x)
throws SQLException
- Specified by:
updateArray
in interface ResultSet
- Throws:
SQLException
updateAsciiStream
public void updateAsciiStream(String columnName,
InputStream x,
int length)
throws SQLException
- Specified by:
updateAsciiStream
in interface ResultSet
- Throws:
SQLException
updateBigDecimal
public void updateBigDecimal(String columnName,
BigDecimal x)
throws SQLException
- Specified by:
updateBigDecimal
in interface ResultSet
- Throws:
SQLException
updateBinaryStream
public void updateBinaryStream(String columnName,
InputStream x,
int length)
throws SQLException
- Specified by:
updateBinaryStream
in interface ResultSet
- Throws:
SQLException
updateBlob
public void updateBlob(String columnName,
Blob x)
throws SQLException
- Specified by:
updateBlob
in interface ResultSet
- Throws:
SQLException
updateBoolean
public void updateBoolean(String columnName,
boolean x)
throws SQLException
- Specified by:
updateBoolean
in interface ResultSet
- Throws:
SQLException
updateByte
public void updateByte(String columnName,
byte x)
throws SQLException
- Specified by:
updateByte
in interface ResultSet
- Throws:
SQLException
updateBytes
public void updateBytes(String columnName,
byte[] x)
throws SQLException
- Specified by:
updateBytes
in interface ResultSet
- Throws:
SQLException
updateCharacterStream
public void updateCharacterStream(String columnName,
Reader x,
int length)
throws SQLException
- Specified by:
updateCharacterStream
in interface ResultSet
- Throws:
SQLException
updateClob
public void updateClob(String columnName,
Clob x)
throws SQLException
- Specified by:
updateClob
in interface ResultSet
- Throws:
SQLException
updateDate
public void updateDate(String columnName,
Date x)
throws SQLException
- Specified by:
updateDate
in interface ResultSet
- Throws:
SQLException
updateDouble
public void updateDouble(String columnName,
double x)
throws SQLException
- Specified by:
updateDouble
in interface ResultSet
- Throws:
SQLException
updateFloat
public void updateFloat(String columnName,
float x)
throws SQLException
- Specified by:
updateFloat
in interface ResultSet
- Throws:
SQLException
updateInt
public void updateInt(String columnName,
int x)
throws SQLException
- Specified by:
updateInt
in interface ResultSet
- Throws:
SQLException
updateLong
public void updateLong(String columnName,
long x)
throws SQLException
- Specified by:
updateLong
in interface ResultSet
- Throws:
SQLException
updateNull
public void updateNull(String columnName)
throws SQLException
- Specified by:
updateNull
in interface ResultSet
- Throws:
SQLException
updateObject
public void updateObject(String columnName,
Object x)
throws SQLException
- Specified by:
updateObject
in interface ResultSet
- Throws:
SQLException
updateObject
public void updateObject(String columnName,
Object x,
int scale)
throws SQLException
- Specified by:
updateObject
in interface ResultSet
- Throws:
SQLException
updateRef
public void updateRef(String columnName,
Ref x)
throws SQLException
- Specified by:
updateRef
in interface ResultSet
- Throws:
SQLException
updateShort
public void updateShort(String columnName,
short x)
throws SQLException
- Specified by:
updateShort
in interface ResultSet
- Throws:
SQLException
updateString
public void updateString(String columnName,
String x)
throws SQLException
- Specified by:
updateString
in interface ResultSet
- Throws:
SQLException
updateTime
public void updateTime(String columnName,
Time x)
throws SQLException
- Specified by:
updateTime
in interface ResultSet
- Throws:
SQLException
updateTimestamp
public void updateTimestamp(String columnName,
Timestamp x)
throws SQLException
- Specified by:
updateTimestamp
in interface ResultSet
- Throws:
SQLException