Package io.datarouter.model.field.imp
Class DateFieldKey
java.lang.Object
io.datarouter.model.field.BaseFieldKey<T,K>
io.datarouter.model.field.PrimitiveFieldKey<Date,DateFieldKey>
io.datarouter.model.field.imp.DateFieldKey
public class DateFieldKey extends PrimitiveFieldKey<Date,DateFieldKey>
-
Field Summary
Fields inherited from class io.datarouter.model.field.BaseFieldKey
attributes, columnName, defaultValue, fieldGeneratorType, name, nullable, valueType -
Constructor Summary
Constructors Constructor Description DateFieldKey(String name)Deprecated. -
Method Summary
Modifier and Type Method Description DateFieldcreateValueField(Date value)intgetNumDecimalSeconds()DateFieldKeywithColumnName(String columnNameOverride)DateFieldKeywithPrecision(int precision)DateFieldKeywithSecondsPrecision()Methods inherited from class io.datarouter.model.field.BaseFieldKey
equals, findAttribute, generateRandomValue, getAttributes, getAutoGeneratedType, getColumnName, getColumnNameBytes, getDefaultValue, getName, getValueType, hashCode, isCollection, isFixedLength, isNullable, toString, with
-
Constructor Details
-
DateFieldKey
Deprecated.Defines a DateFieldKey with seconds precision New usages should try to use Instants, LocalDate, LocalDateTime, or Longs. Daylight savings and database timezone migrations result in broken date field parsing.
-
-
Method Details
-
withColumnName
-
getNumDecimalSeconds
public int getNumDecimalSeconds() -
withSecondsPrecision
-
withPrecision
-
createValueField
-