public class ResultMetaDataROF extends Object implements ResultObjectFactory
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] ... 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).
| Constructor and Description |
|---|
ResultMetaDataROF(RDBMSStoreManager storeMgr,
org.datanucleus.metadata.QueryResultMetaData qrmd)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getObject(org.datanucleus.ExecutionContext ec,
ResultSet rs)
Accessor for the object(s) from a row of the ResultSet.
|
public ResultMetaDataROF(RDBMSStoreManager storeMgr, org.datanucleus.metadata.QueryResultMetaData qrmd)
storeMgr - RDBMS StoreManagerqrmd - MetaData defining the results from the query.public Object getObject(org.datanucleus.ExecutionContext ec, ResultSet rs)
getObject in interface ResultObjectFactoryec - execution contextrs - ResultSetCopyright © 2015. All rights reserved.