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,
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,
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, 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, PersistenceContext persistenceContext)
public ImmutableEntityEntry(Status status, Object[] loadedState, Object rowId, Serializable id, Object version, LockMode lockMode, boolean existsInDatabase, EntityPersister persister, boolean disableVersionIncrement, 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 © 2017 JBoss by Red Hat. All rights reserved.