org.webdocwf.util.loader
Class Cache

java.lang.Object
  extended by org.webdocwf.util.loader.Cache

public class Cache
extends java.lang.Object

Cache - Load data from source tables (or select statements) and puts them into Hatshtable (cache).


Constructor Summary
Cache()
          Public constructor of cache class.
Cache(java.util.Hashtable cache)
          Public constructor of cache class.
 
Method Summary
 java.util.Hashtable getCache()
          Read current cache table
 java.util.Vector getCacheRow(java.math.BigDecimal row)
          Read row of source values.
 java.util.Vector getCacheRow(java.util.Hashtable cache, java.math.BigDecimal row)
          Read row of source values.
 void resetCache()
          Reset cache.
 void setCache(java.util.Hashtable cache)
          Set cache table.
 void setCacheRow(java.math.BigDecimal row, java.util.Vector sourceValues)
          Put row of source values into cache.
 void setCacheRow(java.util.Hashtable cache, java.math.BigDecimal row, java.util.Vector sourceValues)
          Put row of source values into cache.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Cache

public Cache()
Public constructor of cache class. Constructor create new hashtable


Cache

public Cache(java.util.Hashtable cache)
Public constructor of cache class. Constructor set cache table.

Parameters:
cache - is cache table.
Method Detail

getCache

public java.util.Hashtable getCache()
Read current cache table

Returns:
value of parmeter hCache

setCache

public void setCache(java.util.Hashtable cache)
Set cache table.

Parameters:
cache - is cache table

setCacheRow

public void setCacheRow(java.math.BigDecimal row,
                        java.util.Vector sourceValues)
Put row of source values into cache.

Parameters:
row - SQL query row
sourceValues - represents source values

setCacheRow

public void setCacheRow(java.util.Hashtable cache,
                        java.math.BigDecimal row,
                        java.util.Vector sourceValues)
Put row of source values into cache.

Parameters:
cache - is cache table
row - is SQL query row
sourceValues - represents source values

getCacheRow

public java.util.Vector getCacheRow(java.math.BigDecimal row)
Read row of source values.

Parameters:
row - is SQL query row.
Returns:
Vector values of source columns.

getCacheRow

public java.util.Vector getCacheRow(java.util.Hashtable cache,
                                    java.math.BigDecimal row)
Read row of source values.

Parameters:
row - is SQL query row.
cache - is cache table
Returns:
Vector values of source columns.

resetCache

public void resetCache()
Reset cache.



Copyright © 2002-2007 Together - the Workgroup. All Rights Reserved.