|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.continuent.tungsten.replicator.database.SqlStatementParser
public class SqlStatementParser
Handles parsing of SQL statements to derive parsing information. This class encapsulates logic to select a parser based on a particular dialect.
The call to fetch the singleton parser is synchronized to guarantee visibility across all threads. Also, we final variables for all instances to avoid unnecessary object creation, as the parsing function is called potentially many times.
| Method Summary | |
|---|---|
static SqlStatementParser |
getParser()
Returns a SQL statement parser. |
SqlOperation |
parse(java.lang.String statement,
java.lang.String dbmsType)
Parse a SQL statement. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static SqlStatementParser getParser()
public SqlOperation parse(java.lang.String statement,
java.lang.String dbmsType)
statement - A query, presumably written in some form of SQLdbmsType - The DBMS type, using one of the string names provided by
the Database class.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||