Deprecated. Use Cache (with implicit persistence) insteadDeclares the Persistence protocol (interface) Protocol to be adapted by client classes in order to achieve the Persistence functionality
All members of SDMPersisting, including inherited members.
MethodsMethod | Description |
---|---|
- (void) clear | Should wipe out all persisted content. |
- (id< SDMCaching >) loadCache: (NSString *) uid_in | Should load a previously persisted data based on it's unique identifier The UID is returned upon succesfully persisting the data; it has to be managed by the caller in order to retrieve the persisted data or to overwrite it later on. |
- (NSData *) loadData: (NSString *) uid_in | Should load a previously persisted data based on it's unique identifier The UID is returned upon succesfully persisting the data; it has to be managed by the caller in order to retrieve the persisted data. |
- (id< NSCoding >) loadSerializable: (NSString *) uid_in | Should load a previously persisted object which adopts the NSCoding protocol based on it's unique identifier The UID is returned upon succesfully persisting the data; it has to be managed by the caller in order to retrieve the persisted data or to overwrite it later on. |
- (StoragePolicy) storagePolicy | Should return the default storage policy For builds targeting iOS4.0+ the default should be FullProtectionStoragePolicy. |
- (NSString *) storeCache: (id< SDMCaching >) cache_in | Should store the data to the app's sandbox, returning a unique identifier The returned UID has to be managed by the caller in order to retrieve the persisted data or to overwrite the contents using a successive storeCache: call. |
- (NSString *) storeData: (NSData *) data_in withId: (NSString *) uid_in | Should store the data to the app's filesystem (sandbox), returning a unique identifier The returned UID has to be managed by the caller in order to retrieve the persisted data or to overwrite the contents using a successive storeData: call. |
- (NSString *) storeSerializable: (id< NSCoding >) serializable_in withId: (NSString *) uid_in | Should store serializable data to the app's sandbox, returning a unique identifier The returned UID has to be managed by the caller in order to retrieve the persisted data or to overwrite the contents using a successive storeCache: call. |