T - result typeQ - concrete subclasspublic abstract class AbstractSQLQuery<T,Q extends AbstractSQLQuery<T,Q>> extends ProjectableSQLQuery<T,Q>
SQLQuery implementations| Modifier and Type | Field and Description |
|---|---|
protected boolean |
detach |
protected javax.jdo.PersistenceManager |
persistenceManager |
protected FactoryExpression<?> |
projection |
protected List<javax.jdo.Query> |
queries |
protected QueryMixin<Q> |
queryMixin |
configuration, firstUnionSubQuery, union, unionAllMDC_PARAMETERS, MDC_QUERY| Constructor and Description |
|---|
AbstractSQLQuery(QueryMetadata metadata,
Configuration conf,
javax.jdo.PersistenceManager persistenceManager,
boolean detach) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the query and related resources
|
List<T> |
fetch()
Get the projection as a typed List
|
long |
fetchCount()
Get the count of matched elements
|
T |
fetchOne()
Get the projection as a unique result or null if no result is found
|
QueryResults<T> |
fetchResults()
Get the projection in
QueryResults form |
boolean |
isDetach() |
com.mysema.commons.lang.CloseableIterator<T> |
iterate()
Get the projection as a typed closeable Iterator
|
String |
toString() |
accept, addFlag, addFlag, addFlag, addFlag, addJoinFlag, addJoinFlag, clone, clone, createSerializer, from, from, from, fullJoin, fullJoin, fullJoin, fullJoin, getSQL, innerJoin, innerJoin, innerJoin, innerJoin, join, join, join, join, leftJoin, leftJoin, leftJoin, leftJoin, on, on, rightJoin, rightJoin, rightJoin, rightJoin, serialize, union, union, union, unionAll, unionAll, unionAll, with, with, with, withRecursive, withRecursive, withRecursivecontains, contains, eq, eq, exists, getMetadata, getType, goe, goe, gt, gt, hashCode, loe, loe, lt, lt, ne, ne, notExistsequals, fetchFirst, transform, uniqueResultdistinct, groupBy, groupBy, having, having, limit, offset, orderBy, orderBy, restrict, set, where, wherefinalize, getClass, notify, notifyAll, wait, wait, waitdistinct, limit, offset, orderBy, restrict, setwhereselect, select, transformfetchFirstprotected final boolean detach
@Nullable protected final javax.jdo.PersistenceManager persistenceManager
protected List<javax.jdo.Query> queries
@Nullable protected FactoryExpression<?> projection
protected final QueryMixin<Q extends AbstractSQLQuery<T,Q>> queryMixin
public AbstractSQLQuery(QueryMetadata metadata, Configuration conf, javax.jdo.PersistenceManager persistenceManager, boolean detach)
public void close()
public long fetchCount()
FetchablefetchCount in interface Fetchable<T>fetchCount in class ProjectableSQLQuery<T,Q extends AbstractSQLQuery<T,Q>>public boolean isDetach()
public com.mysema.commons.lang.CloseableIterator<T> iterate()
Fetchablepublic List<T> fetch()
Fetchablefetch in interface Fetchable<T>fetch in class FetchableQueryBase<T,Q extends AbstractSQLQuery<T,Q>>public QueryResults<T> fetchResults()
FetchableQueryResults formpublic String toString()
toString in class ProjectableSQLQuery<T,Q extends AbstractSQLQuery<T,Q>>@Nullable public T fetchOne()
FetchablefetchOne in interface Fetchable<T>fetchOne in class ProjectableSQLQuery<T,Q extends AbstractSQLQuery<T,Q>>Copyright © 2007–2015 Mysema Ltd. All rights reserved.