Class Hierarchy    Previous  Next  Index

Class COM.cloudscape.vti.UpdatableVTITemplate

java.lang.Object
    |
    +----COM.cloudscape.vti.UpdatableVTITemplate

public class UpdatableVTITemplate
extends java.lang.Object
implements java.sql.PreparedStatement
Copyright © 1998-2000, Informix Software, Inc. All rights reserved.

An abstract implementation of PreparedStatement (JDK1.1/JDBC 1.2) that is useful when writing an updatable VTI (virtual table interface). This class implements the methods of the JDBC1.2 version of PreparedStatement plus the JDBC2.0 getMetaData() method, 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.

Use this class with JDK 1.1. It does not implement methods that are defined in the JDBC 2.0 PreparedStatement interface. For JDK 1.2 or higher, it is easier to use the class COM.cloudscape.vti20.UpdatableVTITemplate.
VTI implementation must provide an implementation of the methods in this class.


Constructor Index

 o UpdatableVTITemplate()
 

Method Index

 o addBatch(String)
 
 o cancel()
 
 o clearBatch()
 
 o clearParameters()
 
 o clearWarnings()
 
 o close()
 
 o execute()
 
 o execute(String)
 
 o executeBatch()
 
 o executeQuery()
 
 o executeQuery(String)
 
 o executeUpdate()
 
 o executeUpdate(String)
 
 o getMaxFieldSize()
 
 o getMaxRows()
 
 o getMetaData()
 
 o getMoreResults()
 
 o getQueryTimeout()
 
 o getResultSet()
 
 o getResultSetConcurrency()
 
 o getUpdateCount()
 
 o getWarnings()
 
 o setAsciiStream(int, InputStream, int)
 
 o setBigDecimal(int, BigDecimal)
 
 o setBinaryStream(int, InputStream, int)
 
 o setBoolean(int, boolean)
 
 o setByte(int, byte)
 
 o setBytes(int, byte[])
 
 o setCursorName(String)
 
 o setDate(int, Date)
 
 o setDouble(int, double)
 
 o setEscapeProcessing(boolean)
 
 o setFloat(int, float)
 
 o setInt(int, int)
 
 o setLong(int, long)
 
 o setMaxFieldSize(int)
 
 o setMaxRows(int)
 
 o setNull(int, int)
 
 o setNull(int, int, String)
 
 o setObject(int, Object)
 
 o setObject(int, Object, int)
 
 o setObject(int, Object, int, int)
 
 o setQueryTimeout(int)
 
 o setShort(int, short)
 
 o setString(int, String)
 
 o setTime(int, Time)
 
 o setTimestamp(int, Timestamp)
 
 o setUnicodeStream(int, InputStream, int)
 

Constructor Detail

 o UpdatableVTITemplate
public UpdatableVTITemplate()

Method Detail

 o executeQuery
public java.sql.ResultSet executeQuery(java.lang.String sql) throws java.sql.SQLException
Throws:
java.sql.SQLException - on unexpected JDBC error
See Also:
java.sql.Statement
 o executeUpdate
public int executeUpdate(java.lang.String sql) throws java.sql.SQLException
Throws:
java.sql.SQLException - on unexpected JDBC error
See Also:
java.sql.Statement
 o close
public void close() throws java.sql.SQLException
Throws:
java.sql.SQLException - on unexpected JDBC error
See Also:
java.sql.Statement
 o getWarnings
public java.sql.SQLWarning getWarnings() throws java.sql.SQLException
Throws:
java.sql.SQLException - on unexpected JDBC error
See Also:
java.sql.Statement
 o clearWarnings
public void clearWarnings() throws java.sql.SQLException
Throws:
java.sql.SQLException - on unexpected JDBC error
See Also:
java.sql.Statement
 o getMaxFieldSize
public int getMaxFieldSize() throws java.sql.SQLException
Throws:
java.sql.SQLException - on unexpected JDBC error
See Also:
java.sql.Statement
 o setMaxFieldSize
public void setMaxFieldSize(int max) throws java.sql.SQLException
Throws:
java.sql.SQLException - on unexpected JDBC error
See Also:
java.sql.Statement
 o getMaxRows
public int getMaxRows() throws java.sql.SQLException
Throws:
java.sql.SQLException - on unexpected JDBC error
See Also:
java.sql.Statement
 o setMaxRows
