Sybase Synchronization Group in iPhone



我正在我的iPhone应用程序中使用Sybase Unwired Platform。我使用SAP功能模块创建了MBO。我正在按照 iOS 开发人员指南 2.1 ESD #3 来创建我的应用程序。我的 SUP 服务器中有一些同步组。我需要从我的 iPhone 客户端应用程序同步特定组。我尝试使用"开始同步"和"提交待处理操作"方法,但它没有同步。当我尝试使用"同步与听众"方法时,它可以工作,但不适用于特定组。我需要通过同步特定组或特定 MBO 来提高同步速度。

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

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

/*!
  @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 的那些是您需要在您的情况下使用的那些(没有侦听器,具体取决于您想要同步还是异步操作)。

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

最新更新