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
- Object
- Enum<TemporalType>
- TemporalType
ImplementsComparable<TemporalType>
The native column a
Temporal java.util.Date field is stored in.Enum constants
DATE | A calendar day: DATE on every engine. |
TIMESTAMP | A 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
DATEA 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
TIMESTAMPA 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)