|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xalan.lib.sql.SQLQueryParser
public class SQLQueryParser
Field Summary | |
---|---|
static int |
INLINE_PARSER
|
private boolean |
m_hasOutput
|
private boolean |
m_HasParameters
|
private boolean |
m_InlineVariables
If the parser used inline parser to pull out variables then this will be true. |
private boolean |
m_IsCallable
|
private java.lang.String |
m_OrigQuery
|
private java.util.Vector |
m_Parameters
|
private java.lang.StringBuffer |
m_ParsedQuery
|
static int |
NO_INLINE_PARSER
|
static int |
NO_OVERRIDE
|
Constructor Summary | |
---|---|
|
SQLQueryParser()
The SQLStatement Parser will be created as a psuedo SINGLETON per XConnection. |
private |
SQLQueryParser(java.lang.String query)
Constructor, used to create a new parser entry |
Method Summary | |
---|---|
java.util.Vector |
getParameters()
|
java.lang.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. |
private void |
init()
On a per Xconnection basis, we will create a SQLStatemenetParser, from this parser, individual parsers will be created. |
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. |
private void |
parse(XConnection xconn,
int override)
Produce an SQL Statement Parser based on the incomming query. |
SQLQueryParser |
parse(XConnection xconn,
java.lang.String query,
int override)
Produce an SQL Statement Parser based on the incomming query. |
void |
populateStatement(java.sql.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(java.sql.CallableStatement cstmt)
|
void |
setParameters(java.util.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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private boolean m_InlineVariables
private boolean m_IsCallable
private java.lang.String m_OrigQuery
private java.lang.StringBuffer m_ParsedQuery
private java.util.Vector m_Parameters
private boolean m_hasOutput
private boolean m_HasParameters
public static final int NO_OVERRIDE
public static final int NO_INLINE_PARSER
public static final int INLINE_PARSER
Constructor Detail |
---|
public SQLQueryParser()
private SQLQueryParser(java.lang.String query)
Method Detail |
---|
private void init()
public SQLQueryParser parse(XConnection xconn, java.lang.String query, int override)
private void parse(XConnection xconn, int override)
public boolean hasParameters()
public boolean isCallable()
public java.util.Vector getParameters()
public void setParameters(java.util.Vector p)
public java.lang.String getSQLQuery()
public void populateStatement(java.sql.PreparedStatement stmt, ExpressionContext ctx)
public void registerOutputParameters(java.sql.CallableStatement cstmt) throws java.sql.SQLException
java.sql.SQLException
protected void inlineParser()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |