com.appenginefan.toolkit.persistence
Class LongPersistence

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

public class LongPersistence
extends MarshallingPersistence<Long>

Storage specialized in persisting long values. Wraps around a byte array based persistence for the backend.


Constructor Summary
LongPersistence(Persistence<byte[]> backend)
           
 
Method Summary
protected  byte[] makeArray(Long nonNullValue)
           
protected  Long 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

LongPersistence

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

makeArray

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

makeType

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