Package io.datarouter.model.field.imp
Class DateField
java.lang.Object
io.datarouter.model.field.BaseField<T>
io.datarouter.model.field.BasePrimitiveField<Date,DateFieldKey>
io.datarouter.model.field.imp.DateField
- All Implemented Interfaces:
ByteEncodedField<Date>,StringEncodedField<Date>,Field<Date>,Comparable<Field<Date>>
public class DateField extends BasePrimitiveField<Date,DateFieldKey>
-
Nested Class Summary
Nested classes/interfaces inherited from class io.datarouter.model.field.BaseField
BaseField.FieldColumnNameComparator -
Field Summary
-
Constructor Summary
Constructors Constructor Description DateField(DateFieldKey key, Date value)Deprecated.DateField(String prefix, DateFieldKey key, Date value)Deprecated.useInstantFieldorLongField -
Method Summary
Modifier and Type Method Description DatefromBytesButDoNotSet(byte[] bytes, int offset)byte[]getBytes()intgetNumDecimalSeconds()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
-
DateField
Deprecated.New usages should try to use Instants, LocalDate, LocalDateTime, or Longs. Daylight savings and database timezone migrations result in broken date field parsing. -
DateField
Deprecated.useInstantFieldorLongFieldNew usages should try to use Instants, LocalDate, LocalDateTime, or Longs. Daylight savings and database timezone migrations result in broken date field parsing.
-
-
Method Details
-
getNumDecimalSeconds
public int getNumDecimalSeconds() -
getStringEncodedValue
-
parseStringEncodedValueButDoNotSet
-
getBytes
public byte[] getBytes() -
numBytesWithSeparator
public int numBytesWithSeparator(byte[] bytes, int offset) -
fromBytesButDoNotSet
-