Errai 3.0.1-SNAPSHOT

org.jboss.errai.jpa.sync.client.shared
Interface DataSyncService

All Known Implementing Classes:
DataSyncServiceImpl

public interface DataSyncService

An Errai RPC service which is called by ClientSyncManager when it wishes to synchronize JPA data sets data between itself and the server. Applications that use Errai JPA DataSync are required to implement this interface on the server side; usually with an EJB which injects the correct @PersistenceContext for synchronizing with.


Method Summary
<X> List<SyncResponse<X>>
coldSync(SyncableDataSet<X> dataSet, List<SyncRequestOperation<X>> remoteResults)
          Performs a cold synchronization, usually by delegating to DataSyncServiceImpl.coldSync(SyncableDataSet, List).
 

Method Detail

coldSync

<X> List<SyncResponse<X>> coldSync(SyncableDataSet<X> dataSet,
                                   List<SyncRequestOperation<X>> remoteResults)
Performs a cold synchronization, usually by delegating to DataSyncServiceImpl.coldSync(SyncableDataSet, List). This method is not normally invoked directly by application code; rather, application code calls ClientSyncManager.coldSync(String, Class, java.util.Map, org.jboss.errai.common.client.api.RemoteCallback, org.jboss.errai.common.client.api.ErrorCallback) and that method calls this one via an Errai RPC Caller.

Parameters:
dataSet - The SyncableDataSet to synchronize between client and server.
remoteResults - The list of SyncRequestOperations produced by the ClientSyncManager for the given dataset.
Returns:
the list of sync responses produced by the server-side DataSyncServiceImpl.

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.