OPENJPA-2137: Make some StateManagerImpl fields protected to allow for greater extensibility.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1292044 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Richard G. Curtis 2012-02-21 21:39:49 +00:00
parent 6599b7b403
commit 1f3f320af3
1 changed files with 3 additions and 4 deletions

View File

@ -115,7 +115,7 @@ public class StateManagerImpl
// information about the instance // information about the instance
private transient PersistenceCapable _pc = null; private transient PersistenceCapable _pc = null;
private transient ClassMetaData _meta = null; private transient ClassMetaData _meta = null;
private BitSet _loaded = null; protected BitSet _loaded = null;
private BitSet _dirty = null; private BitSet _dirty = null;
private BitSet _flush = null; private BitSet _flush = null;
private int _flags = 0; private int _flags = 0;
@ -130,7 +130,7 @@ public class StateManagerImpl
// the managing persistence manager and lifecycle state // the managing persistence manager and lifecycle state
private transient BrokerImpl _broker; // this is serialized specially private transient BrokerImpl _broker; // this is serialized specially
private PCState _state = PCState.TRANSIENT; protected PCState _state = PCState.TRANSIENT;
// the current and last loaded version indicators, and the lock object // the current and last loaded version indicators, and the lock object
private Object _version = null; private Object _version = null;
@ -167,8 +167,7 @@ public class StateManagerImpl
/** /**
* Constructor; supply id, type metadata, and owning persistence manager. * Constructor; supply id, type metadata, and owning persistence manager.
*/ */
protected StateManagerImpl(Object id, ClassMetaData meta, protected StateManagerImpl(Object id, ClassMetaData meta, BrokerImpl broker) {
BrokerImpl broker) {
_id = id; _id = id;
_meta = meta; _meta = meta;
_broker = broker; _broker = broker;