Concepts to Know : Tokens and Types : Token Types and Related Java Types
 
Share this page                  
Token Types and Related Java Types
For each supported token type, there are corresponding Java types used by Token types and their corresponding Java object and primitive types for non-null token values. In addition, each of the token types corresponds to constants that can be found in the TokenTypeConstant class.
Token Type
Token Type Constant
Java Type
binary
TokenTypeConstant.BINARY
byte[]
boolean
TokenTypeConstant.BOOLEAN
boolean
char
TokenTypeConstant.CHAR
char
date
TokenTypeConstant.DATE
java.sql.Date or CalendarDate
double
TokenTypeConstant.DOUBLE
double
duration
TokenTypeConstant.DURATION
java.time.Duration
float
TokenTypeConstant.FLOAT
float
generic
TokenTypeConstant.GENERIC
abstract type; no corresponding Java type
int
TokenTypeConstant.INT
int
ip4address
TokenTypeConstant.IP4ADDRESS
java.net.Inet4Address
ip6address
TokenTypeConstant.IP6ADDRESS
java.net.Inet6Address
long
TokenTypeConstant.LONG
long
money
TokenTypeConstant.MONEY
represents a monetary amount; no corresponding Java Type
null
TokenTypeConstant.NULL
abstract type; represents a null value
numeric
TokenTypeConstant.NUMERIC
java.math.BigDecimal
object
TokenTypeConstant.OBJECT<O>
<O> where O is a Java object type
period
TokenTypeConstant.PERIOD
java.time.Period
record
TokenTypeConstant.record()
no corresponding type; access is via fields
string
TokenTypeConstant.STRING
java.lang.String
time
TokenTypeConstant.TIME
java.sql.Time or TimeOfDay
timestamp
TokenTypeConstant.TIMESTAMP
java.sql.Timestamp