public class FBEscapedCallParser
extends java.lang.Object
Constructor and Description |
---|
FBEscapedCallParser(int 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.
|
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 testFBSQLParseException
public FBProcedureCall parseCall(java.lang.String sql) throws java.sql.SQLException
sql
- to parsesql
.java.sql.SQLException
protected 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.java.sql.SQLException
- if parameter cannot be correctly parsed.Copyright © 2001-2019 Jaybird (Firebird JDBC/JCA) team. All rights reserved.