1 package org.hibernate.cache; 3 4 import java.util.Properties ; 5 6 11 public class NoCacheProvider implements CacheProvider { 12 20 public Cache buildCache(String regionName, Properties properties) throws CacheException { 21 throw new NoCachingEnabledException(); 22 } 23 24 27 public long nextTimestamp() { 28 return System.currentTimeMillis() / 100; 32 } 33 34 40 public void start(Properties properties) throws CacheException { 41 } 44 45 48 public void stop() { 49 } 52 53 public boolean isMinimalPutsEnabledByDefault() { 54 return false; 56 } 57 58 } 59 | Popular Tags |