Class EscapeTokenizer
java.lang.Object
com.mysql.jdbc.EscapeTokenizer
EscapeTokenizer breaks up an SQL statement into SQL and escape code parts.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanDoes this tokenizer have more tokens available?Returns the next token(package private) booleanReturns true if a variable reference was found.
-
Constructor Details
-
EscapeTokenizer
Creates a new EscapeTokenizer object.- Parameters:
source- the string to tokenize
-
-
Method Details
-
hasMoreTokens
public boolean hasMoreTokens()Does this tokenizer have more tokens available?- Returns:
- if this tokenizer has more tokens available
-
nextToken
-
sawVariableUse
boolean sawVariableUse()Returns true if a variable reference was found. Note that this information isn't accurate until finishing to process all tokens from source String. It also can't be used as per token basis.- Returns:
- true if a variable reference was found.
-