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
-
EmptyCache()
-
-
getFieldMetaData(String, Integer)
- returns a reference to fieldmetadata for a given field (given as an int)
-
getInstance()
- Returns the single instance, creating one if it's the
first time this method is called.
-
getResultsSet(String, String, Integer)
- returns a reference to a cached resultsset (assuming it is cached).
-
getTableMetaData(String, Integer)
- returns a reference to tablemetadata for a given table (given as an int)
-
getTableMetaData(String, String)
- returns a reference to tablemetadata for a given table (given as a string)
-
updateResultsSets(String, String, Integer)
-
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.
getTableMetaData
public TableMetaData getTableMetaData(String db,
String tableName) throws Exception
- returns a reference to tablemetadata for a given table (given as a string)
getTableMetaData
public TableMetaData getTableMetaData(String db,
Integer tableNumber) throws Exception
- returns a reference to tablemetadata for a given table (given as an int)
getFieldMetaData
public FieldMetaData getFieldMetaData(String db,
Integer fieldNumber) throws Exception
- returns a reference to fieldmetadata for a given field (given as an int)
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
updateResultsSets
public ResultsSet updateResultsSets(String db,
String tn,
Integer fn) throws Exception
EmptyCache
public void EmptyCache()
All Packages Class Hierarchy This Package Previous Next Index