cancel
Showing results for 
Search instead for 
Did you mean: 

Use of Persistence API

Former Member
0 Kudos

Hi,

I want to know any business scenario, or any case where the Persistence API are explicitly needed.Whenever we use a smart sync application based on the metaRep.xml file the persistence to the DB2E or filesystem is taken care of by the Framework itself . So where do we need to implement it?

Thanks in Advance

Veerabhadram

Accepted Solutions (1)

Accepted Solutions (1)

former_member304703
Contributor
0 Kudos

Hi Veerabhadram,

Mobile Asset Management application is using both Framework persistence to download/upload data (with SmartSync, via SyncBo) and local persistence.

When data is local and only serves to run application we persist it locally.

One example - all lists in application are defined in xml file, which is rendered either when application run first or xml file is changed. We persist rendering results for performance purposes.

Cheers,

Larissa Limarova

Former Member
0 Kudos

Hi Karthik,Larissa

Thank you very much for your suggestions.

Veerabhadram

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Veerabhadram,

You only need to use Persistence APIs when you are using a Generic Sync Application. You do not need to use Persistence APIs when you have a Smart Sync Application. Just so that you know the Smart Sync Layer would use the same Persistence APIs to store and retreive your data.

When you have a Generic Sync Application you have to take care of your own persistence.

Hope this clears your doubt.

Best Regards,

Karthik