it.eng.qbe.export
Class SQLFieldsReader
java.lang.Object
it.eng.qbe.export.SQLFieldsReader
- All Implemented Interfaces:
- IFieldsReader
public class SQLFieldsReader
- extends java.lang.Object
- implements IFieldsReader
Class that can get fields (i.e name and type) from a sql query string
- Author:
- Gioia
Field Summary |
private java.sql.Connection |
connection
|
private java.lang.String |
query
|
Constructor Summary |
SQLFieldsReader(java.lang.String query,
java.sql.Connection connection)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
query
private java.lang.String query
connection
private java.sql.Connection connection
SQLFieldsReader
public SQLFieldsReader(java.lang.String query,
java.sql.Connection connection)
readFields
public java.util.Vector readFields()
throws java.lang.Exception
- Specified by:
readFields
in interface IFieldsReader
- Throws:
java.lang.Exception
getJdbcTypeClass
public static java.lang.String getJdbcTypeClass(java.sql.ResultSetMetaData rsmd,
int t)