public abstract class AbstractFetchDepthFieldManager extends AbstractFieldManager
Modifier and Type | Class and Description |
---|---|
static class |
AbstractFetchDepthFieldManager.EndOfFetchPlanGraphException
Exception thrown when we reach the end of the fetch depth in a branch of the object graph
|
Modifier and Type | Field and Description |
---|---|
protected FetchPlanForClass |
fpClass
Fetch Plan for the class of this object.
|
protected ObjectProvider |
op
ObjectProvider of the instance being fetched (detached or made transient).
|
protected boolean[] |
secondClassMutableFields
Second class mutable fields for the class of this object.
|
protected FetchPlanState |
state
State for the fetch process.
|
Constructor and Description |
---|
AbstractFetchDepthFieldManager(ObjectProvider op,
boolean[] secondClassMutableFields,
FetchPlanForClass fpClass,
FetchPlanState state)
Constructor for a field manager for fetch plan processing.
|
Modifier and Type | Method and Description |
---|---|
protected abstract Object |
endOfGraphOperation(int fieldNumber)
Method called when an end of graph is encountered.
|
boolean |
fetchBooleanField(int fieldNumber)
Fetch a boolean field at the specified field number, returning it.
|
byte |
fetchByteField(int fieldNumber)
Fetch a byte field at the specified field number, returning it.
|
char |
fetchCharField(int fieldNumber)
Fetch a char field at the specified field number, returning it.
|
double |
fetchDoubleField(int fieldNumber)
Fetch a double field at the specified field number, returning it.
|
float |
fetchFloatField(int fieldNumber)
Fetch a float field at the specified field number, returning it.
|
int |
fetchIntField(int fieldNumber)
Fetch an int field at the specified field number, returning it.
|
long |
fetchLongField(int fieldNumber)
Fetch a long field at the specified field number, returning it.
|
Object |
fetchObjectField(int fieldNumber)
Method to fetch an object field whether it is SCO collection, PC, or whatever.
|
short |
fetchShortField(int fieldNumber)
Fetch a short field at the specified field number, returning it.
|
String |
fetchStringField(int fieldNumber)
Fetch a string field at the specified field number, returning it.
|
protected abstract Object |
internalFetchObjectField(int fieldNumber)
Method to fetch an object field whether it is SCO collection, PC, or whatever.
|
storeBooleanField, storeByteField, storeCharField, storeDoubleField, storeFloatField, storeIntField, storeLongField, storeObjectField, storeShortField, storeStringField
protected final ObjectProvider op
protected final boolean[] secondClassMutableFields
protected final FetchPlanForClass fpClass
protected final FetchPlanState state
public AbstractFetchDepthFieldManager(ObjectProvider op, boolean[] secondClassMutableFields, FetchPlanForClass fpClass, FetchPlanState state)
op
- the ObjectProvider of the instance being processed.secondClassMutableFields
- SCO field flagsfpClass
- Fetch Plan for the class of this instancestate
- Object containing the state of the fetch processpublic Object fetchObjectField(int fieldNumber) throws AbstractFetchDepthFieldManager.EndOfFetchPlanGraphException
fetchObjectField
in interface FieldSupplier
fetchObjectField
in class AbstractFieldManager
fieldNumber
- Number of the fieldAbstractFetchDepthFieldManager.EndOfFetchPlanGraphException
protected abstract Object internalFetchObjectField(int fieldNumber)
fieldNumber
- Number of the fieldprotected abstract Object endOfGraphOperation(int fieldNumber)
fieldNumber
- Number of the fieldpublic boolean fetchBooleanField(int fieldNumber)
FieldSupplier
fetchBooleanField
in interface FieldSupplier
fetchBooleanField
in class AbstractFieldManager
fieldNumber
- Number of the fieldpublic byte fetchByteField(int fieldNumber)
FieldSupplier
fetchByteField
in interface FieldSupplier
fetchByteField
in class AbstractFieldManager
fieldNumber
- Number of the fieldpublic char fetchCharField(int fieldNumber)
FieldSupplier
fetchCharField
in interface FieldSupplier
fetchCharField
in class AbstractFieldManager
fieldNumber
- Number of the fieldpublic double fetchDoubleField(int fieldNumber)
FieldSupplier
fetchDoubleField
in interface FieldSupplier
fetchDoubleField
in class AbstractFieldManager
fieldNumber
- Number of the fieldpublic float fetchFloatField(int fieldNumber)
FieldSupplier
fetchFloatField
in interface FieldSupplier
fetchFloatField
in class AbstractFieldManager
fieldNumber
- Number of the fieldpublic int fetchIntField(int fieldNumber)
FieldSupplier
fetchIntField
in interface FieldSupplier
fetchIntField
in class AbstractFieldManager
fieldNumber
- Number of the fieldpublic long fetchLongField(int fieldNumber)
FieldSupplier
fetchLongField
in interface FieldSupplier
fetchLongField
in class AbstractFieldManager
fieldNumber
- Number of the fieldpublic short fetchShortField(int fieldNumber)
FieldSupplier
fetchShortField
in interface FieldSupplier
fetchShortField
in class AbstractFieldManager
fieldNumber
- Number of the fieldpublic String fetchStringField(int fieldNumber)
FieldSupplier
fetchStringField
in interface FieldSupplier
fetchStringField
in class AbstractFieldManager
fieldNumber
- Number of the fieldCopyright © 2019. All rights reserved.