org.cofax
Class DummyDataStore

java.lang.Object
  |
  +--org.cofax.DataStore
        |
        +--org.cofax.DummyDataStore

public class DummyDataStore
extends DataStore

Provides an empty data store for use if no database connectivity is desired. A subclass of DataStore.

There is no mention of the DummyDataStore class in CofaxServlet. DataStore classes are listed in the configuration.

Version:
1.0
Author:
Karl Martino

Field Summary
 java.util.HashMap dbPackageTags
          Hashmap into which package tags may be placed into memory upon initialization.
 java.util.HashMap dbPackageTagsCache
          Hashmap into which package tag results are cached.
 java.util.HashMap dbPackageTagsCacheCommand
          Hashmap into which the cache results parameter (1,0) is thrown upon initialization.
 
Fields inherited from class org.cofax.DataStore
CLOB_COLUMNS, dataLog, dataLogLocation, dataLogMaxSize, PACKAGE_TAG_CACHE, PACKAGE_TAG_CACHE_COMMAND, PACKAGE_TAG_PROCESSED, PACKAGE_TAG_RESULTS
 
Constructor Summary
DummyDataStore()
           
 
Method Summary
 void clearCache(int whichCache)
          Clears the cache indicated with whichCache
 boolean connect(java.lang.String dbPool)
          Empty connect method always reports success
 boolean connectFromPool()
          Empty connect method always reports success
 void destroy()
          Empty destroy method
 boolean disConnect(java.lang.String dataStoreName)
          Empty disconnect method
 java.lang.Object getCacheValue(java.lang.Object key, int whichCache)
          Gets a single value from a cache object
 java.util.List getPackageData(java.util.HashMap data, java.lang.String tagName, java.lang.String tagData, boolean init)
          Overload for getPackageData that handles tag data and clobs additionally.
 java.util.List getPackageData(java.lang.String tag, java.lang.String tagStatement)
          Empty getPackageData routine, returns an empty ArrayList
 java.lang.String getPackageTag(java.lang.String tag, java.util.HashMap params)
          Empty getPackageTag method, always returns an empty string.
 void init(java.util.Properties dbProps)
          Empty init() method
 void init(java.lang.String configFile)
          Empty init() method
 void initPool()
          Empty init() method
 boolean insertArticle(java.util.HashMap article, java.lang.String approvedBy, java.lang.String xmlFileType, java.util.ArrayList mappings, java.util.ArrayList relatedLinks)
          Inserts an article to the datastore.
 void setCache(java.lang.Object cache, int whichCache)
          Empty setCache method
 
Methods inherited from class org.cofax.DataStore
getError, getLastError, setError, setLastError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dbPackageTags

public java.util.HashMap dbPackageTags
Hashmap into which package tags may be placed into memory upon initialization.

dbPackageTagsCacheCommand

public java.util.HashMap dbPackageTagsCacheCommand
Hashmap into which the cache results parameter (1,0) is thrown upon initialization.

dbPackageTagsCache

public java.util.HashMap dbPackageTagsCache
Hashmap into which package tag results are cached.
Constructor Detail

DummyDataStore

public DummyDataStore()
Method Detail

init

public void init(java.lang.String configFile)
Empty init() method
Overrides:
init in class DataStore

init

public void init(java.util.Properties dbProps)
Empty init() method
Overrides:
init in class DataStore

initPool

public void initPool()
Empty init() method
Overrides:
initPool in class DataStore

setCache

public void setCache(java.lang.Object cache,
                     int whichCache)
Empty setCache method
Overrides:
setCache in class DataStore

clearCache

public void clearCache(int whichCache)
Description copied from class: DataStore
Clears the cache indicated with whichCache
Overrides:
clearCache in class DataStore

getCacheValue

public java.lang.Object getCacheValue(java.lang.Object key,
                                      int whichCache)
Description copied from class: DataStore
Gets a single value from a cache object
Overrides:
getCacheValue in class DataStore

connect

public final boolean connect(java.lang.String dbPool)
Empty connect method always reports success
Overrides:
connect in class DataStore

connectFromPool

public final boolean connectFromPool()
Empty connect method always reports success
Overrides:
connectFromPool in class DataStore

getPackageTag

public final java.lang.String getPackageTag(java.lang.String tag,
                                            java.util.HashMap params)
Empty getPackageTag method, always returns an empty string.
Overrides:
getPackageTag in class DataStore
Following copied from class: org.cofax.DataStore
Parameters:
tag - The tag name. The Data Store must have a lookup table of names and definitions. the command.

getPackageData

public final java.util.List getPackageData(java.lang.String tag,
                                           java.lang.String tagStatement)
Empty getPackageData routine, returns an empty ArrayList
Overrides:
getPackageData in class DataStore

disConnect

public final boolean disConnect(java.lang.String dataStoreName)
Empty disconnect method
Overrides:
disConnect in class DataStore

destroy

public void destroy()
Empty destroy method
Overrides:
destroy in class DataStore

insertArticle

public boolean insertArticle(java.util.HashMap article,
                             java.lang.String approvedBy,
                             java.lang.String xmlFileType,
                             java.util.ArrayList mappings,
                             java.util.ArrayList relatedLinks)
Description copied from class: DataStore
Inserts an article to the datastore. TO DO: KILL ME PLEASE!!!
Overrides:
insertArticle in class DataStore

getPackageData

public java.util.List getPackageData(java.util.HashMap data,
                                     java.lang.String tagName,
                                     java.lang.String tagData,
                                     boolean init)
Description copied from class: DataStore
Overload for getPackageData that handles tag data and clobs additionally.
Overrides:
getPackageData in class DataStore


Copyright 2001 KnightRidder.com. All Rights Reserved.