public class ResultMetaDataROF extends AbstractROF
ResultSet Column Output Object ================ ============= COL1 PC1.field1 COL2 PC1.field2 COL3 Simple Object COL4 PC2.field3 COL5 PC2.field1 COL6 PC2.field2 COL7 Simple Object COL8 PC1.field3 ...So this example will return an Object[4] comprised of Object[0] = instance of PC1, Object[1] = instance of PC2, Object[2] = simple object, Object[3] = simple object. When creating the instance of PC1 we take the ResultSet columns (COL1, COL2, COL8). When creating the instance of PC2 we take the ResultSet columns (COL5, COL6, COL4).
Modifier and Type | Field and Description |
---|---|
protected ResultSetGetter[] |
persistentTypeResultSetGetters
ResultSetGetter objects used for any persistable objects in the result.
|
ec, ignoreCache, rs
Constructor and Description |
---|
ResultMetaDataROF(org.datanucleus.ExecutionContext ec,
ResultSet rs,
boolean ignoreCache,
org.datanucleus.metadata.QueryResultMetaData qrmd)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Object |
getObject()
Accessor for the object(s) from the current row of the ResultSet.
|
ResultSet |
getResultSet()
Accessor for the JDBC ResultSet being processed.
|
protected ResultSetGetter[] persistentTypeResultSetGetters
public ResultMetaDataROF(org.datanucleus.ExecutionContext ec, ResultSet rs, boolean ignoreCache, org.datanucleus.metadata.QueryResultMetaData qrmd)
ec
- ExecutionContextrs
- ResultSetignoreCache
- Whether we should ignore the cache(s) when instantiating persistable objectsqrmd
- MetaData defining the results from the query.public ResultSet getResultSet()
ResultObjectFactory
getResultSet
in interface ResultObjectFactory
getResultSet
in class AbstractROF
public Object getObject()
Copyright © 2019. All rights reserved.