public class Statement extends Object
WHERE, ORDER BY and LIMIT clauses of a
PQL query. Statements are typically used to retrieve objects of a predefined
domain type, which makes SELECT clause unnecessary.
An example query text might be "WHERE status = 'ACTIVE' ORDER BY id
LIMIT 30".
Statements support bind variables. These are substitutes for literals and can be thought of as input parameters to a PQL query.
An example of such a query might be "WHERE id = :idValue".
Statements also support use of the LIKE keyword. This provides partial and wildcard string matching.
An example of such a query might be "WHERE name LIKE 'startswith%'".
Value, e.g., NumberValue, TextValue or
BooleanValue.
Java class for Statement complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="Statement">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="query" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="values" type="{https://www.google.com/apis/ads/publisher/v201708}String_ValueMapEntry" maxOccurs="unbounded" minOccurs="0"/>
</sequence>
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected String |
query |
protected List<StringValueMapEntry> |
values |
| Constructor and Description |
|---|
Statement() |
| Modifier and Type | Method and Description |
|---|---|
String |
getQuery()
Gets the value of the query property.
|
List<StringValueMapEntry> |
getValues()
Gets the value of the values property.
|
void |
setQuery(String value)
Sets the value of the query property.
|
protected String query
protected List<StringValueMapEntry> values
public String getQuery()
Stringpublic void setQuery(String value)
value - allowed object is
Stringpublic List<StringValueMapEntry> getValues()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set method for the values property.
For example, to add a new item, do as follows:
getValues().add(newItem);
Objects of the following type(s) are allowed in the list
StringValueMapEntry
Copyright © 2018. All Rights Reserved.