|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ostore.update.Action | +--ostore.update.ActionSetMetadata
The ActionSetMetadata
action assigns a value to a
metadata field. It can be used for both system-defined fields
(specified by integer constants) and user-defined fields
(specified by strings) See Metadata
for a
description of these two types of metadata fields. The action
will overwrite any old value held by the field; if the value of
the field was previously unset, the action will assign the value
to the field.
Field Summary | |
---|---|
static boolean |
DEBUG
|
Constructor Summary | |
---|---|
ActionSetMetadata(InputBuffer buffer)
|
|
ActionSetMetadata(SecureHash target,
int field,
QuickSerializable value)
Construct an ActionSetMetadata action to modify
a field in the metadata that is described by an integer
constant (see Metadata ). |
|
ActionSetMetadata(SecureHash target,
String field,
QuickSerializable value)
Construct an ActionSetMetadata action to modify
a user-defined field in the metadata that cannot be described
by an integer constant (see Metadata ). |
Method Summary | |
---|---|
long |
getLength()
getLength returns the length of the ActionSetMetadata . |
Set |
getTargets()
|
void |
perform(GuidVersionMap guid_map,
VersionHandleCache version_cache,
UpdateContinuation continuation,
DataCache cache)
|
void |
serialize(OutputBuffer buffer)
Add the object to the buffer . |
String |
toString()
Return a representation of this action as a string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final boolean DEBUG
Constructor Detail |
public ActionSetMetadata(SecureHash target, int field, QuickSerializable value)
ActionSetMetadata
action to modify
a field in the metadata that is described by an integer
constant (see Metadata
).
target
- the Aguid of the target data objectfield
- the integer constant described in Metadata
representing the metadata field
to be changedvalue
- the new value for the field in the metadatapublic ActionSetMetadata(SecureHash target, String field, QuickSerializable value)
ActionSetMetadata
action to modify
a user-defined field in the metadata that cannot be described
by an integer constant (see Metadata
).
target
- the Aguid of the target data objectfield
- the string representing the name of the metadata field
to be changedvalue
- the new value for the field in the metadatapublic ActionSetMetadata(InputBuffer buffer) throws QSException
Method Detail |
public void serialize(OutputBuffer buffer)
QuickSerializable
buffer
.
serialize
in interface QuickSerializable
serialize
in class Action
buffer
- the output buffer to add the object topublic void perform(GuidVersionMap guid_map, VersionHandleCache version_cache, UpdateContinuation continuation, DataCache cache) throws ostore.update.UpdateException
perform
in class Action
ostore.update.UpdateException
public long getLength()
ActionSetMetadata
.
getLength
in class Action
ActionSetMetadata
public Set getTargets()
getTargets
in class Action
public String toString()
Action
toString
in class Action
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |