|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.api.ads.dfp.axis.v201206.Statement
public class Statement
Captures the 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 also 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".
Value and is one of
NumberValue, TextValue or BooleanValue.
If using an API version older than or equal to V201010,
the value for the
variable idValue must then be set with an object of type
Param and is
one of DoubleParam, LongParam or StringParam.
| Constructor Summary | |
|---|---|
Statement()
|
|
Statement(String query,
String_ValueMapEntry[] values)
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
static org.apache.axis.encoding.Deserializer |
getDeserializer(String mechType,
Class _javaType,
QName _xmlType)
Get Custom Deserializer |
String |
getQuery()
Gets the query value for this Statement. |
static org.apache.axis.encoding.Serializer |
getSerializer(String mechType,
Class _javaType,
QName _xmlType)
Get Custom Serializer |
static org.apache.axis.description.TypeDesc |
getTypeDesc()
Return type metadata object |
String_ValueMapEntry[] |
getValues()
Gets the values value for this Statement. |
String_ValueMapEntry |
getValues(int i)
|
int |
hashCode()
|
void |
setQuery(String query)
Sets the query value for this Statement. |
void |
setValues(int i,
String_ValueMapEntry _value)
|
void |
setValues(String_ValueMapEntry[] values)
Sets the values value for this Statement. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Statement()
public Statement(String query,
String_ValueMapEntry[] values)
| Method Detail |
|---|
public String getQuery()
[WHERE {[AND | OR] ...}] [ORDER BY [ASC | DESC]] [LIMIT {[,] } | { OFFSET
}]
:=
:=
public void setQuery(String query)
query - * Holds the query in PQL syntax. The syntax is:[WHERE {[AND | OR] ...}] [ORDER BY [ASC | DESC]] [LIMIT {[,] } | { OFFSET
}]
:=
:=
public String_ValueMapEntry[] getValues()
In the example "WHERE status = :bindStatus
ORDER BY id LIMIT 30",
the bind variable, represented by :bindStatus
is named bindStatus, which would also be the parameter map
key. The bind variable's
value would be represented by a parameter map value
of type
TextValue. The final result, for example,
would be an entry of
"bindStatus" => StringParam("ACTIVE").
public void setValues(String_ValueMapEntry[] values)
values - * Holds keys and values for bind variables and their values.
The key is the
name of the bind variable. The value is the literal
value of the variable.
In the example "WHERE status = :bindStatus
ORDER BY id LIMIT 30",
the bind variable, represented by :bindStatus
is named bindStatus, which would also be the parameter map
key. The bind variable's
value would be represented by a parameter map value
of type
TextValue. The final result, for example,
would be an entry of
"bindStatus" => StringParam("ACTIVE").
public String_ValueMapEntry getValues(int i)
public void setValues(int i,
String_ValueMapEntry _value)
public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic static org.apache.axis.description.TypeDesc getTypeDesc()
public static org.apache.axis.encoding.Serializer getSerializer(String mechType,
Class _javaType,
QName _xmlType)
public static org.apache.axis.encoding.Deserializer getDeserializer(String mechType,
Class _javaType,
QName _xmlType)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||