corny.addressbook.JNIHandler
Class AddressBookNotification

java.lang.Object
  extended by corny.addressbook.JNIHandler.AddressBookNotification
Direct Known Subclasses:
AddressBookNotification.MutableAddressBookNotification

public class AddressBookNotification
extends java.lang.Object

Notification class used when Adress Book change notifications are sent. Contains information about which Records have been inserted, changed and deleted.

Author:
Corny

Nested Class Summary
static class AddressBookNotification.MutableAddressBookNotification
          Mutable subclass of the AddressBookNotification class.
 
Method Summary
 java.util.Set<java.lang.String> getDeletedRecords()
           
 java.util.Set<java.lang.String> getInsertedRecords()
           
 java.util.Set<java.lang.String> getUpdatedRecords()
           
 boolean hasChangedGroups()
           
 boolean hasChanges()
           
 boolean hasDeletedRecords()
           
 boolean hasInsertedRecords()
           
 boolean hasUpdatedRecords()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInsertedRecords

public java.util.Set<java.lang.String> getInsertedRecords()
Returns:
List of the UIDs of all Records which were inserted since the last Notification was sent.

getUpdatedRecords

public java.util.Set<java.lang.String> getUpdatedRecords()
Returns:
List of the UIDs of all Records which were updated since the last Notification was sent.

getDeletedRecords

public java.util.Set<java.lang.String> getDeletedRecords()
Returns:
List of the UIDs of all Records which were deleted since the last Notification was sent.

hasInsertedRecords

public boolean hasInsertedRecords()
Returns:
true, if Records were inserted since the last Notification was sent.

hasUpdatedRecords

public boolean hasUpdatedRecords()
Returns:
true, if Records were updated since the last Notification was sent.

hasDeletedRecords

public boolean hasDeletedRecords()
Returns:
true, if Records were deleted since the last Notification was sent.

hasChanges

public boolean hasChanges()
Returns:
true, if this Notification contains any change information.

hasChangedGroups

public boolean hasChangedGroups()
Returns:
true, if this Notification contains any information about changed Groups.