T
- the generic typepublic class XBRLqResult<T>
extends java.lang.Object
The result only contains a small set of elements from the database. The number of elements in the set will be configurable. It is designed in a way that it will be easier if the number of elements matches the number of elements in the web page or application consuming the object.
Constructor and Description |
---|
XBRLqResult()
Empty result or dynamic result that is empty initialized.
|
XBRLqResult(java.util.ArrayList<java.lang.Long> ids)
Instantiates a new XBR lq result.
|
XBRLqResult(org.hibernate.ScrollableResults scrollable)
Result based on an scrollable result.
|
Modifier and Type | Method and Description |
---|---|
void |
addAll(XBRLqResult<T> newList)
Adds the all.
|
void |
clear()
Clear.
|
java.util.ArrayList<java.lang.Long> |
getAllContentIds()
Gets the all content ids.
|
java.util.ArrayList<T> |
getAllContents(org.hibernate.Session dbSession)
Gets the all contents.
|
java.util.ArrayList<T> |
getContent(int start,
int length,
org.hibernate.Session dbSession)
Obtain an array of length elements from the database at the start position.
|
java.util.ArrayList<java.lang.Object[]> |
getRawContent(int start,
int length,
org.hibernate.Session dbSession)
Gets the raw content.
|
void |
retainAll(XBRLqResult<T> newList)
Retain all.
|
int |
size()
Returns the total number of elements in the XBRLq query without
iterating through all of them.
|
public XBRLqResult(org.hibernate.ScrollableResults scrollable)
scrollable
- the scrollablepublic XBRLqResult()
public XBRLqResult(java.util.ArrayList<java.lang.Long> ids)
ids
- the idspublic int size()
public java.util.ArrayList<T> getContent(int start, int length, org.hibernate.Session dbSession)
start
- integer (first row is 0)length
- total number of rows to include in the array listdbSession
- the db sessionpublic java.util.ArrayList<java.lang.Object[]> getRawContent(int start, int length, org.hibernate.Session dbSession)
start
- the startlength
- the lengthdbSession
- the db sessionpublic java.util.ArrayList<T> getAllContents(org.hibernate.Session dbSession)
dbSession
- the db sessionpublic void addAll(XBRLqResult<T> newList)
newList
- the new listpublic void retainAll(XBRLqResult<T> newList)
newList
- the new listpublic java.util.ArrayList<java.lang.Long> getAllContentIds()
public void clear()
Copyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa