Search in sources :

Example 1 with JaqyParameterMetaData

use of com.teradata.jaqy.connection.JaqyParameterMetaData in project jaqy by Teradata.

the class DebugManager method dumpPreparedStatement.

public void dumpPreparedStatement(Display display, Session session, JaqyPreparedStatement stmt, JaqyInterpreter interpreter) {
    if (m_dumpPreparedStatement) {
        try {
            JaqyParameterMetaData metaData = stmt.getParameterMetaData();
            ParameterMetaDataUtils.dump(display, session, metaData);
        } catch (SQLException ex) {
            display.getGlobals().log(Level.INFO, ex);
        }
        try {
            JaqyResultSet rs = stmt.getResultSet(interpreter);
            if (rs != null)
                ResultSetMetaDataUtils.dump(display, session, rs.getMetaData());
        } catch (SQLException ex) {
            display.getGlobals().log(Level.INFO, ex);
        }
    }
}
Also used : JaqyResultSet(com.teradata.jaqy.interfaces.JaqyResultSet) JaqyParameterMetaData(com.teradata.jaqy.connection.JaqyParameterMetaData) SQLException(java.sql.SQLException)

Aggregations

JaqyParameterMetaData (com.teradata.jaqy.connection.JaqyParameterMetaData)1 JaqyResultSet (com.teradata.jaqy.interfaces.JaqyResultSet)1 SQLException (java.sql.SQLException)1