Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 16 additions & 9 deletions driver/src/main/java/oracle/nosql/driver/ops/DeleteRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -260,20 +260,27 @@ public DeleteRequest setNamespace(String namespace) {
}

/**
* Sets the row metadata to use for this request. This is an optional
* parameter.<p>
* This method is **EXPERIMENTAL** and its behavior, signature, or
* even its existence may change without prior notice in future versions.
* Use with caution.<p>
*
* Sets the row metadata to use for this request.
* This is an optional parameter.<p>
*
* Row metadata is associated to a certain version of a row. Any subsequent
* write operation will use its own row metadata value. If not specified
* null will be used by default.<p>
*
* The @parameter rowMetadata must be null or a valid JSON construct:
* object, array, string, number, true, false or null, otherwise an
* IllegalArgumentException is thrown.
* null will be used by default.
* NOTE that if you have previously written a record with metadata and a
* subsequent write does not supply metadata, the metadata associated with
* the row will be null. Therefore, if you wish to have metadata
* associated with every write operation, you must supply a valid JSON
* construct to this method.<p>
*
* @param rowMetadata the row metadata
* @param rowMetadata the row metadata, must be null or a valid JSON
* construct: object, array, string, number, true, false or null,
* otherwise an IllegalArgumentException is thrown.
* @throws IllegalArgumentException if rowMetadata not null and invalid
* JSON construct
* JSON construct
*
* @since 5.4.18
* @return this
Expand Down
11 changes: 10 additions & 1 deletion driver/src/main/java/oracle/nosql/driver/ops/GetResult.java
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ public long getExpirationTime() {
* or zero if the row does not exist
*
* @since 5.4.18
* @hidden
*/
public long getCreationTime() {
if (creationTime < 0 && client != null) {
Expand Down Expand Up @@ -131,6 +132,10 @@ public GetResult setValue(MapValue value) {
}

/**
* This method is **EXPERIMENTAL** and its behavior, signature, or
* even its existence may change without prior notice in future versions.
* Use with caution.<p>
*
* Returns the metadata of the returned row, or null if the row does not
* exist or metadata was not set.
*
Expand All @@ -143,7 +148,11 @@ public String getRowMetadata() {
}

/**
* Internal use only.
* This method is **EXPERIMENTAL** and its behavior, signature, or
* even its existence may change without prior notice in future versions.
* Use with caution.<p>
*
* Internal use only.<p>
*
* Sets the rowMetadata of this object.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -235,20 +235,27 @@ public MultiDeleteRequest setNamespace(String namespace) {
}

/**
* Sets the row metadata to use for the operation. This is an optional
* This method is **EXPERIMENTAL** and its behavior, signature, or
* even its existence may change without prior notice in future versions.
* Use with caution.<p>
*
* Sets the row metadata to use for this request. This is an optional
* parameter.<p>
*
* Row metadata is associated to a certain version of a row. Any subsequent
* write operation will use its own row metadata value. If not specified
* null will be used by default.<p>
*
* The @parameter rowMetadata must be null or a valid JSON construct:
* object, array, string, number, true, false or null, otherwise an
* IllegalArgumentException is thrown.
*
* @param rowMetadata the row metadata
* null will be used by default.
* NOTE that if you have previously written a record with metadata and a
* subsequent write does not supply metadata, the metadata associated with
* the row will be null. Therefore, if you wish to have metadata
* associated with every write operation, you must supply a valid JSON
* construct to this method.<p>
*
* @param rowMetadata the row metadata, must be null or a valid JSON
* construct: object, array, string, number, true, false or null,
* otherwise an IllegalArgumentException is thrown.
* @throws IllegalArgumentException if rowMetadata not null and invalid
* JSON construct
* JSON construct
*
* @return this
* @since 5.4.18
Expand Down
27 changes: 17 additions & 10 deletions driver/src/main/java/oracle/nosql/driver/ops/PutRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -438,20 +438,27 @@ public int getIdentityCacheSize() {
}

/**
* Sets the row metadata to use for this request.
* This is an optional parameter.<p>
* This method is **EXPERIMENTAL** and its behavior, signature, or
* even its existence may change without prior notice in future versions.
* Use with caution.<p>
*
* Sets the row metadata to use for this request. This is an optional
* parameter.<p>
*
* Row metadata is associated to a certain version of a row. Any subsequent
* write operation will use its own row metadata value. If not specified
* null will be used by default.<p>
*
* The @parameter rowMetadata must be null or a valid JSON construct:
* object, array, string, number, true, false or null, otherwise an
* IllegalArgumentException is thrown.
*
* @param rowMetadata the row metadata
* null will be used by default.
* NOTE that if you have previously written a record with metadata and a
* subsequent write does not supply metadata, the metadata associated with
* the row will be null. Therefore, if you wish to have metadata
* associated with every write operation, you must supply a valid JSON
* construct to this method.<p>
*
* @param rowMetadata the row metadata, must be null or a valid JSON
* construct: object, array, string, number, true, false or null,
* otherwise an IllegalArgumentException is thrown.
* @throws IllegalArgumentException if rowMetadata not null and invalid
* JSON construct
* JSON construct
*
* @since 5.4.18
* @return this
Expand Down
30 changes: 20 additions & 10 deletions driver/src/main/java/oracle/nosql/driver/ops/QueryRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -925,23 +925,29 @@ public Consistency getConsistency() {
}

/**
* This method is **EXPERIMENTAL** and its behavior, signature, or
* even its existence may change without prior notice in future versions.
* Use with caution.<p>
*
* Sets the row metadata to use for the operation. This setting is optional
* and only applies if the query modifies or deletes any rows using an
* INSERT, UPDATE, UPSERT or DELETE statement. If the query is read-only
* this setting is ignored.<p>
* this setting is ignored. This is an optional parameter.<p>
*
* Row metadata is associated to a certain version of a row. Any subsequent
* write operation will use its own row metadata value. If not specified
* null will be used by default.<p>
*
* The @parameter rowMetadata must be null or a valid JSON construct:
* object, array, string, number, true, false or null, otherwise an
* IllegalArgumentException is thrown.
*
* @param rowMetadata the row metadata
* null will be used by default.
* NOTE that if you have previously written a record with metadata and a
* subsequent write does not supply metadata, the metadata associated with
* the row will be null. Therefore, if you wish to have metadata
* associated with every write operation, you must supply a valid JSON
* construct to this method.<p>
*
* @param rowMetadata the row metadata, must be null or a valid JSON
* construct: object, array, string, number, true, false or null,
* otherwise an IllegalArgumentException is thrown.
* @throws IllegalArgumentException if rowMetadata not null and invalid
* JSON construct
*
* JSON construct
* @return this
* @since 5.4.18
*/
Expand All @@ -957,6 +963,10 @@ public QueryRequest setRowMetadata(String rowMetadata) {
}

/**
* This method is **EXPERIMENTAL** and its behavior, signature, or
* even its existence may change without prior notice in future versions.
* Use with caution.<p>
*
* Returns the row metadata set for this request, or null if not set.
*
* @return the row metadata
Expand Down
27 changes: 19 additions & 8 deletions driver/src/main/java/oracle/nosql/driver/ops/WriteRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,13 @@ protected void validateWriteRequest(String requestName) {
}

/**
* This method is **EXPERIMENTAL** and its behavior, signature, or
* even its existence may change without prior notice in future versions.
* Use with caution.<p>
*
* Returns the row metadata to be used for this request.
*
* @return the metadata, or null if not set
* @return the row metadata, or null if not set
*
* @since 5.4.18
*/
Expand All @@ -66,20 +70,27 @@ public String getRowMetadata() {
}

/**
* This method is **EXPERIMENTAL** and its behavior, signature, or
* even its existence may change without prior notice in future versions.
* Use with caution.<p>
*
* Sets the row metadata to use for this request.
* This is an optional parameter.<p>
*
* Row metadata is associated to a certain version of a row. Any subsequent
* write operation will use its own row metadata value. If not specified
* null will be used by default.<p>
*
* The @parameter rowMetadata must be null or in a valid JSON construct:
* object, array, string, number, true, false or null,
* otherwise an IllegalArgumentException is thrown.
* null will be used by default.
* NOTE that if you have previously written a record with metadata and a
* subsequent write does not supply metadata, the metadata associated with
* the row will be null. Therefore, if you wish to have metadata
* associated with every write operation, you must supply a valid JSON
* construct to this method.<p>
*
* @param rowMetadata the row metadata
* @param rowMetadata the row metadata, must be null or a valid JSON
* construct: object, array, string, number, true, false or null,
* otherwise an IllegalArgumentException is thrown.
* @throws IllegalArgumentException if rowMetadata not null and invalid
* JSON Object format
* JSON construct
*
* @since 5.4.18
* @return this
Expand Down