|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.speedo.query.lib.QueryResultCommon
Is a common classes used for compute the query result. This implementation supports user class or persistent class as query result.
Field Summary | |
protected java.lang.Object[] |
conns
The underlying connection used to evalue the query. |
protected boolean |
debug
|
protected Logger |
logger
|
protected PersistenceManager |
pm
The proxy manager representing the current execution context. |
protected TupleCollection |
tc
The inner medor TupleCollection |
Constructor Summary | |
QueryResultCommon(TupleCollection _tc,
PersistenceManager _pm,
java.lang.Object[] _conns,
java.lang.Class _resultClazz,
java.lang.Class[] _selectedFieldTypes,
boolean staticFirstElementIndex,
Logger _logger)
Builds a QueryResultList. |
Method Summary | |
void |
close()
Close the connection to the data store. |
static void |
closeConnection(java.lang.Object conn)
|
protected java.lang.Object |
getValue(Tuple tuple)
When the array #selectedFieldTypes contains a single element, the result of the query can or cannot be encapsulated into a user class. |
protected java.lang.Object |
pname2Object(PName pn)
Fetch the persistent instance corresponding to an identifier |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected TupleCollection tc
protected java.lang.Object[] conns
protected PersistenceManager pm
protected Logger logger
protected boolean debug
Constructor Detail |
public QueryResultCommon(TupleCollection _tc, PersistenceManager _pm, java.lang.Object[] _conns, java.lang.Class _resultClazz, java.lang.Class[] _selectedFieldTypes, boolean staticFirstElementIndex, Logger _logger) throws MedorException, SpeedoException
_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.Method Detail |
public void close()
public static void closeConnection(java.lang.Object conn)
protected java.lang.Object pname2Object(PName pn)
pn
- is the persistent object identifier
protected java.lang.Object getValue(Tuple tuple) throws MedorException
tuple
-
MedorException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |