4.4 Types
When setting fields on beans or parameters on methods it is possible to set the 'type'.
As mentioned in the section on types of property values
in the tutorial, you can set the 'type' to whatever you wish - and you can also use Object Type references.
When you enter a type, there are a set of values that will be interpreted by JeeWiz as primitive types.
The set of primitive types are
- boolean
- char
- byte
- short
- int
- long
- float
- double
The primitive types above will be converted to their Object equivalents.
This is done so instances can be put into GigaSpaces and in particalur so instances can be used as templates
with a null value - the wildcard for searching.
The following values are interpreted as java.lang types.
- String ('string' also accepted)
- Boolean
- Character
- Byte
- Short
- Integer
- Long
- Float
- Double
Other logical types you can use (currently untested in the Early Access Release) are
- duration, maps to String
- decimal, maps to java.util.BigDecimal
- currency, maps to Long
- date, Date map to java.util.Date
- dateTime, datetime, DateTime, map to java.util.Date, with different formatting
- time, Time, map to java.util.Date, with a 'HH:mm:ss' output format
- isoDate, maps to Calendar (use this for XML input/output of a 'date')
- isoDateTime, maps to Calendar (use this for XML input/output of a 'datetime')
- isoTime, maps to Calendar (use this for XML input/output of a 'time')
|