public class UnresolvedEntityInsertActions
extends java.lang.Object
| Constructor and Description |
|---|
UnresolvedEntityInsertActions() |
| Modifier and Type | Method and Description |
|---|---|
void |
addUnresolvedEntityInsertAction(AbstractEntityInsertAction insert,
NonNullableTransientDependencies dependencies)
Add an unresolved insert action.
|
void |
checkNoUnresolvedActionsAfterOperation()
Throws
PropertyValueException if there are any unresolved
entity insert actions that depend on non-nullable associations with
a transient entity. |
void |
clear()
Clear this
UnresolvedEntityInsertActions. |
static UnresolvedEntityInsertActions |
deserialize(java.io.ObjectInputStream ois,
SessionImplementor session)
Deerialize a
UnresolvedEntityInsertActions object. |
java.lang.Iterable<AbstractEntityInsertAction> |
getDependentEntityInsertActions()
Returns the unresolved insert actions.
|
boolean |
isEmpty()
Returns true if there are no unresolved entity insert actions.
|
java.util.Set<AbstractEntityInsertAction> |
resolveDependentActions(java.lang.Object managedEntity,
SessionImplementor session)
Resolve any dependencies on
managedEntity. |
void |
serialize(java.io.ObjectOutputStream oos)
Serialize this
UnresolvedEntityInsertActions object. |
java.lang.String |
toString() |
public void addUnresolvedEntityInsertAction(AbstractEntityInsertAction insert, NonNullableTransientDependencies dependencies)
insert - - unresolved insert action.dependencies - - non-nullable transient dependencies
(must be non-null and non-empty).java.lang.IllegalArgumentException - if dependencies is null or empty.public java.lang.Iterable<AbstractEntityInsertAction> getDependentEntityInsertActions()
public void checkNoUnresolvedActionsAfterOperation()
throws PropertyValueException
PropertyValueException if there are any unresolved
entity insert actions that depend on non-nullable associations with
a transient entity. This method should be called on completion of
an operation (after all cascades are completed) that saves an entity.PropertyValueException - if there are any unresolved entity
insert actions; PropertyValueException.getEntityName()
and PropertyValueException.getPropertyName() will
return the entity name and property value for the first unresolved
entity insert action.public boolean isEmpty()
public java.util.Set<AbstractEntityInsertAction> resolveDependentActions(java.lang.Object managedEntity, SessionImplementor session)
managedEntity.managedEntity - - the managed entity namesession - - the sessionjava.lang.IllegalArgumentException - if managedEntity did not have managed or read-only status.public void clear()
UnresolvedEntityInsertActions.public java.lang.String toString()
toString in class java.lang.Objectpublic void serialize(java.io.ObjectOutputStream oos)
throws java.io.IOException
UnresolvedEntityInsertActions object.oos - - the output streamjava.io.IOException - if there is an error writing this object to the output stream.public static UnresolvedEntityInsertActions deserialize(java.io.ObjectInputStream ois, SessionImplementor session) throws java.io.IOException, java.lang.ClassNotFoundException
UnresolvedEntityInsertActions object.ois - - the input stream.session - - the session.UnresolvedEntityInsertActions objectjava.io.IOException - if there is an error writing this object to the output stream.java.lang.ClassNotFoundException - if there is a class that cannot be loaded.Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.