com.agimatec.dbmigrate.util
Class ResultSetDelegate
java.lang.Object
com.agimatec.dbmigrate.util.ResultSetDelegate
- Direct Known Subclasses:
- SQLCursor
public class ResultSetDelegate
- extends java.lang.Object
Description: a wrapper of a result set. simply delegates all methods. use this
class for subclassing.
Copyright: Copyright (c) 2007
Company: Agimatec GmbH
- Author:
- Roman Stumm
|
Field Summary |
protected java.sql.ResultSet |
resultSet
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
resultSet
protected final java.sql.ResultSet resultSet
ResultSetDelegate
public ResultSetDelegate(java.sql.ResultSet aResultSet)
next
public boolean next()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
close
public void close()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
wasNull
public boolean wasNull()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getString
public java.lang.String getString(int columnIndex)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getBoolean
public boolean getBoolean(int columnIndex)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getByte
public byte getByte(int columnIndex)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getShort
public short getShort(int columnIndex)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getInt
public int getInt(int columnIndex)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getLong
public long getLong(int columnIndex)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getFloat
public float getFloat(int columnIndex)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getDouble
public double getDouble(int columnIndex)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getBytes
public byte[] getBytes(int columnIndex)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getDate
public java.sql.Date getDate(int columnIndex)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getTime
public java.sql.Time getTime(int columnIndex)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getTimestamp
public java.sql.Timestamp getTimestamp(int columnIndex)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getAsciiStream
public java.io.InputStream getAsciiStream(int columnIndex)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getBinaryStream
public java.io.InputStream getBinaryStream(int columnIndex)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getString
public java.lang.String getString(java.lang.String columnName)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getBoolean
public boolean getBoolean(java.lang.String columnName)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getByte
public byte getByte(java.lang.String columnName)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getShort
public short getShort(java.lang.String columnName)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getInt
public int getInt(java.lang.String columnName)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getLong
public long getLong(java.lang.String columnName)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getFloat
public float getFloat(java.lang.String columnName)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getDouble
public double getDouble(java.lang.String columnName)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getBytes
public byte[] getBytes(java.lang.String columnName)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getDate
public java.sql.Date getDate(java.lang.String columnName)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getTime
public java.sql.Time getTime(java.lang.String columnName)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getTimestamp
public java.sql.Timestamp getTimestamp(java.lang.String columnName)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getAsciiStream
public java.io.InputStream getAsciiStream(java.lang.String columnName)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getBinaryStream
public java.io.InputStream getBinaryStream(java.lang.String columnName)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getWarnings
public java.sql.SQLWarning getWarnings()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
clearWarnings
public void clearWarnings()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getCursorName
public java.lang.String getCursorName()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getMetaData
public java.sql.ResultSetMetaData getMetaData()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getObject
public java.lang.Object getObject(int columnIndex)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getObject
public java.lang.Object getObject(java.lang.String columnName)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
findColumn
public int findColumn(java.lang.String columnName)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getCharacterStream
public java.io.Reader getCharacterStream(int columnIndex)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getCharacterStream
public java.io.Reader getCharacterStream(java.lang.String columnName)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getBigDecimal
public java.math.BigDecimal getBigDecimal(int columnIndex)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getBigDecimal
public java.math.BigDecimal getBigDecimal(java.lang.String columnName)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
isBeforeFirst
public boolean isBeforeFirst()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
isAfterLast
public boolean isAfterLast()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
isFirst
public boolean isFirst()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
isLast
public boolean isLast()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
beforeFirst
public void beforeFirst()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
afterLast
public void afterLast()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
first
public boolean first()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
last
public boolean last()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getRow
public int getRow()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
absolute
public boolean absolute(int row)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
relative
public boolean relative(int rows)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
previous
public boolean previous()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
setFetchDirection
public void setFetchDirection(int direction)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getFetchDirection
public int getFetchDirection()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
setFetchSize
public void setFetchSize(int rows)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getFetchSize
public int getFetchSize()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getType
public int getType()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getConcurrency
public int getConcurrency()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
rowUpdated
public boolean rowUpdated()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
rowInserted
public boolean rowInserted()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
rowDeleted
public boolean rowDeleted()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getStatement
public java.sql.Statement getStatement()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getObject
public java.lang.Object getObject(int i,
java.util.Map map)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getRef
public java.sql.Ref getRef(int i)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getBlob
public java.sql.Blob getBlob(int i)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getClob
public java.sql.Clob getClob(int i)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getArray
public java.sql.Array getArray(int i)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getObject
public java.lang.Object getObject(java.lang.String colName,
java.util.Map map)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getRef
public java.sql.Ref getRef(java.lang.String colName)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getBlob
public java.sql.Blob getBlob(java.lang.String colName)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getClob
public java.sql.Clob getClob(java.lang.String colName)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getArray
public java.sql.Array getArray(java.lang.String colName)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getDate
public java.sql.Date getDate(int columnIndex,
java.util.Calendar cal)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getDate
public java.sql.Date getDate(java.lang.String columnName,
java.util.Calendar cal)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getTime
public java.sql.Time getTime(int columnIndex,
java.util.Calendar cal)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getTime
public java.sql.Time getTime(java.lang.String columnName,
java.util.Calendar cal)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getTimestamp
public java.sql.Timestamp getTimestamp(int columnIndex,
java.util.Calendar cal)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getTimestamp
public java.sql.Timestamp getTimestamp(java.lang.String columnName,
java.util.Calendar cal)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getURL
public java.net.URL getURL(int columnIndex)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getURL
public java.net.URL getURL(java.lang.String columnName)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
Copyright © 2008-2012. All Rights Reserved.