public class Statement extends Object implements Serializable
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 wildcard string matching.
An example of such a query might be "WHERE name
LIKE '%searchString%'".
Value, e.g., NumberValue, TextValue
or
BooleanValue.| Constructor and Description |
|---|
Statement() |
Statement(String query,
String_ValueMapEntry[] values) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
String |
toString() |
public Statement()
public Statement(String query, String_ValueMapEntry[] values)
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 static org.apache.axis.description.TypeDesc getTypeDesc()
public static org.apache.axis.encoding.Serializer getSerializer(String mechType, Class _javaType, QName _xmlType)
Copyright © 2020. All rights reserved.