From 77c324246587aa62be9213e91bc11697df8be491 Mon Sep 17 00:00:00 2001 From: Pinaki Poddar Date: Thu, 10 Dec 2009 22:43:45 +0000 Subject: [PATCH] OPENJPA-1334: Assign default named cache to PCData git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@889449 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/openjpa/datacache/DataCachePCDataImpl.java | 4 ++++ .../src/main/java/org/apache/openjpa/kernel/PCDataImpl.java | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/DataCachePCDataImpl.java b/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/DataCachePCDataImpl.java index be80aa2db..69e830bf0 100644 --- a/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/DataCachePCDataImpl.java +++ b/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/DataCachePCDataImpl.java @@ -44,6 +44,10 @@ public class DataCachePCDataImpl private final long _exp; + public DataCachePCDataImpl(Object oid, ClassMetaData meta) { + this(oid, meta, DataCache.NAME_DEFAULT); + } + /** * Constructor. */ diff --git a/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PCDataImpl.java b/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PCDataImpl.java index 1036a9f4c..07d94cb06 100644 --- a/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PCDataImpl.java +++ b/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/PCDataImpl.java @@ -20,6 +20,7 @@ package org.apache.openjpa.kernel; import java.util.BitSet; +import org.apache.openjpa.datacache.DataCache; import org.apache.openjpa.meta.ClassMetaData; import org.apache.openjpa.meta.FieldMetaData; @@ -42,6 +43,10 @@ public class PCDataImpl private Object _impl = null; private Object[] _fieldImpl = null; + public PCDataImpl(Object oid, ClassMetaData meta) { + this(oid, meta, DataCache.NAME_DEFAULT); + } + /** * Constructor. */