2004.04.29


com.jdc.rdb.tbl
Class TableCacheDAO

java.lang.Object
  |
  +--com.jdc.rdb.tbl.TableCacheDAO

public abstract class TableCacheDAO
extends Object

TableCacheDAO reads data from a database reference table and caches the results in a Hashtable for in-memory access.

Version:
1.0
Author:
Jay Damon

Constructor Summary
TableCacheDAO()
          Constructs a new TableCacheDAO object.
 
Method Summary
protected  Hashtable getCache()
          Returns the database table cache.
 String getQualifiedName()
          Returns the qualified database table name.
 String getSchemaName()
          Returns the database schema name.
protected  String getString(String fieldName)
          Returns the result set String value for the specified field name.
 String getTableName()
          Returns the database table name.
protected  void retrieveAll()
          Retrieves all rows from the database table.
protected abstract  void retrieveRow()
          Retrieves a row from the database table result set.
protected  void setSchemaName(String schemaName)
          Sets the database schema name.
protected  void setTableName(String tableName)
          Sets the database table name.
 String toString()
          Returns a String representation.
 String toXML()
          Returns an XML representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TableCacheDAO

public TableCacheDAO()
Constructs a new TableCacheDAO object.

Method Detail

getCache

protected Hashtable getCache()
Returns the database table cache.

Returns:
The database table cache.

getQualifiedName

public String getQualifiedName()
Returns the qualified database table name.

Returns:
The qualified database table name.

getSchemaName

public String getSchemaName()
Returns the database schema name.

Returns:
The database schema name.

getString

protected String getString(String fieldName)
Returns the result set String value for the specified field name.

Returns:
String

getTableName

public String getTableName()
Returns the database table name.

Returns:
The database table name.

retrieveAll

protected void retrieveAll()
Retrieves all rows from the database table.


retrieveRow

protected abstract void retrieveRow()
Retrieves a row from the database table result set.


setSchemaName

protected void setSchemaName(String schemaName)
Sets the database schema name.


setTableName

protected void setTableName(String tableName)
Sets the database table name.


toXML

public String toXML()
Returns an XML representation.

Returns:
String

toString

public String toString()
Returns a String representation.

Overrides:
toString in class Object
Returns:
String

2004.04.29



Copyright © 2004 J. Damon & Co.; All Rights Reserved WorldWide.