/** * {@inheritDoc} * * @see org.hibernate.cache.access.EntityRegionAccessStrategy#getRegion() */ public CollectionRegion getRegion() { return actualStrategy.getRegion(); }
/** * {@inheritDoc} * * @see org.hibernate.cache.access.EntityRegionAccessStrategy#getRegion() */ public CollectionRegion getRegion() { return actualStrategy.getRegion(); }
/** * {@inheritDoc} * * @see org.hibernate.cache.access.EntityRegionAccessStrategy#getRegion() */ public CollectionRegion getRegion() { return actualStrategy.getRegion(); }
/** * {@inheritDoc} * * @see org.hibernate.cache.access.EntityRegionAccessStrategy#getRegion() */ public CollectionRegion getRegion() { return actualStrategy.getRegion(); }
protected CollectionCacheEntry(Object owner, String field) { ClassMetadata ownerClassMetadata = factoryImplementor.getClassMetadata(owner.getClass()); Type t = ownerClassMetadata.getPropertyType(field); Assert.assertTrue(t instanceof CollectionType); CollectionType type = (CollectionType)t; role = type.getRole(); collectionPersister = factoryImplementor.getCollectionPersister(role); if(collectionPersister.hasCache()) { cacheRegion = collectionPersister.getCacheAccessStrategy().getRegion(); cacheAccess = cacheRegion.buildAccessStrategy(AccessType.READ_ONLY); } else { cacheRegion = null; cacheAccess = null; } persistentCollection = (PersistentCollection) factoryImplementor.getEntityPersister(ownerClassMetadata.getEntityName()).getPropertyValue(owner, field, entityMode); keyOfOwner = persistentCollection.getKey(); }