| java.lang.Object org.xorm.datastore.sql.SQLQuery
SQLQuery | public class SQLQuery (Code) | | Converts a selector tree to a SQL statement.
|
Inner Class :public static class Alias | |
appendOperator | public static StringBuffer appendOperator(Operator operator, StringBuffer buffer)(Code) | | Appends the correct SQL for the given operator to the buffer.
Does not deal with the operand itself. Therefore all of
STARTS_WITH, ENDS_WITH and STR_CONTAINS append the value " LIKE ".
Returns the same buffer as passed in.
|
escapeLike | public static String escapeLike(String operand)(Code) | | Escapes a SQL string by replacing "%" literals with "~%".
|
escapeSQLString | public static String escapeSQLString(String operand)(Code) | | Escapes an SQL String by quoting all single-quotes as
two single-quotes. Also appends leading and trailing single
quotes. For example, "Bob" becomes "'Bob'" and "Bob's" becomes
"'Bob''s'".
|
toCountSQL | public String toCountSQL()(Code) | | SQL needed to run the count() query.
|
toSQL | public String toSQL()(Code) | | Returns the SQL generated by this query.
|
|
|