public void setMaxRows(int max) throws java.sql.SQLException
Throws:
java.sql.SQLException - on unexpected JDBC error
See Also:
java.sql.Statement
 o setEscapeProcessing
public void setEscapeProcessing(boolean enable) throws java.sql.SQLException
Throws:
java.sql.SQLException - on unexpected JDBC error
See Also:
java.sql.Statement
 o getQueryTimeout
public int getQueryTimeout() throws java.sql.SQLException
Throws:
java.sql.SQLException - on unexpected JDBC error
See Also:
java.sql.Statement
 o setQueryTimeout
public void setQueryTimeout(int seconds) throws java.sql.SQLException
Throws:
java.sql.SQLException - on unexpected JDBC error
See Also:
java.sql.Statement
 o addBatch
public void addBatch(java.lang.String sql) throws java.sql.SQLException
Throws:
java.sql.SQLException - on unexpected JDBC error
See Also:
java.sql.Statement
 o clearBatch
public void clearBatch() throws java.sql.SQLException
Throws:
java.sql.SQLException - on unexpected JDBC error
See Also:
java.sql.Statement
 o executeBatch
public int[] executeBatch() throws java.sql.SQLException
Throws:
java.sql.SQLException - on unexpected JDBC error
See Also:
java.sql.Statement
 o cancel
public void cancel() throws java.sql.SQLException
Throws:
java.sql.SQLException - on unexpected JDBC error
See Also:
java.sql.Statement
 o setCursorName
public void setCursorName(java.lang.String name) throws java.sql.SQLException
Throws:
java.sql.SQLException - on unexpected JDBC error
See Also:
java.sql.Statement
 o execute
public boolean execute(java.lang.String sql) throws java.sql.SQLException
Throws:
java.sql.SQLException - on unexpected JDBC error
See Also:
java.sql.Statement
 o getResultSet
public java.sql.ResultSet getResultSet() throws java.sql.SQLException
Throws:
java.sql.SQLException - on unexpected JDBC error
See Also:
java.sql.Statement
 o getUpdateCount
public int getUpdateCount() throws java.sql.SQLException
Throws:
java.sql.SQLException - on unexpected JDBC error
See Also:
java.sql.Statement
 o getMoreResults
public boolean getMoreResults() throws java.sql.SQLException
Throws:
java.sql.SQLException - on unexpected JDBC error
See Also:
java.sql.Statement
 o getResultSetConcurrency
public int getResultSetConcurrency() throws java.sql.SQLException
Throws:
java.sql.SQLException - on unexpected JDBC error
See Also:
java.sql.Statement
 o executeQuery
public java.sql.ResultSet executeQuery() throws java.sql.SQLException
Throws:
java.sql.SQLException - on unexpected JDBC error
See Also:
java.sql.PreparedStatement
 o executeUpdate
public int executeUpdate() throws java.sql.SQLException
Throws:
java.sql.SQLException - on unexpected JDBC error
See Also:
java.sql.PreparedStatement
 o setNull
public void setNull(int parameterIndex,
                    int jdbcType) throws java.sql.SQLException
Throws:
java.sql.SQLException - on unexpected JDBC error
See Also:
java.sql.PreparedStatement
 o setNull
public void setNull(int parameterIndex,
                    int jdbcType,
                    java.lang.String typeName) throws java.sql.SQLException
Throws:
java.sql.SQLException - on unexpected JDBC error
See Also:
java.sql.PreparedStatement
 o setBoolean
public void setBoolean(int parameterIndex,
                       boolean x) throws java.sql.SQLException
Throws:
java.sql.SQLException - on unexpected JDBC error
See Also:
java.sql.PreparedStatement
 o setByte
public void setByte(int parameterIndex,
                    byte x) throws java.sql.SQLException
Throws:
java.sql.SQLException - on unexpected JDBC error
See Also:
java.sql.PreparedStatement
 o setShort
public void setShort(int parameterIndex,
                     short x) throws java.sql.SQLException
Throws:
java.sql.SQLException - on unexpected JDBC error
See Also:
java.sql.PreparedStatement
 o setInt
public void setInt(int parameterIndex,
                   int x) throws java.sql.SQLException
