|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.derby.vti.VTITemplateBase
org.apache.derby.vti.VTITemplate
public abstract class VTITemplate
An abstract implementation of ResultSet that is useful when writing table functions, read-only VTIs (virtual table interface), and the ResultSets returned by executeQuery in read-write VTI classes. This class implements most of the methods of the JDBC 3.0 interface java.sql.ResultSet, each one throwing a SQLException with the name of the method. A concrete subclass can then just implement the methods not implemented here and override any methods it needs to implement for correct functionality.
The methods not implemented here are
For table functions and virtual tables, the database engine only calls methods defined
in the JDBC 2.0 definition of java.sql.ResultSet.
Classes that implement a JDBC 2.0 conformant java.sql.ResultSet can be used
as table functions and virtual tables.
| Field Summary |
|---|
| Fields inherited from interface java.sql.ResultSet |
|---|
CLOSE_CURSORS_AT_COMMIT, CONCUR_READ_ONLY, CONCUR_UPDATABLE, FETCH_FORWARD, FETCH_REVERSE, FETCH_UNKNOWN, HOLD_CURSORS_OVER_COMMIT, TYPE_FORWARD_ONLY, TYPE_SCROLL_INSENSITIVE, TYPE_SCROLL_SENSITIVE |
| Constructor Summary | |
|---|---|
VTITemplate()
|
|
| Method Summary | |
|---|---|
abstract void |
close()
|
java.math.BigDecimal |
getBigDecimal(java.lang.String columnName)
|
java.math.BigDecimal |
getBigDecimal(java.lang.String columnName,
int scale)
|
boolean |
getBoolean(java.lang.String columnName)
|
byte |
getByte(java.lang.String columnName)
|
byte[] |
getBytes(java.lang.String columnName)
|
java.sql.Date |
getDate(java.lang.String columnName)
|
double |
getDouble(java.lang.String columnName)
|
float |
getFloat(java.lang.String columnName)
|
int |
getInt(java.lang.String columnName)
|
long |
getLong(java.lang.String columnName)
|
java.lang.Object |
getObject(java.lang.String columnName)
|
short |
getShort(java.lang.String columnName)
|
java.lang.String |
getString(java.lang.String columnName)
|
java.sql.Time |
getTime(java.lang.String columnName)
|
java.sql.Timestamp |
getTimestamp(java.lang.String columnName)
|
abstract boolean |
next()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.sql.ResultSet |
|---|
getHoldability, getNCharacterStream, getNCharacterStream, getNClob, getNClob, getNString, getNString, getRowId, getRowId, getSQLXML, getSQLXML, isClosed, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBlob, updateBlob, updateBlob, updateBlob, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateClob, updateClob, updateClob, updateClob, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNString, updateNString, updateRowId, updateRowId, updateSQLXML, updateSQLXML |
| Methods inherited from interface java.sql.Wrapper |
|---|
isWrapperFor, unwrap |
| Constructor Detail |
|---|
public VTITemplate()
| Method Detail |
|---|
public abstract boolean next()
throws java.sql.SQLException
next in interface java.sql.ResultSetnext in class VTITemplateBasejava.sql.SQLException
public abstract void close()
throws java.sql.SQLException
close in interface java.sql.ResultSetclose in class VTITemplateBasejava.sql.SQLException
public java.lang.String getString(java.lang.String columnName)
throws java.sql.SQLException
getString in interface java.sql.ResultSetgetString in class VTITemplateBasejava.sql.SQLException
public boolean getBoolean(java.lang.String columnName)
throws java.sql.SQLException
getBoolean in interface java.sql.ResultSetgetBoolean in class VTITemplateBasejava.sql.SQLException
public byte getByte(java.lang.String columnName)
throws java.sql.SQLException
getByte in interface java.sql.ResultSetgetByte in class VTITemplateBasejava.sql.SQLException
public short getShort(java.lang.String columnName)
throws java.sql.SQLException
getShort in interface java.sql.ResultSetgetShort in class VTITemplateBasejava.sql.SQLException
public int getInt(java.lang.String columnName)
throws java.sql.SQLException
getInt in interface java.sql.ResultSetgetInt in class VTITemplateBasejava.sql.SQLException
public long getLong(java.lang.String columnName)
throws java.sql.SQLException
getLong in interface java.sql.ResultSetgetLong in class VTITemplateBasejava.sql.SQLException
public float getFloat(java.lang.String columnName)
throws java.sql.SQLException
getFloat in interface java.sql.ResultSetgetFloat in class VTITemplateBasejava.sql.SQLException
public double getDouble(java.lang.String columnName)
throws java.sql.SQLException
getDouble in interface java.sql.ResultSetgetDouble in class VTITemplateBasejava.sql.SQLException
public java.math.BigDecimal getBigDecimal(java.lang.String columnName,
int scale)
throws java.sql.SQLException
getBigDecimal in interface java.sql.ResultSetgetBigDecimal in class VTITemplateBasejava.sql.SQLException
public byte[] getBytes(java.lang.String columnName)
throws java.sql.SQLException
getBytes in interface java.sql.ResultSetgetBytes in class VTITemplateBasejava.sql.SQLException
public java.sql.Date getDate(java.lang.String columnName)
throws java.sql.SQLException
getDate in interface java.sql.ResultSetgetDate in class VTITemplateBasejava.sql.SQLException
public java.sql.Time getTime(java.lang.String columnName)
throws java.sql.SQLException
getTime in interface java.sql.ResultSetgetTime in class VTITemplateBasejava.sql.SQLException
public java.sql.Timestamp getTimestamp(java.lang.String columnName)
throws java.sql.SQLException
getTimestamp in interface java.sql.ResultSetgetTimestamp in class VTITemplateBasejava.sql.SQLException
public java.lang.Object getObject(java.lang.String columnName)
throws java.sql.SQLException
getObject in interface java.sql.ResultSetgetObject in class VTITemplateBasejava.sql.SQLException
public java.math.BigDecimal getBigDecimal(java.lang.String columnName)
throws java.sql.SQLException
getBigDecimal in interface java.sql.ResultSetgetBigDecimal in class VTITemplateBasejava.sql.SQLException
|
Built on Wed 2013-06-12 15:21:56+0000, from revision ??? | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||