Class Hierarchy        Index

Class COM.cloudscape.vti20.VTITemplate

java.lang.Object
   |
   +----COM.cloudscape.vti.VTITemplate
           |
           +----COM.cloudscape.vti20.VTITemplate

public abstract class VTITemplate
extends VTITemplate
An abstract implementation of ResultSet (JDK1.2/JDBC 2.0) that is useful when writing a VTI (virtual table interface). This class implements most of the methods of ResultSet, each one throwing a SQLException with the name of the method. A concrete sub-class can then just implement the methods not implemented here and override any methods it needs to implement for correct functionality.

This class is for use with JDBC 2.0.

The methods not implemented here are


VTI implementation must provide an implementation of the methods in this class.


Constructor Index

 o VTITemplate()

Method Index

 o absolute(int)
 o afterLast()
 o beforeFirst()
 o cancelRowUpdates()
 o deleteRow()
 o first()
 o getArray(int)
 o getArray(String)
 o getBigDecimal(int)
 o getBigDecimal(String)
 o getBlob(int)
 o getBlob(String)
 o getCharacterStream(int)
 o getCharacterStream(String)
 o getClob(int)
 o getClob(String)
 o getConcurrency()
 o getDate(int, Calendar)
 o getDate(String, Calendar)
 o getFetchDirection()
 o getFetchSize()
 o getObject(int, Map)
 o getObject(String, Map)
 o getRef(int)
 o getRef(String)
 o getRow()
 o getStatement()
 o getTime(int, Calendar)
 o getTime(String, Calendar)
 o getTimestamp(int, Calendar)
 o getTimestamp(String, Calendar)
 o getType()
 o insertRow()
 o isAfterLast()
 o isBeforeFirst()
 o isFirst()
 o isLast()
 o last()
 o moveToCurrentRow()
 o moveToInsertRow()
 o previous()
 o refreshRow()
 o relative(int)
 o rowDeleted()
 o rowInserted()
 o rowUpdated()
 o setFetchDirection(int)
 o setFetchSize(int)
 o updateAsciiStream(int, InputStream, int)
 o updateAsciiStream(String, InputStream, int)
 o updateBigDecimal(int, BigDecimal)
 o updateBigDecimal(String, BigDecimal)
 o updateBinaryStream(int, InputStream, int)
 o updateBinaryStream(String, InputStream, int)
 o updateBoolean(int, boolean)
 o updateBoolean(String, boolean)
 o updateByte(int, byte)
 o updateByte(String, byte)
 o updateBytes(int, byte[])
 o updateBytes(String, byte[])
 o updateCharacterStream(int, Reader, int)
 o updateCharacterStream(String, Reader, int)
 o updateDate(int, Date)
 o updateDate(String, Date)
 o updateDouble(int, double)
 o updateDouble(String, double)
 o updateFloat(int, float)
 o updateFloat(String, float)
 o updateInt(int, int)
 o updateInt(String, int)
 o updateLong(int, long)
 o updateLong(String, long)
 o updateNull(int)
 o updateNull(String)
 o updateObject(int, Object)
 o updateObject(int, Object, int)
 o updateObject(String, Object)
 o updateObject(String, Object, int)
 o updateRow()
 o updateShort(int, short)
 o updateShort(String, short)
 o updateString(int, String)
 o updateString(String, String)
 o updateTime(int, Time)
 o updateTime(String, Time)
 o updateTimestamp(int, Timestamp)
 o updateTimestamp(String, Timestamp)

Constructors

 o VTITemplate
 public VTITemplate()

