Package com.db4o.internal.marshall
Class MarshallerFamily
- java.lang.Object
-
- com.db4o.internal.marshall.MarshallerFamily
-
public class MarshallerFamily extends java.lang.Object
Represents a db4o file format version, assembles all the marshallers needed to read/write this specific version. A marshaller knows how to read/write certain types of values from/to its representation on disk for a given db4o file format version. Responsibilities are somewhat overlapping with TypeHandler's.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MarshallerFamily.FamilyVersion
-
Field Summary
Fields Modifier and Type Field Description ClassMarshaller
_class
FieldMarshaller
_field
PrimitiveMarshaller
_primitive
-
Constructor Summary
Constructors Constructor Description MarshallerFamily(int converterVersion, int handlerVersion, ClassMarshaller classMarshaller, FieldMarshaller fieldMarshaller, PrimitiveMarshaller primitiveMarshaller)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MarshallerFamily
current()
static MarshallerFamily
forConverterVersion(int n)
int
handlerVersion()
static MarshallerFamily
latestFamily(int version)
static MarshallerFamily
version(int n)
-
-
-
Field Detail
-
_class
public final ClassMarshaller _class
-
_field
public final FieldMarshaller _field
-
_primitive
public final PrimitiveMarshaller _primitive
-
-
Constructor Detail
-
MarshallerFamily
public MarshallerFamily(int converterVersion, int handlerVersion, ClassMarshaller classMarshaller, FieldMarshaller fieldMarshaller, PrimitiveMarshaller primitiveMarshaller)
-
-
Method Detail
-
latestFamily
public static MarshallerFamily latestFamily(int version)
-
version
public static MarshallerFamily version(int n)
-
current
public static MarshallerFamily current()
-
forConverterVersion
public static MarshallerFamily forConverterVersion(int n)
-
handlerVersion
public int handlerVersion()
-
-