Package org.datanucleus.state
Class SavedState
- java.lang.Object
-
- org.datanucleus.state.SavedState
-
public class SavedState extends Object
Definition of the saved state of a Persistable object. Used during the rollback process.
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean[]
loadedFields
Loaded fields of the persistable instance when the instance is enlisted in the transaction.protected Persistable
pc
Copy (shallow) of the Persistable instance when the instance is enlisted in the transaction.protected byte
persistenceFlags
Flags of the persistable instance when the instance is enlisted in the transaction.
-
Constructor Summary
Constructors Constructor Description SavedState(Persistable pc, boolean[] loadedFields, byte persistenceFlags)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean[]
getLoadedFields()
Persistable
getPC()
byte
getPersistenceFlags()
void
setLoadedFields(boolean[] loadedFields)
void
setPersistenceFlags(byte persistenceFlags)
-
-
-
Field Detail
-
pc
protected Persistable pc
Copy (shallow) of the Persistable instance when the instance is enlisted in the transaction.
-
persistenceFlags
protected byte persistenceFlags
Flags of the persistable instance when the instance is enlisted in the transaction.
-
loadedFields
protected boolean[] loadedFields
Loaded fields of the persistable instance when the instance is enlisted in the transaction.
-
-
Constructor Detail
-
SavedState
public SavedState(Persistable pc, boolean[] loadedFields, byte persistenceFlags)
-
-
Method Detail
-
getPC
public Persistable getPC()
-
getPersistenceFlags
public byte getPersistenceFlags()
-
setPersistenceFlags
public void setPersistenceFlags(byte persistenceFlags)
-
getLoadedFields
public boolean[] getLoadedFields()
-
setLoadedFields
public void setLoadedFields(boolean[] loadedFields)
-
-