agonism.dovetail.site
Class RecordSentry

java.lang.Object
  |
  +--agonism.dovetail.site.RecordSentry

public class RecordSentry
extends java.lang.Object

This class can be used to determine when the value for a column in a ResultSet has changed.


Constructor Summary
RecordSentry(Query query, java.lang.String resultName)
          Construct a RecordSentry that will watch the named Query result
 
Method Summary
 boolean hasChanged(boolean ignoreFirstChange)
          Get whether the named result has changed after the ResultSet has been advanced.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RecordSentry

public RecordSentry(Query query,
                    java.lang.String resultName)
Construct a RecordSentry that will watch the named Query result
Method Detail

hasChanged

public boolean hasChanged(boolean ignoreFirstChange)
Get whether the named result has changed after the ResultSet has been advanced.
Parameters:
ignoreFirstChange - return false the first time the value changes