Package org.hibernate.cache.internal
Class NaturalIdCacheKey.NaturalIdCacheKeyBuilder
- java.lang.Object
-
- org.hibernate.cache.internal.NaturalIdCacheKey.NaturalIdCacheKeyBuilder
-
- All Implemented Interfaces:
Serializable
,MutableCacheKeyBuilder
- Enclosing class:
- NaturalIdCacheKey
public static class NaturalIdCacheKey.NaturalIdCacheKeyBuilder extends Object implements MutableCacheKeyBuilder
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NaturalIdCacheKeyBuilder(Object naturalIdValues, EntityPersister persister, String entityName, SharedSessionContractImplementor session)
NaturalIdCacheKeyBuilder(Object naturalIdValues, EntityPersister persister, SharedSessionContractImplementor session)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addHashCode(int hashCode)
void
addValue(Object value)
NaturalIdCacheKey
build()
creates an Object to be used as a key into the query results cache.
-
-
-
Constructor Detail
-
NaturalIdCacheKeyBuilder
public NaturalIdCacheKeyBuilder(Object naturalIdValues, EntityPersister persister, String entityName, SharedSessionContractImplementor session)
-
NaturalIdCacheKeyBuilder
public NaturalIdCacheKeyBuilder(Object naturalIdValues, EntityPersister persister, SharedSessionContractImplementor session)
-
-
Method Detail
-
addValue
public void addValue(Object value)
- Specified by:
addValue
in interfaceMutableCacheKeyBuilder
-
addHashCode
public void addHashCode(int hashCode)
- Specified by:
addHashCode
in interfaceMutableCacheKeyBuilder
-
build
public NaturalIdCacheKey build()
Description copied from interface:MutableCacheKeyBuilder
creates an Object to be used as a key into the query results cache.- Specified by:
build
in interfaceMutableCacheKeyBuilder
-
-