Methods

 o getCharacterStream
 public Reader getCharacterStream(int columnIndex) throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o getCharacterStream
 public Reader getCharacterStream(String columnName) throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o getBigDecimal
 public BigDecimal getBigDecimal(int columnIndex) throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o getBigDecimal
 public BigDecimal getBigDecimal(String columnName) throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o isBeforeFirst
 public boolean isBeforeFirst() throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o isAfterLast
 public boolean isAfterLast() throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o isFirst
 public boolean isFirst() throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o isLast
 public boolean isLast() throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o beforeFirst
 public void beforeFirst() throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o afterLast
 public void afterLast() throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o first
 public boolean first() throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o last
 public boolean last() throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o getRow
 public int getRow() throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o absolute
 public boolean absolute(int row) throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o relative
 public boolean relative(int rows) throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o previous
 public boolean previous() throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o setFetchDirection
 public void setFetchDirection(int direction) throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o getFetchDirection
 public int getFetchDirection() throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o setFetchSize
 public void setFetchSize(int rows) throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o getFetchSize
 public int getFetchSize() throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o getType
 public int getType() throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o getConcurrency
 public int getConcurrency() throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o rowUpdated
 public boolean rowUpdated() throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o rowInserted
 public boolean rowInserted() throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o rowDeleted
 public boolean rowDeleted() throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o updateNull
 public void updateNull(int columnIndex) throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o updateBoolean
 public void updateBoolean(int columnIndex,
                           boolean x) throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o updateByte
 public void updateByte(int columnIndex,
                        byte x) throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o updateShort
 public void updateShort(int columnIndex,
                         short x) throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o updateInt
 public void updateInt(int columnIndex,
                       int x) throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o updateLong
 public void updateLong(int columnIndex,
                        long x) throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o updateFloat
 public void updateFloat(int columnIndex,
                         float x) throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o updateDouble
 public void updateDouble(int columnIndex,
                          double x) throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o updateBigDecimal
 public void updateBigDecimal(int columnIndex,
                              BigDecimal x) throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o updateString
 public void updateString(int columnIndex,
                          String x) throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o updateBytes
 public void updateBytes(int columnIndex,
                         byte x[]) throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o updateDate
 public void updateDate(int columnIndex,
                        Date x) throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o updateTime
 public void updateTime(int columnIndex,
                        Time x) throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o updateTimestamp
 public void updateTimestamp(int columnIndex,
                             Timestamp x) throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o updateAsciiStream
 public void updateAsciiStream(int columnIndex,
                               InputStream x,
                               int length) throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o updateBinaryStream
 public void updateBinaryStream(int columnIndex,
                                InputStream x,
                                int length) throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o updateCharacterStream
 public void updateCharacterStream(int columnIndex,
                                   Reader x,
                                   int length) throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o updateObject
 public void updateObject(int columnIndex,
                          Object x,
                          int scale) throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o updateObject
 public void updateObject(int columnIndex,
                          Object x) throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o updateNull
 public void updateNull(String columnName) throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o updateBoolean
 public void updateBoolean(String columnName,
                           boolean x) throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o updateByte
 public void updateByte(String columnName,
                        byte x) throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o updateShort
 public void updateShort(String columnName,
                         short x) throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o updateInt
 public void updateInt(String columnName,
                       int x) throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o updateLong
 public void updateLong(String columnName,
                        long x) throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o updateFloat
 public void updateFloat(String columnName,
                         float x) throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o updateDouble
 public void updateDouble(String columnName,
                          double x) throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o updateBigDecimal
 public void updateBigDecimal(String columnName,
                              BigDecimal x) throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o updateString
 public void updateString(String columnName,
                          String x) throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o updateBytes
 public void updateBytes(String columnName,
                         byte x[]) throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o updateDate
 public void updateDate(String columnName,
                        Date x) throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o updateTime
 public void updateTime(String columnName,
                        Time x) throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o updateTimestamp
 public void updateTimestamp(String columnName,
                             Timestamp x) throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o updateAsciiStream
 public void updateAsciiStream(String columnName,
                               InputStream x,
                               int length) throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o updateBinaryStream
 public void updateBinaryStream(String columnName,
                                InputStream x,
                                int length) throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o updateCharacterStream
 public void updateCharacterStream(String columnName,
                                   Reader x,
                                   int length) throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o updateObject
 public void updateObject(String columnName,
                          Object x,
                          int scale) throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o updateObject
 public void updateObject(String columnName,
                          Object x) throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o insertRow
 public void insertRow() throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o updateRow
 public void updateRow() throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o deleteRow
 public void deleteRow() throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o refreshRow
 public void refreshRow() throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o cancelRowUpdates
 public void cancelRowUpdates() throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o moveToInsertRow
 public void moveToInsertRow() throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o moveToCurrentRow
 public void moveToCurrentRow() throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o getStatement
 public Statement getStatement() throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o getObject
 public Object getObject(int i,
                         Map map) throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o getRef
 public Ref getRef(int i) throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o getBlob
 public Blob getBlob(int i) throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o getClob
 public Clob getClob(int i) throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o getArray
 public Array getArray(int i) throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o getObject
 public Object getObject(String colName,
                         Map map) throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o getRef
 public Ref getRef(String colName) throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o getBlob
 public Blob getBlob(String colName) throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o getClob
 public Clob getClob(String colName) throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o getArray
 public Array getArray(String colName) throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o getDate
 public Date getDate(int columnIndex,
                     Calendar cal) throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o getDate
 public Date getDate(String columnName,
                     Calendar cal) throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o getTime
 public Time getTime(int columnIndex,
                     Calendar cal) throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o getTime
 public Time getTime(String columnName,
                     Calendar cal) throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o getTimestamp
 public Timestamp getTimestamp(int columnIndex,
                               Calendar cal) throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet
 o getTimestamp
 public Timestamp getTimestamp(String columnName,
                               Calendar cal) throws SQLException
Throws: SQLException
on unexpected JDBC error
See Also:
ResultSet

  Class Hierarchy        Index