Class Hierarchy    Previous  Next  Index

Class COM.cloudscape.vti20.VTITemplate

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

public abstract class VTITemplate
extends VTITemplate
Copyright © 1998-2000, Informix Software, Inc. All rights reserved.

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)
 

Constructor Detail

 o VTITemplate
public VTITemplate()

Method Detail

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

  Class Hierarchy    Previous  Next  Index