public class QuerySpecification extends Serializable
Constructor and Description |
---|
QuerySpecification(String query)
CONSTRUCTOR
|
Modifier and Type | Method and Description |
---|---|
com.google.gson.JsonElement |
toJsonElement()
Serializer
|
toJson, toString
public 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 Serializable
JsonElement
with the content of this class.Copyright © 2022. All rights reserved.