de.unikassel.android.sdcframework.persistence.facade
Interface PersistentStorageManager
- All Superinterfaces:
- AsynchrounousSampleObserver, DatabaseManager, DelegatingSampleObserver, LifeCycleObject, WorkerThread
- All Known Implementing Classes:
- PersistentStorageManagerImpl
public interface PersistentStorageManager
- extends AsynchrounousSampleObserver, DatabaseManager
Interface for the persistent storage manager an
asynchronous sample observer, responsible for the persistent storage task.
- See Also:
PersistentStorageManagerImpl
updateDatabaseFullStrategy
void updateDatabaseFullStrategy(Context context,
ServiceConfiguration config,
Class<? extends Activity> controlActivityClass)
- Method to update internal database full strategy chain by configuration of
the service
- Parameters:
context
- the application contextconfig
- the current service configuration to update fromcontrolActivityClass
- the control activity class or null
getSavedRecordCount
long getSavedRecordCount()
- Getter for the savedRecordCount
- Returns:
- the savedRecordCount
doExecuteCurrentCommand
boolean doExecuteCurrentCommand()
- Does execute the current outstanding database command
- Returns:
- true if successful, false otherwise