org.webdocwf.util.loader
Class CheckRowCache

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

public class CheckRowCache
extends java.lang.Object

CheckRowCache class is used to cache queries which will be sent to target database to check if some row exists

Version:
1.0
Author:
Radoslav Dutina

Constructor Summary
CheckRowCache()
           
 
Method Summary
 boolean getCheckRowValue(java.lang.String key, java.sql.Connection conn, int iTargetFirstColumnResult, java.lang.String versionColumnName)
           
 int getCheckRowVersionValue()
          This method is use to retrive value of cached row
 int getCurrentVersion()
          This method is use to retrive value of currentVersion parameter
 void resetCheckRowCache()
          This method is use to reset all parameters which are used in this class
 void setLogger(Logger logger)
          This method is use to set logger object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CheckRowCache

public CheckRowCache()
Method Detail

getCheckRowVersionValue

public int getCheckRowVersionValue()
This method is use to retrive value of cached row

Returns:
value of cache row

getCheckRowValue

public boolean getCheckRowValue(java.lang.String key,
                                java.sql.Connection conn,
                                int iTargetFirstColumnResult,
                                java.lang.String versionColumnName)
                         throws java.lang.Exception
Throws:
java.lang.Exception

resetCheckRowCache

public void resetCheckRowCache()
This method is use to reset all parameters which are used in this class


setLogger

public void setLogger(Logger logger)
This method is use to set logger object

Parameters:
logger - is current logger

getCurrentVersion

public int getCurrentVersion()
This method is use to retrive value of currentVersion parameter

Returns:
value of parameter


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