|
SolarMetric Kodo JDO 3.3.5 generated on August 31 2005 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--kodo.runtime.AbstractPCResultObjectProvider
Abstract implementation of PCResultObjectProvider
that implements ResultObjectProvider.getResultObject()
by assembling the necessary information about the object to be
loaded.
Field Summary | |
protected KodoPersistenceManager |
pm
The KodoPersistenceManager that this result object
provider will load objects into. |
Constructor Summary | |
AbstractPCResultObjectProvider(KodoPersistenceManager pm)
Create a new provider for loading PC objects from the input into pm . |
Method Summary | |
boolean |
absolute(int pos)
Override if desired. |
void |
close()
Override if desired. |
protected abstract Object |
getObjectId(ClassMetaData meta)
Implement this method to extract the object id value from the current record of the input. |
protected abstract Class |
getPCClass()
Implement this method to extract the type of the pc stored in the current record of the input. |
KodoPersistenceManager |
getPersistenceManager()
Return the persistence manager this provider was constructed with. |
Object |
getResultObject()
Instantiate the current result object. |
void |
handleCheckedException(Exception e)
Throws a JDODataStoreException by default. |
void |
initialize(KodoStateManager sm,
JDOState state,
FetchConfiguration fetch)
Initializes the state manager. |
protected abstract void |
load(KodoStateManager sm,
FetchConfiguration fetch)
Load data from the current input record into the given state manager. |
abstract boolean |
next()
Implement this method to advance the input. |
void |
open()
Override if desired. |
void |
reset()
Override if desired. |
int |
size()
Override if desired. |
boolean |
supportsRandomAccess()
Override if desired. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected final KodoPersistenceManager pm
KodoPersistenceManager
that this result object
provider will load objects into.Constructor Detail |
public AbstractPCResultObjectProvider(KodoPersistenceManager pm)
pm
.Method Detail |
public KodoPersistenceManager getPersistenceManager()
public void initialize(KodoStateManager sm, JDOState state, FetchConfiguration fetch) throws Exception
PCResultObjectProvider
initialize
in interface PCResultObjectProvider
kodo.runtime.PCResultObjectProvider
StoreManager.initialize(kodo.runtime.KodoStateManager, kodo.runtime.JDOState, kodo.runtime.FetchConfiguration, java.lang.Object)
public Object getResultObject() throws Exception
ResultObjectProvider
ResultObjectProvider.next()
or ResultObjectProvider.absolute(int)
.getResultObject
in interface ResultObjectProvider
protected abstract Object getObjectId(ClassMetaData meta) throws Exception
protected abstract Class getPCClass() throws Exception
protected abstract void load(KodoStateManager sm, FetchConfiguration fetch) throws Exception
KodoStateManager.setVersion(java.lang.Object)
to set
the optimistic versioning information, if it has any.public void open() throws Exception
open
in interface ResultObjectProvider
public boolean supportsRandomAccess()
supportsRandomAccess
in interface ResultObjectProvider
ResultObjectProvider.supportsRandomAccess()
public abstract boolean next() throws Exception
next
in interface ResultObjectProvider
ResultObjectProvider#advance
public boolean absolute(int pos) throws Exception
absolute
in interface ResultObjectProvider
ResultObjectProvider.absolute(int)
public int size() throws Exception
Integer.MAX_VALUE
by default.size
in interface ResultObjectProvider
ResultObjectProvider.size()
public void reset() throws Exception
reset
in interface ResultObjectProvider
ResultObjectProvider.reset()
public void close() throws Exception
close
in interface ResultObjectProvider
ResultObjectProvider.close()
public void handleCheckedException(Exception e)
JDODataStoreException
by default.handleCheckedException
in interface ResultObjectProvider
|
SolarMetric Kodo JDO 3.3.5 generated on August 31 2005 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |