Package oracle.nosql.driver
Class DefinedTags
java.lang.Object
oracle.nosql.driver.DefinedTags
Cloud service only.
 DefinedTags is a class to encapsulate defined tags which are returned
 from calls to 
NoSQLHandle.getTable(oracle.nosql.driver.ops.GetTableRequest). They can also be set during
 table creation operations as well as alter table operations.- Since:
- 5.4
- 
Constructor SummaryConstructorsConstructorDescriptionCreates a new instance of DefinedTags.DefinedTags(String jsonString) Creates a new instance of DefinedTags from JSON string input.
- 
Method SummaryModifier and TypeMethodDescriptionAdds a new tag to the set of tags in the specified namespacebooleanReturns true if the specified key exists in the specified namespaceReturns the value of the named tag in the specified namespace or null if it does not existtoString()Returns the free-form tags as a JSON string
- 
Constructor Details- 
DefinedTagspublic DefinedTags()Creates a new instance of DefinedTags. This method along withaddTag(java.lang.String, java.lang.String, java.lang.String)is used to add tags to a call to create or modify a table.
- 
DefinedTagsCreates a new instance of DefinedTags from JSON string input.- Parameters:
- jsonString- a JSON string
 
 
- 
- 
Method Details- 
addTagAdds a new tag to the set of tags in the specified namespace- Parameters:
- namespace- the namespace for the tag
- key- the tag key
- value- the tag value
- Returns:
- this
 
- 
getTagReturns the value of the named tag in the specified namespace or null if it does not exist- Parameters:
- namespace- the namespace
- key- the key
- Returns:
- the tag value or null
 
- 
containsReturns true if the specified key exists in the specified namespace- Parameters:
- namespace- the namespace
- key- the key
- Returns:
- true if the key exists
 
- 
toStringReturns the free-form tags as a JSON string
 
-