Patient Cloud AppConnect Android API References
Static Public Member Functions | List of all members
com.mdsol.babbage.model.DatastoreFactory

Static Public Member Functions

static synchronized Datastore create ()
 
static synchronized void reset ()
 
static synchronized void useDiskStorage (File diskDir)
 

Detailed Description

DatastoreFactory is a factory object that you can use to create Datastore instances.

Member Function Documentation

static synchronized Datastore com.mdsol.babbage.model.DatastoreFactory.create ( )
static

Creates a new Datastore instance. Note that you must call useDiskStorage(java.io.File) before calling this function.

Returns
A Datastore instance. Throws if useDiskStorage has not been called..
static synchronized void com.mdsol.babbage.model.DatastoreFactory.reset ( )
static

Resets DatastoreFactory. If further create() are made, you must call useDiskStorage(java.io.File) ahead of these following create() calls.

static synchronized void com.mdsol.babbage.model.DatastoreFactory.useDiskStorage ( File  diskDir)
static