|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface QueryBuilder<O>
The query builder allows to create queries.
| Method Summary | ||
|---|---|---|
|
from(Class<O> fromClass)
Set the node type of the from clause of the query. |
|
Query<O> |
get()
Compute and returns the ObjectQuery for this builder. |
|
|
orderBy(String orderBy)
Set the order by clause of the query. |
|
|
where(String where)
Set the where clause of the query. |
|
| Method Detail |
|---|
<O> QueryBuilder<O> from(Class<O> fromClass)
throws NullPointerException,
IllegalStateException,
IllegalArgumentException
Set the node type of the from clause of the query. It is possible to call that method only once and any attempt to call this method a second time will throw an IllegalStateException.
O - the object type parameterfromClass - the node type of the from clause
NullPointerException - if the argument is null
IllegalStateException - if the builder already has a from clause
IllegalArgumentException - if the from class cannot be mapped to a node type
<O> QueryBuilder<O> where(String where)
throws NullPointerException
Set the where clause of the query.
O - the object type parameterwhere - the where clause
NullPointerException - if the argument is null
<O> QueryBuilder<O> orderBy(String orderBy)
throws NullPointerException
Set the order by clause of the query.
O - the object type parameterorderBy - the order by clause
NullPointerException - if the argument is null
Query<O> get()
throws IllegalStateException
Compute and returns the ObjectQuery for this builder.
IllegalStateException - if the builder cannot build the query
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||