All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class org.paneris.util.ResultsSet

java.lang.Object
   |
   +----java.util.Dictionary
           |
           +----java.util.Hashtable
                   |
                   +----org.paneris.util.ExtendedHash
                           |
                           +----org.paneris.util.ResultsSet

public class ResultsSet
extends ExtendedHash

A resultsset holds data and metadata for a single result from the database it is passed into the webcontext and introspected by the template.


Variable Index

 o database
 o debug
 o log

Constructor Index

 o ResultsSet(String, Integer)
Constructor to build an empty ResultsSet given an int describing the table
 o ResultsSet(String, Integer, Integer)
Constructor to build a ResultsSet given a string or int describing the table and an record id int.
 o ResultsSet(String, Integer, ResultSet)
Constructor to build a ResultsSet given an int describing the table and a java.sql.resultSet.
 o ResultsSet(String, String)
Constructor to build an empty ResultsSet given a string describing the table
 o ResultsSet(String, String, Integer)
Constructor to build a ResultsSet given a string or int describing the table and an record id int.
 o ResultsSet(String, String, ResultSet)
Constructor to build a ResultsSet given a string describing the table and a java.sql.resultSet.

Method Index

 o delete()
delete this record
 o getMetaData()
get the table meta data
 o getResultSet(Integer, Statement)
 o init(ResultSet)
 o reread()
reread this record, requires that one of the fields is "autorandom".
 o write()
write this record
 o write(boolean)

Variables

 o log
 protected static Log log
 o debug
 protected static final boolean debug
 o database
 protected String database

Constructors

 o ResultsSet
 public ResultsSet(String db,
                   String tn,
                   ResultSet rs) throws Exception
Constructor to build a ResultsSet given a string describing the table and a java.sql.resultSet.

 o ResultsSet
 public ResultsSet(String db,
                   Integer tn,
                   ResultSet rs) throws Exception
Constructor to build a ResultsSet given an int describing the table and a java.sql.resultSet.

 o ResultsSet
 public ResultsSet(String db,
                   String tn) throws Exception
Constructor to build an empty ResultsSet given a string describing the table

 o ResultsSet
 public ResultsSet(String db,
                   Integer tn) throws Exception
Constructor to build an empty ResultsSet given an int describing the table

 o ResultsSet
 public ResultsSet(String db,
                   String tn,
                   Integer record) throws Exception
Constructor to build a ResultsSet given a string or int describing the table and an record id int. if you don't have a record id, send it in as null

 o ResultsSet
 public ResultsSet(String db,
                   Integer tn,
                   Integer record) throws Exception
Constructor to build a ResultsSet given a string or int describing the table and an record id int. if you don't have a record id, send it in as null

Methods

 o init
 protected void init(ResultSet rs) throws Exception
 o getResultSet
 protected ResultSet getResultSet(Integer record,
                                  Statement s) throws Exception
 o getMetaData
 public TableMetaData getMetaData()
get the table meta data

 o write
 public void write() throws Exception
write this record

 o write
 public void write(boolean forceid) throws Exception
 o delete
 public void delete() throws Exception
delete this record

 o reread
 public void reread() throws Exception
reread this record, requires that one of the fields is "autorandom". this method is used to get the id of a newely inserted record


All Packages  Class Hierarchy  This Package  Previous  Next  Index