Top Fields Constructors Methods
org.hibernate.cache.cfg.internal

public Class EntityDataCachingConfigImpl

extends AbstractDomainDataCachingConfig
implements EntityDataCachingConfig
Class Inheritance
All Implemented Interfaces
org.hibernate.cache.cfg.spi.EntityDataCachingConfig, org.hibernate.cache.cfg.spi.DomainDataCachingConfig
Imports
java.util.Comparator, .HashSet, .Set, java.util.function.Supplier, org.hibernate.cache.cfg.spi.EntityDataCachingConfig, org.hibernate.cache.spi.access.AccessType, org.hibernate.metamodel.model.domain.NavigableRole

Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final Set<NavigableRole>
private final boolean
private final Supplier<Comparator<T>>

Constructor Summary

AccessConstructor and Description
public
EntityDataCachingConfigImpl(NavigableRole rootEntityName, Supplier<Comparator<T>> versionComparatorAccess, boolean isEntityMutable, AccessType accessType)

Method Summary

Modifier and TypeMethod and Description
public void
public Set<NavigableRole>
getCachedTypes()

Implements org.hibernate.cache.cfg.spi.EntityDataCachingConfig.getCachedTypes.

The list of specific subclasses of the root that are actually written to cache.
public NavigableRole
public Supplier<Comparator<T>>
getVersionComparatorAccess()

Implements org.hibernate.cache.cfg.spi.EntityDataCachingConfig.getVersionComparatorAccess.

Access to the comparator to be used with the entity's version.
public boolean
isMutable()

Implements org.hibernate.cache.cfg.spi.DomainDataCachingConfig.isMutable.

Is the data marked as being mutable?
public boolean
isVersioned()

Implements org.hibernate.cache.cfg.spi.EntityDataCachingConfig.isVersioned, org.hibernate.cache.cfg.spi.DomainDataCachingConfig.isVersioned.

Mainly here to allow optimization of not having to know the actual comparator instance to use here yet.
Inherited from org.hibernate.cache.cfg.internal.AbstractDomainDataCachingConfig:
getAccessType

Field Detail

cachedTypesback to summary
private final Set<NavigableRole> cachedTypes
isEntityMutableback to summary
private final boolean isEntityMutable
versionComparatorAccessback to summary
private final Supplier<Comparator<T>> versionComparatorAccess

Constructor Detail

EntityDataCachingConfigImplback to summary
public EntityDataCachingConfigImpl(NavigableRole rootEntityName, Supplier<Comparator<T>> versionComparatorAccess, boolean isEntityMutable, AccessType accessType)

Method Detail

addCachedTypeback to summary
public void addCachedType(NavigableRole typeRole)
getCachedTypesback to summary
public Set<NavigableRole> getCachedTypes()

Implements org.hibernate.cache.cfg.spi.EntityDataCachingConfig.getCachedTypes.

Doc from org.hibernate.cache.cfg.spi.EntityDataCachingConfig.getCachedTypes.

The list of specific subclasses of the root that are actually written to cache.

Annotations
@Override
getNavigableRoleback to summary
public NavigableRole getNavigableRole()

Implements org.hibernate.cache.cfg.spi.DomainDataCachingConfig.getNavigableRole.

Doc from org.hibernate.cache.cfg.spi.DomainDataCachingConfig.getNavigableRole.

The NavigableRole of the thing to be cached

Annotations
@Override
getVersionComparatorAccessback to summary
public Supplier<Comparator<T>> getVersionComparatorAccess()

Implements org.hibernate.cache.cfg.spi.EntityDataCachingConfig.getVersionComparatorAccess.

Doc from org.hibernate.cache.cfg.spi.EntityDataCachingConfig.getVersionComparatorAccess.

Access to the comparator to be used with the entity's version. If the entity is not versioned, then this method returns null.

Annotations
@Override
isMutableback to summary
public boolean isMutable()

Implements org.hibernate.cache.cfg.spi.DomainDataCachingConfig.isMutable.

Doc from org.hibernate.cache.cfg.spi.DomainDataCachingConfig.isMutable.

Is the data marked as being mutable?

Annotations
@Override
isVersionedback to summary
public boolean isVersioned()

Implements org.hibernate.cache.cfg.spi.EntityDataCachingConfig.isVersioned, org.hibernate.cache.cfg.spi.DomainDataCachingConfig.isVersioned.

Doc from org.hibernate.cache.cfg.spi.EntityDataCachingConfig.isVersioned.

Mainly here to allow optimization of not having to know the actual comparator instance to use here yet. If this method returns true, then users can safely assume that accessing getVersionComparatorAccess() will not produce a null Comparator later

Annotations
@Override