it.eng.qbe.newexport
Class SQLFieldsReader

java.lang.Object
  extended by it.eng.qbe.newexport.SQLFieldsReader

public class SQLFieldsReader
extends java.lang.Object

Class that can get fields (i.e name and type) from a sql query string

Author:
Gioia

Constructor Summary
SQLFieldsReader(java.lang.String query, java.sql.Connection connection)
          Instantiates a new sQL fields reader.
 
Method Summary
static java.lang.String getJdbcTypeClass(java.sql.ResultSetMetaData rsmd, int t)
          Gets the jdbc type class.
 java.util.Vector readFields()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SQLFieldsReader

public SQLFieldsReader(java.lang.String query,
                       java.sql.Connection connection)
Instantiates a new sQL fields reader.

Parameters:
query - the query
connection - the connection
Method Detail

readFields

public java.util.Vector readFields()
                            throws java.lang.Exception
Throws:
java.lang.Exception

getJdbcTypeClass

public static java.lang.String getJdbcTypeClass(java.sql.ResultSetMetaData rsmd,
                                                int t)
Gets the jdbc type class.

Parameters:
rsmd - the rsmd
t - the t
Returns:
the jdbc type class