com.agimatec.dbmigrate.util
Class ResultSetDelegate

java.lang.Object
  extended by com.agimatec.dbmigrate.util.ResultSetDelegate
Direct Known Subclasses:
SQLCursor

public class ResultSetDelegate
extends 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  ResultSet resultSet
           
 
Constructor Summary
ResultSetDelegate(ResultSet aResultSet)
           
 
Method Summary
 boolean absolute(int row)
           
 void afterLast()
           
 void beforeFirst()
           
 void clearWarnings()
           
 void close()
           
 int findColumn(String columnName)
           
 boolean first()
           
 Array getArray(int i)
           
 Array getArray(String colName)
           
 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 i)
           
 Blob getBlob(String colName)
           
 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 i)
           
 Clob getClob(String colName)
           
 int getConcurrency()
           
 String getCursorName()
           
 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)
           
 ResultSetMetaData getMetaData()
           
 Object getObject(int columnIndex)
           
 Object getObject(int i, Map map)
           
 Object getObject(String columnName)
           
 Object getObject(String colName, Map map)
           
 Ref getRef(int i)
           
 Ref getRef(String colName)
           
 int getRow()
           
 short getShort(int columnIndex)
           
 short getShort(String columnName)
           
 Statement getStatement()
           
 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()
           
 URL getURL(int columnIndex)
           
 URL getURL(String columnName)
           
 SQLWarning getWarnings()
           
 boolean isAfterLast()
           
 boolean isBeforeFirst()
           
 boolean isFirst()
           
 boolean isLast()
           
 boolean last()
           
 boolean next()
           
 boolean previous()
           
 boolean relative(int rows)
           
 boolean rowDeleted()
           
 boolean rowInserted()
           
 boolean rowUpdated()
           
 void setFetchDirection(int direction)
           
 void setFetchSize(int rows)
           
 boolean wasNull()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

resultSet

protected final ResultSet resultSet
Constructor Detail

ResultSetDelegate

public ResultSetDelegate(ResultSet aResultSet)
Method Detail

next

public boolean next()
             throws SQLException
Throws:
SQLException

close

public void close()
           throws SQLException
Throws:
SQLException

wasNull

public boolean wasNull()
                throws SQLException
Throws:
SQLException

getString

public String getString(int columnIndex)
                 throws SQLException
Throws:
SQLException

getBoolean

public boolean getBoolean(int columnIndex)
                   throws SQLException
Throws:
SQLException

getByte

public byte getByte(int columnIndex)
             throws SQLException
Throws:
SQLException

getShort

public short getShort(int columnIndex)
               throws SQLException
Throws:
SQLException

getInt

public int getInt(int columnIndex)
           throws SQLException
Throws:
SQLException

getLong

public long getLong(int columnIndex)
             throws SQLException
Throws:
SQLException

getFloat

public float getFloat(int columnIndex)
               throws SQLException
Throws:
SQLException

getDouble

public double getDouble(int columnIndex)
                 throws SQLException
Throws:
SQLException

getBytes

public byte[] getBytes(int columnIndex)
                throws SQLException
Throws:
SQLException

getDate

public Date getDate(int columnIndex)
             throws SQLException
Throws:
SQLException

getTime

public Time getTime(int columnIndex)
             throws SQLException
Throws:
SQLException

getTimestamp

public Timestamp getTimestamp(int columnIndex)
                       throws SQLException
Throws:
SQLException

getAsciiStream

public InputStream getAsciiStream(int columnIndex)
                           throws SQLException
Throws:
SQLException

getBinaryStream

public InputStream getBinaryStream(int columnIndex)
                            throws SQLException
Throws:
SQLException

getString

public String getString(String columnName)
                 throws SQLException
Throws:
SQLException

getBoolean

public boolean getBoolean(String columnName)
                   throws SQLException
Throws:
SQLException

getByte

public byte getByte(String columnName)
             throws SQLException
Throws:
SQLException

getShort

public short getShort(String columnName)
               throws SQLException
Throws:
SQLException

getInt

public int getInt(String columnName)
           throws SQLException
Throws:
SQLException

getLong

public long getLong(String columnName)
             throws SQLException
Throws:
SQLException

getFloat

public float getFloat(String columnName)
               throws SQLException
Throws:
SQLException

getDouble

public double getDouble(String columnName)
                 throws SQLException
Throws:
SQLException

getBytes

public byte[] getBytes(String columnName)
                throws SQLException
Throws:
SQLException

getDate

public Date getDate(String columnName)
             throws SQLException
Throws:
SQLException

getTime

public Time getTime(String columnName)
             throws SQLException
Throws:
SQLException

getTimestamp

public Timestamp getTimestamp(String columnName)
                       throws SQLException
Throws:
SQLException

getAsciiStream

public InputStream getAsciiStream(String columnName)
                           throws SQLException
Throws:
SQLException

getBinaryStream

public InputStream getBinaryStream(String columnName)
                            throws SQLException
