From 1f3f320af3633b990f671eee525abe97d1f83b56 Mon Sep 17 00:00:00 2001 From: "Richard G. Curtis" Date: Tue, 21 Feb 2012 21:39:49 +0000 Subject: [PATCH] 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 --- .../java/org/apache/openjpa/kernel/StateManagerImpl.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/StateManagerImpl.java b/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/StateManagerImpl.java index 51902cef2..84e6c33b1 100644 --- a/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/StateManagerImpl.java +++ b/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/StateManagerImpl.java @@ -115,7 +115,7 @@ public class StateManagerImpl // information about the instance private transient PersistenceCapable _pc = null; private transient ClassMetaData _meta = null; - private BitSet _loaded = null; + protected BitSet _loaded = null; private BitSet _dirty = null; private BitSet _flush = null; private int _flags = 0; @@ -130,7 +130,7 @@ public class StateManagerImpl // the managing persistence manager and lifecycle state 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 private Object _version = null; @@ -167,8 +167,7 @@ public class StateManagerImpl /** * Constructor; supply id, type metadata, and owning persistence manager. */ - protected StateManagerImpl(Object id, ClassMetaData meta, - BrokerImpl broker) { + protected StateManagerImpl(Object id, ClassMetaData meta, BrokerImpl broker) { _id = id; _meta = meta; _broker = broker;