From 2e2a6f09f78b826ab37f18e804a4617d6769e472 Mon Sep 17 00:00:00 2001 From: mdb Date: Sat, 11 Aug 2007 00:48:59 +0000 Subject: [PATCH] Added getCacheAdapter(). git-svn-id: https://samskivert.googlecode.com/svn/trunk@2165 6335cc39-0255-0410-8fd6-9bcaacd3b74c --- .../com/samskivert/jdbc/depot/PersistenceContext.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/java/com/samskivert/jdbc/depot/PersistenceContext.java b/src/java/com/samskivert/jdbc/depot/PersistenceContext.java index 7cda1ae1..17e71727 100644 --- a/src/java/com/samskivert/jdbc/depot/PersistenceContext.java +++ b/src/java/com/samskivert/jdbc/depot/PersistenceContext.java @@ -140,6 +140,14 @@ public class PersistenceContext _cache = adapter; } + /** + * Returns the cache adapter used by this context or null if caching is disabled. + */ + public CacheAdapter getCacheAdapter () + { + return _cache; + } + /** * Shuts this persistence context down, shutting down any caching system in use and shutting * down the JDBC connection pool.