org.objectweb.speedo.query.lib
Class QueryResultUnique

java.lang.Object
  extended byorg.objectweb.speedo.query.lib.QueryResultCommon
      extended byorg.objectweb.speedo.query.lib.QueryResultUnique

public class QueryResultUnique
extends QueryResultCommon

Manages the query result which has to be unique.

Author:
S.Chassande-Barrioz

Field Summary
 
Fields inherited from class org.objectweb.speedo.query.lib.QueryResultCommon
conns, debug, logger, pm, tc
 
Constructor Summary
QueryResultUnique(org.objectweb.medor.tuple.api.TupleCollection _tc, javax.jdo.PersistenceManager _pm, java.lang.Object[] _conns, java.lang.Class _resultClazz, java.lang.Class[] _selectedFieldTypes, boolean staticFirstElementIndex, org.objectweb.util.monolog.api.Logger _logger)
          Builds a QueryResultList.
 
Method Summary
 java.lang.Object getResult()
           
 
Methods inherited from class org.objectweb.speedo.query.lib.QueryResultCommon
close, closeConnection, getValue, pname2Object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryResultUnique

public QueryResultUnique(org.objectweb.medor.tuple.api.TupleCollection _tc,
                         javax.jdo.PersistenceManager _pm,
                         java.lang.Object[] _conns,
                         java.lang.Class _resultClazz,
                         java.lang.Class[] _selectedFieldTypes,
                         boolean staticFirstElementIndex,
                         org.objectweb.util.monolog.api.Logger _logger)
                  throws org.objectweb.medor.api.MedorException,
                         SpeedoException
Builds a QueryResultList.

Parameters:
_tc - the tuple collection representing the query result
_pm - is the peristence manager linked to the query
_conns - is the connection to the underlying support to close in same time than the query.
_resultClazz - is the class encapsulated the result
Method Detail

getResult

public java.lang.Object getResult()
                           throws SpeedoException
Throws:
SpeedoException