org.compass.gps.device.jdbc
Class ResultSetSnapshotEventListener

java.lang.Object
  extended by org.compass.gps.device.jdbc.ResultSetSnapshotEventListener
All Implemented Interfaces:
JdbcSnapshotEventListener

public class ResultSetSnapshotEventListener
extends Object
implements JdbcSnapshotEventListener

A JdbcSnapshotEventListener that works with ResultSetJdbcGpsDevice and performs the changes to the compass index after the change snapshots have been detected by the device.

Author:
kimchy

Constructor Summary
ResultSetSnapshotEventListener()
           
 
Method Summary
 void configure(ConfigureSnapshotEvent configureSnapshotEvent)
          A configure event fired when the systems starts.
 void onCreateAndUpdate(CreateAndUpdateSnapshotEvent createAndUpdateSnapshotEvent)
          A create and update event.
 void onDelete(DeleteSnapshotEvent deleteSnapshotEvent)
          A delete event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResultSetSnapshotEventListener

public ResultSetSnapshotEventListener()
Method Detail

configure

public void configure(ConfigureSnapshotEvent configureSnapshotEvent)
               throws JdbcGpsDeviceException
Description copied from interface: JdbcSnapshotEventListener
A configure event fired when the systems starts.

Specified by:
configure in interface JdbcSnapshotEventListener
Throws:
JdbcGpsDeviceException

onDelete

public void onDelete(DeleteSnapshotEvent deleteSnapshotEvent)
              throws JdbcGpsDeviceException
Description copied from interface: JdbcSnapshotEventListener
A delete event. Fired with all the deleted rows for a given result set when the performMirroring is called.

Specified by:
onDelete in interface JdbcSnapshotEventListener
Throws:
JdbcGpsDeviceException

onCreateAndUpdate

public void onCreateAndUpdate(CreateAndUpdateSnapshotEvent createAndUpdateSnapshotEvent)
                       throws JdbcGpsDeviceException
Description copied from interface: JdbcSnapshotEventListener
A create and update event. Fired with all the created rows and updated rows for a given result set when the performMirroring is called.

Specified by:
onCreateAndUpdate in interface JdbcSnapshotEventListener
Throws:
JdbcGpsDeviceException


Copyright (c) 2004-2009 The Compass Project.