org.webdocwf.util.loader
Class RelationsCache

java.lang.Object
  extended byorg.webdocwf.util.loader.RelationsCache

public class RelationsCache
extends java.lang.Object

RelationsCache class is used for caching value of relation column if the tableMode is Cache in

tag of impordDefinition job

Version:
1.0
Author:
not Radoslav Dutina

Constructor Summary
RelationsCache()
          Empty constructor of RelationsCache class
 
Method Summary
 java.lang.Object getRelationsCacheValue(java.lang.String key)
          This method read value from relationCacheValue hashtable
 java.lang.String getRelationsCachType(java.lang.String key)
          This method read value from relationCacheType hashtable
 void resetRelationsCache()
          This method empty all values of hashtables: relationCacheValue and relationCacheType
 void setRelationsCacheType(java.lang.String key, java.lang.String type)
          This method sets the value of relationCacheType hashtable
 void setRelationsCacheValue(java.lang.String key, java.lang.Object obj)
          This method sets the value of relationCacheValue hashtable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RelationsCache

public RelationsCache()
Empty constructor of RelationsCache class

Method Detail

setRelationsCacheValue

public void setRelationsCacheValue(java.lang.String key,
                                   java.lang.Object obj)
This method sets the value of relationCacheValue hashtable

Parameters:
key - is string which reperesents sql statement
obj - is value of this sql statement

setRelationsCacheType

public void setRelationsCacheType(java.lang.String key,
                                  java.lang.String type)
This method sets the value of relationCacheType hashtable

Parameters:
key - is string which reperesents sql statement
type - is value of this sql statement

getRelationsCacheValue

public java.lang.Object getRelationsCacheValue(java.lang.String key)
This method read value from relationCacheValue hashtable

Parameters:
key - is string which reperesents sql statement
Returns:
value from hashtable

getRelationsCachType

public java.lang.String getRelationsCachType(java.lang.String key)
This method read value from relationCacheType hashtable

Parameters:
key - is string which reperesents sql statement
Returns:
value from hashtable

resetRelationsCache

public void resetRelationsCache()
This method empty all values of hashtables: relationCacheValue and relationCacheType



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