Throws:
java.sql.SQLException - on unexpected JDBC error
See Also:
java.sql.PreparedStatement
 o setLong
public void setLong(int parameterIndex,
                    long x) throws java.sql.SQLException
Throws:
java.sql.SQLException - on unexpected JDBC error
See Also:
java.sql.PreparedStatement
 o setFloat
public void setFloat(int parameterIndex,
                     float x) throws java.sql.SQLException
Throws:
java.sql.SQLException - on unexpected JDBC error
See Also:
java.sql.PreparedStatement
 o setDouble
public void setDouble(int parameterIndex,
                      double x) throws java.sql.SQLException
Throws:
java.sql.SQLException - on unexpected JDBC error
See Also:
java.sql.PreparedStatement
 o setBigDecimal
public void setBigDecimal(int parameterIndex,
                          java.math.BigDecimal x) throws java.sql.SQLException
Throws:
java.sql.SQLException - on unexpected JDBC error
See Also:
java.sql.PreparedStatement
 o setString
public void setString(int parameterIndex,
                      java.lang.String x) throws java.sql.SQLException
Throws:
java.sql.SQLException - on unexpected JDBC error
See Also:
java.sql.PreparedStatement
 o setBytes
public void setBytes(int parameterIndex,
                     byte x[]) throws java.sql.SQLException
Throws:
java.sql.SQLException - on unexpected JDBC error
See Also:
java.sql.PreparedStatement
 o setDate
public void setDate(int parameterIndex,
                    java.sql.Date x) throws java.sql.SQLException
Throws:
java.sql.SQLException - on unexpected JDBC error
See Also:
java.sql.PreparedStatement
 o setTime
public void setTime(int parameterIndex,
                    java.sql.Time x) throws java.sql.SQLException
Throws:
java.sql.SQLException - on unexpected JDBC error
See Also:
java.sql.PreparedStatement
 o setTimestamp
public void setTimestamp(int parameterIndex,
                         java.sql.Timestamp x) throws java.sql.SQLException
Throws:
java.sql.SQLException - on unexpected JDBC error
See Also:
java.sql.PreparedStatement
 o setAsciiStream
public void setAsciiStream(int parameterIndex,
                           java.io.InputStream x,
                           int length) throws java.sql.SQLException
Throws:
java.sql.SQLException - on unexpected JDBC error
See Also:
java.sql.PreparedStatement
 o setUnicodeStream
public void setUnicodeStream(int parameterIndex,
                             java.io.InputStream x,
                             int length) throws java.sql.SQLException
Throws:
java.sql.SQLException - on unexpected JDBC error
See Also:
java.sql.PreparedStatement
 o setBinaryStream
public void setBinaryStream(int parameterIndex,
                            java.io.InputStream x,
                            int length) throws java.sql.SQLException
Throws:
java.sql.SQLException - on unexpected JDBC error
See Also:
java.sql.PreparedStatement
 o clearParameters
public void clearParameters() throws java.sql.SQLException
Throws:
java.sql.SQLException - on unexpected JDBC error
See Also:
java.sql.PreparedStatement
 o setObject
public void setObject(int parameterIndex,
                      java.lang.Object x,
                      int targetJdbcType,
                      int scale) throws java.sql.SQLException
Throws:
java.sql.SQLException - on unexpected JDBC error
See Also:
java.sql.PreparedStatement
 o setObject
public void setObject(int parameterIndex,
                      java.lang.Object x,
                      int targetJdbcType) throws java.sql.SQLException
Throws:
java.sql.SQLException - on unexpected JDBC error
See Also:
java.sql.PreparedStatement
 o setObject
public void setObject(int parameterIndex,
                      java.lang.Object x) throws java.sql.SQLException
Throws:
java.sql.SQLException - on unexpected JDBC error
See Also:
java.sql.PreparedStatement
 o execute
public boolean execute() throws java.sql.SQLException
Throws:
java.sql.SQLException - on unexpected JDBC error
See Also:
java.sql.PreparedStatement
 o getMetaData
public java.sql.ResultSetMetaData getMetaData() throws java.sql.SQLException
Throws:
java.sql.SQLException - on unexpected JDBC error
See Also:
java.sql.PreparedStatement

  Class Hierarchy    Previous  Next  Index