|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.lib.jdbc.DelegatingResultSet
public abstract class DelegatingResultSet
Wrapper around an existing result set. Subclasses can override the
methods whose behavior they mean to change. The equals
and
hashCode
methods pass through to the base underlying data
store statement.
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 |
Constructor Summary | |
---|---|
DelegatingResultSet(ResultSet rs,
Statement stmnt)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DelegatingResultSet(ResultSet rs, Statement stmnt)
Method Detail |
---|
public static DelegatingResultSet newInstance(ResultSet rs, Statement stmnt)
protected abstract void enforceAbstract()
public ResultSet getDelegate()
public ResultSet getInnermostDelegate()
public int hashCode()
hashCode
in class Object
public boolean equals(Object other)
equals
in class Object
public String toString()
toString
in class Object
protected void appendInfo(StringBuffer buf)
public boolean next() throws SQLException
next
in interface ResultSet
SQLException
public void close() throws SQLException
close
in interface ResultSet
close
in interface Closeable
SQLException
public boolean wasNull() throws SQLException
wasNull
in interface ResultSet
SQLException
public String getString(int a) throws SQLException
getString
in interface ResultSet
SQLException
public boolean getBoolean(int a) throws SQLException
getBoolean
in interface ResultSet
SQLException
public byte getByte(int a) throws SQLException
getByte
in interface ResultSet
SQLException
public short getShort(int a) throws SQLException
getShort
in interface ResultSet
SQLException
public int getInt(int a) throws SQLException
getInt
in interface ResultSet
SQLException
public long getLong(int a) throws SQLException
getLong
in interface ResultSet
SQLException
public float getFloat(int a) throws SQLException
getFloat
in interface ResultSet
SQLException
public double getDouble(int a) throws SQLException
getDouble
in interface ResultSet
SQLException
@Deprecated public BigDecimal getBigDecimal(int a, int b) throws SQLException
getBigDecimal
in interface ResultSet
SQLException
public byte[] getBytes(int a) throws SQLException
getBytes
in interface ResultSet
SQLException
public Date getDate(int a) throws SQLException
getDate
in interface ResultSet
SQLException
public Time getTime(int a) throws SQLException
getTime
in interface ResultSet
SQLException
public Timestamp getTimestamp(int a) throws SQLException
getTimestamp
in interface ResultSet
SQLException
public InputStream getAsciiStream(int a) throws SQLException
getAsciiStream
in interface ResultSet
SQLException
@Deprecated public InputStream getUnicodeStream(int a) throws SQLException
getUnicodeStream
in interface ResultSet
SQLException
public InputStream getBinaryStream(int a) throws SQLException
getBinaryStream
in interface ResultSet
SQLException
public String getString(String a) throws SQLException
getString
in interface ResultSet
SQLException
public boolean getBoolean(String a) throws SQLException
getBoolean
in interface ResultSet
SQLException
public byte getByte(String a) throws SQLException
getByte
in interface ResultSet
SQLException
public short getShort(String a) throws SQLException
getShort
in interface ResultSet
SQLException
public int getInt(String a) throws SQLException
getInt
in interface ResultSet
SQLException
public long getLong(String a) throws SQLException
getLong
in interface ResultSet
SQLException
public float getFloat(String a) throws SQLException
getFloat
in interface ResultSet
SQLException
public double getDouble(String a) throws SQLException
getDouble
in interface ResultSet
SQLException
@Deprecated public BigDecimal getBigDecimal(String a, int b) throws SQLException
getBigDecimal
in interface ResultSet
SQLException
public byte[] getBytes(String a) throws SQLException
getBytes
in interface ResultSet
SQLException
public Date getDate(String a) throws SQLException
getDate
in interface ResultSet
SQLException
public Time getTime(String a) throws SQLException
getTime
in interface ResultSet
SQLException
public Timestamp getTimestamp(String a) throws SQLException
getTimestamp
in interface ResultSet
SQLException
public InputStream getAsciiStream(String a) throws SQLException
getAsciiStream
in interface ResultSet
SQLException
@Deprecated public InputStream getUnicodeStream(String a) throws SQLException
getUnicodeStream
in interface ResultSet
SQLException
public InputStream getBinaryStream(String a) throws SQLException
getBinaryStream
in interface ResultSet
SQLException
public SQLWarning getWarnings() throws SQLException
getWarnings
in interface ResultSet
SQLException
public void clearWarnings() throws SQLException
clearWarnings
in interface ResultSet
SQLException
public String getCursorName() throws SQLException
getCursorName
in interface ResultSet
SQLException
public ResultSetMetaData getMetaData() throws SQLException
getMetaData
in interface ResultSet
SQLException
public Object getObject(int a) throws SQLException
getObject
in interface ResultSet
SQLException
public Object getObject(String a) throws SQLException
getObject
in interface ResultSet
SQLException
public int findColumn(String a) throws SQLException
findColumn
in interface ResultSet
SQLException
public Reader getCharacterStream(int a) throws SQLException
getCharacterStream
in interface ResultSet
SQLException
public Reader getCharacterStream(String a) throws SQLException
getCharacterStream
in interface ResultSet
SQLException
public BigDecimal getBigDecimal(int a) throws SQLException
getBigDecimal
in interface ResultSet
SQLException
public BigDecimal getBigDecimal(String a) throws SQLException
getBigDecimal
in interface ResultSet
SQLException
public boolean isBeforeFirst() throws SQLException
isBeforeFirst
in interface ResultSet
SQLException
public boolean isAfterLast() throws SQLException
isAfterLast
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 void beforeFirst() throws SQLException
beforeFirst
in interface ResultSet
SQLException
public void afterLast() throws SQLException
afterLast
in interface ResultSet
SQLException
public boolean first() throws SQLException
first
in interface ResultSet
SQLException
public boolean last() throws SQLException
last
in interface ResultSet
SQLException
public int getRow() throws SQLException
getRow
in interface ResultSet
SQLException
public boolean absolute(int a) throws SQLException
absolute
in interface ResultSet
SQLException
public boolean relative(int a) throws SQLException
relative
in interface ResultSet
SQLException
public boolean previous() throws SQLException
previous
in interface ResultSet
SQLException
public void setFetchDirection(int a) throws SQLException
setFetchDirection
in interface ResultSet
SQLException
public int getFetchDirection() throws SQLException
getFetchDirection
in interface ResultSet
SQLException
public void setFetchSize(int a) throws SQLException
setFetchSize
in interface ResultSet
SQLException
public int getFetchSize() throws SQLException
getFetchSize
in interface ResultSet
SQLException
public int getType() throws SQLException
getType
in interface ResultSet
SQLException
public int getConcurrency() throws SQLException
getConcurrency
in interface ResultSet
SQLException
public boolean rowUpdated() throws SQLException
rowUpdated
in interface ResultSet
SQLException
public boolean rowInserted() throws SQLException
rowInserted
in interface ResultSet
SQLException
public boolean rowDeleted() throws SQLException
rowDeleted
in interface ResultSet
SQLException
public void updateNull(int a) throws SQLException
updateNull
in interface ResultSet
SQLException
public void updateBoolean(int a, boolean b) throws SQLException
updateBoolean
in interface ResultSet
SQLException
public void updateByte(int a, byte b) throws SQLException
updateByte
in interface ResultSet
SQLException
public void updateShort(int a, short b) throws SQLException
updateShort
in interface ResultSet
SQLException
public void updateInt(int a, int b) throws SQLException
updateInt
in interface ResultSet
SQLException
public void updateLong(int a, long b) throws SQLException
updateLong
in interface ResultSet
SQLException
public void updateFloat(int a, float b) throws SQLException
updateFloat
in interface ResultSet
SQLException
public void updateDouble(int a, double b) throws SQLException
updateDouble
in interface ResultSet
SQLException
public void updateBigDecimal(int a, BigDecimal b) throws SQLException
updateBigDecimal
in interface ResultSet
SQLException
public void updateString(int a, String b) throws SQLException
updateString
in interface ResultSet
SQLException
public void updateBytes(int a, byte[] b) throws SQLException
updateBytes
in interface ResultSet
SQLException
public void updateDate(int a, Date b) throws SQLException
updateDate
in interface ResultSet
SQLException
public void updateTime(int a, Time b) throws SQLException
updateTime
in interface ResultSet
SQLException
public void updateTimestamp(int a, Timestamp b) throws SQLException
updateTimestamp
in interface ResultSet
SQLException
public void updateAsciiStream(int a, InputStream in, int b) throws SQLException
updateAsciiStream
in interface ResultSet
SQLException
public void updateBinaryStream(int a, InputStream in, int b) throws SQLException
updateBinaryStream
in interface ResultSet
SQLException
public void updateBlob(int a, Blob blob) throws SQLException
updateBlob
in interface ResultSet
SQLException
public void updateCharacterStream(int a, Reader reader, int b) throws SQLException
updateCharacterStream
in interface ResultSet
SQLException
public void updateClob(int a, Clob clob) throws SQLException
updateClob
in interface ResultSet
SQLException
public void updateObject(int a, Object ob, int b) throws SQLException
updateObject
in interface ResultSet
SQLException
public void updateObject(int a, Object ob) throws SQLException
updateObject
in interface ResultSet
SQLException
public void updateNull(String a) throws SQLException
updateNull
in interface ResultSet
SQLException
public void updateBoolean(String a, boolean b) throws SQLException
updateBoolean
in interface ResultSet
SQLException
public void updateByte(String a, byte b) throws SQLException
updateByte
in interface ResultSet
SQLException
public void updateShort(String a, short b) throws SQLException
updateShort
in interface ResultSet
SQLException
public void updateInt(String a, int b) throws SQLException
updateInt
in interface ResultSet
SQLException
public void updateLong(String a, long b) throws SQLException
updateLong
in interface ResultSet
SQLException
public void updateFloat(String a, float b) throws SQLException
updateFloat
in interface ResultSet
SQLException
public void updateDouble(String a, double b) throws SQLException
updateDouble
in interface ResultSet
SQLException
public void updateBigDecimal(String a, BigDecimal b) throws SQLException
updateBigDecimal
in interface ResultSet
SQLException
public void updateString(String a, String b) throws SQLException
updateString
in interface ResultSet
SQLException
public void updateBytes(String a, byte[] b) throws SQLException
updateBytes
in interface ResultSet
SQLException
public void updateDate(String a, Date b) throws SQLException
updateDate
in interface ResultSet
SQLException
public void updateTime(String a, Time b) throws SQLException
updateTime
in interface ResultSet
SQLException
public void updateTimestamp(String a, Timestamp b) throws SQLException
updateTimestamp
in interface ResultSet
SQLException
public void updateAsciiStream(String a, InputStream in, int b) throws SQLException
updateAsciiStream
in interface ResultSet
SQLException
public void updateBinaryStream(String a, InputStream in, int b) throws SQLException
updateBinaryStream
in interface ResultSet
SQLException
public void updateCharacterStream(String a, Reader reader, int b) throws SQLException
updateCharacterStream
in interface ResultSet
SQLException
public void updateObject(String a, Object ob, int b) throws SQLException
updateObject
in interface ResultSet
SQLException
public void updateObject(String a, Object b) throws SQLException
updateObject
in interface ResultSet
SQLException
public void insertRow() throws SQLException
insertRow
in interface ResultSet
SQLException
public void updateRow() throws SQLException
updateRow
in interface ResultSet
SQLException
public void deleteRow() throws SQLException
deleteRow
in interface ResultSet
SQLException
public void refreshRow() throws SQLException
refreshRow
in interface ResultSet
SQLException
public void cancelRowUpdates() throws SQLException
cancelRowUpdates
in interface ResultSet
SQLException
public void moveToInsertRow() throws SQLException
moveToInsertRow
in interface ResultSet
SQLException
public void moveToCurrentRow() throws SQLException
moveToCurrentRow
in interface ResultSet
SQLException
public Statement getStatement() throws SQLException
getStatement
in interface ResultSet
SQLException
public Object getObject(int a, Map<String,Class<?>> b) throws SQLException
getObject
in interface ResultSet
SQLException
public Ref getRef(int a) throws SQLException
getRef
in interface ResultSet
SQLException
public Blob getBlob(int a) throws SQLException
getBlob
in interface ResultSet
SQLException
public Clob getClob(int a) throws SQLException
getClob
in interface ResultSet
SQLException
public Array getArray(int a) throws SQLException
getArray
in interface ResultSet
SQLException
public Object getObject(String a, Map<String,Class<?>> b) throws SQLException
getObject
in interface ResultSet
SQLException
public Ref getRef(String a) throws SQLException
getRef
in interface ResultSet
SQLException
public Blob getBlob(String a) throws SQLException
getBlob
in interface ResultSet
SQLException
public Clob getClob(String a) throws SQLException
getClob
in interface ResultSet
SQLException
public Array getArray(String a) throws SQLException
getArray
in interface ResultSet
SQLException
public Date getDate(int a, Calendar b) throws SQLException
getDate
in interface ResultSet
SQLException
public Date getDate(String a, Calendar b) throws SQLException
getDate
in interface ResultSet
SQLException
public Time getTime(int a, Calendar b) throws SQLException
getTime
in interface ResultSet
SQLException
public Time getTime(String a, Calendar b) throws SQLException
getTime
in interface ResultSet
SQLException
public Timestamp getTimestamp(int a, Calendar b) throws SQLException
getTimestamp
in interface ResultSet
SQLException
public Timestamp getTimestamp(String a, Calendar b) throws SQLException
getTimestamp
in interface ResultSet
SQLException
public URL getURL(int column) throws SQLException
getURL
in interface ResultSet
SQLException
public URL getURL(String columnName) throws SQLException
getURL
in interface ResultSet
SQLException
public void updateRef(int column, Ref ref) throws SQLException
updateRef
in interface ResultSet
SQLException
public void updateRef(String columnName, Ref ref) throws SQLException
updateRef
in interface ResultSet
SQLException
public void updateBlob(String columnName, Blob blob) throws SQLException
updateBlob
in interface ResultSet
SQLException
public void updateClob(String columnName, Clob clob) throws SQLException
updateClob
in interface ResultSet
SQLException
public void updateArray(int column, Array array) throws SQLException
updateArray
in interface ResultSet
SQLException
public void updateArray(String columnName, Array array) throws SQLException
updateArray
in interface ResultSet
SQLException
public boolean isWrapperFor(Class iface)
isWrapperFor
in interface Wrapper
public Object unwrap(Class iface)
unwrap
in interface Wrapper
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |