it.eng.spagobi.engines.qbe.query
Class SQLFieldsReader
java.lang.Object
it.eng.spagobi.engines.qbe.query.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 |
SQLFieldsReader
public SQLFieldsReader(java.lang.String query,
java.sql.Connection connection)
- Instantiates a new sQL fields reader.
- Parameters:
query
- the queryconnection
- the connection
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 rsmdt
- the t
- Returns:
- the jdbc type class