Top Description Fields Constructors Methods
org.hibernate.engine.internal

public final Class MutableEntityEntry

extends AbstractEntityEntry
Class Inheritance
Imports
java.io.IOException, .ObjectInputStream, org.hibernate.LockMode, org.hibernate.engine.spi.EntityEntry, .PersistenceContext, .SessionFactoryImplementor, .Status, org.hibernate.persister.entity.EntityPersister

An EntityEntry implementation for mutable entities.
Authors
Gavin King, Emmanuel Bernard, Gunnar Morling, Sanne Grinovero

Field Summary

Inherited from org.hibernate.engine.internal.AbstractEntityEntry:
cachedEntityKeyidloadedStatenextpersistenceContextpersisterrowIdversion

Constructor Summary

AccessConstructor and Description
public
MutableEntityEntry(final Status status, final Object[] loadedState, final Object rowId, final Object id, final Object version, final LockMode lockMode, final boolean existsInDatabase, final EntityPersister persister, final boolean disableVersionIncrement, final PersistenceContext persistenceContext)

private
MutableEntityEntry(final SessionFactoryImplementor factory, final String entityName, final Object id, final Status status, final Status previousStatus, final Object[] loadedState, final Object[] deletedState, final Object version, final LockMode lockMode, final boolean existsInDatabase, final boolean isBeingReplicated, final PersistenceContext persistenceContext)

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
This for is used during custom deserialization handling

Method Summary

Modifier and TypeMethod and Description
public static EntityEntry

Returns:

The deserialized EntityEntry
deserialize
(ObjectInputStream
The stream from which to read the entry.
ois
,
PersistenceContext
The context being deserialized.
persistenceContext
)

Custom deserialization routine used during deserialization of a Session/PersistenceContext for increased performance.

Inherited from org.hibernate.engine.internal.AbstractEntityEntry:
addExtraStateforceLockedgetCompressedValuegetCompressedValuegetDeletedStategetEntityKeygetEntityNamegetExtraStategetIdgetLoadedStategetLoadedValuegetLockModegetPersistenceContextgetPersistergetRowIdgetStatusgetVersionisBeingReplicatedisExistsInDatabaseisModifiableEntityisNullifiableisReadOnlyoverwriteLoadedStateCollectionValuepostDeletepostInsertpostInsertpostUpdaterequiresDirtyCheckserializesetCompressedValuesetCompressedValuesetDeletedStatesetLockModesetReadOnlysetStatustoString

Constructor Detail

MutableEntityEntryback to summary
public MutableEntityEntry(final Status status, final Object[] loadedState, final Object rowId, final Object id, final Object version, final LockMode lockMode, final boolean existsInDatabase, final EntityPersister persister, final boolean disableVersionIncrement, final PersistenceContext persistenceContext)
MutableEntityEntryback to summary
private MutableEntityEntry(final SessionFactoryImplementor factory, final String entityName, final Object id, final Status status, final Status previousStatus, final Object[] loadedState, final Object[] deletedState, final Object version, final LockMode lockMode, final boolean existsInDatabase, final boolean isBeingReplicated, final PersistenceContext persistenceContext)

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

This for is used during custom deserialization handling

Method Detail

deserializeback to summary
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:ObjectInputStream

The stream from which to read the entry.

persistenceContext:PersistenceContext

The context being deserialized.

Returns:EntityEntry

The deserialized EntityEntry

Exceptions
IOException:
If a stream error occurs
ClassNotFoundException:
If any of the classes declared in the stream cannot be found