public class QuerySpecification extends Serializable
| Constructor and Description |
|---|
QuerySpecification(String query)
CONSTRUCTOR
|
| Modifier and Type | Method and Description |
|---|---|
String |
getQuery()
Getter for the query.
|
com.google.gson.JsonElement |
toJsonElement()
Serializer
|
toJson, toStringpublic QuerySpecification(String query)
This constructor creates an instance of the query specification.
The query must follow the provisioning service Query Language
When serialized, this class will look like the following example:
{
"query":"SELECT * FROM enrollments",
}
query - the String with the query. It cannot be null, empty or a invalid query.IllegalArgumentException - If the provided query is not a valid query.public com.google.gson.JsonElement toJsonElement()
Creates a JsonElement, which the content represents
the information in this class and its subclasses in a JSON format.
This is useful if the caller will integrate this JSON with jsons from
other classes to generate a consolidated JSON.
toJsonElement in class SerializableJsonElement with the content of this class.public String getQuery()
String with the information stored in the query. It cannot be null.Copyright © 2021. All rights reserved.