@NotStorableClass public class ObjectInputForEnum extends AbstractObjectInputGenericNotStatic
FAILED_CREATE_OBJECTclassInfoFactory, helperBinaryConversion, helperReflect, logger, objectIOManager, proxyManager2| Constructor and Description |
|---|
ObjectInputForEnum(IObjectIOManagerForObjectIO objectIOManager,
ClassInfoFactory classInfoFactory,
IProxyManagerForObjectIO proxyManager2,
HelperBinaryConversion helperBinaryConversion) |
| Modifier and Type | Method and Description |
|---|---|
protected ObjectAndPersistInfo |
createObjectImpl(byte[] binary,
int offset,
ClassInfo classInfo,
StorageInfo storageInfo,
DataRecordIdentifier dataRecordIdentifier)
the object creation, instance of object class ( may be a proxy )
|
protected FieldInfo[] |
getFieldToSetInfoImpl(ClassInfo classInfo) |
DataRecordIdentifier[] |
getReferencedList(byte[] binary,
int offset)
get the referenced object's data identifier from binary data containing
object state
|
protected void |
initializeObject(ObjectAndPersistInfo object,
byte[] binary,
int offset)
for direct loading ( no lazy mode ), enum initialization is enum state
setting
|
boolean |
isImmediate() |
boolean |
isLazy() |
protected List<ObjectAndPersistInfo> |
readObjectStoredState(ObjectAndPersistInfo objectAndPersistInfo,
byte[] binary,
int offset) |
void |
reInitialize(ObjectAndPersistInfo enumAndPersistInfo)
because enum instance are same across different data access session, this
implies to unload and associate to new data access session
|
protected void |
setObjectStateFromFieldValueListImpl(ObjectAndPersistInfo objectAndPersistInfo,
ValuedFieldList valuedFieldList)
do not set original value of object in objectAndPersistInfo
|
protected void |
setObjectStateImpl(ObjectAndPersistInfo objectAndPersistInfo,
byte[] binary,
int offset) |
void |
unsetObjectState(ObjectAndPersistInfo objectAndItsClassInfo) |
checkSignatureImpl, setObjectStateFromFieldValueList, setObjectStateFromFieldValueListExternalizable, setObjectStateFromFieldValueListSerializableaddSonReadObject, createObject, getField, readObjectStoredStateGeneric, setObjectAllDeclaredFieldsValueToNull, setObjectState, setObjectStateExternalizable, setObjectStateExternalizable, setObjectStateFromFieldValueListGeneric, setObjectStateGeneric, setObjectStateGenericNoLengthCheck, setObjectStateSerializable, setObjectStateSerializablecheckSignature, checkStaticFieldSignature, getObjectIOManagerpublic ObjectInputForEnum(IObjectIOManagerForObjectIO objectIOManager, ClassInfoFactory classInfoFactory, IProxyManagerForObjectIO proxyManager2, HelperBinaryConversion helperBinaryConversion)
public boolean isImmediate()
public boolean isLazy()
protected final ObjectAndPersistInfo createObjectImpl(byte[] binary, int offset, ClassInfo classInfo, StorageInfo storageInfo, DataRecordIdentifier dataRecordIdentifier) throws ObjectIOException, ObjectIODataRecordNotFoundException, ObjectIOInvalidClassException, ObjectIODataCorruptedException
AbstractObjectInputGenericcreateObjectImpl in class AbstractObjectInputGenericoffset - start of body data, it is the data record header sizeclassInfo - the object classObjectIOExceptionObjectIODataRecordNotFoundExceptionObjectIOInvalidClassExceptionObjectIODataCorruptedExceptionprotected FieldInfo[] getFieldToSetInfoImpl(ClassInfo classInfo) throws ObjectIOException
getFieldToSetInfoImpl in class AbstractObjectInputGenericObjectIOExceptionprotected void initializeObject(ObjectAndPersistInfo object, byte[] binary, int offset) throws ObjectIOException, ObjectIODataRecordNotFoundException, ObjectIOInvalidClassException, ObjectIOClassNotFoundException, ObjectIODataCorruptedException, ObjectIONotSerializableException
initializeObject in class AbstractObjectInputGenericobject - binary - offset - checkSignature - ObjectIODataRecordNotFoundExceptionObjectIOInvalidClassExceptionObjectIODataCorruptedExceptionObjectIOClassNotFoundExceptionObjectIONotSerializableExceptionFileCorruptedExceptionObjectIOException - initialization errorprotected List<ObjectAndPersistInfo> readObjectStoredState(ObjectAndPersistInfo objectAndPersistInfo, byte[] binary, int offset) throws ObjectIOException, ObjectIODataRecordNotFoundException, ObjectIOClassNotFoundException, ObjectIOInvalidClassException, ObjectIODataCorruptedException, ObjectIONotSerializableException
readObjectStoredState in class AbstractObjectInputGenericobjectAndPersistInfo - where store read statebinary - body dataoffset - begin of body data, it is the data record header sizeObjectIOExceptionObjectIODataRecordNotFoundExceptionObjectIOClassNotFoundExceptionObjectIOInvalidClassExceptionObjectIODataCorruptedExceptionObjectIONotSerializableExceptionprotected void setObjectStateImpl(ObjectAndPersistInfo objectAndPersistInfo, byte[] binary, int offset) throws ObjectIOException, ObjectIODataRecordNotFoundException, ObjectIOInvalidClassException, ObjectIOClassNotFoundException, ObjectIODataCorruptedException, ObjectIONotSerializableException
protected void setObjectStateFromFieldValueListImpl(ObjectAndPersistInfo objectAndPersistInfo, ValuedFieldList valuedFieldList) throws ObjectIOException, ObjectIOInvalidClassException
AbstractObjectInputGenericsetObjectStateFromFieldValueListImpl in class AbstractObjectInputGenericObjectIOExceptionObjectIOInvalidClassExceptionpublic void unsetObjectState(ObjectAndPersistInfo objectAndItsClassInfo) throws ObjectIOException, ObjectIOInvalidClassException
public final DataRecordIdentifier[] getReferencedList(byte[] binary, int offset) throws ObjectIOException
IObjectInputgetReferencedList in interface IObjectInputgetReferencedList in class AbstractObjectInputGenericbinary - binary data of data record associated to objectoffset - start of field/element data in binaryObjectIOExceptionpublic void reInitialize(ObjectAndPersistInfo enumAndPersistInfo) throws ObjectIOException, ObjectIODataCorruptedException
enumAndPersistInfo - ObjectIOExceptionObjectIODataCorruptedExceptionCopyright © 2007-2012 Luc Peuvrier. All Rights Reserved.