public class TQueryBuilder
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
TQueryBuilder.TExplainLevel
Enum class for the explanation level constants used with the TQueryBuilder.explain() method.
|
Modifier | Constructor and Description |
---|---|
protected |
TQueryBuilder()
Initializes the TQueryBuilder.
|
Modifier and Type | Method and Description |
---|---|
TQuery |
buildFromDocname(java.lang.String doctype,
java.lang.String docname)
Builds a TQuery instance for a query expression to retrieve a single document based on
its ino:docname.
|
TQuery |
buildFromId(java.lang.String doctype,
java.lang.String id)
Builds a TQuery instance for a query expression to retrieve a single document based on
its ino:id.
|
TQuery |
explain(java.lang.String query)
Builds a TQuery instance for a explain query with no explanation level.
|
TQuery |
explain(java.lang.String query,
TQueryBuilder.TExplainLevel explainLevel)
Builds a TQuery instance for a explain query.
|
static TQueryBuilder |
getInstance()
Gets the singleton instance of the TQueryBuilder.
|
public static TQueryBuilder getInstance()
public TQuery buildFromId(java.lang.String doctype, java.lang.String id)
<doctype>[@ino:id="<id>"] <\pre>
doctype
- the doctype of the document to be retrieved.id
- the ino:id of the document to be retrieved.public TQuery buildFromDocname(java.lang.String doctype, java.lang.String docname)
<doctype>[@ino:docname="<docname>"] <\pre>
doctype
- the doctype of the document to be retrieved.docname
- the ino:docname of the document to be retrieved.public TQuery explain(java.lang.String query)
query
- the query to explain.public TQuery explain(java.lang.String query, TQueryBuilder.TExplainLevel explainLevel)
query
- the query to explain.explainLevel
- the level of explanation.Copyright (c) 2017 Software AG. All Rights Reserved.