groovy.sql
Class DataSet
java.lang.Object
groovy.sql.Sql
groovy.sql.DataSet
- public class DataSet
- extends Sql
Represents an extent of objects
- Version:
- $Revision: 1.8 $
- Author:
- Chris Stevenson, James Strachan
Fields inherited from class groovy.sql.Sql |
log |
Methods inherited from class groovy.sql.Sql |
asSql, call, call, call, close, closeResources, closeResources, commit, configure, createConnection, dataSet, dataSet, eachRow, eachRow, eachRow, execute, execute, execute, executeUpdate, executeUpdate, executeUpdate, findWhereKeyword, firstRow, firstRow, getConnection, getDataSource, getParameters, getUpdateCount, loadDriver, newInstance, newInstance, newInstance, newInstance, newInstance, newInstance, nullify, query, query, query, queryEach, queryEach, queryEach, rollback, rows, rows, setObject, setParameters, withStatement |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataSet
public DataSet(Sql sql,
Class type)
DataSet
public DataSet(Sql sql,
String table)
DataSet
public DataSet(DataSet parent,
Closure where)
add
public void add(Map values)
throws SQLException
- Throws:
SQLException
findAll
public DataSet findAll(Closure where)
each
public void each(Closure closure)
throws SQLException
- Throws:
SQLException
getSql
public String getSql()
getParameters
public List getParameters()
getSqlVisitor
protected SqlWhereVisitor getSqlVisitor()
createView
public DataSet createView(Closure criteria)
Copyright © 2003-2005 The Codehaus. All Rights Reserved.