public class FBEscapedCallParser
extends java.lang.Object
| Constructor and Description |
|---|
FBEscapedCallParser(FBEscapedParser.EscapeParserMode mode) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
getState()
Returns the current state.
|
protected boolean |
isInState(int state)
Returns if the system is in state
state. |
FBProcedureCall |
parseCall(java.lang.String sql)
Converts escaped parts in the passed SQL to native representation.
|
protected java.lang.String |
processParam(java.lang.String param)
Pre-process parameter.
|
protected boolean |
processToken(java.lang.String token)
Process token.
|
protected void |
setState(int state)
Sets the current state.
|
protected void |
switchState(char testChar)
Test the character to be the state switching character and switches
the state if necessary.
|
public FBEscapedCallParser(FBEscapedParser.EscapeParserMode mode)
protected int getState()
protected void setState(int state)
state - to enter.java.lang.IllegalStateException - if the system cannot enter the desired state.protected boolean isInState(int state)
state.state - we're testingtrue if the system is in state state.protected void switchState(char testChar)
throws FBSQLParseException
testChar - character to testFBSQLParseExceptionpublic FBProcedureCall parseCall(java.lang.String sql) throws java.sql.SQLException
sql - to parsesql.java.sql.SQLExceptionprotected boolean processToken(java.lang.String token)
token - token to process.true if token was understood and processed.protected java.lang.String processParam(java.lang.String param)
throws java.sql.SQLException
param - parameter to process.FBSQLParseException - if parameter cannot be correctly parsed.java.sql.SQLExceptionCopyright © 2001-2023 Jaybird (Firebird JDBC/JCA) team. All rights reserved.