|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.elkoserver.objdb.store.PutDesc
public class PutDesc
Description of a request write to the object store.
ObjectStore.putObjects()| Constructor Summary | |
|---|---|
PutDesc(String ref,
String obj,
OptString collectionName,
OptBoolean requireNew)
JSON-driven constructor. |
|
PutDesc(String ref,
String obj,
String collectionName,
boolean requireNew)
Direct constructor. |
|
| Method Summary | |
|---|---|
String |
collectionName()
Get the collection name. |
JSONLiteral |
encode(EncodeControl control)
Encode this object for transmission or persistence. |
boolean |
isRequireNew()
Test if this write must be to a new object. |
String |
obj()
Get the object's description. |
String |
ref()
Get the object's reference string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
@JSONMethod(value={"ref","obj","coll","requirenew"})
public PutDesc(String ref,
String obj,
OptString collectionName,
OptBoolean requireNew)
ref - Object reference of the object to write.obj - Object description.collectionName - Name of collection to write to, or omit to take
the configured default.requireNew - Optional flag to force failure if object with ref
already exists.
public PutDesc(String ref,
String obj,
String collectionName,
boolean requireNew)
ref - Object reference for the object.obj - Object description (a JSON string describing the object).collectionName - Name of collection to write to, or null to take
the configured default.requireNew - If true and an object with the given ref already
exists, the write fails.| Method Detail |
|---|
public JSONLiteral encode(EncodeControl control)
encode in interface Encodablecontrol - Encode control determining what flavor of encoding
should be done.
public String collectionName()
public String obj()
public String ref()
public boolean isRequireNew()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||