public class UpdateDesc extends PutDesc
ObjectStore.updateObjects()
Constructor and Description |
---|
UpdateDesc(String ref,
int version,
String obj,
OptString collectionName)
JSON-driven constructor.
|
UpdateDesc(String ref,
int version,
String obj,
String collectionName)
Direct constructor.
|
Modifier and Type | Method and Description |
---|---|
JSONLiteral |
encode(EncodeControl control)
Encode this object for transmission or persistence.
|
int |
version()
Get the version number.
|
collectionName, isRequireNew, obj, ref
@JSONMethod(value={"ref","version","obj","coll"}) public UpdateDesc(String ref, int version, String obj, OptString collectionName)
ref
- Object reference of the object to write.version
- Object version being updatedobj
- Object description.collectionName
- Name of collection to write to, or null to take
the configured default.public UpdateDesc(String ref, int version, String obj, String collectionName)
ref
- Object reference for the object.version
- Object version being updatedobj
- Object description (a JSON string describing the object).collectionName
- Name of collection to write to, or null to take
the configured default.public JSONLiteral encode(EncodeControl control)
public int version()
Copyright © 2017. All rights reserved.