| net.sourceforge.squirrel_sql.fw.sql.IQueryTokenizer
All known Subclasses: net.sourceforge.squirrel_sql.plugins.derby.tokenizer.DerbyQueryTokenizer, net.sourceforge.squirrel_sql.plugins.mssql.tokenizer.MSSQLQueryTokenizer, net.sourceforge.squirrel_sql.plugins.oracle.tokenizer.OracleQueryTokenizer, net.sourceforge.squirrel_sql.fw.sql.QueryTokenizer, net.sourceforge.squirrel_sql.plugins.SybaseASE.tokenizer.SybaseQueryTokenizer, net.sourceforge.squirrel_sql.plugins.mysql.tokenizer.MysqlQueryTokenizer,
IQueryTokenizer | public interface IQueryTokenizer (Code) | | This should be implemented to provide script tokenizing behavior that is
specific to a database.
author: rmmannin |
Method Summary | |
String | getLineCommentBegin() Returns the string that identifies a line comment. | int | getQueryCount() Returns the number of queries that the tokenizer found in the script
given in the last call to setScriptToTokenize, or 0 if
setScriptToTokenize has not yet been called. | String | getSQLStatementSeparator() Returns the statement separator being used for this session. | boolean | hasQuery() Returns a boolean value indicating whether or not there are more
statements to be sent to the server. | boolean | isRemoveMultiLineComment() Returns whether or not the query tokenizer should remove multi-line
comments from the statements while tokenizing them. | String | nextQuery() Returns the next statement, or null if there are no more statements to
get. | void | setScriptToTokenize(String script) Sets the script to be tokenized into one or more queries that should be
sent to the database. |
getLineCommentBegin | String getLineCommentBegin()(Code) | | Returns the string that identifies a line comment.
the start of line comment |
getQueryCount | int getQueryCount()(Code) | | Returns the number of queries that the tokenizer found in the script
given in the last call to setScriptToTokenize, or 0 if
setScriptToTokenize has not yet been called.
|
getSQLStatementSeparator | String getSQLStatementSeparator()(Code) | | Returns the statement separator being used for this session. This may be
the user's preference, or in the case of a plugin that provides a custom
IQueryTokenizer implementation, this will be the plugin-specific setting
which is also configurable.
the string of characters representing a delimiter between multiplestatements. |
hasQuery | boolean hasQuery()(Code) | | Returns a boolean value indicating whether or not there are more
statements to be sent to the server.
true if nextQuery can be called to get the next statement; false otherwise. |
isRemoveMultiLineComment | boolean isRemoveMultiLineComment()(Code) | | Returns whether or not the query tokenizer should remove multi-line
comments from the statements while tokenizing them.
true if remove; falso otherwise. |
nextQuery | String nextQuery()(Code) | | Returns the next statement, or null if there are no more statements to
get.
the next statement or null if there is no next statement. |
setScriptToTokenize | void setScriptToTokenize(String script)(Code) | | Sets the script to be tokenized into one or more queries that should be
sent to the database. Query here means statement, so this includes more
than just select statements.
Parameters: script - a string representing one or more SQL statements. |
|
|