thinkui.parser.sql
Class DefaultSQLQueryParser
java.lang.Object
thinkui.parser.sql.DefaultSQLQueryParser
- All Implemented Interfaces:
- SQLQueryParser
- public class DefaultSQLQueryParser
- extends java.lang.Object
- implements SQLQueryParser
Implements an SQLQueryParser using a regular expressions to parse for
SQL queries.
|
Field Summary |
static java.lang.String |
SQL_CHAR_REGEX
Defines all the legal characters for an SQL expression. |
|
Method Summary |
java.util.List |
parse(java.io.InputStream inputStream)
Parse the given input stream and return a list of SQLQuery or an empty list. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SQL_CHAR_REGEX
public static final java.lang.String SQL_CHAR_REGEX
- Defines all the legal characters for an SQL expression.
- See Also:
- Constant Field Values
DefaultSQLQueryParser
public DefaultSQLQueryParser()
parse
public final java.util.List parse(java.io.InputStream inputStream)
throws java.lang.Exception
- Parse the given input stream and return a list of SQLQuery or an empty list.
- Specified by:
parse in interface SQLQueryParser
- Throws:
java.lang.Exception
Copyright © 2007-2009. ThinkUI Software Inc. All rights reserved.