@NotStorableClass public class ObjectInputForEnum extends AbstractObjectInputGenericNotStatic
FAILED_CREATE_OBJECT
classInfoFactory, 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, setObjectStateFromFieldValueListSerializable
addSonReadObject, createObject, getField, readObjectStoredStateGeneric, setObjectAllDeclaredFieldsValueToNull, setObjectState, setObjectStateExternalizable, setObjectStateExternalizable, setObjectStateFromFieldValueListGeneric, setObjectStateGeneric, setObjectStateGenericNoLengthCheck, setObjectStateSerializable, setObjectStateSerializable
checkSignature, checkStaticFieldSignature, getObjectIOManager
public 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
AbstractObjectInputGeneric
createObjectImpl
in class AbstractObjectInputGeneric
offset
- start of body data, it is the data record header sizeclassInfo
- the object classObjectIOException
ObjectIODataRecordNotFoundException
ObjectIOInvalidClassException
ObjectIODataCorruptedException
protected FieldInfo[] getFieldToSetInfoImpl(ClassInfo classInfo) throws ObjectIOException
getFieldToSetInfoImpl
in class AbstractObjectInputGeneric
ObjectIOException
protected void initializeObject(ObjectAndPersistInfo object, byte[] binary, int offset) throws ObjectIOException, ObjectIODataRecordNotFoundException, ObjectIOInvalidClassException, ObjectIOClassNotFoundException, ObjectIODataCorruptedException, ObjectIONotSerializableException
initializeObject
in class AbstractObjectInputGeneric
object
- binary
- offset
- checkSignature
- ObjectIODataRecordNotFoundException
ObjectIOInvalidClassException
ObjectIODataCorruptedException
ObjectIOClassNotFoundException
ObjectIONotSerializableException
FileCorruptedException
ObjectIOException
- initialization errorprotected List<ObjectAndPersistInfo> readObjectStoredState(ObjectAndPersistInfo objectAndPersistInfo, byte[] binary, int offset) throws ObjectIOException, ObjectIODataRecordNotFoundException, ObjectIOClassNotFoundException, ObjectIOInvalidClassException, ObjectIODataCorruptedException, ObjectIONotSerializableException
readObjectStoredState
in class AbstractObjectInputGeneric
objectAndPersistInfo
- where store read statebinary
- body dataoffset
- begin of body data, it is the data record header sizeObjectIOException
ObjectIODataRecordNotFoundException
ObjectIOClassNotFoundException
ObjectIOInvalidClassException
ObjectIODataCorruptedException
ObjectIONotSerializableException
protected 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
AbstractObjectInputGeneric
setObjectStateFromFieldValueListImpl
in class AbstractObjectInputGeneric
ObjectIOException
ObjectIOInvalidClassException
public void unsetObjectState(ObjectAndPersistInfo objectAndItsClassInfo) throws ObjectIOException, ObjectIOInvalidClassException
public final DataRecordIdentifier[] getReferencedList(byte[] binary, int offset) throws ObjectIOException
IObjectInput
getReferencedList
in interface IObjectInput
getReferencedList
in class AbstractObjectInputGeneric
binary
- binary data of data record associated to objectoffset
- start of field/element data in binaryObjectIOException
public void reInitialize(ObjectAndPersistInfo enumAndPersistInfo) throws ObjectIOException, ObjectIODataCorruptedException
enumAndPersistInfo
- ObjectIOException
ObjectIODataCorruptedException
Copyright © 2007-2012 Luc Peuvrier. All Rights Reserved.