From 9b87020fe5819374932e3d7a7da207bb4b40cb3a Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Sat, 11 Aug 2007 00:48:59 +0000 Subject: [PATCH] Added getCacheAdapter(). --- .../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 7cda1ae..17e7172 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.