public class ReferenceCacheEntryImpl extends Object implements CacheEntry
Constructor and Description |
---|
ReferenceCacheEntryImpl(Object reference,
EntityPersister subclassPersister)
Constructs a ReferenceCacheEntryImpl
|
Modifier and Type | Method and Description |
---|---|
Serializable[] |
getDisassembledState()
Get the underlying disassembled state
todo : this was added to support initializing an entity's EntityEntry snapshot during reattach;
this should be refactored to instead expose a method to assemble a EntityEntry based on this
state for return.
|
Object |
getReference()
Provides access to the stored reference.
|
String |
getSubclass()
Hibernate stores all entries pertaining to a given entity hierarchy in a single region.
|
EntityPersister |
getSubclassPersister() |
Object |
getVersion()
Retrieves the version (optimistic locking) associated with this cache entry.
|
boolean |
isReferenceEntry()
Does this entry represent a direct entity reference (rather than disassembled state)?
|
public ReferenceCacheEntryImpl(Object reference, EntityPersister subclassPersister)
reference
- The reference entity instancesubclassPersister
- The specific subclass persisterpublic Object getReference()
public boolean isReferenceEntry()
CacheEntry
isReferenceEntry
in interface CacheEntry
public String getSubclass()
CacheEntry
getSubclass
in interface CacheEntry
public EntityPersister getSubclassPersister()
public Object getVersion()
CacheEntry
getVersion
in interface CacheEntry
public Serializable[] getDisassembledState()
CacheEntry
getDisassembledState
in interface CacheEntry
Copyright © 2017 JBoss by Red Hat. All rights reserved.