类 NaturalIdCacheKey
- java.lang.Object
-
- org.hibernate.cache.internal.NaturalIdCacheKey
-
- 所有已实现的接口:
Serializable
public class NaturalIdCacheKey extends Object implements Serializable
Defines a key for caching natural identifier resolutions into the second level cache. This was named org.hibernate.cache.spi.NaturalIdCacheKey in Hibernate until version 5. Temporarily maintained as a reference while all components catch up with the refactoring to the caching interfaces.- 作者:
- Eric Dalquist, Steve Ebersole
- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器 说明 NaturalIdCacheKey(Object[] naturalIdValues, Type[] propertyTypes, int[] naturalIdPropertyIndexes, String entityName, SharedSessionContractImplementor session)Construct a new key for a caching natural identifier resolutions into the second level cache.
-
-
-
构造器详细资料
-
NaturalIdCacheKey
public NaturalIdCacheKey(Object[] naturalIdValues, Type[] propertyTypes, int[] naturalIdPropertyIndexes, String entityName, SharedSessionContractImplementor session)
Construct a new key for a caching natural identifier resolutions into the second level cache.- 参数:
naturalIdValues- The naturalIdValues associated with the cached datapropertyTypes-naturalIdPropertyIndexes-session- The originating session
-
-
方法详细资料
-
getEntityName
public String getEntityName()
-
getTenantId
public String getTenantId()
-
getNaturalIdValues
public Serializable[] getNaturalIdValues()
-
-