dochelper
Class JdbcTableRecordSet

java.lang.Object
  extended by dochelper.AbstractTableRecordSet
      extended by dochelper.JdbcTableRecordSet
All Implemented Interfaces:
Configurable, RecordSet

public class JdbcTableRecordSet
extends AbstractTableRecordSet


Field Summary
protected  java.lang.String DRIVER
          Param Keys: DRIVER.
protected  java.lang.String FIELDS
          Param Keys: FIELDS.
protected  java.lang.String FILTER
          Param Keys: WHERE.
protected  java.lang.String PASS
          Param Keys: PASS.
private  java.util.ArrayList<Record> records
          ArrayList containing Records.
protected  java.lang.String TABLE
          Param Keys: TABLE.
protected  java.lang.String URL
          Param Keys: URL.
protected  java.lang.String USER
          Param Keys: USER.
 
Fields inherited from class dochelper.AbstractTableRecordSet
params
 
Constructor Summary
JdbcTableRecordSet()
           
 
Method Summary
protected  void checkParamsImpl()
          Subclass should implement this method
protected  void fetchRecords(java.sql.Connection conn)
           
protected  java.util.List<Record> getRecords()
          Method used to retrieve a list of Records for this RecordSet.
protected  void initImpl()
          Subclass should implement this method.
 
Methods inherited from class dochelper.AbstractTableRecordSet
addPattern, checkParams, clearPatterns, execute, getName, init, setName, setParam
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

USER

protected java.lang.String USER
Param Keys: USER.


PASS

protected java.lang.String PASS
Param Keys: PASS.


URL

protected java.lang.String URL
Param Keys: URL.


DRIVER

protected java.lang.String DRIVER
Param Keys: DRIVER.


TABLE

protected java.lang.String TABLE
Param Keys: TABLE.


FIELDS

protected java.lang.String FIELDS
Param Keys: FIELDS.


FILTER

protected java.lang.String FILTER
Param Keys: WHERE.


records

private java.util.ArrayList<Record> records
ArrayList containing Records.

Constructor Detail

JdbcTableRecordSet

public JdbcTableRecordSet()
Method Detail

initImpl

protected void initImpl()
                 throws java.sql.SQLException,
                        ResourceUnavailableException
Description copied from class: AbstractTableRecordSet
Subclass should implement this method.

Specified by:
initImpl in class AbstractTableRecordSet
Throws:
java.sql.SQLException
ResourceUnavailableException

checkParamsImpl

protected void checkParamsImpl()
                        throws MissingArgumentException,
                               InvalidValueException,
                               ResourceUnavailableException
Description copied from class: AbstractTableRecordSet
Subclass should implement this method

Specified by:
checkParamsImpl in class AbstractTableRecordSet
Throws:
MissingArgumentException
InvalidValueException
ResourceUnavailableException

getRecords

protected java.util.List<Record> getRecords()
                                     throws ResourceUnavailableException,
                                            java.sql.SQLException
Description copied from class: AbstractTableRecordSet
Method used to retrieve a list of Records for this RecordSet. Depending on implementation, this may mean the fetching a list that has been retrieved during initialization, or it may mean actually performing the database retrieveal operation.

Specified by:
getRecords in class AbstractTableRecordSet
Returns:
List of Record objects.
Throws:
ResourceUnavailableException
java.sql.SQLException

fetchRecords

protected void fetchRecords(java.sql.Connection conn)
                     throws java.sql.SQLException
Parameters:
conn -
Throws:
java.sql.SQLException