com.agfa.hap.sdo.util
Class ResultSet
java.lang.Object
com.agfa.hap.sdo.util.ResultSet
public class ResultSet
- extends java.lang.Object
This class converts a list of dataobjects into a ResultSet.
In case of many-valued properties, appropriate cartesian products are made.
Example: Suppose for a list of serviceRequests we want a ResultSet for the
properties requestedProcedures.id, patient.name. In case we have three service
requests (sr?) each with a number of requested procedures (reqProc?), we get
the following "result set".
sr1 pat1.name reqProc1.id
sr1 pat1.name reqProc2.id
sr2 pat2.name reqProc3.id
sr2 pat2.name reqProc4.id
sr3 null reqProc5.id
The order in which the rows are returned is not defined.
This class is useful to use a snapshot as input for a Jasper Reports data source.
- Author:
- AMOCZ
Constructor Summary |
ResultSet(java.util.Collection<? extends DataObject> data,
java.util.List<java.lang.String> propertyPaths,
Type rootType)
|
ResultSet(java.util.Collection<? extends DataObject> data,
java.lang.String selectClause,
Type rootType)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResultSet
public ResultSet(java.util.Collection<? extends DataObject> data,
java.util.List<java.lang.String> propertyPaths,
Type rootType)
ResultSet
public ResultSet(java.util.Collection<? extends DataObject> data,
java.lang.String selectClause,
Type rootType)
addProperties
protected void addProperties(java.lang.String selectClause)
getSize
public int getSize()
getValue
public java.lang.Object getValue(int row,
java.lang.String propertyPath)
addData
protected void addData(java.util.Collection<? extends DataObject> dos)
addProperty
protected void addProperty(java.lang.String propertyPath)
addProperty
protected java.lang.String addProperty(java.lang.String rootPath,
Property property)
Copyright © 2007. All Rights Reserved.