|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.mysema.query.support.QueryBase<Q> com.mysema.query.support.ProjectableQuery<T> com.mysema.query.jdo.sql.AbstractSQLQuery<JDOSQLQuery> com.mysema.query.jdo.sql.JDOSQLQuery
public final class JDOSQLQuery
JDOSQLQuery is an SQLQuery implementation that uses JDO's SQL query functionality to execute queries
Field Summary |
---|
Fields inherited from class com.mysema.query.jdo.sql.AbstractSQLQuery |
---|
queryMixin, templates, union, unionAll |
Constructor Summary | |
---|---|
JDOSQLQuery(javax.jdo.PersistenceManager persistenceManager,
SQLTemplates templates)
|
|
JDOSQLQuery(javax.jdo.PersistenceManager persistenceManager,
SQLTemplates templates,
QueryMetadata metadata,
boolean detach)
|
Method Summary | ||
---|---|---|
void |
close()
|
|
long |
count()
return the amount of matched rows |
|
QueryMetadata |
getMetadata()
|
|
boolean |
isDetach()
|
|
com.mysema.commons.lang.CloseableIterator<Object[]> |
iterate(Expression<?>[] args)
iterate over the results for the given projection |
|
|
iterate(Expression<RT> projection)
iterate over the results for the given projection |
|
List<Object[]> |
list(Expression<?>[] args)
list the results for the given projection An empty list is returned for no results. |
|
|
list(Expression<RT> expr)
list the results for the given projection An empty list is returned for no results. |
|
|
listResults(Expression<RT> expr)
list the results for the given projection |
|
String |
toString()
|
|
Object[] |
uniqueResult(Expression<?>[] args)
return a unique result for the given projection or null if no result is found |
|
|
uniqueResult(Expression<RT> expr)
return a unique result for the given projection or null if no result is found |
Methods inherited from class com.mysema.query.jdo.sql.AbstractSQLQuery |
---|
addFlag, addFlag, addFlag, addJoinFlag, addJoinFlag, exists, from, from, fullJoin, fullJoin, fullJoin, fullJoin, innerJoin, innerJoin, innerJoin, innerJoin, join, join, join, join, leftJoin, leftJoin, leftJoin, leftJoin, on, rightJoin, rightJoin, rightJoin, rightJoin, union, union, union, union, unionAll, unionAll, unionAll, unionAll |
Methods inherited from class com.mysema.query.support.ProjectableQuery |
---|
countDistinct, iterate, iterateDistinct, iterateDistinct, iterateDistinct, list, listDistinct, listDistinct, listDistinct, listDistinctResults, map, notExists, singleResult, singleResult, singleResult, transform, uniqueResult, uniqueResult |
Methods inherited from class com.mysema.query.support.QueryBase |
---|
distinct, equals, groupBy, hashCode, having, limit, offset, orderBy, restrict, set, where |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.mysema.query.sql.SQLCommonQuery |
---|
addFlag, addFlag, addFlag, addJoinFlag, addJoinFlag, from, from, fullJoin, fullJoin, fullJoin, fullJoin, innerJoin, innerJoin, innerJoin, innerJoin, join, join, join, join, leftJoin, leftJoin, leftJoin, leftJoin, on, rightJoin, rightJoin, rightJoin, rightJoin |
Methods inherited from interface com.mysema.query.Query |
---|
groupBy, having |
Methods inherited from interface com.mysema.query.SimpleQuery |
---|
distinct, limit, offset, orderBy, restrict, set |
Methods inherited from interface com.mysema.query.FilteredClause |
---|
where |
Constructor Detail |
---|
public JDOSQLQuery(@Nullable javax.jdo.PersistenceManager persistenceManager, SQLTemplates templates)
public JDOSQLQuery(@Nullable javax.jdo.PersistenceManager persistenceManager, SQLTemplates templates, QueryMetadata metadata, boolean detach)
Method Detail |
---|
public void close()
public long count()
Projectable
count
in interface Projectable
count
in class AbstractSQLQuery<JDOSQLQuery>
public QueryMetadata getMetadata()
getMetadata
in class AbstractSQLQuery<JDOSQLQuery>
public boolean isDetach()
public com.mysema.commons.lang.CloseableIterator<Object[]> iterate(Expression<?>[] args)
Projectable
iterate
in interface Projectable
public <RT> com.mysema.commons.lang.CloseableIterator<RT> iterate(Expression<RT> projection)
Projectable
iterate
in interface Projectable
RT
- generic type of the Iterator
public List<Object[]> list(Expression<?>[] args)
Projectable
list
in interface Projectable
list
in class ProjectableQuery<JDOSQLQuery>
public <RT> List<RT> list(Expression<RT> expr)
Projectable
list
in interface Projectable
list
in class ProjectableQuery<JDOSQLQuery>
RT
- generic type of the List
public <RT> SearchResults<RT> listResults(Expression<RT> expr)
Projectable
listResults
in interface Projectable
public String toString()
toString
in class QueryBase<JDOSQLQuery>
@Nullable public <RT> RT uniqueResult(Expression<RT> expr)
Projectable
There is some ambiguity for missing results and null valued results, for disambiguation use the list or iterate methods instead.
uniqueResult
in interface Projectable
RT
- return type
@Nullable public Object[] uniqueResult(Expression<?>[] args)
Projectable
There is some ambiguity for missing results and null valued results, for disambiguation use the list or iterate methods instead.
uniqueResult
in interface Projectable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |