|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgroovy.sql.Sql
groovy.sql.DataSet
public class DataSet
Represents an extent of objects
| 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 | |
|---|---|
DataSet(DataSet parent,
Closure where)
|
|
DataSet(Sql sql,
Class type)
|
|
DataSet(Sql sql,
String table)
|
|
| Method Summary | |
|---|---|
void |
add(Map values)
|
DataSet |
createView(Closure criteria)
|
void |
each(Closure closure)
|
DataSet |
findAll(Closure where)
|
List |
getParameters()
|
String |
getSql()
|
protected SqlWhereVisitor |
getSqlVisitor()
|
| Methods inherited from class groovy.sql.Sql |
|---|
ARRAY, asSql, BIGINT, BINARY, BIT, BLOB, BOOLEAN, call, call, call, call, call, CHAR, CLOB, close, closeResources, closeResources, commit, configure, createConnection, DATALINK, dataSet, dataSet, DATE, DECIMAL, DISTINCT, DOUBLE, eachRow, eachRow, eachRow, execute, execute, execute, executeInsert, executeInsert, executeInsert, executeUpdate, executeUpdate, executeUpdate, expand, findWhereKeyword, firstRow, firstRow, FLOAT, getConnection, getDataSource, getParameters, getUpdateCount, in, inout, INTEGER, JAVA_OBJECT, loadDriver, LONGVARBINARY, LONGVARCHAR, newInstance, newInstance, newInstance, newInstance, newInstance, newInstance, NULL, nullify, NUMERIC, OTHER, out, query, query, query, queryEach, queryEach, queryEach, REAL, REF, resultSet, rollback, rows, rows, setObject, setParameters, SMALLINT, STRUCT, TIME, TIMESTAMP, TINYINT, VARBINARY, VARCHAR, withStatement |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DataSet(Sql sql,
Class type)
public DataSet(Sql sql,
String table)
public DataSet(DataSet parent,
Closure where)
| Method Detail |
|---|
public void add(Map values)
throws SQLException
SQLExceptionpublic DataSet findAll(Closure where)
public void each(Closure closure)
throws SQLException
SQLExceptionpublic String getSql()
public List getParameters()
protected SqlWhereVisitor getSqlVisitor()
public DataSet createView(Closure criteria)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||