public interface IObjectInput
| Modifier and Type | Method and Description |
|---|---|
ObjectAndPersistInfo |
createObject(DataRecordIdentifier dataRecordIdentifier,
byte[] binary,
ClassInfo classInfo,
StorageInfo storageInfo)
creation of a not existing object
set data record associated to created object as soon as it is created |
DataRecordIdentifier[] |
getReferencedList(byte[] binary,
int beginOffset)
get the referenced object's data identifier from binary data containing
object state
|
boolean |
isImmediate() |
boolean |
isLazy() |
void |
setObjectState(ObjectAndPersistInfo objectAndPersistInfo,
byte[] binary,
int offset)
set state of existing object by reading in the binary data
object state is after the data header ( number of link and class name identifier) |
void |
unsetObjectState(ObjectAndPersistInfo objectAndItsClassInfo) |
boolean isLazy()
boolean isImmediate()
ObjectAndPersistInfo createObject(DataRecordIdentifier dataRecordIdentifier, byte[] binary, ClassInfo classInfo, StorageInfo storageInfo) throws ObjectIOException, ObjectIODataRecordNotFoundException, ObjectIOClassNotFoundException, ObjectIOInvalidClassException, ObjectIODataCorruptedException, ObjectIONotSerializableException
dataRecordIdentifier - the data record identifier for data record that contains
object statebinary - data of data record for objectclassInfo - the object class information.the class can not exist.the
object class can be different than object.getClass()storageInfo - ObjectIODataRecordNotFoundException - data record for object not foundObjectIOException - object creation errorObjectIODataCorruptedExceptionObjectIOInvalidClassExceptionObjectIOClassNotFoundExceptionObjectIONotSerializableExceptionvoid setObjectState(ObjectAndPersistInfo objectAndPersistInfo, byte[] binary, int offset) throws ObjectIOException, ObjectIODataRecordNotFoundException, ObjectIOInvalidClassException, ObjectIOClassNotFoundException, ObjectIODataCorruptedException, ObjectIONotSerializableException
objectAndPersistInfo - object to setbinary - binary data containing the object stateoffset - begin of body data in record, it is header data sizeObjectIODataRecordNotFoundException - data record not found in fileObjectIOException - reading errorObjectIOInvalidClassExceptionObjectIODataCorruptedExceptionObjectIOClassNotFoundExceptionObjectIONotSerializableExceptionvoid unsetObjectState(ObjectAndPersistInfo objectAndItsClassInfo) throws ObjectIOException, ObjectIOInvalidClassException
objectAndItsClassInfo - ObjectIOExceptionObjectIOInvalidClassExceptionDataRecordIdentifier[] getReferencedList(byte[] binary, int beginOffset) throws ObjectIOException
binary - binary data of data record associated to objectbeginOffset - start of field/element data in binaryObjectIOExceptionCopyright © 2007-2012 Luc Peuvrier. All Rights Reserved.