From 4fda4e948461aa05d836fa25e3f2a2698f46e6da Mon Sep 17 00:00:00 2001 From: Pinaki Poddar Date: Wed, 2 Jan 2008 05:12:25 +0000 Subject: [PATCH] Allow access to underlying DataSource for extensibility git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@608008 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/openjpa/jdbc/kernel/JDBCStoreManager.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCStoreManager.java b/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCStoreManager.java index e78272800..5fd951b84 100644 --- a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCStoreManager.java +++ b/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCStoreManager.java @@ -215,6 +215,10 @@ public class JDBCStoreManager connect(true); return _conn; } + + protected DataSource getDataSource() { + return _ds; + } public boolean exists(OpenJPAStateManager sm, Object context) { // add where conditions on base class to avoid joins if subclass