Class LongDateField
java.lang.Object
io.datarouter.model.field.BaseField<T>
io.datarouter.model.field.BasePrimitiveField<Date,LongDateFieldKey>
io.datarouter.model.field.imp.custom.LongDateField
- All Implemented Interfaces:
ByteEncodedField<Date>,StringEncodedField<Date>,Field<Date>,Comparable<Field<Date>>
public class LongDateField extends BasePrimitiveField<Date,LongDateFieldKey>
-
Nested Class Summary
Nested classes/interfaces inherited from class io.datarouter.model.field.BaseField
BaseField.FieldColumnNameComparator -
Field Summary
-
Constructor Summary
Constructors Constructor Description LongDateField(LongDateFieldKey key, Date value) -
Method Summary
Modifier and Type Method Description DatefromBytesButDoNotSet(byte[] bytes, int offset)byte[]getBytes()StringgetStringEncodedValue()intnumBytesWithSeparator(byte[] bytes, int offset)DateparseStringEncodedValueButDoNotSet(String str)Methods inherited from class io.datarouter.model.field.BaseField
fromBytesWithSeparatorButDoNotSet, fromString, getBytesWithSeparator, getPrefix, getPrefixedName, getPreparedStatementValue, getValue, getValueHashCode, getValueString, setPrefix, setUsingReflection, setValue, toString
-
Constructor Details
-
Method Details
-
getStringEncodedValue
- Returns:
- the "long" format for persistence. Note that getValueString() returns the human-readable date
-
parseStringEncodedValueButDoNotSet
-
getBytes
public byte[] getBytes() -
numBytesWithSeparator
public int numBytesWithSeparator(byte[] bytes, int offset) -
fromBytesButDoNotSet
-