Package org.hibernate.engine.internal
Class ImmutableEntityEntry
- java.lang.Object
-
- org.hibernate.engine.internal.AbstractEntityEntry
-
- org.hibernate.engine.internal.ImmutableEntityEntry
-
- All Implemented Interfaces:
Serializable
,EntityEntry
public final class ImmutableEntityEntry extends AbstractEntityEntry
AnEntityEntry
implementation for immutable entities.- See Also:
Immutable
, Serialized Form- Implementation Note:
- Note that this implementation is not completely immutable in terms of its internal state; the term immutable here refers to the entity it describes.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.hibernate.engine.internal.AbstractEntityEntry
AbstractEntityEntry.BooleanState, AbstractEntityEntry.EnumState<E extends Enum<E>>
-
-
Field Summary
-
Fields inherited from class org.hibernate.engine.internal.AbstractEntityEntry
cachedEntityKey, id, loadedState, maybeLazySet, next, persistenceContext, persister, rowId, version
-
-
Constructor Summary
Constructors Constructor Description ImmutableEntityEntry(Status status, Object[] loadedState, Object rowId, Object id, Object version, LockMode lockMode, boolean existsInDatabase, EntityPersister persister, boolean disableVersionIncrement)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EntityEntry
deserialize(ObjectInputStream ois, PersistenceContext persistenceContext)
Custom deserialization routine used during deserialization of a Session/PersistenceContext for increased performance.PersistenceContext
getPersistenceContext()
void
setLockMode(LockMode lockMode)
-
Methods inherited from class org.hibernate.engine.internal.AbstractEntityEntry
addExtraState, forceLocked, getCompressedValue, getCompressedValue, getDeletedState, getEntityKey, getEntityName, getExtraState, getId, getLoadedState, getLoadedValue, getLockMode, getMaybeLazySet, getPersister, getRowId, getStatus, getVersion, isBeingReplicated, isExistsInDatabase, isModifiableEntity, isNullifiable, isReadOnly, overwriteLoadedStateCollectionValue, postDelete, postInsert, postInsert, postUpdate, requiresDirtyCheck, serialize, setCompressedValue, setCompressedValue, setDeletedState, setMaybeLazySet, setReadOnly, setStatus, toString
-
-
-
-
Method Detail
-
setLockMode
public void setLockMode(LockMode lockMode)
- Specified by:
setLockMode
in interfaceEntityEntry
- Overrides:
setLockMode
in classAbstractEntityEntry
-
deserialize
public static EntityEntry deserialize(ObjectInputStream ois, PersistenceContext persistenceContext) throws IOException, ClassNotFoundException
Custom deserialization routine used during deserialization of a Session/PersistenceContext for increased performance.- Parameters:
ois
- The stream from which to read the entry.persistenceContext
- The context being deserialized.- Returns:
- The deserialized EntityEntry
- Throws:
IOException
- If a stream error occursClassNotFoundException
- If any of the classes declared in the stream cannot be found
-
getPersistenceContext
public PersistenceContext getPersistenceContext()
- Overrides:
getPersistenceContext
in classAbstractEntityEntry
-
-