| Modifier and Type | Field and Description |
|---|---|
| protected final EhcacheAccessStrategyFactory | accessStrategyFactory
|
| private static final Logger | |
| protected volatile CacheManager | manager
Ehcache CacheManager that supplied Ehcache instances for this Hibernate RegionFactory. |
| protected final ProviderMBeanRegistrationHelper | mbeanRegistrationHelper
MBean registration helper class instance for Ehcache Hibernate MBeans. |
| public static final String | NET_SF_EHCACHE_CACHE_MANAGER_NAME
The Hibernate system property specifying the name of the CacheManager being created. |
| public static final String | NET_SF_EHCACHE_CONFIGURATION_RESOURCE_NAME
The Hibernate system property specifying the location of the ehcache configuration file name. |
| protected Settings | settings
Settings object for the Hibernate persistence unit. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public CollectionRegion | buildCollectionRegion(String
The name of the region. regionName, Properties Configuration properties. properties, CacheDataDescription Information regarding the type of data to be cached metadata)Implements org. |
| public EntityRegion | buildEntityRegion(String
The name of the region. regionName, Properties Configuration properties. properties, CacheDataDescription Information regarding the type of data to be cached metadata)Implements org. |
| public QueryResultsRegion | buildQueryResultsRegion(String
The name of the region. regionName, Properties Configuration properties. properties)Implements org. |
| public TimestampsRegion | buildTimestampsRegion(String
The name of the region. regionName, Properties Configuration properties. properties)Implements org. |
| private Ehcache | |
| public AccessType | getDefaultAccessType()
Implements org. |
| public boolean | Returns: true, optimize for minimal putsImplements org. |
| protected static URL | |
| public long |
| accessStrategyFactory | back to summary |
|---|---|
| protected final EhcacheAccessStrategyFactory accessStrategyFactory
| |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| manager | back to summary |
|---|---|
| protected volatile CacheManager manager Ehcache CacheManager that supplied Ehcache instances for this Hibernate RegionFactory. | |
| mbeanRegistrationHelper | back to summary |
|---|---|
| protected final ProviderMBeanRegistrationHelper mbeanRegistrationHelper MBean registration helper class instance for Ehcache Hibernate MBeans. | |
| NET_SF_EHCACHE_CACHE_MANAGER_NAME | back to summary |
|---|---|
| public static final String NET_SF_EHCACHE_CACHE_MANAGER_NAME The Hibernate system property specifying the name of the CacheManager being created. If not set, it will either use the ehcache.xml to name the CacheManager, or fallback to default CacheManager naming. | |
| NET_SF_EHCACHE_CONFIGURATION_RESOURCE_NAME | back to summary |
|---|---|
| public static final String NET_SF_EHCACHE_CONFIGURATION_RESOURCE_NAME The Hibernate system property specifying the location of the ehcache configuration file name. If not set, ehcache.xml will be looked for in the root of the classpath. If set to say ehcache-1.xml, ehcache-1.xml will be looked for in the root of the classpath. | |
| settings | back to summary |
|---|---|
| protected Settings settings Settings object for the Hibernate persistence unit. | |
| AbstractEhcacheRegionFactory | back to summary |
|---|---|
| pack-priv AbstractEhcacheRegionFactory() | |
| buildCollectionRegion | back to summary |
|---|---|
| public CollectionRegion buildCollectionRegion(String regionName, Properties properties, CacheDataDescription metadata) throws CacheException Implements org. Doc from org. Build a cache region specialized for storing collection data.
| |
| buildEntityRegion | back to summary |
|---|---|
| public EntityRegion buildEntityRegion(String regionName, Properties properties, CacheDataDescription metadata) throws CacheException Implements org. Doc from org. Build a cache region specialized for storing entity data.
| |
| buildQueryResultsRegion | back to summary |
|---|---|
| public QueryResultsRegion buildQueryResultsRegion(String regionName, Properties properties) throws CacheException Implements org. Doc from org. Build a cache region specialized for storing query results
| |
| buildTimestampsRegion | back to summary |
|---|---|
| public TimestampsRegion buildTimestampsRegion(String regionName, Properties properties) throws CacheException Implements org. Doc from org. Build a cache region specialized for storing update-timestamps data.
| |
| getCache | back to summary |
|---|---|
| private Ehcache getCache(String name) throws CacheException | |
| getDefaultAccessType | back to summary |
|---|---|
| public AccessType getDefaultAccessType() Implements org. Default access-type used when the configured using JPA 2.0 config. JPA 2.0 allows
We are conservative here in specifying This is a Hibernate 3.5 method.
| |
| isMinimalPutsEnabledByDefault | back to summary |
|---|---|
| public boolean isMinimalPutsEnabledByDefault() Implements org. Whether to optimize for minimals puts or minimal gets. Indicates whether when operating in non-strict read/write or read-only mode Hibernate should optimize the access patterns for minimal puts or minimal gets. In Ehcache we default to minimal puts since this should have minimal to no affect on unclustered users, and has great benefit for clustered users. This setting can be overridden by setting the "hibernate.cache.use_minimal_puts" property in the Hibernate configuration.
| |
| loadResource | back to summary |
|---|---|
| protected static URL loadResource(String configurationResourceName) Load a resource from the classpath. | |
| nextTimestamp | back to summary |
|---|---|
| public long nextTimestamp() Implements org. Doc from org. Generate a timestamp. This is generally used for cache content locking/unlocking purposes depending upon the access-strategy being used.
| |