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.