Groovy Documentation

metridoc.plugins.sql
[Groovy] Class SqlPlus

java.lang.Object
  groovy.sql.Sql
      metridoc.plugins.sql.SqlPlus

class SqlPlus
extends Sql

Created by IntelliJ IDEA. User: tbarker Date: 7/18/11 Time: 3:38 PM


Field Summary
 
Fields inherited from class Sql
ARRAY, BIGINT, BINARY, BIT, BLOB, BOOLEAN, CHAR, CLOB, DATALINK, DATE, DECIMAL, DISTINCT, DOUBLE, FLOAT, INTEGER, JAVA_OBJECT, LONGVARBINARY, LONGVARCHAR, NULL, NUMERIC, OTHER, REAL, REF, SMALLINT, STRUCT, TIME, TIMESTAMP, TINYINT, VARBINARY, VARCHAR
 
Property Summary
static Set IGNORED_KEYS

static def PHASE_NAMES

static def log

 
Constructor Summary
SqlPlus(DataSource dataSource)

 
Method Summary
int[] runBatch(String insertOrTable, def batch, def logEachBatch = false)

@param insertOrTable insert statement or table name

void runBatchFile(LinkedHashMap args)

 
Methods inherited from class Sql
newInstance, newInstance, newInstance, newInstance, newInstance, newInstance, newInstance, in, out, NULL, close, rows, rows, rows, rows, rows, rows, rows, rows, rows, rows, rows, rows, rows, rows, query, query, query, expand, execute, execute, execute, execute, DATE, INTEGER, call, call, call, call, call, call, getConnection, BOOLEAN, FLOAT, DOUBLE, CHAR, ARRAY, OTHER, commit, cacheConnection, cacheStatements, BIGINT, BINARY, BIT, BLOB, CLOB, DATALINK, DECIMAL, DISTINCT, JAVA_OBJECT, LONGVARBINARY, LONGVARCHAR, NUMERIC, REAL, REF, SMALLINT, STRUCT, TIME, TIMESTAMP, TINYINT, VARBINARY, VARCHAR, loadDriver, getResultSetType, setResultSetType, getResultSetConcurrency, setResultSetConcurrency, getResultSetHoldability, setResultSetHoldability, inout, resultSet, dataSet, dataSet, eachRow, eachRow, eachRow, eachRow, eachRow, eachRow, eachRow, eachRow, eachRow, eachRow, eachRow, eachRow, firstRow, firstRow, firstRow, firstRow, getUpdateCount, executeInsert, executeInsert, executeInsert, executeInsert, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getDataSource, rollback, withStatement, setCacheStatements, isCacheStatements, withTransaction, isWithinBatch, withBatch, withBatch, checkForNamedParams, isCacheNamedQueries, setCacheNamedQueries, isEnableNamedQueries, setEnableNamedQueries, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Property Detail

IGNORED_KEYS

static final Set IGNORED_KEYS


PHASE_NAMES

static final def PHASE_NAMES


log

static final def log


 
Constructor Detail

SqlPlus

SqlPlus(DataSource dataSource)


 
Method Detail

runBatch

int[] runBatch(String insertOrTable, def batch, def logEachBatch = false)
Parameters:
insertOrTable - insert statement or table name
batch - the batch to insert, must be a List or Map
logEachBatch - if true, batch progress is logged at info level, otherwise debug
Returns:
an array of integers that indicate the number of updates for each statement


runBatchFile

void runBatchFile(LinkedHashMap args)


 

Groovy Documentation