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.
-
database
-
-
debug
-
-
log
-
-
ResultsSet(String, Integer)
- Constructor to build an empty ResultsSet given an int describing the table
-
ResultsSet(String, Integer, Integer)
- Constructor to build a ResultsSet given a string or int describing the table and
an record id int.
-
ResultsSet(String, Integer, ResultSet)
- Constructor to build a ResultsSet given an int describing the table and
a java.sql.resultSet.
-
ResultsSet(String, String)
- Constructor to build an empty ResultsSet given a string describing the table
-
ResultsSet(String, String, Integer)
- Constructor to build a ResultsSet given a string or int describing the table and
an record id int.
-
ResultsSet(String, String, ResultSet)
- Constructor to build a ResultsSet given a string describing the table and
a java.sql.resultSet.
-
delete()
- delete this record
-
getMetaData()
- get the table meta data
-
getResultSet(Integer, Statement)
-
-
init(ResultSet)
-
-
reread()
- reread this record, requires that one of the fields is "autorandom".
-
write()
- write this record
-
write(boolean)
-
log
protected static Log log
debug
protected static final boolean debug
database
protected String database
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.
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.
ResultsSet
public ResultsSet(String db,
String tn) throws Exception
- Constructor to build an empty ResultsSet given a string describing the table
ResultsSet
public ResultsSet(String db,
Integer tn) throws Exception
- Constructor to build an empty ResultsSet given an int describing the table
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
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
init
protected void init(ResultSet rs) throws Exception
getResultSet
protected ResultSet getResultSet(Integer record,
Statement s) throws Exception
getMetaData
public TableMetaData getMetaData()
- get the table meta data
write
public void write() throws Exception
- write this record
write
public void write(boolean forceid) throws Exception
delete
public void delete() throws Exception
- delete this record
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