| Package | Description |
|---|---|
| com.avaje.ebean |
Core API (see Ebean and EbeanServer).
|
| com.avaje.ebean.config.dbplatform |
Database platform specific support
|
| com.avaje.ebean.event |
Persist and Query Event Controllers and Listeners
|
| com.avaje.ebean.text |
Utility objects for CSV, JSON and XML processing.
|
| com.avaje.ebeaninternal.api | |
| com.avaje.ebeaninternal.server.core |
Core implementation objects
|
| com.avaje.ebeaninternal.server.deploy |
Bean description
|
| com.avaje.ebeaninternal.server.expression |
Expressions for building WHERE clauses.
|
| com.avaje.ebeaninternal.server.query | |
| com.avaje.ebeaninternal.server.querydefn | |
| com.avaje.ebeaninternal.util |
Utility objects
|
| Modifier and Type | Method and Description |
|---|---|
Query<T> |
OrderBy.asc(String propertyName)
Add a property with ascending order to this OrderBy.
|
Query<T> |
Query.copy()
Return a copy of the query.
|
static <T> Query<T> |
Ebean.createNamedQuery(Class<T> beanType,
String namedQuery)
Return a named Query that will have defined fetch paths, predicates etc.
|
<T> Query<T> |
EbeanServer.createNamedQuery(Class<T> beanType,
String namedQuery)
Create a named query for an entity bean (refer
Ebean.createQuery(Class, String)) |
static <T> Query<T> |
Ebean.createQuery(Class<T> beanType)
Create a query for a type of entity bean.
|
<T> Query<T> |
EbeanServer.createQuery(Class<T> beanType)
Create a query for an entity bean (refer
Ebean.createQuery(Class)
). |
static <T> Query<T> |
Ebean.createQuery(Class<T> beanType,
String query)
Create a query using the query language.
|
<T> Query<T> |
EbeanServer.createQuery(Class<T> beanType,
String query)
Create a query using the query language.
|
Query<T> |
OrderBy.desc(String propertyName)
Add a property with descending order to this OrderBy.
|
Query<T> |
Query.fetch(String path)
Specify a path to load including all its properties.
|
Query<T> |
Query.fetch(String path,
FetchConfig joinConfig)
Additionally specify a JoinConfig to specify a "query join" and or define
the lazy loading query.
|
Query<T> |
Query.fetch(String path,
String fetchProperties)
Specify a path to fetch with its specific properties to include
(aka partial object).
|
Query<T> |
Query.fetch(String assocProperty,
String fetchProperties,
FetchConfig fetchConfig)
Additionally specify a FetchConfig to use a separate query or lazy loading
to load this path.
|
static <T> Query<T> |
Ebean.find(Class<T> beanType)
Create a query for a type of entity bean.
|
<T> Query<T> |
EbeanServer.find(Class<T> beanType)
Create a query for a type of entity bean (the same as
EbeanServer.createQuery(Class)). |
Query<T> |
FutureList.getQuery()
Return the query that is being executed by a background thread.
|
Query<T> |
OrderBy.getQuery()
Return the associated query if there is one.
|
Query<T> |
FutureIds.getQuery()
Returns the original query used to fetch the Id's.
|
Query<T> |
Query.having(Expression addExpressionToHaving)
Add an expression to the having clause returning the query.
|
Query<T> |
Query.having(String addToHavingClause)
Add additional clause(s) to the having clause.
|
Query<T> |
ExpressionList.join(String assocProperties)
Specify a property (associated bean) to join and fetch including
all its properties.
|
Query<T> |
ExpressionList.join(String assocProperty,
String assocProperties)
Specify a property (associated bean) to join and fetch with its
specific properties to include (aka partial object).
|
Query<T> |
Query.order(String orderByClause)
Set the order by clause replacing the existing order by clause if there is
one.
|
Query<T> |
ExpressionList.order(String orderByClause)
Set the order by clause replacing the existing order by clause if there is
one.
|
Query<T> |
Query.orderBy(String orderByClause)
Set the order by clause replacing the existing order by clause if there is
one.
|
Query<T> |
ExpressionList.orderBy(String orderBy)
Add an orderBy clause to the query.
|
Query<T> |
ExpressionList.query()
Return the query that owns this expression list.
|
Query<T> |
Query.select(String fetchProperties)
Explicitly set a comma delimited list of the properties to fetch on the
'main' entity bean (aka partial object).
|
Query<T> |
ExpressionList.select(String properties)
Specify specific properties to fetch on the main/root bean (aka partial
object).
|
Query<T> |
Query.setAutofetch(boolean autofetch)
Explicitly specify whether to use Autofetch for this query.
|
Query<T> |
Query.setBackgroundFetchAfter(int backgroundFetchAfter)
Set the rows after which fetching should continue in a background thread.
|
Query<T> |
ExpressionList.setBackgroundFetchAfter(int backgroundFetchAfter)
Set the number of rows after which the fetching should continue in a
background thread.
|
Query<T> |
Query.setBufferFetchSizeHint(int fetchSize)
A hint which for JDBC translates to the Statement.fetchSize().
|
Query<T> |
Query.setDistinct(boolean isDistinct)
Set whether this query uses DISTINCT.
|
Query<T> |
Query.setFirstRow(int firstRow)
Set the first row to return for this query.
|
Query<T> |
ExpressionList.setFirstRow(int firstRow)
Set the first row to fetch.
|
Query<T> |
Query.setForUpdate(boolean forUpdate)
executed the select with "for update" which should lock the record
"on read"
|
Query<T> |
Query.setId(Object id)
Set the Id value to query.
|
Query<T> |
Query.setListener(QueryListener<T> queryListener)
Deprecated.
Deprecated in favor of
findIterate() and findVisit(QueryResultVisitor) |
Query<T> |
ExpressionList.setListener(QueryListener<T> queryListener)
Deprecated.
|
Query<T> |
Query.setLoadBeanCache(boolean loadBeanCache)
When set to true all the beans from this query are loaded into the bean
cache.
|
Query<T> |
Query.setMapKey(String mapKey)
Set the property to use as keys for a map.
|
Query<T> |
ExpressionList.setMapKey(String mapKey)
Set the name of the property which values become the key of a map.
|
Query<T> |
Query.setMaxRows(int maxRows)
Set the maximum number of rows to return in the query.
|
Query<T> |
ExpressionList.setMaxRows(int maxRows)
Set the maximum number of rows to fetch.
|
Query<T> |
Query.setOrder(OrderBy<T> orderBy)
Set an OrderBy object to replace any existing OrderBy clause.
|
Query<T> |
Query.setOrderBy(OrderBy<T> orderBy)
Set an OrderBy object to replace any existing OrderBy clause.
|
Query<T> |
ExpressionList.setOrderBy(String orderBy)
Add an orderBy clause to the query.
|
Query<T> |
Query.setParameter(int position,
Object value)
Set an ordered bind parameter according to its position.
|
Query<T> |
Query.setParameter(String name,
Object value)
Set a named bind parameter.
|
Query<T> |
Query.setRawSql(RawSql rawSql)
Set RawSql to use for this query.
|
Query<T> |
Query.setReadOnly(boolean readOnly)
When set to true when you want the returned beans to be read only.
|
Query<T> |
Query.setTimeout(int secs)
Set a timeout on this query.
|
Query<T> |
Query.setUseCache(boolean useBeanCache)
Set this to true to use the bean cache.
|
Query<T> |
ExpressionList.setUseCache(boolean useCache)
Set to true to use the query for executing this query.
|
Query<T> |
Query.setUseQueryCache(boolean useQueryCache)
Set this to true to use the query cache.
|
Query<T> |
Query.where(Expression expression)
Add a single Expression to the where clause returning the query.
|
Query<T> |
Query.where(String addToWhereClause)
Add additional clause(s) to the where clause.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> Junction<T> |
Expr.conjunction(Query<T> query)
Return a list of expressions that will be joined by AND's.
|
<T> Junction<T> |
ExpressionFactory.conjunction(Query<T> query)
Return a list of expressions that will be joined by AND's.
|
<T> Junction<T> |
ExpressionFactory.conjunction(Query<T> query,
ExpressionList<T> parent)
Return a list of expressions that will be joined by AND's.
|
static <T> Junction<T> |
Expr.disjunction(Query<T> query)
Return a list of expressions that will be joined by OR's.
|
<T> Junction<T> |
ExpressionFactory.disjunction(Query<T> query)
Return a list of expressions that will be joined by OR's.
|
<T> Junction<T> |
ExpressionFactory.disjunction(Query<T> query,
ExpressionList<T> parent)
Return a list of expressions that will be joined by OR's.
|
<T> FutureIds<T> |
EbeanServer.findFutureIds(Query<T> query,
Transaction t)
Execute find Id's query in a background thread.
|
<T> FutureList<T> |
EbeanServer.findFutureList(Query<T> query,
Transaction t)
Execute find list query in a background thread.
|
<T> FutureRowCount<T> |
EbeanServer.findFutureRowCount(Query<T> query,
Transaction t)
Execute find row count query in a background thread.
|
<T> List<Object> |
EbeanServer.findIds(Query<T> query,
Transaction t)
Return the Id values of the query as a List.
|
<T> QueryIterator<T> |
EbeanServer.findIterate(Query<T> query,
Transaction t)
Return a QueryIterator for the query.
|
<T> List<T> |
EbeanServer.findList(Query<T> query,
Transaction transaction)
Execute a query returning a list of beans.
|
<T> Map<?,T> |
EbeanServer.findMap(Query<T> query,
Transaction transaction)
Execute the query returning the entity beans in a Map.
|
<T> PagingList<T> |
EbeanServer.findPagingList(Query<T> query,
Transaction t,
int pageSize)
Find using a PagingList with explicit transaction and pageSize.
|
<T> int |
EbeanServer.findRowCount(Query<T> query,
Transaction transaction)
Return the number of 'top level' or 'root' entities this query should
return.
|
<T> Set<T> |
EbeanServer.findSet(Query<T> query,
Transaction transaction)
Execute the query returning a set of entity beans.
|
<T> T |
EbeanServer.findUnique(Query<T> query,
Transaction transaction)
Execute the query returning at most one entity bean.
|
<T> void |
EbeanServer.findVisit(Query<T> query,
QueryResultVisitor<T> visitor,
Transaction t)
Execute the query visiting the results.
|
static Expression |
Expr.in(String propertyName,
Query<?> subQuery)
In - using a subQuery.
|
Expression |
ExpressionFactory.in(String propertyName,
Query<?> subQuery)
In - using a subQuery.
|
ExpressionList<T> |
ExpressionList.in(String propertyName,
Query<?> subQuery)
In - using a subQuery.
|
void |
OrderBy.setQuery(Query<T> query)
Associate this OrderBy with a query.
|
| Constructor and Description |
|---|
OrderBy(Query<T> query,
String orderByClause)
Construct with a given query and order by clause.
|
| Modifier and Type | Method and Description |
|---|---|
Query<?> |
SqlLimitRequest.getOrmQuery()
return the query
|
| Modifier and Type | Method and Description |
|---|---|
String |
DatabasePlatform.completeSql(String sql,
Query<?> query) |
| Modifier and Type | Method and Description |
|---|---|
Query<T> |
BeanQueryRequest.getQuery()
Returns the query.
|
| Modifier and Type | Method and Description |
|---|---|
void |
PathProperties.apply(Query<?> query)
Apply these path properties as fetch paths to the query.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
SpiQuery<T>
Object Relational query - Internal extension to Query object.
|
| Modifier and Type | Method and Description |
|---|---|
<T> CQuery<T> |
SpiEbeanServer.compileQuery(Query<T> query,
Transaction t)
Compile a query.
|
<T> List<Object> |
SpiEbeanServer.findIdsWithCopy(Query<T> query,
Transaction t)
Execute the findId's query but without copying the query.
|
<T> int |
SpiEbeanServer.findRowCountWithCopy(Query<T> query,
Transaction t)
Execute the findRowCount query but without copying the query.
|
| Modifier and Type | Method and Description |
|---|---|
<T> Query<T> |
DefaultServer.createNamedQuery(Class<T> beanType,
String namedQuery) |
<T> Query<T> |
DefaultServer.createQuery(Class<T> beanType) |
<T> Query<T> |
DefaultServer.createQuery(Class<T> beanType,
String query) |
<T> Query<T> |
DefaultServer.find(Class<T> beanType) |
| Modifier and Type | Method and Description |
|---|---|
<T> CQuery<T> |
DefaultServer.compileQuery(Query<T> query,
Transaction t)
Compile a query.
|
<T> FutureIds<T> |
DefaultServer.findFutureIds(Query<T> query,
Transaction t) |
<T> FutureList<T> |
DefaultServer.findFutureList(Query<T> query,
Transaction t) |
<T> FutureRowCount<T> |
DefaultServer.findFutureRowCount(Query<T> q,
Transaction t) |
<T> List<Object> |
DefaultServer.findIds(Query<T> query,
Transaction t) |
<T> List<Object> |
DefaultServer.findIdsWithCopy(Query<T> query,
Transaction t) |
<T> QueryIterator<T> |
DefaultServer.findIterate(Query<T> query,
Transaction t) |
<T> List<T> |
DefaultServer.findList(Query<T> query,
Transaction t) |
<T> Map<?,T> |
DefaultServer.findMap(Query<T> query,
Transaction t) |
<T> PagingList<T> |
DefaultServer.findPagingList(Query<T> query,
Transaction t,
int pageSize) |
<T> int |
DefaultServer.findRowCount(Query<T> query,
Transaction t) |
<T> int |
DefaultServer.findRowCountWithCopy(Query<T> query,
Transaction t) |
<T> Set<T> |
DefaultServer.findSet(Query<T> query,
Transaction t) |
<T> T |
DefaultServer.findUnique(Query<T> query,
Transaction t) |
<T> void |
DefaultServer.findVisit(Query<T> query,
QueryResultVisitor<T> visitor,
Transaction t) |
| Modifier and Type | Method and Description |
|---|---|
void |
BeanMapHelp.refresh(EbeanServer server,
Query<?> query,
Transaction t,
Object parentBean) |
void |
BeanPropertyAssocMany.refresh(EbeanServer server,
Query<?> query,
Transaction t,
Object parentBean)
Refresh the appropriate list set or map.
|
void |
BeanSetHelp.refresh(EbeanServer server,
Query<?> query,
Transaction t,
Object parentBean) |
void |
BeanCollectionHelp.refresh(EbeanServer server,
Query<?> query,
Transaction t,
Object parentBean)
Refresh the List Set or Map.
|
void |
BeanListHelp.refresh(EbeanServer server,
Query<?> query,
Transaction t,
Object parentBean) |
| Modifier and Type | Method and Description |
|---|---|
<T> Junction<T> |
DefaultExpressionFactory.conjunction(Query<T> query)
Return a list of expressions that will be joined by AND's.
|
<T> Junction<T> |
DefaultExpressionFactory.conjunction(Query<T> query,
ExpressionList<T> parent)
Return a list of expressions that will be joined by AND's.
|
<T> Junction<T> |
DefaultExpressionFactory.disjunction(Query<T> query)
Return a list of expressions that will be joined by OR's.
|
<T> Junction<T> |
DefaultExpressionFactory.disjunction(Query<T> query,
ExpressionList<T> parent)
Return a list of expressions that will be joined by OR's.
|
Expression |
DefaultExpressionFactory.in(String propertyName,
Query<?> subQuery)
In - using a subQuery.
|
| Modifier and Type | Method and Description |
|---|---|
Query<T> |
QueryFutureList.getQuery() |
Query<T> |
QueryFutureIds.getQuery() |
Query<T> |
QueryFutureRowCount.getQuery() |
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultOrmQuery<T>
Default implementation of an Object Relational query.
|
| Modifier and Type | Method and Description |
|---|---|
Query<T> |
DefaultOrmQuery.setBufferFetchSizeHint(int bufferFetchSizeHint) |
| Modifier and Type | Method and Description |
|---|---|
<T> SpiExpressionList<T> |
OrmQueryProperties.filterMany(Query<T> rootQuery)
Return the expressions used to filter on this path.
|
| Modifier and Type | Field and Description |
|---|---|
protected Query<T> |
DefaultExpressionList.query |
| Modifier and Type | Method and Description |
|---|---|
Query<T> |
DefaultExpressionList.join(String assocProperties) |
Query<T> |
FilterExpressionList.join(String assocProperties) |
Query<T> |
DefaultExpressionList.join(String assocProperty,
String assocProperties) |
Query<T> |
FilterExpressionList.join(String assocProperty,
String assocProperties) |
Query<T> |
DefaultExpressionList.order(String orderByClause) |
Query<T> |
FilterExpressionList.order(String orderByClause) |
Query<T> |
DefaultExpressionList.orderBy(String orderBy) |
Query<T> |
FilterExpressionList.orderBy(String orderBy) |
Query<T> |
DefaultExpressionList.query() |
Query<T> |
FilterExpressionList.query() |
Query<T> |
DefaultExpressionList.select(String fetchProperties) |
Query<T> |
FilterExpressionList.select(String properties) |
Query<T> |
DefaultExpressionList.setBackgroundFetchAfter(int backgroundFetchAfter) |
Query<T> |
FilterExpressionList.setBackgroundFetchAfter(int backgroundFetchAfter) |
Query<T> |
DefaultExpressionList.setFirstRow(int firstRow) |
Query<T> |
FilterExpressionList.setFirstRow(int firstRow) |
Query<T> |
DefaultExpressionList.setListener(QueryListener<T> queryListener)
Deprecated.
|
Query<T> |
FilterExpressionList.setListener(QueryListener<T> queryListener)
Deprecated.
|
Query<T> |
DefaultExpressionList.setMapKey(String mapKey) |
Query<T> |
FilterExpressionList.setMapKey(String mapKey) |
Query<T> |
DefaultExpressionList.setMaxRows(int maxRows) |
Query<T> |
FilterExpressionList.setMaxRows(int maxRows) |
Query<T> |
DefaultExpressionList.setOrderBy(String orderBy) |
Query<T> |
DefaultExpressionList.setUseCache(boolean useCache) |
Query<T> |
FilterExpressionList.setUseCache(boolean useCache) |
| Modifier and Type | Method and Description |
|---|---|
DefaultExpressionList<T> |
DefaultExpressionList.copy(Query<T> query)
Return a copy of the expression list.
|
ExpressionList<T> |
DefaultExpressionList.in(String propertyName,
Query<?> subQuery) |
| Constructor and Description |
|---|
DefaultExpressionList(Query<T> query,
ExpressionFactory expr,
ExpressionList<T> parentExprList) |
DefaultExpressionList(Query<T> query,
ExpressionFactory expr,
ExpressionList<T> parentExprList,
List<SpiExpression> list) |
DefaultExpressionList(Query<T> query,
ExpressionList<T> parentExprList) |
FilterExpressionList(FilterExprPath pathPrefix,
ExpressionFactory expr,
Query<T> rootQuery) |
Copyright © 2014. All Rights Reserved.