Package com.db4o.internal.handlers
Class DateHandlerBase
- java.lang.Object
-
- com.db4o.internal.handlers.PrimitiveHandler
-
- com.db4o.internal.handlers.LongHandler
-
- com.db4o.internal.handlers.DateHandlerBase
-
- All Implemented Interfaces:
BuiltinTypeHandler
,CanExcludeNullInQueries
,Comparable4
,Indexable4
,IndexableTypeHandler
,LinkLengthAware
,QueryableTypeHandler
,TypeHandler4
,ValueTypeHandler
- Direct Known Subclasses:
DateHandler
public abstract class DateHandlerBase extends LongHandler
Shared (java/.net) logic for Date handling.
-
-
Field Summary
-
Fields inherited from class com.db4o.internal.handlers.PrimitiveHandler
_classReflector
-
-
Constructor Summary
Constructors Constructor Description DateHandlerBase()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.lang.Object
coerce(ReflectClass claxx, java.lang.Object obj)
abstract java.lang.Object
copyValue(java.lang.Object from, java.lang.Object to)
abstract java.lang.Object
defaultValue()
PreparedComparison
internalPrepareComparison(java.lang.Object source)
protected java.lang.Class
javaClass()
static java.lang.String
now()
abstract java.lang.Object
nullRepresentationInUntypedArrays()
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.LongHandler
compare, linkLength, readLong, writeLong
-
Methods inherited from class com.db4o.internal.handlers.PrimitiveHandler
classReflector, defragIndexEntry, defragment, delete, descendsIntoMembers, excludeNull, indexEntryToObject, 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
-
copyValue
public abstract java.lang.Object copyValue(java.lang.Object from, java.lang.Object to)
-
defaultValue
public abstract java.lang.Object defaultValue()
- Overrides:
defaultValue
in classLongHandler
-
nullRepresentationInUntypedArrays
public abstract java.lang.Object nullRepresentationInUntypedArrays()
- Overrides:
nullRepresentationInUntypedArrays
in classPrimitiveHandler
-
primitiveJavaClass
public java.lang.Class primitiveJavaClass()
- Overrides:
primitiveJavaClass
in classLongHandler
-
javaClass
protected java.lang.Class javaClass()
- Overrides:
javaClass
in classPrimitiveHandler
-
read
public java.lang.Object read(MarshallerFamily mf, StatefulBuffer writer, 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
-
now
public static java.lang.String now()
-
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
-
-