net.sourceforge.squirrel_sql.plugins.derby.tokenizer
Class DerbyQueryTokenizer
java.lang.Object
net.sourceforge.squirrel_sql.fw.sql.QueryTokenizer
net.sourceforge.squirrel_sql.plugins.derby.tokenizer.DerbyQueryTokenizer
- All Implemented Interfaces:
- IQueryTokenizer
public class DerbyQueryTokenizer
- extends QueryTokenizer
- implements IQueryTokenizer
This class is loaded by the Derby Plugin and registered with all Derby
Sessions as the query tokenizer if the plugin is loaded. It handles some
of the syntax allowed in ij scripts that would be hard to parse in a
generic way for any database. Specifically, it handles "run 'script'"
commands which
- Author:
- manningr
|
Method Summary |
protected void |
setFactory()
Sets the ITokenizerFactory which is used to create additional instances
of the IQueryTokenizer - this is used for handling file includes
recursively. |
void |
setScriptToTokenize(String script)
|
| Methods inherited from class net.sourceforge.squirrel_sql.fw.sql.QueryTokenizer |
expandFileIncludes, getLineCommentBegin, getQueryCount, getQuerySep, getSQLStatementSeparator, getStatementsFromIncludeFile, getTokenizerSessPropsInteractions, hasQuery, isRemoveMultiLineComment, main, nextQuery, setLineCommentBegin, setQuerySep, setRemoveMultiLineComment |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DerbyQueryTokenizer
public DerbyQueryTokenizer(String sep,
String linecomment,
boolean removeMultiLineComment)
setScriptToTokenize
public void setScriptToTokenize(String script)
- Specified by:
setScriptToTokenize in interface IQueryTokenizer- Overrides:
setScriptToTokenize in class QueryTokenizer
setFactory
protected void setFactory()
- Sets the ITokenizerFactory which is used to create additional instances
of the IQueryTokenizer - this is used for handling file includes
recursively.
- Overrides:
setFactory in class QueryTokenizer
Copyright © 2001-2011. All Rights Reserved.