|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.firebirdsql.jdbc.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(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. |
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 testingtrue
if the system is in state state
.protected void switchState(char testChar) throws FBSQLParseException
testChar
- character to testpublic FBProcedureCall parseCall(java.lang.String sql) throws FBSQLException
sql
- to parsesql
.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 FBSQLException
param
- parameter to process.FBSQLParseException
- if parameter cannot be correctly parsed.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |