org.jpox.store.query
Interface Query.ResultObjectFactory

All Known Implementing Classes:
PersistentIDROF, ResultClassROF, TransientIDROF
Enclosing interface:
Query

public static interface Query.ResultObjectFactory

An object that reads result set rows and returns corresponding persistent objects from them. Different queries accomplish this in different ways, so a query supplies a suitable ResultObjectFactory to each QueryResult when it is executed. The QueryResult only uses it to turn ResultSet rows into objects and otherwise manages the ResultSet itself.

See Also:
QueryResult

Method Summary
 java.lang.Object getObject(PersistenceManager pm, java.sql.ResultSet rs, java.lang.Class pcClass)
          Instantiates a persistent object instance from the current row of the given result set.
 

Method Detail

getObject

public java.lang.Object getObject(PersistenceManager pm,
                                  java.sql.ResultSet rs,
                                  java.lang.Class pcClass)
Instantiates a persistent object instance from the current row of the given result set.

Parameters:
pm - The PersistenceManager.
rs - The result set. The contents of the current row are used to locate or create a corresponding persistent object instance.
pcClass - The PersistenceCapable class
Returns:
A persistent object instance.


Copyright © -2007 . All Rights Reserved.