|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jpox.store.fieldmanager.AbstractFieldManager
org.jpox.state.AbstractFetchFieldManager
public abstract class AbstractFetchFieldManager
Base field manager for handling the fetching of fields. Supports a FetchPlan to navigate down an object graph. This is extended by specific managers for the detachment and makeTransient processes.
| Nested Class Summary | |
|---|---|
static class |
AbstractFetchFieldManager.EndOfFetchPlanGraphException
Exception thrown when we reach the end of the fetch depth in a branch of the object graph |
| Field Summary | |
|---|---|
protected FetchPlanImpl.FetchPlanForClass |
fpClass
Fetch Plan for the class of this object. |
protected boolean[] |
secondClassMutableFields
Second class mutable fields for the class of this object. |
protected StateManager |
sm
StateManager of the instance being fetched (detached or made transient). |
protected FetchPlanState |
state
State for the fetch process. |
| Constructor Summary | |
|---|---|
AbstractFetchFieldManager(StateManager sm,
boolean[] secondClassMutableFields,
FetchPlanImpl.FetchPlanForClass fpClass,
FetchPlanState state)
Constructor for a field manager for fetch plan processing. |
|
| Method Summary | |
|---|---|
protected abstract java.lang.Object |
endOfGraphOperation(int fieldNumber)
Method called when an end of graph is encountered. |
boolean |
fetchBooleanField(int fieldNumber)
|
byte |
fetchByteField(int fieldNumber)
|
char |
fetchCharField(int fieldNumber)
|
double |
fetchDoubleField(int fieldNumber)
|
float |
fetchFloatField(int fieldNumber)
|
int |
fetchIntField(int fieldNumber)
|
long |
fetchLongField(int fieldNumber)
|
java.lang.Object |
fetchObjectField(int fieldNumber)
Method to fetch an object field whether it is SCO collection, PC, or whatever. |
short |
fetchShortField(int fieldNumber)
|
java.lang.String |
fetchStringField(int fieldNumber)
|
protected abstract java.lang.Object |
internalFetchObjectField(int fieldNumber)
Method to fetch an object field whether it is SCO collection, PC, or whatever. |
| Methods inherited from class org.jpox.store.fieldmanager.AbstractFieldManager |
|---|
storeBooleanField, storeByteField, storeCharField, storeDoubleField, storeFloatField, storeIntField, storeLongField, storeObjectField, storeShortField, storeStringField |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final StateManager sm
protected final boolean[] secondClassMutableFields
protected FetchPlanImpl.FetchPlanForClass fpClass
protected final FetchPlanState state
| Constructor Detail |
|---|
public AbstractFetchFieldManager(StateManager sm,
boolean[] secondClassMutableFields,
FetchPlanImpl.FetchPlanForClass fpClass,
FetchPlanState state)
sm - the StateManager of the instance being processed.secondClassMutableFields - fpClass - Fetch Plan for the class of this instancestate - Object containing the state of the fetch process| Method Detail |
|---|
public java.lang.Object fetchObjectField(int fieldNumber)
throws AbstractFetchFieldManager.EndOfFetchPlanGraphException
fetchObjectField in interface javax.jdo.spi.PersistenceCapable.ObjectIdFieldSupplierfetchObjectField in class AbstractFieldManagerfieldNumber - Number of the field
AbstractFetchFieldManager.EndOfFetchPlanGraphExceptionprotected abstract java.lang.Object internalFetchObjectField(int fieldNumber)
fieldNumber - Number of the field
protected abstract java.lang.Object endOfGraphOperation(int fieldNumber)
fieldNumber - Number of the field
public boolean fetchBooleanField(int fieldNumber)
fetchBooleanField in interface javax.jdo.spi.PersistenceCapable.ObjectIdFieldSupplierfetchBooleanField in class AbstractFieldManagerpublic byte fetchByteField(int fieldNumber)
fetchByteField in interface javax.jdo.spi.PersistenceCapable.ObjectIdFieldSupplierfetchByteField in class AbstractFieldManagerpublic char fetchCharField(int fieldNumber)
fetchCharField in interface javax.jdo.spi.PersistenceCapable.ObjectIdFieldSupplierfetchCharField in class AbstractFieldManagerpublic double fetchDoubleField(int fieldNumber)
fetchDoubleField in interface javax.jdo.spi.PersistenceCapable.ObjectIdFieldSupplierfetchDoubleField in class AbstractFieldManagerpublic float fetchFloatField(int fieldNumber)
fetchFloatField in interface javax.jdo.spi.PersistenceCapable.ObjectIdFieldSupplierfetchFloatField in class AbstractFieldManagerpublic int fetchIntField(int fieldNumber)
fetchIntField in interface javax.jdo.spi.PersistenceCapable.ObjectIdFieldSupplierfetchIntField in class AbstractFieldManagerpublic long fetchLongField(int fieldNumber)
fetchLongField in interface javax.jdo.spi.PersistenceCapable.ObjectIdFieldSupplierfetchLongField in class AbstractFieldManagerpublic short fetchShortField(int fieldNumber)
fetchShortField in interface javax.jdo.spi.PersistenceCapable.ObjectIdFieldSupplierfetchShortField in class AbstractFieldManagerpublic java.lang.String fetchStringField(int fieldNumber)
fetchStringField in interface javax.jdo.spi.PersistenceCapable.ObjectIdFieldSupplierfetchStringField in class AbstractFieldManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||