public class Operation
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Operation.Type
The Operation type enummeration supporting various ooperations.
|
Constructor and Description |
---|
Operation(Operation.Type operation)
Constructs an operation based on the type.
|
Modifier and Type | Method and Description |
---|---|
Operation.Type |
getOperation()
Gets the operation type.
|
java.lang.String |
getOperationString()
Returns the proper operation.
|
java.lang.String |
getQueryString(java.lang.String path,
java.lang.String value)
Creates a query string,depending on the operation Type, representing the where clause.
|
void |
setOperation(Operation.Type operation)
Sets the operation type.
|
public Operation(Operation.Type operation)
operation
- The Operation Operation.Type
public Operation.Type getOperation()
Operation.Type
public void setOperation(Operation.Type operation)
operation
- The Operation.Type
to setpublic java.lang.String getQueryString(java.lang.String path, java.lang.String value)
path
- The path stringvalue
- The value for the where clausepublic java.lang.String getOperationString()
Operation.Type