|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 Objectpublic boolean equals(Object other)
equals in class Objectpublic String toString()
toString in class Objectprotected void appendInfo(StringBuffer buf)
public boolean next()
throws SQLException
next in interface ResultSetSQLException
public void close()
throws SQLException
close in interface ResultSetclose in interface CloseableSQLException
public boolean wasNull()
throws SQLException
wasNull in interface ResultSetSQLException
public String getString(int a)
throws SQLException
getString in interface ResultSetSQLException
public boolean getBoolean(int a)
throws SQLException
getBoolean in interface ResultSetSQLException
public byte getByte(int a)
throws SQLException
getByte in interface ResultSetSQLException
public short getShort(int a)
throws SQLException
getShort in interface ResultSetSQLException
public int getInt(int a)
throws SQLException
getInt in interface ResultSetSQLException
public long getLong(int a)
throws SQLException
getLong in interface ResultSetSQLException
public float getFloat(int a)
throws SQLException
getFloat in interface ResultSetSQLException
public double getDouble(int a)
throws SQLException
getDouble in interface ResultSetSQLException
@Deprecated
public BigDecimal getBigDecimal(int a,
int b)
throws SQLException
getBigDecimal in interface ResultSetSQLException
public byte[] getBytes(int a)
throws SQLException
getBytes in interface ResultSetSQLException
public Date getDate(int a)
throws SQLException
getDate in interface ResultSetSQLException
public Time getTime(int a)
throws SQLException
getTime in interface ResultSetSQLException
public Timestamp getTimestamp(int a)
throws SQLException
getTimestamp in interface ResultSetSQLException
public InputStream getAsciiStream(int a)
throws SQLException
getAsciiStream in interface ResultSetSQLException
@Deprecated
public InputStream getUnicodeStream(int a)
throws SQLException
getUnicodeStream in interface ResultSetSQLException
public InputStream getBinaryStream(int a)
throws SQLException
getBinaryStream in interface ResultSetSQLException
public String getString(String a)
throws SQLException
getString in interface ResultSetSQLException
public boolean getBoolean(String a)
throws SQLException
getBoolean in interface ResultSetSQLException
public byte getByte(String a)
throws SQLException
getByte in interface ResultSetSQLException
public short getShort(String a)
throws SQLException
getShort in interface ResultSetSQLException
public int getInt(String a)
throws SQLException
getInt in interface ResultSetSQLException
public long getLong(String a)
throws SQLException
getLong in interface ResultSetSQLException
public float getFloat(String a)
throws SQLException
getFloat in interface ResultSetSQLException
public double getDouble(String a)
throws SQLException
getDouble in interface ResultSetSQLException
@Deprecated
public BigDecimal getBigDecimal(String a,
int b)
throws SQLException
getBigDecimal in interface ResultSetSQLException
public byte[] getBytes(String a)
throws SQLException
getBytes in interface ResultSetSQLException
public Date getDate(String a)
throws SQLException
getDate in interface ResultSetSQLException
public Time getTime(String a)
throws SQLException
getTime in interface ResultSetSQLException
public Timestamp getTimestamp(String a)
throws SQLException
getTimestamp in interface ResultSetSQLException
public InputStream getAsciiStream(String a)
throws SQLException
getAsciiStream in interface ResultSetSQLException
@Deprecated
public InputStream getUnicodeStream(String a)
throws SQLException
getUnicodeStream in interface ResultSetSQLException
public InputStream getBinaryStream(String a)
throws SQLException
getBinaryStream in interface ResultSetSQLException
public SQLWarning getWarnings()
throws SQLException
getWarnings in interface ResultSetSQLException
public void clearWarnings()
throws SQLException
clearWarnings in interface ResultSetSQLException
public String getCursorName()
throws SQLException
getCursorName in interface ResultSetSQLException
public ResultSetMetaData getMetaData()
throws SQLException
getMetaData in interface ResultSetSQLException
public Object getObject(int a)
throws SQLException
getObject in interface ResultSetSQLException
public Object getObject(String a)
throws SQLException
getObject in interface ResultSetSQLException
public int findColumn(String a)
throws SQLException
findColumn in interface ResultSetSQLException
public Reader getCharacterStream(int a)
throws SQLException
getCharacterStream in interface ResultSetSQLException
public Reader getCharacterStream(String a)
throws SQLException
getCharacterStream in interface ResultSetSQLException
public BigDecimal getBigDecimal(int a)
throws SQLException
getBigDecimal in interface ResultSetSQLException
public BigDecimal getBigDecimal(String a)
throws SQLException
getBigDecimal in interface ResultSetSQLException
public boolean isBeforeFirst()
throws SQLException
isBeforeFirst in interface ResultSetSQLException
public boolean isAfterLast()
throws SQLException
isAfterLast in interface ResultSetSQLException
public boolean isFirst()
throws SQLException
isFirst in interface ResultSetSQLException
public boolean isLast()
throws SQLException
isLast in interface ResultSetSQLException
public void beforeFirst()
throws SQLException
beforeFirst in interface ResultSetSQLException
public void afterLast()
throws SQLException
afterLast in interface ResultSetSQLException
public boolean first()
throws SQLException
first in interface ResultSetSQLException
public boolean last()
throws SQLException
last in interface ResultSetSQLException
public int getRow()
throws SQLException
getRow in interface ResultSetSQLException
public boolean absolute(int a)
throws SQLException
absolute in interface ResultSetSQLException
public boolean relative(int a)
throws SQLException
relative in interface ResultSetSQLException
public boolean previous()
throws SQLException
previous in interface ResultSetSQLException
public void setFetchDirection(int a)
throws SQLException
setFetchDirection in interface ResultSetSQLException
public int getFetchDirection()
throws SQLException
getFetchDirection in interface ResultSetSQLException
public void setFetchSize(int a)
throws SQLException
setFetchSize in interface ResultSetSQLException
public int getFetchSize()
throws SQLException
getFetchSize in interface ResultSetSQLException
public int getType()
throws SQLException
getType in interface ResultSetSQLException
public int getConcurrency()
throws SQLException
getConcurrency in interface ResultSetSQLException
public boolean rowUpdated()
throws SQLException
rowUpdated in interface ResultSetSQLException
public boolean rowInserted()
throws SQLException
rowInserted in interface ResultSetSQLException
public boolean rowDeleted()
throws SQLException
rowDeleted in interface ResultSetSQLException
public void updateNull(int a)
throws SQLException
updateNull in interface ResultSetSQLException
public void updateBoolean(int a,
boolean b)
throws SQLException
updateBoolean in interface ResultSetSQLException
public void updateByte(int a,
byte b)
throws SQLException
updateByte in interface ResultSetSQLException
public void updateShort(int a,
short b)
throws SQLException
updateShort in interface ResultSetSQLException
public void updateInt(int a,
int b)
throws SQLException
updateInt in interface ResultSetSQLException
public void updateLong(int a,
long b)
throws SQLException
updateLong in interface ResultSetSQLException
public void updateFloat(int a,
float b)
throws SQLException
updateFloat in interface ResultSetSQLException
public void updateDouble(int a,
double b)
throws SQLException
updateDouble in interface ResultSetSQLException
public void updateBigDecimal(int a,
BigDecimal b)
throws SQLException
updateBigDecimal in interface ResultSetSQLException
public void updateString(int a,
String b)
throws SQLException
updateString in interface ResultSetSQLException
public void updateBytes(int a,
byte[] b)
throws SQLException
updateBytes in interface ResultSetSQLException
public void updateDate(int a,
Date b)
throws SQLException
updateDate in interface ResultSetSQLException
public void updateTime(int a,
Time b)
throws SQLException
updateTime in interface ResultSetSQLException
public void updateTimestamp(int a,
Timestamp b)
throws SQLException
updateTimestamp in interface ResultSetSQLException
public void updateAsciiStream(int a,
InputStream in,
int b)
throws SQLException
updateAsciiStream in interface ResultSetSQLException
public void updateBinaryStream(int a,
InputStream in,
int b)
throws SQLException
updateBinaryStream in interface ResultSetSQLException
public void updateBlob(int a,
Blob blob)
throws SQLException
updateBlob in interface ResultSetSQLException
public void updateCharacterStream(int a,
Reader reader,
int b)
throws SQLException
updateCharacterStream in interface ResultSetSQLException
public void updateClob(int a,
Clob clob)
throws SQLException
updateClob in interface ResultSetSQLException
public void updateObject(int a,
Object ob,
int b)
throws SQLException
updateObject in interface ResultSetSQLException
public void updateObject(int a,
Object ob)
throws SQLException
updateObject in interface ResultSetSQLException
public void updateNull(String a)
throws SQLException
updateNull in interface ResultSetSQLException
public void updateBoolean(String a,
boolean b)
throws SQLException
updateBoolean in interface ResultSetSQLException
public void updateByte(String a,
byte b)
throws SQLException
updateByte in interface ResultSetSQLException
public void updateShort(String a,
short b)
throws SQLException
updateShort in interface ResultSetSQLException
public void updateInt(String a,
int b)
throws SQLException
updateInt in interface ResultSetSQLException
public void updateLong(String a,
long b)
throws SQLException
updateLong in interface ResultSetSQLException
public void updateFloat(String a,
float b)
throws SQLException
updateFloat in interface ResultSetSQLException
public void updateDouble(String a,
double b)
throws SQLException
updateDouble in interface ResultSetSQLException
public void updateBigDecimal(String a,
BigDecimal b)
throws SQLException
updateBigDecimal in interface ResultSetSQLException
public void updateString(String a,
String b)
throws SQLException
updateString in interface ResultSetSQLException
public void updateBytes(String a,
byte[] b)
throws SQLException
updateBytes in interface ResultSetSQLException
public void updateDate(String a,
Date b)
throws SQLException
updateDate in interface ResultSetSQLException
public void updateTime(String a,
Time b)
throws SQLException
updateTime in interface ResultSetSQLException
public void updateTimestamp(String a,
Timestamp b)
throws SQLException
updateTimestamp in interface ResultSetSQLException
public void updateAsciiStream(String a,
InputStream in,
int b)
throws SQLException
updateAsciiStream in interface ResultSetSQLException
public void updateBinaryStream(String a,
InputStream in,
int b)
throws SQLException
updateBinaryStream in interface ResultSetSQLException
public void updateCharacterStream(String a,
Reader reader,
int b)
throws SQLException
updateCharacterStream in interface ResultSetSQLException
public void updateObject(String a,
Object ob,
int b)
throws SQLException
updateObject in interface ResultSetSQLException
public void updateObject(String a,
Object b)
throws SQLException
updateObject in interface ResultSetSQLException
public void insertRow()
throws SQLException
insertRow in interface ResultSetSQLException
public void updateRow()
throws SQLException
updateRow in interface ResultSetSQLException
public void deleteRow()
throws SQLException
deleteRow in interface ResultSetSQLException
public void refreshRow()
throws SQLException
refreshRow in interface ResultSetSQLException
public void cancelRowUpdates()
throws SQLException
cancelRowUpdates in interface ResultSetSQLException
public void moveToInsertRow()
throws SQLException
moveToInsertRow in interface ResultSetSQLException
public void moveToCurrentRow()
throws SQLException
moveToCurrentRow in interface ResultSetSQLException
public Statement getStatement()
throws SQLException
getStatement in interface ResultSetSQLException
public Object getObject(int a,
Map<String,Class<?>> b)
throws SQLException
getObject in interface ResultSetSQLException
public Ref getRef(int a)
throws SQLException
getRef in interface ResultSetSQLException
public Blob getBlob(int a)
throws SQLException
getBlob in interface ResultSetSQLException
public Clob getClob(int a)
throws SQLException
getClob in interface ResultSetSQLException
public Array getArray(int a)
throws SQLException
getArray in interface ResultSetSQLException
public Object getObject(String a,
Map<String,Class<?>> b)
throws SQLException
getObject in interface ResultSetSQLException
public Ref getRef(String a)
throws SQLException
getRef in interface ResultSetSQLException
public Blob getBlob(String a)
throws SQLException
getBlob in interface ResultSetSQLException
public Clob getClob(String a)
throws SQLException
getClob in interface ResultSetSQLException
public Array getArray(String a)
throws SQLException
getArray in interface ResultSetSQLException
public Date getDate(int a,
Calendar b)
throws SQLException
getDate in interface ResultSetSQLException
public Date getDate(String a,
Calendar b)
throws SQLException
getDate in interface ResultSetSQLException
public Time getTime(int a,
Calendar b)
throws SQLException
getTime in interface ResultSetSQLException
public Time getTime(String a,
Calendar b)
throws SQLException
getTime in interface ResultSetSQLException
public Timestamp getTimestamp(int a,
Calendar b)
throws SQLException
getTimestamp in interface ResultSetSQLException
public Timestamp getTimestamp(String a,
Calendar b)
throws SQLException
getTimestamp in interface ResultSetSQLException
public URL getURL(int column)
throws SQLException
getURL in interface ResultSetSQLException
public URL getURL(String columnName)
throws SQLException
getURL in interface ResultSetSQLException
public void updateRef(int column,
Ref ref)
throws SQLException
updateRef in interface ResultSetSQLException
public void updateRef(String columnName,
Ref ref)
throws SQLException
updateRef in interface ResultSetSQLException
public void updateBlob(String columnName,
Blob blob)
throws SQLException
updateBlob in interface ResultSetSQLException
public void updateClob(String columnName,
Clob clob)
throws SQLException
updateClob in interface ResultSetSQLException
public void updateArray(int column,
Array array)
throws SQLException
updateArray in interface ResultSetSQLException
public void updateArray(String columnName,
Array array)
throws SQLException
updateArray in interface ResultSetSQLExceptionpublic boolean isWrapperFor(Class iface)
isWrapperFor in interface Wrapperpublic Object unwrap(Class iface)
unwrap in interface Wrapper
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||