|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbr.ufg.integrate.wrapper.csv.SqlParser
public class SqlParser
This is a very crude and SQL simple parser used by the Csv JDBC driver. It only handles SELECT statements in the format "SELECT xxx,yyy,zzz FROM fffff WHERE xxx='123'" The WHERE condition can only be a signle equal condition, on the form COLUMN=VALUE where column is a column from the resultset and value is a quota enclosed expression
Field Summary | |
---|---|
String[] |
columnNames
Description of the Field |
String |
tableName
The name of the table |
Constructor Summary | |
---|---|
SqlParser()
|
Method Summary | |
---|---|
String[] |
getColumnNames()
Gets the columnNames attribute of the SqlParser object |
String |
getTableName()
Gets the tableName attribute of the SqlParser object |
String |
getWhereColumnName()
|
String |
getWhereValue()
Return the value to use on the where column. |
void |
parse(String sql)
Set the internal table name and column names. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public String tableName
public String[] columnNames
Constructor Detail |
---|
public SqlParser()
Method Detail |
---|
public String getTableName()
public String[] getColumnNames()
public String getWhereColumnName()
public String getWhereValue()
public void parse(String sql) throws Exception
sql
- Description of Parameter
Exception
- Description of Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |