|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jdo.impl.fostore.AbstractFieldManager
org.apache.jdo.impl.fostore.FieldFetcher
Extend AbstractFieldManager overriding only fetchABCField methods
Field Summary | |
private java.lang.ClassLoader |
candidateLoader
ClassLoader to use for loading the class of the instance. |
private java.lang.Class |
cls
Class of instance being fetched. |
private int |
currNum
|
private FOStoreInput |
fin
Read values from here. |
(package private) static org.apache.commons.logging.Log |
logger
Logger |
private FOStoreModel |
model
|
private static I18NHelper |
msg
I18N support. |
private OID |
oid
|
private OID |
oldOID
|
private PersistenceManagerInternal |
pm
PM on whose behalf we read |
private boolean |
skip
|
private StateManagerInternal |
sm
|
Constructor Summary | |
(package private) |
FieldFetcher(FOStoreInput fin,
FOStoreModel model,
PersistenceManagerInternal pm,
java.lang.ClassLoader candidateLoader)
|
(package private) |
FieldFetcher(FOStoreInput fin,
FOStoreModel model,
PersistenceManagerInternal pm,
java.lang.ClassLoader candidateLoader,
boolean skip)
Called by AID when PK fields are written sequentially independent of their actual field numbers. |
Method Summary | |
private void |
fetch()
Fetches data from input, resulting in an PersistenceCapable object with state from the datastore. |
(package private) StateManagerInternal |
fetch(OID oid)
Invoke this if you have an OID for the object that you're fetching. |
(package private) void |
fetch(StateManagerInternal sm,
OID oid)
Invoke this if you have a StateManagerInternal for the object that you're fetching. |
boolean |
fetchBooleanField(int fieldNum)
|
byte |
fetchByteField(int fieldNum)
|
char |
fetchCharField(int fieldNum)
|
double |
fetchDoubleField(int fieldNum)
|
float |
fetchFloatField(int fieldNum)
|
int |
fetchIntField(int fieldNum)
|
long |
fetchLongField(int fieldNum)
|
java.lang.Object |
fetchObjectField(int fieldNum)
|
short |
fetchShortField(int fieldNum)
|
java.lang.String |
fetchStringField(int fieldNum)
|
(package private) void |
setPCClass(java.lang.Class pcClass)
|
private void |
skipFields(int fieldNum)
|
void |
storeBooleanField(int fieldNum,
boolean value)
Provides the means by which the value of a boolean field can be given by a StateManager to an object that needs the value. |
void |
storeByteField(int fieldNum,
byte value)
Provides the means by which the value of a byte field can be given by a StateManager to an object that needs the value. |
void |
storeCharField(int fieldNum,
char value)
Provides the means by which the value of a char field can be given by a StateManager to an object that needs the value. |
void |
storeDoubleField(int fieldNum,
double value)
Provides the means by which the value of a double field can be given by a StateManager to an object that needs the value. |
void |
storeFloatField(int fieldNum,
float value)
Provides the means by which the value of a field can be given by a StateManager to an object that needs the value. |
void |
storeIntField(int fieldNum,
int value)
Provides the means by which the value of a int field can be given by a StateManager to an object that needs the value. |
void |
storeLongField(int fieldNum,
long value)
Provides the means by which the value of a long field can be given by a StateManager to an object that needs the value. |
void |
storeObjectField(int fieldNum,
java.lang.Object value)
Provides the means by which the value of an Object field can be given by a StateManager to an object that needs the value. |
void |
storeShortField(int fieldNum,
short value)
Provides the means by which the value of a short field can be given by a StateManager to an object that needs the value. |
void |
storeStringField(int fieldNum,
java.lang.String value)
Provides the means by which the value of a String field can be given by a StateManager to an object that needs the value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private final FOStoreInput fin
private final PersistenceManagerInternal pm
private final FOStoreModel model
private final java.lang.ClassLoader candidateLoader
private java.lang.Class cls
private StateManagerInternal sm
private OID oid
private OID oldOID
private int currNum
private boolean skip
private static final I18NHelper msg
static final org.apache.commons.logging.Log logger
Constructor Detail |
FieldFetcher(FOStoreInput fin, FOStoreModel model, PersistenceManagerInternal pm, java.lang.ClassLoader candidateLoader)
FieldFetcher(FOStoreInput fin, FOStoreModel model, PersistenceManagerInternal pm, java.lang.ClassLoader candidateLoader, boolean skip)
Method Detail |
void fetch(StateManagerInternal sm, OID oid) throws java.io.IOException
java.io.IOException
StateManagerInternal fetch(OID oid) throws java.io.IOException
java.io.IOException
private void fetch() throws java.io.IOException
java.io.IOException
void setPCClass(java.lang.Class pcClass)
public boolean fetchBooleanField(int fieldNum)
fetchBooleanField
in interface FieldManager
fetchBooleanField
in class AbstractFieldManager
FieldManager.fetchBooleanField(int fieldNum)
public char fetchCharField(int fieldNum)
fetchCharField
in interface FieldManager
fetchCharField
in class AbstractFieldManager
FieldManager.fetchCharField(int fieldNum)
public byte fetchByteField(int fieldNum)
fetchByteField
in interface FieldManager
fetchByteField
in class AbstractFieldManager
FieldManager.fetchByteField(int fieldNum)
public short fetchShortField(int fieldNum)
fetchShortField
in interface FieldManager
fetchShortField
in class AbstractFieldManager
FieldManager.fetchShortField(int fieldNum)
public int fetchIntField(int fieldNum)
fetchIntField
in interface FieldManager
fetchIntField
in class AbstractFieldManager
FieldManager.fetchIntField(int fieldNum)
public long fetchLongField(int fieldNum)
fetchLongField
in interface FieldManager
fetchLongField
in class AbstractFieldManager
FieldManager.fetchLongField(int fieldNum)
public float fetchFloatField(int fieldNum)
fetchFloatField
in interface FieldManager
fetchFloatField
in class AbstractFieldManager
FieldManager.fetchFloatField(int fieldNum)
public double fetchDoubleField(int fieldNum)
fetchDoubleField
in interface FieldManager
fetchDoubleField
in class AbstractFieldManager
FieldManager.fetchDoubleField(int fieldNum)
public java.lang.String fetchStringField(int fieldNum)
fetchStringField
in interface FieldManager
fetchStringField
in class AbstractFieldManager
FieldManager.fetchStringField(int fieldNum)
public java.lang.Object fetchObjectField(int fieldNum)
fetchObjectField
in interface FieldManager
fetchObjectField
in class AbstractFieldManager
FieldManager.fetchObjectField(int fieldNum)
private void skipFields(int fieldNum)
public void storeBooleanField(int fieldNum, boolean value)
FieldManager
storeBooleanField
in interface FieldManager
fieldNum
- Field number of the field in the object whose value is
given.value
- Boolean that is the value of a particular field.FieldManager.storeBooleanField(int fieldNum,
boolean value)
public void storeCharField(int fieldNum, char value)
FieldManager
storeCharField
in interface FieldManager
fieldNum
- Field number of the field in the object whose value is
given.value
- Char that is the value of a particular field.FieldManager.storeCharField(int fieldNum,
char value)
public void storeByteField(int fieldNum, byte value)
FieldManager
storeByteField
in interface FieldManager
fieldNum
- Field number of the field in the object whose value is
given.value
- Byte that is the value of a particular field.FieldManager.storeByteField(int fieldNum,
byte value)
public void storeShortField(int fieldNum, short value)
FieldManager
storeShortField
in interface FieldManager
fieldNum
- Field number of the field in the object whose value is
given.value
- Short that is the value of a particular field.FieldManager.storeShortField(int fieldNum,
short value)
public void storeIntField(int fieldNum, int value)
FieldManager
storeIntField
in interface FieldManager
fieldNum
- Field number of the field in the object whose value is
given.value
- Int that is the value of a particular field.FieldManager.storeIntField(int fieldNum, int value)
public void storeLongField(int fieldNum, long value)
FieldManager
storeLongField
in interface FieldManager
fieldNum
- Field number of the field in the object whose value is
given.value
- Long that is the value of a particular field.FieldManager.storeLongField(int fieldNum,
long value)
public void storeFloatField(int fieldNum, float value)
FieldManager
storeFloatField
in interface FieldManager
fieldNum
- Field number of the field in the object whose value is
given.value
- that is the value of a particular field.FieldManager.storeFloatField(int fieldNum,
float value)
public void storeDoubleField(int fieldNum, double value)
FieldManager
storeDoubleField
in interface FieldManager
fieldNum
- Field number of the field in the object whose value is
given.value
- Double that is the value of a particular field.FieldManager.storeDoubleField(int fieldNum,
double value)
public void storeStringField(int fieldNum, java.lang.String value)
FieldManager
storeStringField
in interface FieldManager
fieldNum
- Field number of the field in the object whose value is
given.value
- String that is the value of a particular field.FieldManager.storeStringField(int fieldNum,
String value)
public void storeObjectField(int fieldNum, java.lang.Object value)
FieldManager
storeObjectField
in interface FieldManager
fieldNum
- Field number of the field in the object whose value is
given.value
- Object that is the value of a particular field.FieldManager.storeObjectField(int fieldNum,
Object value)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |