Package com.db4o.internal.handlers
Class CharHandler
- java.lang.Object
-
- com.db4o.internal.handlers.PrimitiveHandler
-
- com.db4o.internal.handlers.CharHandler
-
- All Implemented Interfaces:
BuiltinTypeHandler
,CanExcludeNullInQueries
,Comparable4
,Indexable4
,IndexableTypeHandler
,LinkLengthAware
,QueryableTypeHandler
,TypeHandler4
,ValueTypeHandler
public final class CharHandler extends PrimitiveHandler
-
-
Field Summary
-
Fields inherited from class com.db4o.internal.handlers.PrimitiveHandler
_classReflector
-
-
Constructor Summary
Constructors Constructor Description CharHandler()
-
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.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 a_object, ByteArrayBuffer a_bytes)
-
Methods inherited from class com.db4o.internal.handlers.PrimitiveHandler
classReflector, coerce, defragIndexEntry, defragment, delete, descendsIntoMembers, excludeNull, indexEntryToObject, javaClass, nullRepresentationInUntypedArrays, 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 a_object, ByteArrayBuffer a_bytes)
- 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
-
internalPrepareComparison
public PreparedComparison internalPrepareComparison(java.lang.Object source)
- Specified by:
internalPrepareComparison
in classPrimitiveHandler
-
-