Top Description Methods
org.hibernate.cache.spi

public Interface DomainDataRegion

extends Region
Known Direct Implementers
org.hibernate.cache.spi.support.AbstractDomainDataRegion
Imports
org.hibernate.cache.spi.access.CollectionDataAccess, .EntityDataAccess, .NaturalIdDataAccess, org.hibernate.metamodel.model.domain.NavigableRole

A second-level cache region that holds cacheable domain data:

This type of data has:

These behaviors are defined by an instance of EntityDataAccess, CollectionDataAccess, or NaturalIdDataAccess).

Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public CollectionDataAccess
getCollectionDataAccess(NavigableRole
The NavigableRole of the collection whose data we want to access
collectionRole
)

Build a CollectionDataAccess instance representing access to destructured collection data stored in this cache region.

public EntityDataAccess
getEntityDataAccess(NavigableRole
The root entity name for the hierarchy whose data we want to access
rootEntityRole
)

Build a EntityDataAccess instance representing access to destructured entity data stored in this cache region.

public NaturalIdDataAccess
getNaturalIdDataAccess(NavigableRole
The NavigableRole of the root entity whose natural id data we want to access
rootEntityRole
)

Build a NaturalIdDataAccess instance representing access to natural id mappings stored in this cache region.

Inherited from org.hibernate.cache.spi.Region:
cleardestroygetNamegetRegionFactory

Method Detail

getCollectionDataAccessback to summary
public CollectionDataAccess getCollectionDataAccess(NavigableRole collectionRole)

Build a CollectionDataAccess instance representing access to destructured collection data stored in this cache region.

API Note

Calling this method is illegal if the given collection is not cacheable

Parameters
collectionRole:NavigableRole

The NavigableRole of the collection whose data we want to access

Exceptions
CacheException:
If the provider cannot provide the requested access
getEntityDataAccessback to summary
public EntityDataAccess getEntityDataAccess(NavigableRole rootEntityRole)

Build a EntityDataAccess instance representing access to destructured entity data stored in this cache region.

API Note

Calling this method is illegal if the given entity is not cacheable

Parameters
rootEntityRole:NavigableRole

The root entity name for the hierarchy whose data we want to access

Exceptions
CacheException:
If the provider cannot provide the requested access
getNaturalIdDataAccessback to summary
public NaturalIdDataAccess getNaturalIdDataAccess(NavigableRole rootEntityRole)

Build a NaturalIdDataAccess instance representing access to natural id mappings stored in this cache region.

API Note

Calling this method is illegal if the given natural id is not cacheable

Parameters
rootEntityRole:NavigableRole

The NavigableRole of the root entity whose natural id data we want to access

Exceptions
CacheException:
If the provider cannot provide the requested access