Package oracle.nosql.driver.ops
Class WriteMultipleResult.OperationResult
- java.lang.Object
-
- oracle.nosql.driver.ops.Result
-
- oracle.nosql.driver.ops.WriteMultipleResult.OperationResult
-
- Enclosing class:
- WriteMultipleResult
public static class WriteMultipleResult.OperationResult extends Result
The Result associated with the execution of an individual operation in the request.
-
-
Constructor Summary
Constructors Constructor Description OperationResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MapValue
getExistingValue()
Returns the previous row value associated with the key if available.Version
getExistingVersion()
Returns the existing row version associated with the key if available.FieldValue
getGeneratedValue()
Returns the value generated if the operation created a new value for an identity column.boolean
getSuccess()
Returns the flag indicates whether the operation succeeded.Version
getVersion()
Returns the version of the new row for put operation, or null if put operations did not succeed or the operation is delete operation.String
toString()
-
-
-
Method Detail
-
getSuccess
public boolean getSuccess()
Returns the flag indicates whether the operation succeeded. A put or delete operation may be unsuccessful if the condition is not matched.- Returns:
- true if the operation succeeded
-
getVersion
public Version getVersion()
Returns the version of the new row for put operation, or null if put operations did not succeed or the operation is delete operation.- Returns:
- the version if it exists
-
getExistingVersion
public Version getExistingVersion()
Returns the existing row version associated with the key if available.- Returns:
- the existing version if set
-
getExistingValue
public MapValue getExistingValue()
Returns the previous row value associated with the key if available.- Returns:
- the existing value if set
-
getGeneratedValue
public FieldValue getGeneratedValue()
Returns the value generated if the operation created a new value for an identity column. If the table has no identity columns this value is null. If it has an identity column and a value was generated for that column, it is non-null. This value is only valid for a put operation on a table with an identity column.- Returns:
- the generated value
-
-