Project Wonder 2.0

er.changenotification
Class ERCNSnapshot

java.lang.Object
  extended byer.changenotification.ERCNSnapshot
All Implemented Interfaces:
Serializable

public class ERCNSnapshot
extends Object
implements Serializable

ERCNSnapshot encapsulates changes in enterprise objects for single saveChanges operation. It implements java.io.Serializable interface so that it can be transmitted between application instances as a JMS object message.

Its constructor is called by ERCNPublisher object. It processes the change notification posted by the default EOObjectStoreCoordinator and populate the dictionaries with the snapshots of updated enterprise objects.

See Also:
Serialized Form

Field Summary
static String DELETED
           
static String INSERTED
           
static String UPDATED
           
 
Constructor Summary
ERCNSnapshot(NSNotification notification)
           
 
Method Summary
 NSDictionary globalIDsForDeletionGroupedByEntity()
           
 NSDictionary globalIDsGroupedByEntity(NSArray objects)
           
 String senderAppName()
           
 String senderHost()
           
 Number senderPort()
           
 NSDictionary shapshotsForInsertionGroupedByEntity()
           
 NSDictionary shapshotsForUpdateGroupedByEntity()
           
static boolean shouldApplyChangeFor(String operation)
           
 boolean shouldPostChange()
           
static boolean shouldSynchronizeEntity(String entityName)
           
 NSDictionary snapshotsGroupedByEntity(NSArray objects)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INSERTED

public static final String INSERTED
See Also:
Constant Field Values

UPDATED

public static final String UPDATED
See Also:
Constant Field Values

DELETED

public static final String DELETED
See Also:
Constant Field Values
Constructor Detail

ERCNSnapshot

public ERCNSnapshot(NSNotification notification)
Method Detail

shapshotsForInsertionGroupedByEntity

public NSDictionary shapshotsForInsertionGroupedByEntity()

shapshotsForUpdateGroupedByEntity

public NSDictionary shapshotsForUpdateGroupedByEntity()

globalIDsForDeletionGroupedByEntity

public NSDictionary globalIDsForDeletionGroupedByEntity()

shouldPostChange

public boolean shouldPostChange()

shouldApplyChangeFor

public static boolean shouldApplyChangeFor(String operation)

shouldSynchronizeEntity

public static boolean shouldSynchronizeEntity(String entityName)

senderHost

public String senderHost()

senderPort

public Number senderPort()

senderAppName

public String senderAppName()

snapshotsGroupedByEntity

public NSDictionary snapshotsGroupedByEntity(NSArray objects)

globalIDsGroupedByEntity

public NSDictionary globalIDsGroupedByEntity(NSArray objects)

toString

public String toString()

Last updated: Do, Dez 9, 2004 • 12:46 PM CET

Copyright © 2002 – 2004 Project Wonder.