org.relique.jdbc.csv
Class SqlParser
java.lang.Object
|
+--org.relique.jdbc.csv.SqlParser
- public class SqlParser
- extends java.lang.Object
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"
- Version:
- $Id: SqlParser.java,v 1.2 2001/12/01 22:35:13 jackerm Exp $
- Author:
- Jonathan Ackerman
Field Summary |
java.lang.String[] |
columnNames
Description of the Field |
java.lang.String |
tableName
Description of the Field |
Method Summary |
java.lang.String[] |
getColumnNames()
Gets the columnNames attribute of the SqlParser object |
java.lang.String |
getTableName()
Gets the tableName attribute of the SqlParser object |
void |
parse(java.lang.String sql)
Description of the Method |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
tableName
public java.lang.String tableName
- Description of the Field
- Since:
-
columnNames
public java.lang.String[] columnNames
- Description of the Field
- Since:
-
SqlParser
public SqlParser()
getTableName
public java.lang.String getTableName()
- Gets the tableName attribute of the SqlParser object
- Returns:
- The tableName value
- Since:
-
getColumnNames
public java.lang.String[] getColumnNames()
- Gets the columnNames attribute of the SqlParser object
- Returns:
- The columnNames value
- Since:
-
parse
public void parse(java.lang.String sql)
throws java.lang.Exception
- Description of the Method
- Parameters:
sql
- Description of Parameter- Throws:
java.lang.Exception
- Description of Exception- Since:
-
Check out http://csvjdbc.sourceforge.net for more info.