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).
| Modifier and Type | Field and Description |
|---|---|
protected static org.datanucleus.util.Localiser |
LOCALISER
Localisation of messages.
|
| Constructor and Description |
|---|
ResultMetaDataROF(RDBMSStoreManager storeMgr,
org.datanucleus.metadata.QueryResultMetaData qrmd)
Constructor.
|
protected static final org.datanucleus.util.Localiser LOCALISER
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 © 2013. All Rights Reserved.