|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.speedo.query.jdo.JDOQueryResultCommon
public class JDOQueryResultCommon
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 PersistenceManager |
pm
The po manager representing the current execution context. |
protected TupleCollection |
tc
The inner medor TupleCollection |
Constructor Summary | |
---|---|
JDOQueryResultCommon(TupleCollection _tc,
PersistenceManager _pm,
java.lang.Object[] _conns,
java.lang.Class _resultClazz,
java.lang.Class[] _selectedFieldTypes,
boolean staticFirstElementIndex,
boolean returnIdentifierOnly,
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(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 TupleCollection tc
protected java.lang.Object[] conns
protected PersistenceManager pm
protected org.objectweb.util.monolog.api.Logger logger
protected boolean debug
Constructor Detail |
---|
public JDOQueryResultCommon(TupleCollection _tc, PersistenceManager _pm, java.lang.Object[] _conns, java.lang.Class _resultClazz, java.lang.Class[] _selectedFieldTypes, boolean staticFirstElementIndex, boolean returnIdentifierOnly, org.objectweb.util.monolog.api.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._resultClazz
- is the class encapsulated the result
MedorException
SpeedoException
Method 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(Tuple tuple) throws MedorException
tuple
- contains the result
MedorException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |