changes.mady.by.user Adrian adrianc
Saved on Mar 14, 2012
...
<set>
<set field="foo" value="bar" /> <set field="baz" from-field="foo" />
Attributes
field
optional
The name of the field to set (the l-value)
from-field
The name of a field to copy from (the r-value)
value
A constant value
default-value
A default constant value - used if from-field evaluates to null
type
The Java data type of field
Defaults to "String"
set-if-null
Controls if field can be set to null.
null
Defaults to "false"
set-if-empty
Controls if field can be set to an empty value. The meaning of "empty" depends on the Java data type.
Defaults to "true"
<set-calendar>
<set field="tomorrowStamp" from-field="nowTimestamp" day="1" /> <set field="yesterdayStamp" from-field="nowTimestamp" day="-1" />
years
A signed integer adjustment amount
months
days
hours
minutes
seconds
millis
period-align-start
Set the adjusted Timestamp to period start: "day", "week", "month", "year"
period-align-end
Set the adjusted Timestamp to period end: "day", "week", "month", "year"
locale
The locale to be used for the operation
time-zone
The time zone to be used for the operation
<set-service-fields>
<string-append>