public abstract class AbstractEntityInsertAction extends EntityAction
| Modifier | Constructor and Description | 
|---|---|
protected  | 
AbstractEntityInsertAction(Serializable id,
                          Object[] state,
                          Object instance,
                          boolean isVersionIncrementDisabled,
                          EntityPersister persister,
                          SessionImplementor session)
Constructs an AbstractEntityInsertAction object. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
afterDeserialize(SessionImplementor session)
Reconnect to session after deserialization... 
 | 
NonNullableTransientDependencies | 
findNonNullableTransientEntities()
Find the transient unsaved entity dependencies that are non-nullable. 
 | 
protected abstract EntityKey | 
getEntityKey()
Returns the  
EntityKey. | 
Object[] | 
getState()
Returns the entity state. 
 | 
void | 
handleNaturalIdPostSaveNotifications(Serializable generatedId)
Handle sending notifications needed for natural-id after saving 
 | 
protected void | 
handleNaturalIdPreSaveNotifications()
Handle sending notifications needed for natural-id before saving 
 | 
abstract boolean | 
isEarlyInsert()
Does this insert action need to be executed as soon as possible
 (e.g., to generate an ID)? 
 | 
void | 
makeEntityManaged()
Make the entity "managed" by the persistence context. 
 | 
protected void | 
markExecuted()
Indicate that the action has executed. 
 | 
protected void | 
nullifyTransientReferencesIfNotAlready()
Nullifies any references to transient entities in the entity state
 maintained by this action. 
 | 
beforeExecutions, compareTo, eventSource, getAfterTransactionCompletionProcess, getBeforeTransactionCompletionProcess, getDelayedId, getEntityName, getId, getInstance, getPersister, getPropertySpaces, getSession, hasPostCommitEventListeners, listenerGroup, needsAfterTransactionCompletion, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitexecutedoAfterTransactionCompletionprotected AbstractEntityInsertAction(Serializable id, Object[] state, Object instance, boolean isVersionIncrementDisabled, EntityPersister persister, SessionImplementor session)
id - - the entity IDstate - - the entity stateinstance - - the entityisVersionIncrementDisabled - - true, if version increment should
                                     be disabled; false, otherwisepersister - - the entity persistersession - - the sessionpublic Object[] getState()
nullifyTransientReferencesIfNotAlready() can modify the
       entity state.#nullifyTransientReferencesIfNotAlready}public abstract boolean isEarlyInsert()
public NonNullableTransientDependencies findNonNullableTransientEntities()
protected final void nullifyTransientReferencesIfNotAlready()
#makeEntityManaged() }public final void makeEntityManaged()
protected void markExecuted()
protected abstract EntityKey getEntityKey()
EntityKey.EntityKey.public void afterDeserialize(SessionImplementor session)
EntityActionafterDeserialize in interface ExecutableafterDeserialize in class EntityActionsession - The session being deserializedprotected void handleNaturalIdPreSaveNotifications()
public void handleNaturalIdPostSaveNotifications(Serializable generatedId)
generatedId - The generated entity identifierCopyright © 2001-2015 Red Hat, Inc. All Rights Reserved.