Class VTITemplate

java.lang.Object
org.apache.derby.vti.VTITemplate
All Implemented Interfaces:
AutoCloseable, ResultSet, Wrapper, AwareVTI
Direct Known Subclasses:
ForwardingVTI, SimpleJsonVTI, StringColumnVTI

public abstract class VTITemplate extends Object implements ResultSet, AwareVTI
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 4.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

  • next()
  • close()

For table functions and virtual tables, the database engine only calls methods defined in the JDBC 2.0 definition of java.sql.ResultSet.