com.octo.android.robospice.persistence.ormlite
Class InDatabaseObjectPersisterFactory

java.lang.Object
  extended by com.octo.android.robospice.persistence.ObjectPersisterFactory
      extended by com.octo.android.robospice.persistence.ormlite.InDatabaseObjectPersisterFactory
All Implemented Interfaces:
Persister

public class InDatabaseObjectPersisterFactory
extends ObjectPersisterFactory


Constructor Summary
InDatabaseObjectPersisterFactory(android.app.Application application, RoboSpiceDatabaseHelper databaseHelper, List<Class<?>> listHandledClasses)
           
InDatabaseObjectPersisterFactory(android.app.Application application, RoboSpiceDatabaseHelper databaseHelper, Map<Class<?>,android.net.Uri> mapHandledClassesToNotificationUri)
           
 
Method Summary
<DATA> ObjectPersister<DATA>
createObjectPersister(Class<DATA> clazz)
          Creates a ObjectPersister for a given class.
 
Methods inherited from class com.octo.android.robospice.persistence.ObjectPersisterFactory
canHandleClass, getApplication, getListHandledClasses, isAsyncSaveEnabled, setAsyncSaveEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InDatabaseObjectPersisterFactory

public InDatabaseObjectPersisterFactory(android.app.Application application,
                                        RoboSpiceDatabaseHelper databaseHelper,
                                        Map<Class<?>,android.net.Uri> mapHandledClassesToNotificationUri)

InDatabaseObjectPersisterFactory

public InDatabaseObjectPersisterFactory(android.app.Application application,
                                        RoboSpiceDatabaseHelper databaseHelper,
                                        List<Class<?>> listHandledClasses)
Method Detail

createObjectPersister

public <DATA> ObjectPersister<DATA> createObjectPersister(Class<DATA> clazz)
Description copied from class: ObjectPersisterFactory
Creates a ObjectPersister for a given class.

Specified by:
createObjectPersister in class ObjectPersisterFactory
Parameters:
clazz - the class of the items that need to be saved/loaded from cache.
Returns:
a ObjectPersister able to load/save instances of class clazz.


Copyright © 2012-2014. All Rights Reserved.