Class AdaptingGsonSerializer
- java.lang.Object
-
- org.projectbarbel.histo.functions.AdaptingGsonSerializer
-
- All Implemented Interfaces:
com.googlecode.cqengine.persistence.support.serialization.PojoSerializer<Bitemporal>
public class AdaptingGsonSerializer extends Object implements com.googlecode.cqengine.persistence.support.serialization.PojoSerializer<Bitemporal>
- Author:
- Niklas Schlimm
-
-
Field Summary
Fields Modifier and Type Field Description static String
OBJECT_TYPE
static String
PERSISTENCE_CONFIG
-
Constructor Summary
Constructors Constructor Description AdaptingGsonSerializer(BarbelHistoContext context)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Bitemporal
deserialize(byte[] bytes)
byte[]
serialize(Bitemporal object)
static <O> boolean
validateObjectIsRoundTripSerializable(BarbelHistoContext context, O candidatePojo)
-
-
-
Field Detail
-
OBJECT_TYPE
public static final String OBJECT_TYPE
- See Also:
- Constant Field Values
-
PERSISTENCE_CONFIG
public static final String PERSISTENCE_CONFIG
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AdaptingGsonSerializer
public AdaptingGsonSerializer(BarbelHistoContext context)
-
-
Method Detail
-
serialize
public byte[] serialize(Bitemporal object)
- Specified by:
serialize
in interfacecom.googlecode.cqengine.persistence.support.serialization.PojoSerializer<Bitemporal>
-
deserialize
public Bitemporal deserialize(byte[] bytes)
- Specified by:
deserialize
in interfacecom.googlecode.cqengine.persistence.support.serialization.PojoSerializer<Bitemporal>
-
validateObjectIsRoundTripSerializable
public static <O> boolean validateObjectIsRoundTripSerializable(BarbelHistoContext context, O candidatePojo)
-
-