-
Notifications
You must be signed in to change notification settings - Fork 2
DataTypes
Edmo Costa edited this page Jun 20, 2017
·
5 revisions
Strings must be delimited by double or single quote.
"value"
'value'
'John\'s' #escaped quote
id = 999999999 #result in a Long object
id = 99999999999999999999999999999999 #result in a Double object
Decimal values are parsed to BigDecimal objects
price < 18968.36 #result in a BigDecimal object
You can use number qualifiers to define the type of the object
price < 10I #for (I)nteger
price < 10L #for (L)ong
price < 10F #for (F)loat
price < 10D #for (D)ouble
LocalDate:
date = 2017-01-01
LocalDateTime:
date = 2017-01-01T12:10:10
ZonedDateTime:
date = 2017-01-01T12:10:10+03:00[America/Sao_Paulo]
date = 2017-01-01T12:10:10+03:00
LocalTime:
time = 18:10:10.056+01:00
type = 'NAME' #by name value
type = 0 #by ordinal value