Package com.db4o.internal.handlers
Class FloatHandler
- java.lang.Object
-
- com.db4o.internal.handlers.PrimitiveHandler
-
- com.db4o.internal.handlers.IntHandler
-
- com.db4o.internal.handlers.FloatHandler
-
- All Implemented Interfaces:
BuiltinTypeHandler
,CanExcludeNullInQueries
,Comparable4
,Indexable4
,IndexableTypeHandler
,LinkLengthAware
,QueryableTypeHandler
,TypeHandler4
,ValueTypeHandler
- Direct Known Subclasses:
FloatHandler0
public class FloatHandler extends IntHandler
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.db4o.internal.handlers.IntHandler
IntHandler.PreparedIntComparison
-
-
Field Summary
-
Fields inherited from class com.db4o.internal.handlers.PrimitiveHandler
_classReflector
-
-
Constructor Summary
Constructors Constructor Description FloatHandler()
-
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 writer, 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.IntHandler
compare, defragIndexEntry, linkLength, newPrepareCompare, write, writeInt
-
Methods inherited from class com.db4o.internal.handlers.PrimitiveHandler
classReflector, 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 classIntHandler
-
defaultValue
public java.lang.Object defaultValue()
- Overrides:
defaultValue
in classIntHandler
-
primitiveJavaClass
public java.lang.Class primitiveJavaClass()
- Overrides:
primitiveJavaClass
in classIntHandler
-
read
public java.lang.Object read(MarshallerFamily mf, StatefulBuffer writer, boolean redirect) throws CorruptionException
- Overrides:
read
in classIntHandler
- Throws:
CorruptionException
-
write
public void write(java.lang.Object a_object, ByteArrayBuffer a_bytes)
- Overrides:
write
in classIntHandler
-
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 classIntHandler
- 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 classIntHandler
obj
- the object
-
internalPrepareComparison
public PreparedComparison internalPrepareComparison(java.lang.Object source)
- Overrides:
internalPrepareComparison
in classIntHandler
-
-