org.webdocwf.util.loader
Class Cache

java.lang.Object
  |
  +--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.

Method Detail

getCache

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


setCache

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


setCacheRow

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


setCacheRow

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


getCacheRow

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

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.

Returns:
Vector values of source columns.

resetCache

public void resetCache()
Reset cache.



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