public class SQLQueryParser extends Object
Modifier and Type | Field and Description |
---|---|
static int |
INLINE_PARSER |
static int |
NO_INLINE_PARSER |
static int |
NO_OVERRIDE |
Constructor and Description |
---|
SQLQueryParser()
The SQLStatement Parser will be created as a psuedo SINGLETON per
XConnection.
|
Modifier and Type | Method and Description |
---|---|
Vector |
getParameters() |
String |
getSQLQuery()
Return a copy of the parsed SQL query that will be set to the
Database system to execute.
|
boolean |
hasParameters()
If a SQL Statement does not have any parameters, then it can be executed
directly.
|
protected void |
inlineParser() |
boolean |
isCallable()
If the Inline Parser is used, the parser will note if this stastement is
a plain SQL Statement or a Called Procedure.
|
SQLQueryParser |
parse(XConnection xconn,
String query,
int override)
Produce an SQL Statement Parser based on the incomming query.
|
void |
populateStatement(PreparedStatement stmt,
ExpressionContext ctx)
The SQL Statement Parser, when an Inline Parser is used, tracks the XSL
variables used to populate a statement.
|
void |
registerOutputParameters(CallableStatement cstmt) |
void |
setParameters(Vector p)
The XConnection will use this method to store the Parameters
that were supplied by the style sheet in the case where the
inline parser was not used
|
public static final int NO_OVERRIDE
public static final int NO_INLINE_PARSER
public static final int INLINE_PARSER
public SQLQueryParser()
public SQLQueryParser parse(XConnection xconn, String query, int override)
public boolean hasParameters()
public boolean isCallable()
public Vector getParameters()
public void setParameters(Vector p)
public String getSQLQuery()
public void populateStatement(PreparedStatement stmt, ExpressionContext ctx)
public void registerOutputParameters(CallableStatement cstmt) throws SQLException
SQLException
protected void inlineParser()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.