| Package | Description |
|---|---|
| com.avaje.ebean |
Core API (see EbeanServer and Ebean).
|
| Modifier and Type | Method and Description |
|---|---|
static SqlQuery |
Ebean.createSqlQuery(String sql)
Create a SqlQuery for executing native sql
query statements.
|
SqlQuery |
EbeanServer.createSqlQuery(String sql)
Create a SqlQuery for executing native sql
query statements.
|
SqlQuery |
SqlQuery.setBufferFetchSizeHint(int bufferFetchSizeHint)
A hint which for JDBC translates to the Statement.fetchSize().
|
SqlQuery |
SqlQuery.setFirstRow(int firstRow)
Set the index of the first row of the results to return.
|
SqlQuery |
SqlQuery.setMaxRows(int maxRows)
Set the maximum number of query results to return.
|
SqlQuery |
SqlQuery.setParameter(int position,
Object value)
The same as bind for positioned parameters.
|
SqlQuery |
SqlQuery.setParameter(String name,
Object value)
The same as bind for named parameters.
|
SqlQuery |
SqlQuery.setTimeout(int secs)
Set a timeout on this query.
|
| Modifier and Type | Method and Description |
|---|---|
void |
EbeanServer.findEach(SqlQuery query,
QueryEachConsumer<SqlRow> consumer,
Transaction transaction)
Execute the SqlQuery iterating a row at a time.
|
void |
EbeanServer.findEachWhile(SqlQuery query,
QueryEachWhileConsumer<SqlRow> consumer,
Transaction transaction)
Execute the SqlQuery iterating a row at a time with the ability to stop consuming part way through.
|
List<SqlRow> |
EbeanServer.findList(SqlQuery query,
Transaction transaction)
Execute the sql query returning a list of MapBean.
|
SqlRow |
EbeanServer.findUnique(SqlQuery query,
Transaction transaction)
Execute the sql query returning a single MapBean or null.
|
Copyright © 2016. All rights reserved.