Skip to content

Commit b7b8be5

Browse files
authored
Mark row metadata methods as EXPERIMENTAL and @hidden getCreationTime (#168)
* Update javadoc to mark row metadata methods as EXPERIMENTAL. * Add @hidden on getCreationTime() method.
1 parent 748e381 commit b7b8be5

File tree

6 files changed

+98
-47
lines changed

6 files changed

+98
-47
lines changed

driver/src/main/java/oracle/nosql/driver/ops/DeleteRequest.java

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -260,20 +260,27 @@ public DeleteRequest setNamespace(String namespace) {
260260
}
261261

262262
/**
263-
* Sets the row metadata to use for this request. This is an optional
264-
* parameter.<p>
263+
* This method is **EXPERIMENTAL** and its behavior, signature, or
264+
* even its existence may change without prior notice in future versions.
265+
* Use with caution.<p>
266+
*
267+
* Sets the row metadata to use for this request.
268+
* This is an optional parameter.<p>
265269
*
266270
* Row metadata is associated to a certain version of a row. Any subsequent
267271
* write operation will use its own row metadata value. If not specified
268-
* null will be used by default.<p>
269-
*
270-
* The @parameter rowMetadata must be null or a valid JSON construct:
271-
* object, array, string, number, true, false or null, otherwise an
272-
* IllegalArgumentException is thrown.
272+
* null will be used by default.
273+
* NOTE that if you have previously written a record with metadata and a
274+
* subsequent write does not supply metadata, the metadata associated with
275+
* the row will be null. Therefore, if you wish to have metadata
276+
* associated with every write operation, you must supply a valid JSON
277+
* construct to this method.<p>
273278
*
274-
* @param rowMetadata the row metadata
279+
* @param rowMetadata the row metadata, must be null or a valid JSON
280+
* construct: object, array, string, number, true, false or null,
281+
* otherwise an IllegalArgumentException is thrown.
275282
* @throws IllegalArgumentException if rowMetadata not null and invalid
276-
* JSON construct
283+
* JSON construct
277284
*
278285
* @since 5.4.18
279286
* @return this

driver/src/main/java/oracle/nosql/driver/ops/GetResult.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ public long getExpirationTime() {
8686
* or zero if the row does not exist
8787
*
8888
* @since 5.4.18
89+
* @hidden
8990
*/
9091
public long getCreationTime() {
9192
if (creationTime < 0 && client != null) {
@@ -131,6 +132,10 @@ public GetResult setValue(MapValue value) {
131132
}
132133

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

145150
/**
146-
* Internal use only.
151+
* This method is **EXPERIMENTAL** and its behavior, signature, or
152+
* even its existence may change without prior notice in future versions.
153+
* Use with caution.<p>
154+
*
155+
* Internal use only.<p>
147156
*
148157
* Sets the rowMetadata of this object.
149158
*

driver/src/main/java/oracle/nosql/driver/ops/MultiDeleteRequest.java

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -235,20 +235,27 @@ public MultiDeleteRequest setNamespace(String namespace) {
235235
}
236236

237237
/**
238-
* Sets the row metadata to use for the operation. This is an optional
238+
* This method is **EXPERIMENTAL** and its behavior, signature, or
239+
* even its existence may change without prior notice in future versions.
240+
* Use with caution.<p>
241+
*
242+
* Sets the row metadata to use for this request. This is an optional
239243
* parameter.<p>
240244
*
241245
* Row metadata is associated to a certain version of a row. Any subsequent
242246
* write operation will use its own row metadata value. If not specified
243-
* null will be used by default.<p>
244-
*
245-
* The @parameter rowMetadata must be null or a valid JSON construct:
246-
* object, array, string, number, true, false or null, otherwise an
247-
* IllegalArgumentException is thrown.
248-
*
249-
* @param rowMetadata the row metadata
247+
* null will be used by default.
248+
* NOTE that if you have previously written a record with metadata and a
249+
* subsequent write does not supply metadata, the metadata associated with
250+
* the row will be null. Therefore, if you wish to have metadata
251+
* associated with every write operation, you must supply a valid JSON
252+
* construct to this method.<p>
253+
*
254+
* @param rowMetadata the row metadata, must be null or a valid JSON
255+
* construct: object, array, string, number, true, false or null,
256+
* otherwise an IllegalArgumentException is thrown.
250257
* @throws IllegalArgumentException if rowMetadata not null and invalid
251-
* JSON construct
258+
* JSON construct
252259
*
253260
* @return this
254261
* @since 5.4.18

driver/src/main/java/oracle/nosql/driver/ops/PutRequest.java

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -438,20 +438,27 @@ public int getIdentityCacheSize() {
438438
}
439439

440440
/**
441-
* Sets the row metadata to use for this request.
442-
* This is an optional parameter.<p>
441+
* This method is **EXPERIMENTAL** and its behavior, signature, or
442+
* even its existence may change without prior notice in future versions.
443+
* Use with caution.<p>
444+
*
445+
* Sets the row metadata to use for this request. This is an optional
446+
* parameter.<p>
443447
*
444448
* Row metadata is associated to a certain version of a row. Any subsequent
445449
* write operation will use its own row metadata value. If not specified
446-
* null will be used by default.<p>
447-
*
448-
* The @parameter rowMetadata must be null or a valid JSON construct:
449-
* object, array, string, number, true, false or null, otherwise an
450-
* IllegalArgumentException is thrown.
451-
*
452-
* @param rowMetadata the row metadata
450+
* null will be used by default.
451+
* NOTE that if you have previously written a record with metadata and a
452+
* subsequent write does not supply metadata, the metadata associated with
453+
* the row will be null. Therefore, if you wish to have metadata
454+
* associated with every write operation, you must supply a valid JSON
455+
* construct to this method.<p>
456+
*
457+
* @param rowMetadata the row metadata, must be null or a valid JSON
458+
* construct: object, array, string, number, true, false or null,
459+
* otherwise an IllegalArgumentException is thrown.
453460
* @throws IllegalArgumentException if rowMetadata not null and invalid
454-
* JSON construct
461+
* JSON construct
455462
*
456463
* @since 5.4.18
457464
* @return this

driver/src/main/java/oracle/nosql/driver/ops/QueryRequest.java

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -925,23 +925,29 @@ public Consistency getConsistency() {
925925
}
926926

927927
/**
928+
* This method is **EXPERIMENTAL** and its behavior, signature, or
929+
* even its existence may change without prior notice in future versions.
930+
* Use with caution.<p>
931+
*
928932
* Sets the row metadata to use for the operation. This setting is optional
929933
* and only applies if the query modifies or deletes any rows using an
930934
* INSERT, UPDATE, UPSERT or DELETE statement. If the query is read-only
931-
* this setting is ignored.<p>
935+
* this setting is ignored. This is an optional parameter.<p>
932936
*
933937
* Row metadata is associated to a certain version of a row. Any subsequent
934938
* write operation will use its own row metadata value. If not specified
935-
* null will be used by default.<p>
936-
*
937-
* The @parameter rowMetadata must be null or a valid JSON construct:
938-
* object, array, string, number, true, false or null, otherwise an
939-
* IllegalArgumentException is thrown.
940-
*
941-
* @param rowMetadata the row metadata
939+
* null will be used by default.
940+
* NOTE that if you have previously written a record with metadata and a
941+
* subsequent write does not supply metadata, the metadata associated with
942+
* the row will be null. Therefore, if you wish to have metadata
943+
* associated with every write operation, you must supply a valid JSON
944+
* construct to this method.<p>
945+
*
946+
* @param rowMetadata the row metadata, must be null or a valid JSON
947+
* construct: object, array, string, number, true, false or null,
948+
* otherwise an IllegalArgumentException is thrown.
942949
* @throws IllegalArgumentException if rowMetadata not null and invalid
943-
* JSON construct
944-
*
950+
* JSON construct
945951
* @return this
946952
* @since 5.4.18
947953
*/
@@ -957,6 +963,10 @@ public QueryRequest setRowMetadata(String rowMetadata) {
957963
}
958964

959965
/**
966+
* This method is **EXPERIMENTAL** and its behavior, signature, or
967+
* even its existence may change without prior notice in future versions.
968+
* Use with caution.<p>
969+
*
960970
* Returns the row metadata set for this request, or null if not set.
961971
*
962972
* @return the row metadata

driver/src/main/java/oracle/nosql/driver/ops/WriteRequest.java

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,13 @@ protected void validateWriteRequest(String requestName) {
5555
}
5656

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

6872
/**
73+
* This method is **EXPERIMENTAL** and its behavior, signature, or
74+
* even its existence may change without prior notice in future versions.
75+
* Use with caution.<p>
76+
*
6977
* Sets the row metadata to use for this request.
7078
* This is an optional parameter.<p>
7179
*
7280
* Row metadata is associated to a certain version of a row. Any subsequent
7381
* write operation will use its own row metadata value. If not specified
74-
* null will be used by default.<p>
75-
*
76-
* The @parameter rowMetadata must be null or in a valid JSON construct:
77-
* object, array, string, number, true, false or null,
78-
* otherwise an IllegalArgumentException is thrown.
82+
* null will be used by default.
83+
* NOTE that if you have previously written a record with metadata and a
84+
* subsequent write does not supply metadata, the metadata associated with
85+
* the row will be null. Therefore, if you wish to have metadata
86+
* associated with every write operation, you must supply a valid JSON
87+
* construct to this method.<p>
7988
*
80-
* @param rowMetadata the row metadata
89+
* @param rowMetadata the row metadata, must be null or a valid JSON
90+
* construct: object, array, string, number, true, false or null,
91+
* otherwise an IllegalArgumentException is thrown.
8192
* @throws IllegalArgumentException if rowMetadata not null and invalid
82-
* JSON Object format
93+
* JSON construct
8394
*
8495
* @since 5.4.18
8596
* @return this

0 commit comments

Comments
 (0)