Package com.db4o.internal.handlers
Class DoubleHandler
- java.lang.Object
-
- com.db4o.internal.handlers.PrimitiveHandler
-
- com.db4o.internal.handlers.LongHandler
-
- com.db4o.internal.handlers.DoubleHandler
-
- All Implemented Interfaces:
BuiltinTypeHandler
,CanExcludeNullInQueries
,Comparable4
,Indexable4
,IndexableTypeHandler
,LinkLengthAware
,QueryableTypeHandler
,TypeHandler4
,ValueTypeHandler
- Direct Known Subclasses:
DoubleHandler0
public class DoubleHandler extends LongHandler
-
-
Field Summary
-
Fields inherited from class com.db4o.internal.handlers.PrimitiveHandler
_classReflector
-
-
Constructor Summary
Constructors Constructor Description DoubleHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
coerce(ReflectClass claxx, java.lang.Object obj)
java.lang.Object
defaultValue()
PreparedComparison
internalPrepareComparison(java.lang.Object source)
java.lang.Class
primitiveJavaClass()
java.lang.Object
read(MarshallerFamily mf, StatefulBuffer buffer, boolean redirect)
java.lang.Object
read(ReadContext context)
gets called when an value type is to be read from the database.void
write(WriteContext context, java.lang.Object obj)
gets called when an object is to be written to the database.void
write(java.lang.Object a_object, ByteArrayBuffer a_bytes)
-
Methods inherited from class com.db4o.internal.handlers.LongHandler
compare, linkLength, readLong, writeLong
-
Methods inherited from class com.db4o.internal.handlers.PrimitiveHandler
classReflector, defragIndexEntry, defragment, delete, descendsIntoMembers, excludeNull, indexEntryToObject, javaClass, nullRepresentationInUntypedArrays, prepareComparison, primitiveClassReflector, primitiveMarshaller, primitiveNull, readIndexEntry, readIndexEntry, readIndexEntryFromObjectSlot, registerReflector, writeIndexEntry
-
-
-
-
Method Detail
-
coerce
public java.lang.Object coerce(ReflectClass claxx, java.lang.Object obj)
- Overrides:
coerce
in classLongHandler
-
defaultValue
public java.lang.Object defaultValue()
- Overrides:
defaultValue
in classLongHandler
-
primitiveJavaClass
public java.lang.Class primitiveJavaClass()
- Overrides:
primitiveJavaClass
in classLongHandler
-
read
public java.lang.Object read(MarshallerFamily mf, StatefulBuffer buffer, boolean redirect) throws CorruptionException
- Overrides:
read
in classLongHandler
- Throws:
CorruptionException
-
write
public void write(java.lang.Object a_object, ByteArrayBuffer a_bytes)
- Overrides:
write
in classLongHandler
-
read
public java.lang.Object read(ReadContext context)
Description copied from interface:ValueTypeHandler
gets called when an value type is to be read from the database.- Specified by:
read
in interfaceValueTypeHandler
- Overrides:
read
in classLongHandler
- Returns:
- the read value type
-
write
public void write(WriteContext context, java.lang.Object obj)
Description copied from interface:TypeHandler4
gets called when an object is to be written to the database.- Specified by:
write
in interfaceTypeHandler4
- Overrides:
write
in classLongHandler
obj
- the object
-
internalPrepareComparison
public PreparedComparison internalPrepareComparison(java.lang.Object source)
- Overrides:
internalPrepareComparison
in classLongHandler
-
-