groovy.sql
Class DataSet

java.lang.Object
  extended bygroovy.sql.Sql
      extended bygroovy.sql.DataSet

public class DataSet
extends Sql

Represents an extent of objects

Version:
$Revision: 1.7 $
Author:
Chris Stevenson, James Strachan

Field Summary
 
Fields inherited from class groovy.sql.Sql
log
 
Constructor Summary
DataSet(DataSet parent, Closure where)
           
DataSet(Sql sql, Class type)
           
DataSet(Sql sql, String table)
           
 
Method Summary
 void add(Map values)
           
 void each(Closure closure)
           
 DataSet findAll(Closure where)
           
 List getParameters()
           
 String getSql()
           
protected  SqlWhereVisitor getSqlVisitor()
           
 
Methods inherited from class groovy.sql.Sql
asSql, call, call, call, close, closeResources, closeResources, createConnection, dataSet, dataSet, eachRow, eachRow, eachRow, execute, execute, execute, executeUpdate, executeUpdate, executeUpdate, findWhereKeyword, getDataSource, getParameters, loadDriver, newInstance, newInstance, newInstance, newInstance, newInstance, newInstance, nullify, query, query, query, queryEach, queryEach, queryEach, setObject, setParameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataSet

public DataSet(Sql sql,
               Class type)

DataSet

public DataSet(Sql sql,
               String table)

DataSet

public DataSet(DataSet parent,
               Closure where)
Method Detail

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()


Copyright © 2003-2004 The Codehaus. All Rights Reserved.