public class DataSynchronization
extends java.lang.Object
Constructor and Description |
---|
DataSynchronization() |
Modifier and Type | Method and Description |
---|---|
void |
cleanup(boolean delLogsonly)
Cleans up the logging table and internal tables used by the Mobile Support Client when a mobile application is uninstalled from a mobile device.
|
ResponseSet |
download(java.lang.String mscAlias,
Filter filter)
Downloads data from the server for synchronization requests associated with a specific mobile sync component and user filter.
|
java.lang.String[] |
getLogs()
Returns a String array with all the contents present in the log table.
|
ResponseSet |
sync(RowStructure[] rows,
java.lang.String mscAlias)
Performs a bidirectional synchronization by uploading data sent by the mobile application and downloading data from the server.
|
public ResponseSet download(java.lang.String mscAlias, Filter filter) throws com.softwareag.mobile.data.client.SyncClientException
mscAlias
- Mobile sync component name.filter
- Filter
Filter criteria defined in the add method of the Filter
class. The Mobile Support Client will download the data that matches the values specified in the filter.ResponseSet
Response for the data synchronization request.com.softwareag.mobile.data.client.SyncClientException
- Handles errors related to data synchronization operations. public ResponseSet sync(RowStructure[] rows, java.lang.String mscAlias) throws com.softwareag.mobile.data.client.SyncClientException
mscAlias
- Mobile sync component name.RowStructure
Array of RowStructure.ResponseSet
Response for the data synchronization request.com.softwareag.mobile.data.client.SyncClientException
- - Handles errors related to data synchronization operations. public java.lang.String[] getLogs()
public void cleanup(boolean delLogsonly) throws com.softwareag.mobile.data.client.SyncClientException
delLogsonly
- Indicates whether to delete the Log table only (true) or to delete all internal tables created and used by the Mobile Support Client (false).com.softwareag.mobile.data.client.SyncClientException
- - Handles errors related to data synchronization operations.