|
26 | 26 | import java.util.Properties; |
27 | 27 |
|
28 | 28 | import org.hibernate.cache.CacheException; |
29 | | -import org.hibernate.cache.NoCachingEnabledException; |
| 29 | +import org.hibernate.cache.NoCacheRegionFactoryAvailableException; |
30 | 30 | import org.hibernate.cache.spi.CacheDataDescription; |
31 | 31 | import org.hibernate.cache.spi.CollectionRegion; |
32 | 32 | import org.hibernate.cache.spi.EntityRegion; |
@@ -66,24 +66,24 @@ public long nextTimestamp() { |
66 | 66 |
|
67 | 67 | public EntityRegion buildEntityRegion(String regionName, Properties properties, CacheDataDescription metadata) |
68 | 68 | throws CacheException { |
69 | | -throw new NoCachingEnabledException(); |
| 69 | +throw new NoCacheRegionFactoryAvailableException(); |
70 | 70 | } |
71 | 71 |
|
72 | 72 | public NaturalIdRegion buildNaturalIdRegion(String regionName, Properties properties, CacheDataDescription metadata) |
73 | 73 | throws CacheException { |
74 | | -throw new NoCachingEnabledException(); |
| 74 | +throw new NoCacheRegionFactoryAvailableException(); |
75 | 75 | } |
76 | 76 |
|
77 | 77 | public CollectionRegion buildCollectionRegion(String regionName, Properties properties, CacheDataDescription metadata) |
78 | 78 | throws CacheException { |
79 | | -throw new NoCachingEnabledException(); |
| 79 | +throw new NoCacheRegionFactoryAvailableException(); |
80 | 80 | } |
81 | 81 |
|
82 | 82 | public QueryResultsRegion buildQueryResultsRegion(String regionName, Properties properties) throws CacheException { |
83 | | -throw new NoCachingEnabledException(); |
| 83 | +throw new NoCacheRegionFactoryAvailableException(); |
84 | 84 | } |
85 | 85 |
|
86 | 86 | public TimestampsRegion buildTimestampsRegion(String regionName, Properties properties) throws CacheException { |
87 | | -throw new NoCachingEnabledException(); |
| 87 | +throw new NoCacheRegionFactoryAvailableException(); |
88 | 88 | } |
89 | 89 | } |
0 commit comments