public class SetFieldValueCommand extends ExecutableCommandWrapper implements ExecutableCommand
Item
field in the Integrity database.
Constraints:
FieldValue
must be owned by its Item
.FieldValue
must reference a Field
.Notes:
FieldElementValue
or FieldElementListValue
), only references to Items
which already exist in the database (i.e. whose id
is not 0
) are created.CreateRelationshipCommand
to control exactly which relations
are to be created.CompoundCommand
.FieldIntValue
, FieldDoubleValue
or a FieldBooleanValue
with the value null
, you
need to use a specific workaround. For that you need to use a FieldStringValue
instead of one of them, referencing the
Field
to set (setField(Field)
) with the value null (setValue(null)
).Usage:
new SetFieldValueCommand(myValue).execute();
CompoundCommand
,
CreateRelationshipCommand
Constructor and Description |
---|
SetFieldValueCommand(FieldValue fieldValue)
Instantiates a command to update the value of an item.
|
execute
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
execute
public SetFieldValueCommand(FieldValue fieldValue)
fieldValue
- references the field that must be updated and the new value to assign.