Client and backend. This class is shared: the same code is compiled into your app and into your server, so everything on this page works in both.

public enum TemporalType

  1. Object
  2. Enum<TemporalType>
  3. TemporalType

ImplementsComparable<TemporalType>

The native column a Temporal java.util.Date field is stored in.

Enum constants

DATEA calendar day: DATE on every engine.
TIMESTAMPA moment to the millisecond, in UTC: TIMESTAMP(3) on PostgreSQL, DATETIME(3) on MySQL and MariaDB, TIMESTAMP on SQLite (as text).

Methods

public static TemporalType[] values()
public static TemporalType valueOf(String name)

Inherited methods

Enum constant details

DATE

DATE
A calendar day: DATE on every engine. The value is the UTC day of the Date; reading gives that day’s UTC midnight, so any time of day is not kept.

TIMESTAMP

TIMESTAMP
A moment to the millisecond, in UTC: TIMESTAMP(3) on PostgreSQL, DATETIME(3) on MySQL and MariaDB, TIMESTAMP on SQLite (as text).

Method details

values

public static TemporalType[] values()

valueOf

public static TemporalType valueOf(String name)