org.datanucleus.store.rdbms.query
Class TransientIDROF
java.lang.Object
org.datanucleus.store.rdbms.query.TransientIDROF
- All Implemented Interfaces:
- org.datanucleus.store.query.ResultObjectFactory
public final class TransientIDROF
- extends java.lang.Object
- implements org.datanucleus.store.query.ResultObjectFactory
ResultObjectFactory that generates an instance of a "nondurable" class for each ResultSet row.
This is used by views though better off using a ResultClassROF.
|
Constructor Summary |
TransientIDROF(java.lang.Class candidateClass,
int[] fieldNumbers,
org.datanucleus.store.mapped.StatementMappingIndex[] stmtMappings)
Constructor |
|
Method Summary |
java.lang.Object |
getObject(org.datanucleus.ObjectManager om,
java.lang.Object rs)
Method to return an object for the row of the ResultSet. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fieldNumbers
protected final int[] fieldNumbers
stmtMappings
protected final org.datanucleus.store.mapped.StatementMappingIndex[] stmtMappings
TransientIDROF
public TransientIDROF(java.lang.Class candidateClass,
int[] fieldNumbers,
org.datanucleus.store.mapped.StatementMappingIndex[] stmtMappings)
- Constructor
- Parameters:
candidateClass - the candidate classfieldNumbers - the absolute field numbers with the retrieved fieldsstmtMappings - the mappings of fields in the statement
getObject
public java.lang.Object getObject(org.datanucleus.ObjectManager om,
java.lang.Object rs)
- Method to return an object for the row of the ResultSet.
- Specified by:
getObject in interface org.datanucleus.store.query.ResultObjectFactory
- Parameters:
om - ObjectManagerrs - ResultSet
- Returns:
- The Object for this row of the ResultSet.
Copyright © 2009. All Rights Reserved.