public final class JDOSQLQuery extends AbstractSQLQuery<JDOSQLQuery>
configuration, queryMixin, union, unionAll
Constructor and Description |
---|
JDOSQLQuery(javax.jdo.PersistenceManager persistenceManager,
Configuration configuration) |
JDOSQLQuery(javax.jdo.PersistenceManager persistenceManager,
Configuration configuration,
QueryMetadata metadata,
boolean detach) |
JDOSQLQuery(javax.jdo.PersistenceManager persistenceManager,
SQLTemplates templates) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
long |
count()
return the amount of matched rows
|
QueryMetadata |
getMetadata() |
boolean |
isDetach() |
com.mysema.commons.lang.CloseableIterator<Tuple> |
iterate(Expression<?>... args)
iterate over the results for the given projection
|
<RT> com.mysema.commons.lang.CloseableIterator<RT> |
iterate(Expression<RT> projection)
iterate over the results for the given projection
|
List<Tuple> |
list(Expression<?>... args)
list the results for the given projection
An empty list is returned for no results.
|
<RT> List<RT> |
list(Expression<RT> expr)
list the results for the given projection
An empty list is returned for no results.
|
SearchResults<Tuple> |
listResults(Expression<?>... args)
list the results for the given projection
|
<RT> SearchResults<RT> |
listResults(Expression<RT> expr)
list the results for the given projection
|
String |
toString() |
Tuple |
uniqueResult(Expression<?>... args)
return a unique result for the given projection or null if no result is found
|
<RT> RT |
uniqueResult(Expression<RT> expr)
return a unique result for the given projection or null if no result is found
|
addFlag, addFlag, addFlag, addJoinFlag, addJoinFlag, exists, from, from, from, fullJoin, fullJoin, fullJoin, fullJoin, innerJoin, innerJoin, innerJoin, innerJoin, join, join, join, join, leftJoin, leftJoin, leftJoin, leftJoin, on, on, rightJoin, rightJoin, rightJoin, rightJoin, union, union, union, union, unionAll, unionAll, unionAll, unionAll, with, with, with, withRecursive, withRecursive, withRecursive
map, notExists, singleResult, singleResult, transform, uniqueResult
distinct, equals, groupBy, groupBy, hashCode, having, having, limit, offset, orderBy, orderBy, restrict, set, where, where
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
distinct, limit, offset, orderBy, restrict, set
where
public JDOSQLQuery(@Nullable javax.jdo.PersistenceManager persistenceManager, SQLTemplates templates)
public JDOSQLQuery(@Nullable javax.jdo.PersistenceManager persistenceManager, Configuration configuration)
public JDOSQLQuery(@Nullable javax.jdo.PersistenceManager persistenceManager, Configuration configuration, QueryMetadata metadata, boolean detach)
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<Tuple> iterate(Expression<?>... args)
Projectable
public <RT> com.mysema.commons.lang.CloseableIterator<RT> iterate(Expression<RT> projection)
Projectable
RT
- generic type of the Iteratorpublic List<Tuple> 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 Listpublic SearchResults<Tuple> listResults(Expression<?>... args)
Projectable
public <RT> SearchResults<RT> listResults(Expression<RT> expr)
Projectable
public String toString()
toString
in class QueryBase<JDOSQLQuery>
@Nullable public Tuple uniqueResult(Expression<?>... args)
Projectable
There is some ambiguity for missing results and null valued results, for disambiguation use the list or iterate methods instead.
@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.
RT
- return typeCopyright © 2007–2014 Mysema Ltd. All rights reserved.