|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.firebirdsql.jdbc.FBEscapedCallParser
public class FBEscapedCallParser
Parser for escaped procedure call.
| Constructor Summary | |
|---|---|
FBEscapedCallParser(int mode)
|
|
| Method Summary | |
|---|---|
protected int |
getState()
Returns the current state. |
protected boolean |
isInState(int state)
Returns if the system is in state state. |
FBProcedureCall |
parseCall(String sql)
Converts escaped parts in the passed SQL to native representation. |
protected String |
processParam(String param)
Pre-process parameter. |
protected boolean |
processToken(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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FBEscapedCallParser(int mode)
| Method Detail |
|---|
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 testing
true if the system is in state state.
protected void switchState(char testChar)
throws FBSQLParseException
testChar - character to test
FBSQLParseException
public FBProcedureCall parseCall(String sql)
throws FBSQLException
sql - to parse
sql.
FBSQLExceptionprotected boolean processToken(String token)
token - token to process.
true if token was understood and processed.
protected String processParam(String param)
throws FBSQLException
param - parameter to process.
FBSQLParseException - if parameter cannot be correctly parsed.
FBSQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||