|
SolarMetric Kodo JDO 2.5.8 generated on January 11 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Variant of ResultObjectProvider that populates a
StateManagerImpl object in an application-defined manner.
Implementations of this interface can be used to load data via non-SQL means such as via stored procedures.
| Inner Class Summary | |
static class |
CustomResultObjectProvider.ResultObjectProviderAdapter
Adapter class that allows a CustomResultObjectProvider
to be used in situations that require a
ResultObjectProvider. |
static class |
CustomResultObjectProvider.ROPInfo
Data structure that holds information about the object currently being loaded, and a reference to the CustomResultObjectProvider that should be used to load the
information into a StateManagerImpl. |
| Method Detail |
public void initialize(StateManagerImpl sm,
Set fields,
JDOState state,
CustomResultObjectProvider.ROPInfo info)
sm with the data in
info, transitioning its JDO state to
state.
public void load(StateManagerImpl sm,
Set fields,
boolean setVersion,
CustomResultObjectProvider.ROPInfo info)
fields into sm. Also load the
version information if setVersion is
true.
public Class getType(Object input)
throws Exception
Determine which concrete class the current data in
input represents.
public Object getObjectId(Object input,
ClassMetaData meta)
throws Exception
Determine the id of the current data in
input.
public CustomResultObjectProvider.ROPInfo getROPInfo(Object input,
Object oid,
ClassMetaData meta)
throws Exception
Create a CustomResultObjectProvider.ROPInfo
object that will be suitable for
use in a subsequent load(com.solarmetric.kodo.runtime.StateManagerImpl, java.util.Set, boolean, com.solarmetric.kodo.runtime.objectprovider.CustomResultObjectProvider.ROPInfo) or initialize(com.solarmetric.kodo.runtime.StateManagerImpl, java.util.Set, com.solarmetric.kodo.runtime.JDOState, com.solarmetric.kodo.runtime.objectprovider.CustomResultObjectProvider.ROPInfo) call.
public boolean open(Object input)
throws Exception
input. This is invoked
before any data is loaded from the input. Return
true if there is data in the input; otherwise
false.
public boolean advance(Object input)
throws Exception
input to the next
position. Return true if there is more data;
otherwise false. This is invoked between each
invokation of
CustomResultObjectProvider.ResultObjectProviderAdapter.getResultObject(java.lang.Object).
public void free(Object input)
throws Exception
public PersistenceManagerImpl getPersistenceManager()
PersistenceManagerImpl that objects loaded
by this provider should be loaded into.
|
SolarMetric Kodo JDO 2.5.8 generated on January 11 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||