org.compass.gps.device.jdbc.snapshot
Class CreateAndUpdateSnapshotEvent

java.lang.Object
  extended by org.compass.gps.device.jdbc.snapshot.AbstractSnapshotEvent
      extended by org.compass.gps.device.jdbc.snapshot.CreateAndUpdateSnapshotEvent

public class CreateAndUpdateSnapshotEvent
extends AbstractSnapshotEvent

A create and update snapshot event, works with JdbcSnapshotEventListener.onCreateAndUpdate(CreateAndUpdateSnapshotEvent). Holds the ResultSetToResourceMapping that maps to the result set that initiated the event, a list of JdbcAliasRowSnapshot for all the row snapapshots that were created and a list for all the ones that were updated, and the CompassTemplate to use in order to reflect the changes to the index.

Author:
kimchy

Constructor Summary
CreateAndUpdateSnapshotEvent(Connection connection, JdbcDialect dialect, ResultSetToResourceMapping mapping, List createSnapshots, List updateSnapshots, CompassGpsInterfaceDevice compassGps)
           
 
Method Summary
 CompassGpsInterfaceDevice getCompassGps()
           
 List getCreateSnapshots()
           
 ResultSetToResourceMapping getMapping()
           
 List getUpdateSnapshots()
           
 
Methods inherited from class org.compass.gps.device.jdbc.snapshot.AbstractSnapshotEvent
getConnection, getDialect
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreateAndUpdateSnapshotEvent

public CreateAndUpdateSnapshotEvent(Connection connection,
                                    JdbcDialect dialect,
                                    ResultSetToResourceMapping mapping,
                                    List createSnapshots,
                                    List updateSnapshots,
                                    CompassGpsInterfaceDevice compassGps)
Method Detail

getCreateSnapshots

public List getCreateSnapshots()

getUpdateSnapshots

public List getUpdateSnapshots()

getMapping

public ResultSetToResourceMapping getMapping()

getCompassGps

public CompassGpsInterfaceDevice getCompassGps()


Copyright (c) 2004-2008 The Compass Project.