Java Client API: Removal of Deprecated Interfaces
Most of the previously deprecated packages, interfaces, classes, and methods of the Java Client API have been removed. The following table lists what has been removed and provides guidance for modifying your code.
Note
In the following table, “c.m.c.” is an abbreviation for “com.marklogic.client.”.
Removed Package, Class, or Method |
Alternative |
---|---|
|
Use the following equivalent methods instead.
|
|
Overloads of the listed methods that accept a |
|
This package, its sub-packages, and all contained classes, interfaces, and types have been removed. This includes the |
|
Remove your usage. Language specifications are not supported for JSON. Calls to these methods were ignored in MarkLogic 8. |
|
Create query options using your preferred JSON or XML libraries, read options from a file, or build options as a string. Read and write options using appropriate handles, such as |
c.m.c.query:
|
The key-value search capability has been removed. Build equivalent queries using a |
c.m.c.query.QueryManager:
|
The key-value search capability has been removed. Build equivalent queries using a StructuredQueryDefinition (JSON property query or element query) or QBE. c. |
|
Remove your usage. This setting was ignored in MarkLogic 8. |
|
Use F |
StructuredQueryBuilder (nested classes):
|
Continue to construct structured queries using StructuredQueryDefinition methods, as before. The return type from the query builder methods is always StructuredQueryDefinition now. For example, |
|
|