Errai 3.0.1-SNAPSHOT

org.jboss.errai.jpa.sync.server
Class DataSyncServiceImpl

java.lang.Object
  extended by org.jboss.errai.jpa.sync.server.DataSyncServiceImpl
All Implemented Interfaces:
DataSyncService

public class DataSyncServiceImpl
extends Object
implements DataSyncService


Constructor Summary
DataSyncServiceImpl(javax.persistence.EntityManager em, JpaAttributeAccessor attributeAccessor)
           
 
Method Summary
<E> List<SyncResponse<E>>
coldSync(SyncableDataSet<E> dataSet, List<SyncRequestOperation<E>> syncRequestOps)
          Performs a cold synchronization, usually by delegating to coldSync(SyncableDataSet, List).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataSyncServiceImpl

public DataSyncServiceImpl(javax.persistence.EntityManager em,
                           JpaAttributeAccessor attributeAccessor)
Method Detail

coldSync

public <E> List<SyncResponse<E>> coldSync(SyncableDataSet<E> dataSet,
                                          List<SyncRequestOperation<E>> syncRequestOps)
Description copied from interface: DataSyncService
Performs a cold synchronization, usually by delegating to 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.

Specified by:
coldSync in interface DataSyncService
Parameters:
dataSet - The SyncableDataSet to synchronize between client and server.
syncRequestOps - 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.