org.compass.gps.device.jdbc.snapshot
Interface JdbcSnapshotEventListener

All Known Implementing Classes:
ResultSetSnapshotEventListener

public interface JdbcSnapshotEventListener

An interface for listening for real time data changes in the databases. The events are fired by a JdbcActiveMirrorGpsDevice.

Author:
kimchy

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.
 

Method Detail

configure

void configure(ConfigureSnapshotEvent configureSnapshotEvent)
               throws JdbcGpsDeviceException
A configure event fired when the systems starts.

Parameters:
configureSnapshotEvent -
Throws:
JdbcGpsDeviceException

onCreateAndUpdate

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

Parameters:
createAndUpdateSnapshotEvent -
Throws:
JdbcGpsDeviceException

onDelete

void onDelete(DeleteSnapshotEvent deleteSnapshotEvent)
              throws JdbcGpsDeviceException
A delete event. Fired with all the deleted rows for a given result set when the performMirroring is called.

Parameters:
deleteSnapshotEvent -
Throws:
JdbcGpsDeviceException


Copyright (c) 2004-2008 The Compass Project.