DB で生成されたクラスには、次のメソッドがあります。
/*!
@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 に同期パラメーターがある場合、それらはメインの synchronize/synchronizeWithListener メソッドで同期されないことに注意してください。