Parser
The parser is used to convert a SQL statement string to an command object.
| Methods |
| static int |
compareTableFilters(TableFilter o1, TableFilter o2)
Find out which of the table filters appears first in the "from" clause.
|
| static int |
compareTableFilters(TableFilter o1, TableFilter o2)
Find out which of the table filters appears first in the "from" clause.
Parameters:
o1 - the first table filter
o2 - the second table filter
Returns:
-1 if o1 appears first, and 1 if o2 appears first
|
| static String |
quoteIdentifier(String s)
Add double quotes around an identifier if required.
|
| static String |
quoteIdentifier(String s)
Add double quotes around an identifier if required.
Parameters:
s - the identifier
Returns:
the quoted identifier
|
| Session |
getSession()
|
| Session |
getSession()
|
| Prepared |
parse(String sql)
Parse the statement, but don't prepare it for execution.
|
| Prepared |
parse(String sql)
Parse the statement, but don't prepare it for execution.
Parameters:
sql - the SQL statement to parse
Returns:
the prepared object
|
| Expression |
parseExpression(String sql)
Parse a SQL code snippet that represents an expression.
|
| Expression |
parseExpression(String sql)
Parse a SQL code snippet that represents an expression.
Parameters:
sql - the code snippet
Returns:
the expression object
|
| Table |
parseTableName(String sql)
Parse a SQL code snippet that represents a table name.
|
| Table |
parseTableName(String sql)
Parse a SQL code snippet that represents a table name.
Parameters:
sql - the code snippet
Returns:
the table object
|
| Prepared |
prepare(String sql)
Parse the statement and prepare it for execution.
|
| Prepared |
prepare(String sql)
Parse the statement and prepare it for execution.
Parameters:
sql - the SQL statement to parse
Returns:
the prepared object
|
| Command |
prepareCommand(String sql)
Parse a statement or a list of statements, and prepare it for execution.
|
| Command |
prepareCommand(String sql)
Parse a statement or a list of statements, and prepare it for execution.
Parameters:
sql - the SQL statement to parse
Returns:
the command object
|
| void |
setLiteralsChecked(boolean literalsChecked)
|
| void |
setLiteralsChecked(boolean literalsChecked)
|
| void |
setRightsChecked(boolean rightsChecked)
|
| void |
setRightsChecked(boolean rightsChecked)
|
| void |
setSuppliedParameterList(ArrayList suppliedParameterList)
|
| void |
setSuppliedParameterList(ArrayList suppliedParameterList)
|
| String |
toString()
|
| String |
toString()
|
|