1

我在我的 iPhone 应用程序中使用 Sybase Unwired Platform。我使用 SAP 功能模块创建了 MBO。我按照 iOS 开发人员指南 2.1 ESD #3 创建我的应用程序。我的 SUP 服务器中有一些同步组。我需要从我的 iPhone 客户端应用程序同步特定组。我尝试使用“beginSynchronize”和“submitPendingOperations”方法但它没有同步。当我尝试使用“synchronizeWithListener”方法时它有效但不是特定组。我需要提高同步速度通过同步特定组或特定 MBO。

我是 SUP 的新手。任何帮助都是可观的

4

1 回答 1

0

在您的数据库生成类中,您有以下方法:

/*!
  @method 
  @abstract synchronize the synchronizationGroup with server.
  @discussion
  @throws SUPPersistenceException
*/
 + (void)synchronize;

/*!
   @method 
   @abstract synchronize the synchronizationGroups with server, using custom syncStatusListener.
   @discussion
   @throws SUPPersistenceException
 */
  + (void)synchronizeWithListener:(id<SUPSyncStatusListener>) listener;

/*!
   @method 
   @abstract synchronize the synchronizationGroup with server, using custom syncStatusListener.
   @discussion
   @throws SUPPersistenceException
*/
  + (void)synchronize:(NSString *)synchronizationGroup withListener:(id<SUPSyncStatusListener>)listener;

/*!
   @method 
   @abstract synchronize the synchronizationGroup with server.
   @discussion
   @throws SUPPersistenceException
 */
 + (void)synchronize:(NSString*)synchronizationGroup;

采用参数synchronizationGroup的那些是您需要在您的情况下使用的(带有 of 没有侦听器,具体取决于您是否需要同步或异步操作)。

另外,请记住,如果您的 MBO 具有同步参数,它们将不会在主要的 synchronize/synchronizeWithListener 方法中同步。

于 2013-02-01T13:21:56.377 回答