|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mysema.query.QueryBase<SubType>
com.mysema.query.support.QueryBaseWithProjection<SubType>
com.mysema.query.sql.AbstractSQLQuery<SubType>
public abstract class AbstractSQLQuery<SubType extends AbstractSQLQuery<SubType>>
AbstractSqlQuery is the base type for SQL query implementations
Nested Class Summary | |
---|---|
class |
AbstractSQLQuery.UnionBuilder<RT>
|
Field Summary | |
---|---|
protected SQLTemplates |
templates
|
Fields inherited from class com.mysema.query.QueryBase |
---|
_this |
Constructor Summary | |
---|---|
AbstractSQLQuery(Connection conn,
SQLTemplates templates)
|
Method Summary | ||
---|---|---|
protected String |
buildQueryString(boolean forCountRow)
|
|
long |
count()
return the amount of matched rows |
|
protected SQLSerializer |
createSerializer()
|
|
SubType |
from(PEntity<?>... args)
|
|
SubType |
fullJoin(Expr<?> o)
|
|
SubType |
innerJoin(Expr<?> o)
|
|
Iterator<Object[]> |
iterate(Expr<?> e1,
Expr<?> e2,
Expr<?>... rest)
iterate over the results for the given projection |
|
|
iterate(Expr<RT> projection)
iterate over the results for the given projection |
|
SubType |
join(Expr<?> o)
|
|
SubType |
leftJoin(Expr<?> o)
|
|
List<Object[]> |
list(Expr<?> expr1,
Expr<?> expr2,
Expr<?>... rest)
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 |
|
SubType |
on(EBoolean... conditions)
|
|
protected String |
toQueryString()
|
|
String |
toString()
|
|
|
union(ListSubQuery<RT>... sq)
|
|
|
union(ObjectSubQuery<RT>... sq)
|
|
|
uniqueResult(Expr<RT> expr)
return a unique result for the given projection |
Methods inherited from class com.mysema.query.support.QueryBaseWithProjection |
---|
asArray, countDistinct, iterateDistinct, iterateDistinct, listDistinct, listDistinct, listDistinctResults, map, uniqueResult |
Methods inherited from class com.mysema.query.QueryBase |
---|
addToProjection, getMetadata, groupBy, having, limit, offset, orderBy, restrict, where |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final SQLTemplates templates
Constructor Detail |
---|
public AbstractSQLQuery(Connection conn, SQLTemplates templates)
Method Detail |
---|
protected String buildQueryString(boolean forCountRow)
public long count()
Projectable
protected SQLSerializer createSerializer()
public SubType from(PEntity<?>... args)
public SubType fullJoin(Expr<?> o)
public SubType innerJoin(Expr<?> o)
public Iterator<Object[]> iterate(Expr<?> e1, Expr<?> e2, Expr<?>... rest)
Projectable
public <RT> Iterator<RT> iterate(Expr<RT> projection)
Projectable
RT
- generic type of the Iteratpr
public SubType join(Expr<?> o)
public SubType leftJoin(Expr<?> o)
public List<Object[]> list(Expr<?> expr1, Expr<?> expr2, Expr<?>... rest)
Projectable
list
in interface Projectable
list
in class QueryBaseWithProjection<SubType extends AbstractSQLQuery<SubType>>
rest
- rest
public <RT> List<RT> list(Expr<RT> expr)
Projectable
list
in interface Projectable
list
in class QueryBaseWithProjection<SubType extends AbstractSQLQuery<SubType>>
RT
- generic type of the List
public <RT> SearchResults<RT> listResults(Expr<RT> expr)
Projectable
public SubType on(EBoolean... conditions)
protected String toQueryString()
public String toString()
toString
in class QueryBase<SubType extends AbstractSQLQuery<SubType>>
public <RT> AbstractSQLQuery.UnionBuilder<RT> union(ListSubQuery<RT>... sq)
public <RT> AbstractSQLQuery.UnionBuilder<RT> union(ObjectSubQuery<RT>... sq)
public <RT> RT uniqueResult(Expr<RT> expr)
Projectable
uniqueResult
in interface Projectable
uniqueResult
in class QueryBaseWithProjection<SubType extends AbstractSQLQuery<SubType>>
RT
- return type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |