@NotStorableClass public class ObjectAndPersistInfo extends ObjectAndItsClassInfo
| Modifier and Type | Field and Description |
|---|---|
boolean |
checkAssertNotNull |
ObjectClassInfoAndDeclared[] |
currentValue
son object of object current value
|
DataRecordIdentifier |
dataRecordIdentifier
dataRecordIdentifier of record in file associated to the object, may be
null if not defined
|
FieldInfo[] |
fieldToSetInfo |
boolean |
newObject
true if new object ( not in file )
|
ObjectAndPersistInfo |
next |
ObjectAndPersistInfo |
nextReferenced |
static ObjectAndPersistInfo |
NULL |
static ObjectAndPersistInfo |
NULL_DEFINED |
ObjectClassInfoAndDeclared[] |
originalValue
original value of object field or array object elements original value :
these read from file or write to file
|
ObjectAndPersistInfo |
previous |
ObjectAndPersistInfo |
previousReferenced |
List<ReferenceChange> |
referenceChangeList
reference from object to object change list computed when check if values
(state) change
|
byte[] |
serializedForm
serialized form of object
|
ObjectClassInfoAndDeclared[] |
sonWroteObjectArray
wrote son object of object ( serialization or generic )
|
object, objectClassInfo, valueDefinedlogger| Constructor and Description |
|---|
ObjectAndPersistInfo(Object object,
boolean proxyIntanceOrEnhanced,
ClassInfo objectClassInfo)
storage info not set
|
ObjectAndPersistInfo(Object object,
boolean proxyIntanceOrEnhanced,
ClassInfo objectClassInfo,
Deque<ClassReplacementDef> replacementDefList,
int joafipReleaseId,
int dataModelIdentifier) |
ObjectAndPersistInfo(Object object,
boolean proxyIntanceOrEnhanced,
ClassInfo objectClassInfo,
StorageInfo storageInfo)
storage info set because reading not exiting class from storage
|
classDoesNotExist, classExists, clear, getClassName, getInstanceFactoryFields, getObjectClass, getObjectClassInfo, isArrayType, isBasicOrPrimitiveType, isBasicType, isExternalizable, isMarkedStorable, isNotStorable, isNullMarker, isPrimitiveType, isSerializable, isStaticPersistInfo, isSubstitution, setIdentityHashCode, setObjectassertIdentityHashCode, equals, getIdentityHashCode, hashCodepublic static final ObjectAndPersistInfo NULL
public static final ObjectAndPersistInfo NULL_DEFINED
public boolean newObject
public DataRecordIdentifier dataRecordIdentifier
public ObjectClassInfoAndDeclared[] originalValue
public ObjectClassInfoAndDeclared[] currentValue
public ObjectClassInfoAndDeclared[] sonWroteObjectArray
public byte[] serializedForm
public List<ReferenceChange> referenceChangeList
public FieldInfo[] fieldToSetInfo
public ObjectAndPersistInfo previous
public ObjectAndPersistInfo next
public ObjectAndPersistInfo previousReferenced
public ObjectAndPersistInfo nextReferenced
public boolean checkAssertNotNull
public ObjectAndPersistInfo(Object object, boolean proxyIntanceOrEnhanced, ClassInfo objectClassInfo) throws ObjectIOException, ClassInfoException
object - proxyIntanceOrEnhanced - objectClassInfo - ObjectIOExceptionClassInfoExceptionpublic ObjectAndPersistInfo(Object object, boolean proxyIntanceOrEnhanced, ClassInfo objectClassInfo, StorageInfo storageInfo) throws ClassInfoException, ObjectIOException
object - objectClassInfo - storageInfo - ClassInfoExceptionObjectIOExceptionpublic ObjectAndPersistInfo(Object object, boolean proxyIntanceOrEnhanced, ClassInfo objectClassInfo, Deque<ClassReplacementDef> replacementDefList, int joafipReleaseId, int dataModelIdentifier) throws ClassInfoException
ClassInfoExceptionpublic boolean isProxyIntanceOrEnhanced()
public void setStorageInfo(StorageInfo storageInfo) throws ObjectIOException
ObjectIOExceptionpublic void setReplacementDefList(Deque<ClassReplacementDef> replacementDefList)
public int getHeaderDataSize()
throws ObjectIOException
ObjectIOExceptionpublic void setHeaderDataSize(int headerDataSize)
throws ObjectIOException
ObjectIOExceptionpublic Deque<ClassReplacementDef> getReplacementDefList()
public boolean hasReplacementDef()
public void setNewObject(boolean newObject)
newObject - true if new object (not in file or created)public void setDataRecordIdentifier(DataRecordIdentifier dataRecordIdentifier) throws ObjectIOException
dataRecordIdentifier - dataRecordIdentifier of record in file associated to the
objectObjectIOException - try to change object associated data record
dataRecordIdentifierpublic void setSubstituteObjectAndPersistInfo(ObjectAndPersistInfo substituteObjectAndPersistInfo) throws ObjectIOException
substituteObjectAndPersistInfo - the substitute objectObjectIOExceptionpublic ObjectAndPersistInfo getSubstituteObjectAndPersistInfo()
public ObjectAndPersistInfo getSubstitutionOfObject()
public boolean isSubstituted()
public boolean isSubsitute()
public void clearSonReadObject()
public void addSonReadObject(ObjectClassInfoAndDeclared objectClassInfoAndDeclared)
public boolean addSonReadObjectByInputStream(ObjectClassInfoAndDeclared objectClassInfoAndDeclared, boolean unshared)
objectClassInfoAndDeclared - son object read, son of this objectunshared - true if unshared objectpublic void clearReadObjectByInputStream()
public ObjectClassInfoAndDeclared[] getSonReadObject()
public void clearWriteInformation()
object - ObjectIOExceptionpublic void unsetObjectState()
public boolean weakReferenceOnObject(ReferenceQueue<? super Object> queue)
queue - protected Object getObjectForEquals()
getObjectForEquals in class ObjectAndItsClassInfopublic boolean referenceLost()
public Object getObject()
getObject in class ObjectAndItsClassInfopublic boolean unWeakReferenceOnObject()
public boolean isWeak()
public boolean isNotWeak()
public boolean hasNoReferences()
public boolean hasReferences()
public int getJoafipReleaseId()
public void setJoafipReleaseId(int joafipReleaseId)
public int getDataModelIdentifier()
public void setDataModelIdentifier(int dataModelIdentifier)
public void setProxyCallBack(IProxyCallBackToImplement proxyCallBack)
public IProxyCallBackToImplement getProxyCallBackOfObject()
public void setLoading(boolean loading)
public boolean isLoaded()
throws ObjectIOException
ObjectIOExceptionpublic boolean isLoadedOrNotAProxy()
throws ObjectIOException
ObjectIOExceptionpublic void unloadAfterSave()
throws ObjectIOException,
ObjectIOInvalidClassException
public String toString()
toString in class ObjectAndItsClassInfopublic void setObjectStateMap(ObjectStateMap objectStateMap)
public ObjectStateMap getObjectStateMap()
Copyright © 2007-2012 Luc Peuvrier. All Rights Reserved.