public final class Parser extends ParserBase
| Constructor and Description |
|---|
Parser(SessionLocal session)
Creates a new instance of parser.
|
| Modifier and Type | Method and Description |
|---|---|
static AlterTableAddConstraint |
newPrimaryKeyConstraintCommand(SessionLocal session,
Schema schema,
java.lang.String tableName,
Column column)
Create a new alter table command.
|
Expression |
parseDomainConstraintExpression(java.lang.String sql)
Parse a SQL code snippet that represents an expression for a domain constraint.
|
Expression |
parseExpression(java.lang.String sql)
Parse a SQL code snippet that represents an expression.
|
Table |
parseTableName(java.lang.String sql)
Parse a SQL code snippet that represents a table name.
|
Prepared |
prepare(java.lang.String sql)
Parse the statement and prepare it for execution.
|
Command |
prepareCommand(java.lang.String sql)
Parse a statement or a list of statements, and prepare it for execution.
|
Query |
prepareQueryExpression(java.lang.String sql)
Parse a query and prepare its expressions.
|
void |
setRightsChecked(boolean rightsChecked) |
formatNonKeywords, getLastParseIndex, parseColumnList, parseNonKeywords, quoteIdentifier, setLiteralsChecked, setSuppliedParameters, toStringpublic Parser(SessionLocal session)
session - the sessionpublic Prepared prepare(java.lang.String sql)
sql - the SQL statement to parsepublic Query prepareQueryExpression(java.lang.String sql)
sql - the SQL statement to parsepublic Command prepareCommand(java.lang.String sql)
sql - the SQL statement to parsepublic static AlterTableAddConstraint newPrimaryKeyConstraintCommand(SessionLocal session, Schema schema, java.lang.String tableName, Column column)
session - the sessionschema - the schematableName - the tablecolumn - the columnpublic void setRightsChecked(boolean rightsChecked)
public Expression parseExpression(java.lang.String sql)
sql - the code snippetpublic Expression parseDomainConstraintExpression(java.lang.String sql)
sql - the code snippetpublic Table parseTableName(java.lang.String sql)
sql - the code snippet