|
||||||||||
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.support.QueryBase |
---|
queryMixin |
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 |
|
|
list(Expression<RT> expr)
list the results for the given projection |
|
|
listResults(Expression<RT> expr)
list the results for the given projection |
|
String |
toString()
|
|
|
uniqueResult(Expression<RT> expr)
return a unique result for the given projection or null if not result is found |
Methods inherited from class com.mysema.query.jdo.sql.AbstractSQLQuery |
---|
exists, from, from, fullJoin, fullJoin, fullJoin, innerJoin, innerJoin, innerJoin, join, join, join, leftJoin, leftJoin, leftJoin, on, rightJoin, rightJoin, rightJoin |
Methods inherited from class com.mysema.query.support.ProjectableQuery |
---|
countDistinct, iterate, iterateDistinct, iterateDistinct, iterateDistinct, list, listDistinct, listDistinct, listDistinct, listDistinctResults, map, notExists, uniqueResult, uniqueResult |
Methods inherited from class com.mysema.query.support.QueryBase |
---|
distinct, 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 |
Methods inherited from interface com.mysema.query.sql.SQLCommonQuery |
---|
from, from, fullJoin, fullJoin, fullJoin, innerJoin, innerJoin, innerJoin, join, join, join, leftJoin, leftJoin, leftJoin, on, rightJoin, rightJoin, rightJoin |
Methods inherited from interface com.mysema.query.Query |
---|
distinct, groupBy, having, 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>
public <RT> RT uniqueResult(Expression<RT> expr)
Projectable
uniqueResult
in interface Projectable
uniqueResult
in class ProjectableQuery<JDOSQLQuery>
RT
- return type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |