Package com.db4o.internal.handlers
Class BooleanHandler
- java.lang.Object
-
- com.db4o.internal.handlers.PrimitiveHandler
-
- com.db4o.internal.handlers.BooleanHandler
-
- All Implemented Interfaces:
BuiltinTypeHandler
,CanExcludeNullInQueries
,Comparable4
,Indexable4
,IndexableTypeHandler
,LinkLengthAware
,QueryableTypeHandler
,TypeHandler4
,ValueTypeHandler
public final class BooleanHandler extends PrimitiveHandler
-
-
Field Summary
-
Fields inherited from class com.db4o.internal.handlers.PrimitiveHandler
_classReflector
-
-
Constructor Summary
Constructors Constructor Description BooleanHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
defaultValue()
PreparedComparison
internalPrepareComparison(java.lang.Object source)
int
linkLength()
java.lang.Object
nullRepresentationInUntypedArrays()
java.lang.Class
primitiveJavaClass()
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 obj, ByteArrayBuffer buffer)
-
Methods inherited from class com.db4o.internal.handlers.PrimitiveHandler
classReflector, coerce, defragIndexEntry, defragment, delete, descendsIntoMembers, excludeNull, indexEntryToObject, javaClass, prepareComparison, primitiveClassReflector, primitiveMarshaller, primitiveNull, read, readIndexEntry, readIndexEntry, readIndexEntryFromObjectSlot, registerReflector, writeIndexEntry
-
-
-
-
Method Detail
-
defaultValue
public java.lang.Object defaultValue()
- Specified by:
defaultValue
in classPrimitiveHandler
-
linkLength
public int linkLength()
- Specified by:
linkLength
in interfaceLinkLengthAware
- Specified by:
linkLength
in classPrimitiveHandler
-
primitiveJavaClass
public java.lang.Class primitiveJavaClass()
- Specified by:
primitiveJavaClass
in classPrimitiveHandler
-
write
public void write(java.lang.Object obj, ByteArrayBuffer buffer)
- Specified by:
write
in classPrimitiveHandler
-
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 classPrimitiveHandler
- 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 classPrimitiveHandler
obj
- the object
-
nullRepresentationInUntypedArrays
public java.lang.Object nullRepresentationInUntypedArrays()
- Overrides:
nullRepresentationInUntypedArrays
in classPrimitiveHandler
-
internalPrepareComparison
public PreparedComparison internalPrepareComparison(java.lang.Object source)
- Specified by:
internalPrepareComparison
in classPrimitiveHandler
-
-