com.appenginefan.toolkit.persistence
Class ObjectPersistence<T extends Serializable>

java.lang.Object
  extended by com.appenginefan.toolkit.persistence.MarshallingPersistence<T>
      extended by com.appenginefan.toolkit.persistence.ObjectPersistence<T>
All Implemented Interfaces:
Persistence<T>

public class ObjectPersistence<T extends Serializable>
extends MarshallingPersistence<T>

A persistence that uses serialization to put objects into a store. Use with caution!


Constructor Summary
ObjectPersistence(Persistence<byte[]> backend)
           
 
Method Summary
protected  byte[] makeArray(T nonNullValue)
           
protected  T makeType(byte[] nonNullValue)
           
 
Methods inherited from class com.appenginefan.toolkit.persistence.MarshallingPersistence
get, keyScan, keyScanReverse, mutate, scan, scanReverse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectPersistence

public ObjectPersistence(Persistence<byte[]> backend)
Method Detail

makeArray

protected byte[] makeArray(T nonNullValue)
Specified by:
makeArray in class MarshallingPersistence<T extends Serializable>

makeType

protected T makeType(byte[] nonNullValue)
Specified by:
makeType in class MarshallingPersistence<T extends Serializable>