|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.xorm.datastore.sql.SQLQuery
Converts a selector tree to a SQL statement.
Nested Class Summary | |
static class |
SQLQuery.Alias
|
Constructor Summary | |
SQLQuery(Selector selector)
|
Method Summary | |
static StringBuffer |
appendOperator(Operator operator,
StringBuffer buffer)
Appends the correct SQL for the given operator to the buffer. |
static String |
escapeLike(String operand)
Escapes a SQL string by replacing "%" literals with "~%". |
static String |
escapeSQLString(String operand)
Escapes an SQL String by quoting all single-quotes as two single-quotes. |
Set |
getAliases()
|
List |
getParameters()
|
Table |
getTargetTable()
|
String |
toCountSQL()
SQL needed to run the count() query. |
String |
toSQL()
Returns the SQL generated by this query. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SQLQuery(Selector selector)
Method Detail |
public Table getTargetTable()
public Set getAliases()
public List getParameters()
public static StringBuffer appendOperator(Operator operator, StringBuffer buffer)
public static String escapeSQLString(String operand)
public static String escapeLike(String operand)
public String toCountSQL()
public String toSQL()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |