All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class org.paneris.util.DataCache

java.lang.Object
   |
   +----org.paneris.util.DataCache

public class DataCache
extends Object
This class is a Singleton that provides access to datadictionary objects. if a datadictionary has not yet been cached, it is created in the conventional manner. A client gets access to the single instance through the static getInstance() method and can then grap datadictionary objects


Method Index

 o EmptyCache()
 o getFieldMetaData(String, Integer)
returns a reference to fieldmetadata for a given field (given as an int)
 o getInstance()
Returns the single instance, creating one if it's the first time this method is called.
 o getResultsSet(String, String, Integer)
returns a reference to a cached resultsset (assuming it is cached).
 o getTableMetaData(String, Integer)
returns a reference to tablemetadata for a given table (given as an int)
 o getTableMetaData(String, String)
returns a reference to tablemetadata for a given table (given as a string)
 o updateResultsSets(String, String, Integer)

Methods

 o getInstance
 public static synchronized DataCache getInstance()
Returns the single instance, creating one if it's the first time this method is called.

Returns:
DataCache - The single instance.
 o getTableMetaData
 public TableMetaData getTableMetaData(String db,
                                       String tableName) throws Exception
returns a reference to tablemetadata for a given table (given as a string)

 o getTableMetaData
 public TableMetaData getTableMetaData(String db,
                                       Integer tableNumber) throws Exception
returns a reference to tablemetadata for a given table (given as an int)

 o getFieldMetaData
 public FieldMetaData getFieldMetaData(String db,
                                       Integer fieldNumber) throws Exception
returns a reference to fieldmetadata for a given field (given as an int)

 o getResultsSet
 public ResultsSet getResultsSet(String db,
                                 String tn,
                                 Integer fn) throws Exception
returns a reference to a cached resultsset (assuming it is cached). if it isn't, then it just does the sql lookup itself. This is used for caching of automatic lookup fields

 o updateResultsSets
 public ResultsSet updateResultsSets(String db,
                                     String tn,
                                     Integer fn) throws Exception
 o EmptyCache
 public void EmptyCache()

All Packages  Class Hierarchy  This Package  Previous  Next  Index