Throws:
SQLException

getWarnings

public SQLWarning getWarnings()
                       throws SQLException
Throws:
SQLException

clearWarnings

public void clearWarnings()
                   throws SQLException
Throws:
SQLException

getCursorName

public String getCursorName()
                     throws SQLException
Throws:
SQLException

getMetaData

public ResultSetMetaData getMetaData()
                              throws SQLException
Throws:
SQLException

getObject

public Object getObject(int columnIndex)
                 throws SQLException
Throws:
SQLException

getObject

public Object getObject(String columnName)
                 throws SQLException
Throws:
SQLException

findColumn

public int findColumn(String columnName)
               throws SQLException
Throws:
SQLException

getCharacterStream

public Reader getCharacterStream(int columnIndex)
                          throws SQLException
Throws:
SQLException

getCharacterStream

public Reader getCharacterStream(String columnName)
                          throws SQLException
Throws:
SQLException

getBigDecimal

public BigDecimal getBigDecimal(int columnIndex)
                         throws SQLException
Throws:
SQLException

getBigDecimal

public BigDecimal getBigDecimal(String columnName)
                         throws SQLException
Throws:
SQLException

isBeforeFirst

public boolean isBeforeFirst()
                      throws SQLException
Throws:
SQLException

isAfterLast

public boolean isAfterLast()
                    throws SQLException
Throws:
SQLException

isFirst

public boolean isFirst()
                throws SQLException
Throws:
SQLException

isLast

public boolean isLast()
               throws SQLException
Throws:
SQLException

beforeFirst

public void beforeFirst()
                 throws SQLException
Throws:
SQLException

afterLast

public void afterLast()
               throws SQLException
Throws:
SQLException

first

public boolean first()
              throws SQLException
Throws:
SQLException

last

public boolean last()
             throws SQLException
Throws:
SQLException

getRow

public int getRow()
           throws SQLException
Throws:
SQLException

absolute

public boolean absolute(int row)
                 throws SQLException
Throws:
SQLException

relative

public boolean relative(int rows)
                 throws SQLException
Throws:
SQLException

previous

public boolean previous()
                 throws SQLException
Throws:
SQLException

setFetchDirection

public void setFetchDirection(int direction)
                       throws SQLException
Throws:
SQLException

getFetchDirection

public int getFetchDirection()
                      throws SQLException
Throws:
SQLException

setFetchSize

public void setFetchSize(int rows)
                  throws SQLException
Throws:
SQLException

getFetchSize

public int getFetchSize()
                 throws SQLException
Throws:
SQLException

getType

public int getType()
            throws SQLException
Throws:
SQLException

getConcurrency

public int getConcurrency()
                   throws SQLException
Throws:
SQLException

rowUpdated

public boolean rowUpdated()
                   throws SQLException
Throws:
SQLException

rowInserted

public boolean rowInserted()
                    throws SQLException
Throws:
SQLException

rowDeleted

public boolean rowDeleted()
                   throws SQLException
Throws:
SQLException

getStatement

public Statement getStatement()
                       throws SQLException
Throws:
SQLException

getObject

public Object getObject(int i,
                        Map map)
                 throws SQLException
Throws:
SQLException

getRef

public Ref getRef(int i)
           throws SQLException
Throws:
SQLException

getBlob

public Blob getBlob(int i)
             throws SQLException
Throws:
SQLException

getClob

public Clob getClob(int i)
             throws SQLException
Throws:
SQLException

getArray

public Array getArray(int i)
               throws SQLException
Throws:
SQLException

getObject

public Object getObject(String colName,
                        Map map)
                 throws SQLException
Throws:
SQLException

getRef

public Ref getRef(String colName)
           throws SQLException
Throws:
SQLException

getBlob

public Blob getBlob(String colName)
             throws SQLException
Throws:
SQLException

getClob

public Clob getClob(String colName)
             throws SQLException
Throws:
SQLException

getArray

public Array getArray(String colName)
               throws SQLException
Throws:
SQLException

getDate

public Date getDate(int columnIndex,
                    Calendar cal)
             throws SQLException
Throws:
SQLException

getDate

public Date getDate(String columnName,
                    Calendar cal)
             throws SQLException
Throws:
SQLException

getTime

public Time getTime(int columnIndex,
                    Calendar cal)
             throws SQLException
Throws:
SQLException

getTime

public Time getTime(String columnName,
                    Calendar cal)
             throws SQLException
Throws:
SQLException

getTimestamp

public Timestamp getTimestamp(int columnIndex,
                              Calendar cal)
                       throws SQLException
Throws:
SQLException

getTimestamp

public Timestamp getTimestamp(String columnName,
                              Calendar cal)
                       throws SQLException
Throws:
SQLException

getURL

public URL getURL(int columnIndex)
           throws SQLException
Throws:
SQLException

getURL

public URL getURL(String columnName)
           throws SQLException
Throws:
SQLException


Copyright © 2008-2012. All Rights Reserved.