com.ihr.xbrl.xbrlq
Class XBRLqResult<T>

java.lang.Object
  extended by com.ihr.xbrl.xbrlq.XBRLqResult<T>

public class XBRLqResult<T>
extends java.lang.Object

This class represents the result of an XBRLq query execution.

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.

Author:
Ignacio

Constructor Summary
XBRLqResult()
          Empty result or dynamic result that is empty initialized
XBRLqResult(java.util.ArrayList<java.lang.Long> ids)
           
XBRLqResult(org.hibernate.ScrollableResults scrollable)
          Result based on an scrollable result.
 
Method Summary
 void addAll(XBRLqResult<T> newList)
           
 void clear()
           
 java.util.ArrayList<java.lang.Long> getAllContentIds()
           
 java.util.ArrayList<T> getAllContents(org.hibernate.Session dbSession)
           
 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)
           
 void retainAll(XBRLqResult<T> newList)
           
 int size()
          Returns the total number of elements in the XBRLq query without iterating through all of them.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XBRLqResult

public XBRLqResult(org.hibernate.ScrollableResults scrollable)
Result based on an scrollable result.

Parameters:
scrollable -

XBRLqResult

public XBRLqResult()
Empty result or dynamic result that is empty initialized


XBRLqResult

public XBRLqResult(java.util.ArrayList<java.lang.Long> ids)
Method Detail

size

public int size()
Returns the total number of elements in the XBRLq query without iterating through all of them.

Returns:
integer value

getContent

public 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.

Parameters:
start - integer (first row is 0)
length - total number of rows to include in the array list
Returns:
ArrayList of objects

getRawContent

public java.util.ArrayList<java.lang.Object[]> getRawContent(int start,
                                                             int length,
                                                             org.hibernate.Session dbSession)

getAllContents

public java.util.ArrayList<T> getAllContents(org.hibernate.Session dbSession)

addAll

public void addAll(XBRLqResult<T> newList)
Parameters:
newList -

retainAll

public void retainAll(XBRLqResult<T> newList)
Parameters:
newList -

getAllContentIds

public java.util.ArrayList<java.lang.Long> getAllContentIds()
Returns:

clear

public void clear()


Copyright 2006-2009 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa