|
|||||||||
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(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)
|
Object |
firstRow()
Returns the first row from a DataSet's underlying table |
List |
getParameters()
|
String |
getSql()
|
protected SqlOrderByVisitor |
getSqlOrderByVisitor()
|
protected SqlWhereVisitor |
getSqlWhereVisitor()
|
DataSet |
reverse()
|
List |
rows()
Returns a List of all of the rows from the table a DataSet represents |
DataSet |
sort(Closure sort)
|
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)
Method Detail |
---|
public void add(Map values) throws SQLException
SQLException
public DataSet findAll(Closure where)
public DataSet sort(Closure sort)
public DataSet reverse()
public void each(Closure closure) throws SQLException
SQLException
public String getSql()
public List getParameters()
protected SqlWhereVisitor getSqlWhereVisitor()
protected SqlOrderByVisitor getSqlOrderByVisitor()
public DataSet createView(Closure criteria)
public List rows() throws SQLException
SQLException
- if a database error occurspublic Object firstRow() throws SQLException
SQLException
- if a database error occurs
|
Copyright © 2003-2009 The Codehaus. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |