| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private boolean | |
| private final boolean | |
| private transient Object[] |
| Access | Constructor and Description |
|---|---|
| protected | AbstractEntityInsertAction(Object
- the entity ID id, Object[] - the entity state state, Object - the entity instance, boolean - true, if version increment should
be disabled; false, otherwise isVersionIncrementDisabled, EntityPersister - the entity persister persister, EventSource - the session session)Constructs an AbstractEntityInsertAction object. |
| Modifier and Type | Method and Description |
|---|---|
| private void | addCollectionKey(PluralAttributeMapping pluralAttributeMapping, Object o, PersistenceContext persistenceContext)
|
| protected void | |
| public void | afterDeserialize(EventSource
The session being deserialized session)Overrides org. Implements org. |
| public NonNullableTransientDependencies | Returns: the transient unsaved entity dependencies that are non-nullable, or null if there are none.Find the transient unsaved entity dependencies that are non-nullable. |
| protected abstract EntityKey | |
| public Object[] | |
| public void | handleNaturalIdPostSaveNotifications(Object
The generated entity identifier generatedId)Handle sending notifications needed for natural-id after saving |
| protected void | handleNaturalIdPreSaveNotifications()
Handle sending notifications needed for natural-id before saving |
| public abstract boolean | Returns: true, if it needs to be executed as soon as possible; false, otherwise.Does this insert action need to be executed as soon as possible (e.g., to generate an ID)? |
| public final void | |
| protected void | |
| protected final void | nullifyTransientReferencesIfNotAlready()
Nullifies any references to transient entities in the entity state maintained by this action. |
| private void | visitEmbeddedAttributeMapping(EmbeddedAttributeMapping attributeMapping, Object object, PersistenceContext persistenceContext)
|
| areTransientReferencesNullified | back to summary |
|---|---|
| private boolean areTransientReferencesNullified | |
| isExecuted | back to summary |
|---|---|
| private boolean isExecuted | |
| isVersionIncrementDisabled | back to summary |
|---|---|
| private final boolean isVersionIncrementDisabled | |
| state | back to summary |
|---|---|
| private transient Object[] state | |
| AbstractEntityInsertAction | back to summary |
|---|---|
| protected AbstractEntityInsertAction(Object id, Object[] state, Object instance, boolean isVersionIncrementDisabled, EntityPersister persister, EventSource session) Constructs an AbstractEntityInsertAction object.
| |
| addCollectionKey | back to summary |
|---|---|
| private void addCollectionKey(PluralAttributeMapping pluralAttributeMapping, Object o, PersistenceContext persistenceContext) | |
| addCollectionsByKeyToPersistenceContext | back to summary |
|---|---|
| protected void addCollectionsByKeyToPersistenceContext(PersistenceContext persistenceContext, Object[] objects) | |
| afterDeserialize | back to summary |
|---|---|
| public void afterDeserialize(EventSource session) Overrides org. Implements org. Doc from org. Reconnect to session after deserialization...
| |
| findNonNullableTransientEntities | back to summary |
|---|---|
| public NonNullableTransientDependencies findNonNullableTransientEntities() Find the transient unsaved entity dependencies that are non-nullable.
| |
| getEntityKey | back to summary |
|---|---|
| protected abstract EntityKey getEntityKey() Returns the | |
| getState | back to summary |
|---|---|
| public Object[] getState() Returns the entity state.
Note that the call to
| |
| handleNaturalIdPostSaveNotifications | back to summary |
|---|---|
| public void handleNaturalIdPostSaveNotifications(Object generatedId) Handle sending notifications needed for natural-id after saving
| |
| handleNaturalIdPreSaveNotifications | back to summary |
|---|---|
| protected void handleNaturalIdPreSaveNotifications() Handle sending notifications needed for natural-id before saving | |
| isEarlyInsert | back to summary |
|---|---|
| public abstract boolean isEarlyInsert() Does this insert action need to be executed as soon as possible (e.g., to generate an ID)?
| |
| makeEntityManaged | back to summary |
|---|---|
| public final void makeEntityManaged() Make the entity "managed" by the persistence context. | |
| markExecuted | back to summary |
|---|---|
| protected void markExecuted() Indicate that the action has executed. | |
| nullifyTransientReferencesIfNotAlready | back to summary |
|---|---|
| protected final void nullifyTransientReferencesIfNotAlready() Nullifies any references to transient entities in the entity state maintained by this action. References to transient entities should be nullified when an entity is made "managed" or when this action is executed, whichever is first. References will only be nullified the first time this method is called for a this object, so it can safely be called both when the entity is made "managed" and when this action is executed.
| |
| visitEmbeddedAttributeMapping | back to summary |
|---|---|
| private void visitEmbeddedAttributeMapping(EmbeddedAttributeMapping attributeMapping, Object object, PersistenceContext persistenceContext) | |