Package org.hibernate.cache.internal
Class NaturalIdCacheKey
- java.lang.Object
-
- org.hibernate.cache.internal.NaturalIdCacheKey
-
- All Implemented Interfaces:
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.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NaturalIdCacheKey(Object naturalIdValues, String entityName, String tenantId, int hashCode)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
static NaturalIdCacheKey
from(Object naturalIdValues, EntityPersister persister, String entityName, SharedSessionContractImplementor session)
static NaturalIdCacheKey
from(Object naturalIdValues, EntityPersister persister, SharedSessionContractImplementor session)
String
getEntityName()
Object
getNaturalIdValues()
String
getTenantId()
int
hashCode()
String
toString()
-
-
-
Method Detail
-
from
public static NaturalIdCacheKey from(Object naturalIdValues, EntityPersister persister, String entityName, SharedSessionContractImplementor session)
-
from
public static NaturalIdCacheKey from(Object naturalIdValues, EntityPersister persister, SharedSessionContractImplementor session)
-
getEntityName
public String getEntityName()
-
getTenantId
public String getTenantId()
-
getNaturalIdValues
public Object getNaturalIdValues()
-
-