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
- next()
- close()
- getMetaData()
VTI implementation must provide an
implementation of the methods in this class.
VTITemplate()
-
absolute(int)
-
afterLast()
-
beforeFirst()
-
cancelRowUpdates()
-
deleteRow()
-
first()
-
getArray(int)
-
getArray(String)
-
getBigDecimal(int)
-
getBigDecimal(String)
-
getBlob(int)
-
getBlob(String)
-
getCharacterStream(int)
-
getCharacterStream(String)
-
getClob(int)
-
getClob(String)
-
getConcurrency()
-
getDate(int, Calendar)
-
getDate(String, Calendar)
-
getFetchDirection()
-
getFetchSize()
-
getObject(int, Map)
-
getObject(String, Map)
-
getRef(int)
-
getRef(String)
-
getRow()
-
getStatement()
-
getTime(int, Calendar)
-
getTime(String, Calendar)
-
getTimestamp(int, Calendar)
-
getTimestamp(String, Calendar)
-
getType()
-
insertRow()
-
isAfterLast()
-
isBeforeFirst()
-
isFirst()
-
isLast()
-
last()
-
moveToCurrentRow()
-
moveToInsertRow()
-
previous()
-
refreshRow()
-
relative(int)
-
rowDeleted()
-
rowInserted()
-
rowUpdated()
-
setFetchDirection(int)
-
setFetchSize(int)
-
updateAsciiStream(int, InputStream, int)
-
updateAsciiStream(String, InputStream, int)
-
updateBigDecimal(int, BigDecimal)
-
updateBigDecimal(String, BigDecimal)
-
updateBinaryStream(int, InputStream, int)
-
updateBinaryStream(String, InputStream, int)
-
updateBoolean(int, boolean)
-
updateBoolean(String, boolean)
-
updateByte(int, byte)
-
updateByte(String, byte)
-
updateBytes(int, byte[])
-
updateBytes(String, byte[])
-
updateCharacterStream(int, Reader, int)
-
updateCharacterStream(String, Reader, int)
-
updateDate(int, Date)
-
updateDate(String, Date)
-
updateDouble(int, double)
-
updateDouble(String, double)
-
updateFloat(int, float)
-
updateFloat(String, float)
-
updateInt(int, int)
-
updateInt(String, int)
-
updateLong(int, long)
-
updateLong(String, long)
-
updateNull(int)
-
updateNull(String)
-
updateObject(int, Object)
-
updateObject(int, Object, int)
-
updateObject(String, Object)
-
updateObject(String, Object, int)
-
updateRow()
-
updateShort(int, short)
-
updateShort(String, short)
-
updateString(int, String)
-
updateString(String, String)
-
updateTime(int, Time)
-
updateTime(String, Time)
-
updateTimestamp(int, Timestamp)
-
updateTimestamp(String, Timestamp)
-
VTITemplate
public VTITemplate()
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
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
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
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
isBeforeFirst
public boolean isBeforeFirst() throws java.sql.SQLException
- Throws:
- java.sql.SQLException - on unexpected JDBC error
- See Also:
- java.sql.ResultSet
isAfterLast
public boolean isAfterLast() throws java.sql.SQLException
- Throws:
- java.sql.SQLException - on unexpected JDBC error
- See Also:
- java.sql.ResultSet
isFirst
public boolean isFirst() throws java.sql.SQLException
- Throws:
- java.sql.SQLException - on unexpected JDBC error
- See Also:
- java.sql.ResultSet
isLast
public boolean isLast() throws java.sql.SQLException
- Throws:
- java.sql.SQLException - on unexpected JDBC error
- See Also:
- java.sql.ResultSet
beforeFirst
public void beforeFirst() throws java.sql.SQLException
- Throws:
- java.sql.SQLException - on unexpected JDBC error
- See Also:
- java.sql.ResultSet
afterLast
public void afterLast() throws java.sql.SQLException
- Throws:
- java.sql.SQLException - on unexpected JDBC error
- See Also:
- java.sql.ResultSet
first
public boolean first() throws java.sql.SQLException
- Throws:
- java.sql.SQLException - on unexpected JDBC error
- See Also:
- java.sql.ResultSet
last
public boolean last() throws java.sql.SQLException
- Throws:
- java.sql.SQLException - on unexpected JDBC error
- See Also:
- java.sql.ResultSet
getRow
public int getRow() throws java.sql.SQLException
- Throws:
- java.sql.SQLException - on unexpected JDBC error
- See Also:
- java.sql.ResultSet
absolute
public boolean absolute(int row) throws java.sql.SQLException
- Throws:
- java.sql.SQLException - on unexpected JDBC error
- See Also:
- java.sql.ResultSet
relative
public boolean relative(int rows) throws java.sql.SQLException
- Throws:
- java.sql.SQLException - on unexpected JDBC error
- See Also:
- java.sql.ResultSet
previous
public boolean previous() throws java.sql.SQLException
- Throws:
- java.sql.SQLException - on unexpected JDBC error
- See Also:
- java.sql.ResultSet
setFetchDirection
public void setFetchDirection(int direction) throws java.sql.SQLException
- Throws:
- java.sql.SQLException - on unexpected JDBC error
- See Also:
- java.sql.ResultSet
getFetchDirection
public int getFetchDirection() throws java.sql.SQLException
- Throws:
- java.sql.SQLException - on unexpected JDBC error
- See Also:
- java.sql.ResultSet
setFetchSize
public void setFetchSize(int rows) throws java.sql.SQLException
- Throws:
- java.sql.SQLException - on unexpected JDBC error
- See Also:
- java.sql.ResultSet
getFetchSize
public int getFetchSize() throws java.sql.SQLException
- Throws:
- java.sql.SQLException - on unexpected JDBC error
- See Also:
- java.sql.ResultSet
getType
public int getType() throws java.sql.SQLException
- Throws:
- java.sql.SQLException - on unexpected JDBC error
- See Also:
- java.sql.ResultSet
getConcurrency
public int getConcurrency() throws java.sql.SQLException
- Throws:
- java.sql.SQLException - on unexpected JDBC error
- See Also:
- java.sql.ResultSet
rowUpdated
public boolean rowUpdated() throws java.sql.SQLException
- Throws:
- java.sql.SQLException - on unexpected JDBC error
- See Also:
- java.sql.ResultSet
rowInserted
public boolean rowInserted() throws java.sql.SQLException
- Throws:
- java.sql.SQLException - on unexpected JDBC error
- See Also:
- java.sql.ResultSet
rowDeleted
public boolean rowDeleted() throws java.sql.SQLException
- Throws:
- java.sql.SQLException - on unexpected JDBC error
- See Also:
- java.sql.ResultSet
updateNull
public void updateNull(int columnIndex) throws java.sql.SQLException
- Throws:
- java.sql.SQLException - on unexpected JDBC error
- See Also:
- java.sql.ResultSet
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
insertRow
public void insertRow() throws java.sql.SQLException
- Throws:
- java.sql.SQLException - on unexpected JDBC error
- See Also:
- java.sql.ResultSet
updateRow
public void updateRow() throws java.sql.SQLException
- Throws:
- java.sql.SQLException - on unexpected JDBC error
- See Also:
- java.sql.ResultSet
deleteRow
public void deleteRow() throws java.sql.SQLException
- Throws:
- java.sql.SQLException - on unexpected JDBC error
- See Also:
- java.sql.ResultSet
refreshRow
public void refreshRow() throws java.sql.SQLException
- Throws:
- java.sql.SQLException - on unexpected JDBC error
- See Also:
- java.sql.ResultSet
cancelRowUpdates
public void cancelRowUpdates() throws java.sql.SQLException
- Throws:
- java.sql.SQLException - on unexpected JDBC error
- See Also:
- java.sql.ResultSet
moveToInsertRow
public void moveToInsertRow() throws java.sql.SQLException
- Throws:
- java.sql.SQLException - on unexpected JDBC error
- See Also:
- java.sql.ResultSet
moveToCurrentRow
public void moveToCurrentRow() throws java.sql.SQLException
- Throws:
- java.sql.SQLException - on unexpected JDBC error
- See Also:
- java.sql.ResultSet
getStatement
public java.sql.Statement getStatement() throws java.sql.SQLException
- Throws:
- java.sql.SQLException - on unexpected JDBC error
- See Also:
- java.sql.ResultSet
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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