public class DBResultGroupBySet
extends java.lang.Object
| Constructor and Description |
|---|
DBResultGroupBySet(DBClassConcrete dbClassConcrete,
DataSource ds)
Creates a new instance of DBResultGroupBySet
|
DBResultGroupBySet(DBResult origRes,
DBQueryColumn[] columns)
Creates a new instance of DBResultGroupBySet and groups the supplied result set by
the supplied grouping field paths
|
| Modifier and Type | Method and Description |
|---|---|
void |
addResult(DBResult res)
Add the DBResult in the result map
|
int |
getActRowCount()
Get the actual row count
|
DBObject |
getDetailObject(int requestedRow)
Returns DBObject from combined result set
|
DBObject |
getObject(int requestedRow)
Returns first DBObject from result set at specified position
|
DBResult |
getResult(int index)
Returns the result of the given row key
|
java.lang.String |
getRowKey(int index)
Returns the rowKey of the given index
|
void |
setOrderBy(java.lang.String fieldPath)
A short hand method to set the order by for a particular field.
|
void |
setOrderBy(java.lang.String fieldPath,
boolean sortDescending)
A short hand method to set the order by for a particular field.
|
void |
sort()
Sets the order of that the result set is in the format of the order statement is :-
fieldPath DESC;fieldPath ASC
|
public DBResultGroupBySet(@Nonnull
DBClassConcrete dbClassConcrete,
@Nonnull
DataSource ds)
dbClassConcrete - The class of this objectds - Your current data sourcepublic DBResultGroupBySet(@Nonnull
DBResult origRes,
@Nullable
DBQueryColumn[] columns)
throws java.lang.Exception
origRes - The original results to groupcolumns - The list of column objects that results are to be grouped byjava.lang.Exception - a serious problem.@CheckReturnValue @Nullable public DBResult getResult(int index)
index - The row key@CheckReturnValue public int getActRowCount()
public final void addResult(@Nonnull
DBResult res)
throws java.lang.NoSuchFieldException
res - The result is to addjava.lang.NoSuchFieldExceptionpublic final void setOrderBy(@Nullable
java.lang.String fieldPath)
throws java.lang.NoSuchFieldException
fieldPath - The field pathjava.lang.NoSuchFieldExceptionpublic final void setOrderBy(@Nullable
java.lang.String fieldPath,
boolean sortDescending)
throws java.lang.NoSuchFieldException
fieldPath - The field pathsortDescending - Descending ?java.lang.NoSuchFieldExceptionpublic final void sort()
throws java.lang.NoSuchFieldException
java.lang.NoSuchFieldException@CheckReturnValue @Nullable public java.lang.String getRowKey(int index)
index - to get row key@CheckReturnValue @Nullable public DBObject getObject(int requestedRow)
requestedRow - The row to fetch.@CheckReturnValue @Nullable public DBObject getDetailObject(int requestedRow)
requestedRow - The row to fetch.stSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.