|
|||||||||
| 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(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 testing
true if the system is in state state.
protected void switchState(char testChar)
throws FBSQLParseException
testChar - character to test
FBSQLParseException
public FBProcedureCall parseCall(java.lang.String sql)
throws java.sql.SQLException
sql - to parse
sql.
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.
java.sql.SQLException - if parameter cannot be correctly parsed.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||