|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mysema.query.support.QueryBase<Q>
com.mysema.query.support.ProjectableQuery<Q>
com.mysema.query.sql.AbstractSQLQuery<Q>
public abstract class AbstractSQLQuery<Q extends AbstractSQLQuery<Q>>
AbstractSQLQuery is the base type for SQL query implementations
Nested Class Summary | |
---|---|
class |
AbstractSQLQuery.UnionBuilder<RT>
|
Field Summary |
---|
Fields inherited from class com.mysema.query.support.QueryBase |
---|
queryMixin |
Constructor Summary | |
---|---|
AbstractSQLQuery(java.sql.Connection conn,
Configuration configuration)
|
|
AbstractSQLQuery(java.sql.Connection conn,
Configuration configuration,
QueryMetadata metadata)
|
Method Summary | ||
---|---|---|
protected Q |
addFlag(QueryFlag.Position position,
Expr<?> flag)
|
|
protected Q |
addFlag(QueryFlag.Position position,
java.lang.String flag)
|
|
protected Q |
addFlag(QueryFlag.Position position,
java.lang.String prefix,
Expr<?> expr)
|
|
protected Q |
addJoinFlag(java.lang.String flag)
|
|
protected java.lang.String |
buildQueryString(boolean forCountRow)
|
|
long |
count()
return the amount of matched rows |
|
protected SQLSerializer |
createSerializer()
|
|
Q |
from(Expr<?>... args)
|
|
|
fullJoin(ForeignKey<E> key,
PEntity<E> entity)
|
|
Q |
fullJoin(PEntity<?> target)
|
|
Q |
fullJoin(SubQuery<?> target,
Path<?> alias)
|
|
protected Configuration |
getConfiguration()
|
|
QueryMetadata |
getMetadata()
|
|
java.sql.ResultSet |
getResults(Expr<?>... exprs)
|
|
|
innerJoin(ForeignKey<E> key,
PEntity<E> entity)
|
|
Q |
innerJoin(PEntity<?> target)
|
|
Q |
innerJoin(SubQuery<?> target,
Path<?> alias)
|
|
com.mysema.commons.lang.CloseableIterator<java.lang.Object[]> |
iterate(Expr<?>[] args)
iterate over the results for the given projection |
|
|
iterate(Expr<RT> expr)
iterate over the results for the given projection |
|
|
join(ForeignKey<E> key,
PEntity<E> entity)
|
|
Q |
join(PEntity<?> target)
|
|
Q |
join(SubQuery<?> target,
Path<?> alias)
|
|
|
leftJoin(ForeignKey<E> key,
PEntity<E> entity)
|
|
Q |
leftJoin(PEntity<?> target)
|
|
Q |
leftJoin(SubQuery<?> target,
Path<?> alias)
|
|
java.util.List<java.lang.Object[]> |
list(Expr<?>[] args)
list the results for the given projection |
|
|
list(Expr<RT> expr)
list the results for the given projection |
|
|
listResults(Expr<RT> expr)
list the results for the given projection |
|
Q |
on(EBoolean... conditions)
|
|
|
rightJoin(ForeignKey<E> key,
PEntity<E> entity)
|
|
Q |
rightJoin(PEntity<?> target)
|
|
Q |
rightJoin(SubQuery<?> target,
Path<?> alias)
|
|
java.lang.String |
toString()
|
|
|
union(ListSubQuery<RT>... sq)
|
|
|
union(SubQuery<RT>... sq)
|
|
|
uniqueResult(Expr<RT> expr)
return a unique result for the given projection |
Methods inherited from class com.mysema.query.support.ProjectableQuery |
---|
countDistinct, iterate, iterateDistinct, iterateDistinct, iterateDistinct, list, listDistinct, listDistinct, listDistinct, listDistinctResults, map, uniqueResult, uniqueResult |
Methods inherited from class com.mysema.query.support.QueryBase |
---|
groupBy, having, limit, offset, orderBy, restrict, set, where |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AbstractSQLQuery(@Nullable java.sql.Connection conn, Configuration configuration)
public AbstractSQLQuery(@Nullable java.sql.Connection conn, Configuration configuration, QueryMetadata metadata)
Method Detail |
---|
protected Q addJoinFlag(java.lang.String flag)
protected Q addFlag(QueryFlag.Position position, java.lang.String prefix, Expr<?> expr)
protected Q addFlag(QueryFlag.Position position, java.lang.String flag)
protected Q addFlag(QueryFlag.Position position, Expr<?> flag)
protected java.lang.String buildQueryString(boolean forCountRow)
public long count()
Projectable
protected SQLSerializer createSerializer()
public Q from(Expr<?>... args)
public Q fullJoin(PEntity<?> target)
public Q fullJoin(SubQuery<?> target, Path<?> alias)
public <E> Q fullJoin(ForeignKey<E> key, PEntity<E> entity)
public Q innerJoin(PEntity<?> target)
public Q innerJoin(SubQuery<?> target, Path<?> alias)
public <E> Q innerJoin(ForeignKey<E> key, PEntity<E> entity)
public Q join(PEntity<?> target)
public Q join(SubQuery<?> target, Path<?> alias)
public <E> Q join(ForeignKey<E> key, PEntity<E> entity)
public Q leftJoin(PEntity<?> target)
public Q leftJoin(SubQuery<?> target, Path<?> alias)
public <E> Q leftJoin(ForeignKey<E> key, PEntity<E> entity)
public Q rightJoin(PEntity<?> target)
public Q rightJoin(SubQuery<?> target, Path<?> alias)
public <E> Q rightJoin(ForeignKey<E> key, PEntity<E> entity)
public QueryMetadata getMetadata()
public java.sql.ResultSet getResults(Expr<?>... exprs)
protected Configuration getConfiguration()
public com.mysema.commons.lang.CloseableIterator<java.lang.Object[]> iterate(Expr<?>[] args)
Projectable
public <RT> com.mysema.commons.lang.CloseableIterator<RT> iterate(Expr<RT> expr)
Projectable
RT
- generic type of the Iteratpr
public java.util.List<java.lang.Object[]> list(Expr<?>[] args)
Projectable
list
in interface Projectable
list
in class ProjectableQuery<Q extends AbstractSQLQuery<Q>>
public <RT> java.util.List<RT> list(Expr<RT> expr)
Projectable
list
in interface Projectable
list
in class ProjectableQuery<Q extends AbstractSQLQuery<Q>>
RT
- generic type of the List
public <RT> SearchResults<RT> listResults(Expr<RT> expr)
Projectable
public Q on(EBoolean... conditions)
public java.lang.String toString()
toString
in class QueryBase<Q extends AbstractSQLQuery<Q>>
public <RT> AbstractSQLQuery.UnionBuilder<RT> union(ListSubQuery<RT>... sq)
public <RT> AbstractSQLQuery.UnionBuilder<RT> union(SubQuery<RT>... sq)
public <RT> RT uniqueResult(Expr<RT> expr)
Projectable
uniqueResult
in interface Projectable
uniqueResult
in class ProjectableQuery<Q extends AbstractSQLQuery<Q>>
RT
- return type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |