|
||||||||||||
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 org.objectweb.util.monolog.api.Logger |
logger
|
protected javax.jdo.PersistenceManager |
pm
The proxy manager representing the current execution context. |
protected org.objectweb.medor.tuple.api.TupleCollection |
tc
The inner medor TupleCollection |
Constructor Summary | |
---|---|
QueryResultCommon(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 | |
---|---|
void |
close()
Close the connection to the data store. |
static void |
closeConnection(java.lang.Object conn)
|
protected java.lang.Object |
getValue(org.objectweb.medor.tuple.api.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(org.objectweb.jorm.naming.api.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 org.objectweb.medor.tuple.api.TupleCollection tc
protected java.lang.Object[] conns
protected javax.jdo.PersistenceManager pm
protected org.objectweb.util.monolog.api.Logger logger
protected boolean debug
Constructor Detail |
public QueryResultCommon(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
_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 resultMethod Detail |
public void close()
public static void closeConnection(java.lang.Object conn)
protected java.lang.Object pname2Object(org.objectweb.jorm.naming.api.PName pn)
pn
- is the persistent object identifier
protected java.lang.Object getValue(org.objectweb.medor.tuple.api.Tuple tuple) throws org.objectweb.medor.api.MedorException
tuple
- contains the result
org.objectweb.medor.api.MedorException
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |