Sun GlassFish Mobility Platform 1.1 Developer's Guide for Client Applications

The SyncResults Class

Table 4–11 lists the methods belonging to the SyncResults class. This class contains statistics about the most recent synchronization (additions, deletions, and modifications).

Table 4–11 Class com.sun.mep.client.api.SyncResults

Method 

Description 

public int getClientAdditions()

Returns the number of records added on the client and sent to the server. 

public int getClientDeletions()

Returns the number of records deleted on the client and sent to the server. 

public int getClientUpdates()

Returns the number of records updated on the client and sent to the server. 

public int getServerAdditions()

Returns the number of records added on the server and sent to the client. 

public int getServerDeletions()

Returns the number of records deleted on the server and sent to the client. 

public int getServerUpdates()

Returns the number of records updated on the server and sent to the client. 

public java.util.Vector listClientAdditions()

Returns the list of BusinessObject names that were added on the client since the last sync.

The return type should be treated as a Vector<String>.

public java.util.Vector listClientDeletions()

Return the list of BusinessObject names that were deleted on the client since the last sync.

The return type should be treated as a Vector<String>.

public java.util.Vector listClientUpdates()

Returns the list of BusinessObject names that were updated on the client since the last sync.

The return type should be treated as a Vector<String>.

public java.util.Vector listServerAdditions()

Returns the list of BusinessObject names that were added on the client during the last sync from the server.

The return type should be treated as a Vector<String>.

public java.util.Vector listServerDeletions()

Returns the list of BusinessObject names that were deleted on the client during the last sync from the server.

The return type should be treated as a Vector<String>.

public java.util.Vector listServerUpdates()

Returns the list of BusinessObject names that were updated on the client during the last sync from the server.

The return type should be treated as a Vector<String>.