groovy.sql
Class TeiidSql

java.lang.Object
  extended by groovy.sql.Sql
      extended by groovy.sql.TeiidSql

public final class TeiidSql
extends groovy.sql.Sql

An extension of Groovy's Sql to support getting TeiidStatement specific properties.


Nested Class Summary
 
Nested classes/interfaces inherited from class groovy.sql.Sql
groovy.sql.Sql.AbstractQueryCommand, groovy.sql.Sql.PreparedQueryCommand, groovy.sql.Sql.QueryCommand
 
Field Summary
 
Fields inherited from class groovy.sql.Sql
ARRAY, BIGINT, BINARY, BIT, BLOB, BOOLEAN, CHAR, CLOB, DATALINK, DATE, DECIMAL, DISTINCT, DOUBLE, FLOAT, INTEGER, JAVA_OBJECT, LOG, LONGVARBINARY, LONGVARCHAR, NULL, NUMERIC, OTHER, REAL, REF, SMALLINT, STRUCT, TIME, TIMESTAMP, TINYINT, VARBINARY, VARCHAR
 
Constructor Summary
TeiidSql(java.sql.Connection connection)
           
 
Method Summary
protected  void closeResources(java.sql.Connection connection, java.sql.Statement statement)
           
protected  void closeResources(java.sql.Connection connection, java.sql.Statement statement, java.sql.ResultSet results)
           
protected  void configure(java.sql.Statement statement)
           
 void eachRow(java.lang.String sql, groovy.lang.Closure metaClosure, groovy.lang.Closure rowClosure)
          Overridden to fix passing the resultset to the closure
 java.util.Collection<Annotation> getAnnotations()
           
 java.lang.String getDebugLog()
           
 int getMaxRows()
           
 PlanNode getPlan()
           
protected  void getPlanInfo(java.sql.Statement s)
           
 java.sql.SQLWarning getSQLWarnings()
           
 void setMaxRows(int maxRows)
           
 
Methods inherited from class groovy.sql.Sql
ARRAY, asList, asList, asSql, BIGINT, BINARY, BIT, BLOB, BOOLEAN, cacheConnection, cacheStatements, call, call, call, call, call, call, CHAR, checkForNamedParams, CLOB, close, closeResources, commit, createConnection, createPreparedQueryCommand, createQueryCommand, DATALINK, dataSet, dataSet, DATE, DECIMAL, DISTINCT, DOUBLE, eachRow, eachRow, eachRow, eachRow, eachRow, execute, execute, execute, execute, executeInsert, executeInsert, executeInsert, executeInsert, executePreparedQuery, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, expand, findWhereKeyword, firstRow, firstRow, firstRow, firstRow, FLOAT, getConnection, getDataSource, getParameters, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, in, inout, INTEGER, isCacheNamedQueries, isCacheStatements, isEnableNamedQueries, isWithinBatch, JAVA_OBJECT, loadDriver, LONGVARBINARY, LONGVARCHAR, newInstance, newInstance, newInstance, newInstance, newInstance, newInstance, newInstance, NULL, nullify, NUMERIC, OTHER, out, query, query, query, REAL, REF, resultSet, rollback, rows, rows, rows, rows, rows, rows, rows, setCacheNamedQueries, setCacheStatements, setEnableNamedQueries, setInternalConnection, setObject, setParameters, setResultSetConcurrency, setResultSetHoldability, setResultSetType, SMALLINT, STRUCT, TIME, TIMESTAMP, TINYINT, VARBINARY, VARCHAR, withBatch, withBatch, withStatement, withTransaction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TeiidSql

public TeiidSql(java.sql.Connection connection)
Method Detail

configure

protected void configure(java.sql.Statement statement)
Overrides:
configure in class groovy.sql.Sql

eachRow

public void eachRow(java.lang.String sql,
                    groovy.lang.Closure metaClosure,
                    groovy.lang.Closure rowClosure)
             throws java.sql.SQLException
Overridden to fix passing the resultset to the closure

Overrides:
eachRow in class groovy.sql.Sql
Throws:
java.sql.SQLException

closeResources

protected void closeResources(java.sql.Connection connection,
                              java.sql.Statement statement)
Overrides:
closeResources in class groovy.sql.Sql

closeResources

protected void closeResources(java.sql.Connection connection,
                              java.sql.Statement statement,
                              java.sql.ResultSet results)
Overrides:
closeResources in class groovy.sql.Sql

getPlanInfo

protected void getPlanInfo(java.sql.Statement s)

getSQLWarnings

public java.sql.SQLWarning getSQLWarnings()

getMaxRows

public int getMaxRows()

setMaxRows

public void setMaxRows(int maxRows)

getPlan

public PlanNode getPlan()

getAnnotations

public java.util.Collection<Annotation> getAnnotations()

getDebugLog

public java.lang.String getDebugLog()


Copyright © 2011. All Rights Reserved.