Package com.db4o.internal.handlers.net
Class NetSimpleTypeHandler
- java.lang.Object
-
- com.db4o.internal.handlers.PrimitiveHandler
-
- com.db4o.internal.handlers.NetTypeHandler
-
- com.db4o.internal.handlers.net.NetSimpleTypeHandler
-
- All Implemented Interfaces:
BuiltinTypeHandler
,CanExcludeNullInQueries
,Comparable4
,Indexable4
,IndexableTypeHandler
,LinkLengthAware
,GenericConverter
,QueryableTypeHandler
,TypeHandler4
,ValueTypeHandler
- Direct Known Subclasses:
NetDateTime
,NetDecimal
,NetSByte
,NetUInt
,NetULong
,NetUShort
public abstract class NetSimpleTypeHandler extends NetTypeHandler implements GenericConverter
-
-
Field Summary
-
Fields inherited from class com.db4o.internal.handlers.PrimitiveHandler
_classReflector
-
-
Constructor Summary
Constructors Constructor Description NetSimpleTypeHandler(Reflector reflector, int typeID, int byteCount)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReflectClass
classReflector()
java.lang.Object
defaultValue()
java.lang.String
getName()
java.lang.Object
primitiveNull()
java.lang.Object
read(byte[] bytes, int offset)
java.lang.String
toString(byte[] bytes)
java.lang.String
toString(GenericArray array)
java.lang.String
toString(GenericObject obj)
int
typeID()
void
write(java.lang.Object obj, byte[] bytes, int offset)
-
Methods inherited from class com.db4o.internal.handlers.NetTypeHandler
dotNetClassName, getID, internalPrepareComparison, javaClass, linkLength, primitiveJavaClass, registerReflector, write
-
Methods inherited from class com.db4o.internal.handlers.PrimitiveHandler
coerce, defragIndexEntry, defragment, delete, descendsIntoMembers, excludeNull, indexEntryToObject, nullRepresentationInUntypedArrays, prepareComparison, primitiveClassReflector, primitiveMarshaller, read, read, readIndexEntry, readIndexEntry, readIndexEntryFromObjectSlot, write, writeIndexEntry
-
-
-
-
Constructor Detail
-
NetSimpleTypeHandler
public NetSimpleTypeHandler(Reflector reflector, int typeID, int byteCount)
-
-
Method Detail
-
classReflector
public ReflectClass classReflector()
- Specified by:
classReflector
in interfaceBuiltinTypeHandler
- Overrides:
classReflector
in classPrimitiveHandler
-
defaultValue
public java.lang.Object defaultValue()
- Specified by:
defaultValue
in classPrimitiveHandler
-
primitiveNull
public java.lang.Object primitiveNull()
- Overrides:
primitiveNull
in classPrimitiveHandler
-
getName
public java.lang.String getName()
- Overrides:
getName
in classNetTypeHandler
-
typeID
public int typeID()
- Specified by:
typeID
in classNetTypeHandler
-
write
public void write(java.lang.Object obj, byte[] bytes, int offset)
- Specified by:
write
in classNetTypeHandler
-
read
public java.lang.Object read(byte[] bytes, int offset)
- Specified by:
read
in classNetTypeHandler
-
toString
public java.lang.String toString(GenericObject obj)
- Specified by:
toString
in interfaceGenericConverter
-
toString
public java.lang.String toString(GenericArray array)
- Specified by:
toString
in interfaceGenericConverter
-
toString
public java.lang.String toString(byte[] bytes)
- Parameters:
bytes
-
-
-