Package org.datanucleus.state
Class SavedState
java.lang.Object
org.datanucleus.state.SavedState
Definition of the saved state of a Persistable object.
Used during the rollback process.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean[]
Loaded fields of the persistable instance when the instance is enlisted in the transaction.protected Persistable
Copy (shallow) of the Persistable instance when the instance is enlisted in the transaction.protected byte
Flags of the persistable instance when the instance is enlisted in the transaction. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean[]
getPC()
byte
void
setLoadedFields
(boolean[] loadedFields) void
setPersistenceFlags
(byte persistenceFlags)
-
Field Details
-
pc
Copy (shallow) of the Persistable instance when the instance is enlisted in the transaction. -
persistenceFlags
protected byte persistenceFlagsFlags of the persistable instance when the instance is enlisted in the transaction. -
loadedFields
protected boolean[] loadedFieldsLoaded fields of the persistable instance when the instance is enlisted in the transaction.
-
-
Constructor Details
-
SavedState
-
-
Method Details
-
getPC
-
getPersistenceFlags
public byte getPersistenceFlags() -
setPersistenceFlags
public void setPersistenceFlags(byte persistenceFlags) -
getLoadedFields
public boolean[] getLoadedFields() -
setLoadedFields
public void setLoadedFields(boolean[] loadedFields)
-