public final class QQueryUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static <R> R |
mapSelectionOneQuery(QDataContext dc,
Class<R> resultInterface,
QSelection<?> sel) |
static <R> List<R> |
mapSelectionQuery(QDataContext dc,
Class<R> resultInterface,
QSelection<?> sel) |
static <K,T extends IIdentifyable<K>> |
queryCount(QDataContext dc,
QCriteria<T> q)
Util that enables easier retrieving of rows count on specified QCriteria.
|
@Nonnull public static <R> List<R> mapSelectionQuery(@Nonnull QDataContext dc, @Nonnull Class<R> resultInterface, @Nonnull QSelection<?> sel) throws Exception
Exception@Nullable public static <R> R mapSelectionOneQuery(@Nonnull QDataContext dc, @Nonnull Class<R> resultInterface, @Nonnull QSelection<?> sel) throws Exception
Exceptionpublic static <K,T extends IIdentifyable<K>> int queryCount(@Nonnull QDataContext dc, @Nonnull QCriteria<T> q) throws Exception
dc - q - ExceptionCopyright © 2017 etc.to. All rights reserved.