public final class ImmutableEntityEntry extends AbstractEntityEntry
Immutable
,
Serialized FormAbstractEntityEntry.BooleanState, AbstractEntityEntry.EnumState<E extends Enum<E>>
cachedEntityKey, id, loadedState, next, persistenceContext, persister, rowId, version
Constructor and Description |
---|
ImmutableEntityEntry(Status status,
Object[] loadedState,
Object rowId,
Serializable id,
Object version,
LockMode lockMode,
boolean existsInDatabase,
EntityPersister persister,
boolean disableVersionIncrement,
boolean lazyPropertiesAreUnfetched,
PersistenceContext persistenceContext) |
ImmutableEntityEntry(Status status,
Object[] loadedState,
Object rowId,
Serializable id,
Object version,
LockMode lockMode,
boolean existsInDatabase,
EntityPersister persister,
EntityMode entityMode,
String tenantId,
boolean disableVersionIncrement,
boolean lazyPropertiesAreUnfetched,
PersistenceContext persistenceContext)
Deprecated.
the tenantId and entityMode parameters where removed: this constructor accepts but ignores them.
Use the other constructor!
|
Modifier and Type | Method and 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) |
addExtraState, forceLocked, getCompressedValue, getCompressedValue, getDeletedState, getEntityKey, getEntityName, getExtraState, getId, getLoadedState, getLoadedValue, getLockMode, getPersister, getRowId, getStatus, getVersion, isBeingReplicated, isExistsInDatabase, isLoadedWithLazyPropertiesUnfetched, isModifiableEntity, isNullifiable, isReadOnly, overwriteLoadedStateCollectionValue, postDelete, postInsert, postUpdate, requiresDirtyCheck, serialize, setCompressedValue, setCompressedValue, setDeletedState, setReadOnly, setStatus, toString
@Deprecated public ImmutableEntityEntry(Status status, Object[] loadedState, Object rowId, Serializable id, Object version, LockMode lockMode, boolean existsInDatabase, EntityPersister persister, EntityMode entityMode, String tenantId, boolean disableVersionIncrement, boolean lazyPropertiesAreUnfetched, PersistenceContext persistenceContext)
public ImmutableEntityEntry(Status status, Object[] loadedState, Object rowId, Serializable id, Object version, LockMode lockMode, boolean existsInDatabase, EntityPersister persister, boolean disableVersionIncrement, boolean lazyPropertiesAreUnfetched, PersistenceContext persistenceContext)
public void setLockMode(LockMode lockMode)
setLockMode
in interface EntityEntry
setLockMode
in class AbstractEntityEntry
public static EntityEntry deserialize(ObjectInputStream ois, PersistenceContext persistenceContext) throws IOException, ClassNotFoundException
ois
- The stream from which to read the entry.persistenceContext
- The context being deserialized.IOException
- If a stream error occursClassNotFoundException
- If any of the classes declared in the stream
cannot be foundpublic PersistenceContext getPersistenceContext()
getPersistenceContext
in class AbstractEntityEntry
Copyright © 2001-2017 Red Hat, Inc. All Rights Reserved.