org.jboss.errai.jpa.sync.server
Class DataSyncServiceImpl
java.lang.Object
org.jboss.errai.jpa.sync.server.DataSyncServiceImpl
- All Implemented Interfaces:
- DataSyncService
public class DataSyncServiceImpl
- extends Object
- implements DataSyncService
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataSyncServiceImpl
public DataSyncServiceImpl(javax.persistence.EntityManager em,
JpaAttributeAccessor attributeAccessor)
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.
Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.