public List<Object> getParameters() { if (params == null) { params = new ArrayList<Object>(); if (parent != null) { params.addAll(parent.getParameters()); } params.addAll(getSqlWhereVisitor().getParameters()); } return params; }
/** * Returns a List of all of the rows from the table a DataSet * represents. * * @return Returns a list of GroovyRowResult objects from the dataset * @throws SQLException if a database error occurs */ public List rows() throws SQLException { return rows(getSql(), getParameters()); }
/** * Returns a "page" of the rows from the table a DataSet represents. A page * is defined as starting at a 1-based offset, and containing a maximum number * of rows. * * @param offset the 1-based offset for the first row to be processed * @param maxRows the maximum number of rows to be processed * @return a list of GroovyRowResult objects from the dataset * @throws SQLException if a database error occurs */ public List rows(int offset, int maxRows) throws SQLException { return rows(getSql(), getParameters(), offset, maxRows); }
/** * Calls the provided closure for each of the rows of the table represented by this DataSet. * * @param closure called for each row with a GroovyResultSet * @throws SQLException if a database access error occurs * @see groovy.sql.Sql#eachRow(String, java.util.List, groovy.lang.Closure) */ public void each(@ClosureParams(value=SimpleType.class, options="groovy.sql.GroovyResultSet") Closure closure) throws SQLException { eachRow(getSql(), getParameters(), closure); }
/** * Calls the provided closure for a "page" of rows from the table represented by this DataSet. * A page is defined as starting at a 1-based offset, and containing a maximum number of rows. * * @param offset the 1-based offset for the first row to be processed * @param maxRows the maximum number of rows to be processed * @param closure called for each row with a GroovyResultSet * @throws SQLException if a database access error occurs * @see groovy.sql.Sql#eachRow(String, java.util.List, int, int, groovy.lang.Closure) */ public void each(int offset, int maxRows, @ClosureParams(value=SimpleType.class, options="groovy.sql.GroovyResultSet") Closure closure) throws SQLException { eachRow(getSql(), getParameters(), offset, maxRows, closure); }
public List<Object> getParameters() { if (params == null) { params = new ArrayList<Object>(); if (parent != null) { params.addAll(parent.getParameters()); } params.addAll(getSqlWhereVisitor().getParameters()); } return params; }
public List getParameters() { if (params == null) { params = new ArrayList(); if (parent != null) { params.addAll(parent.getParameters()); } params.addAll(getSqlWhereVisitor().getParameters()); } return params; }
public List getParameters() { if (params == null) { params = new ArrayList(); if (parent != null) { params.addAll(parent.getParameters()); } params.addAll(getSqlWhereVisitor().getParameters()); } return params; }
public List getParameters() { if (params == null) { params = new ArrayList(); if (parent != null) { params.addAll(parent.getParameters()); } params.addAll(getSqlWhereVisitor().getParameters()); } return params; }
public List<Object> getParameters() { if (params == null) { params = new ArrayList<Object>(); if (parent != null) { params.addAll(parent.getParameters()); } params.addAll(getSqlWhereVisitor().getParameters()); } return params; }
/** * Returns a List of all of the rows from the table a DataSet * represents * * @return Returns a list of GroovyRowResult objects from the dataset * @throws SQLException if a database error occurs */ public List rows() throws SQLException { return rows(getSql(), getParameters()); }
/** * Calls the provided closure for each of the rows of the table represented by this DataSet. * * @param closure called for each row with a GroovyResultSet * @throws SQLException if a database access error occurs * @see groovy.sql.Sql#eachRow(String, java.util.List, groovy.lang.Closure) */ public void each(Closure closure) throws SQLException { eachRow(getSql(), getParameters(), closure); }
/** * Returns a List of all of the rows from the table a DataSet * represents * * @return Returns a list of GroovyRowResult objects from the dataset * @throws SQLException if a database error occurs */ public List rows() throws SQLException { return rows(getSql(), getParameters()); }
/** * Returns a List of all of the rows from the table a DataSet * represents * * @return Returns a list of GroovyRowResult objects from the dataset * @throws SQLException if a database error occurs */ public List rows() throws SQLException { return rows(getSql(), getParameters()); }
/** * Returns a List of all of the rows from the table a DataSet * represents. * * @return Returns a list of GroovyRowResult objects from the dataset * @throws SQLException if a database error occurs */ public List rows() throws SQLException { return rows(getSql(), getParameters()); }
/** * Returns a List of all of the rows from the table a DataSet * represents. * * @return Returns a list of GroovyRowResult objects from the dataset * @throws SQLException if a database error occurs */ public List rows() throws SQLException { return rows(getSql(), getParameters()); }
/** * Returns a "page" of the rows from the table a DataSet represents. A page * is defined as starting at a 1-based offset, and containing a maximum number * of rows. * * @param offset the 1-based offset for the first row to be processed * @param maxRows the maximum number of rows to be processed * @return Returns a list of GroovyRowResult objects from the dataset * @throws SQLException if a database error occurs */ public List rows(int offset, int maxRows) throws SQLException { return rows(getSql(), getParameters(), offset, maxRows); }
/** * Calls the provided closure for a "page" of rows from the table represented by this DataSet. * A page is defined as starting at a 1-based offset, and containing a maximum number of rows. * * @param offset the 1-based offset for the first row to be processed * @param maxRows the maximum number of rows to be processed * @param closure called for each row with a GroovyResultSet * @throws SQLException if a database access error occurs * @see groovy.sql.Sql#eachRow(String, java.util.List, int, int, groovy.lang.Closure) */ public void each(int offset, int maxRows, Closure closure) throws SQLException { eachRow(getSql(), getParameters(), offset, maxRows, closure); }
/** * Calls the provided closure for each of the rows of the table represented by this DataSet. * * @param closure called for each row with a GroovyResultSet * @throws SQLException if a database access error occurs * @see groovy.sql.Sql#eachRow(String, java.util.List, groovy.lang.Closure) */ public void each(@ClosureParams(value=SimpleType.class, options="groovy.sql.GroovyResultSet") Closure closure) throws SQLException { eachRow(getSql(), getParameters(), closure); }
/** * Calls the provided closure for a "page" of rows from the table represented by this DataSet. * A page is defined as starting at a 1-based offset, and containing a maximum number of rows. * * @param offset the 1-based offset for the first row to be processed * @param maxRows the maximum number of rows to be processed * @param closure called for each row with a GroovyResultSet * @throws SQLException if a database access error occurs * @see groovy.sql.Sql#eachRow(String, java.util.List, int, int, groovy.lang.Closure) */ public void each(int offset, int maxRows, @ClosureParams(value=SimpleType.class, options="groovy.sql.GroovyResultSet") Closure closure) throws SQLException { eachRow(getSql(), getParameters(), offset, maxRows, closure); }