org.datanucleus.store.rdbms.query
Class TransientIDROF

java.lang.Object
  extended by 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.


Field Summary
protected  int[] fieldNumbers
           
protected  org.datanucleus.store.mapped.StatementMappingIndex[] stmtMappings
           
 
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
 

Field Detail

fieldNumbers

protected final int[] fieldNumbers

stmtMappings

protected final org.datanucleus.store.mapped.StatementMappingIndex[] stmtMappings
Constructor Detail

TransientIDROF

public TransientIDROF(java.lang.Class candidateClass,
                      int[] fieldNumbers,
                      org.datanucleus.store.mapped.StatementMappingIndex[] stmtMappings)
Constructor

Parameters:
candidateClass - the candidate class
fieldNumbers - the absolute field numbers with the retrieved fields
stmtMappings - the mappings of fields in the statement
Method Detail

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 - ObjectManager
rs - ResultSet
Returns:
The Object for this row of the ResultSet.


Copyright © 2009. All Rights Reserved.