it.eng.qbe.export
Class SQLFieldsReader

java.lang.Object
  extended by 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)
           
 
Method Summary
static java.lang.String getJdbcTypeClass(java.sql.ResultSetMetaData rsmd, int t)
           
 java.util.Vector readFields()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

query

private java.lang.String query

connection

private java.sql.Connection connection
Constructor Detail

SQLFieldsReader

public SQLFieldsReader(java.lang.String query,
                       java.sql.Connection connection)
Method Detail

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)