com.triactive.jdo.store
Interface Query.ResultObjectFactory

All Known Implementing Classes:
PersistentIDROF, 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(java.sql.ResultSet rs)
          Instantiates a persistent object instance from the current row of the given result set.
 

Method Detail

getObject

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

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


Copyright ? 2001 TriActive, Inc. All Rights Reserved.