public class UnresolvedEntityInsertActions extends Object
| Constructor and Description |
|---|
UnresolvedEntityInsertActions() |
public void addUnresolvedEntityInsertAction(AbstractEntityInsertAction insert, NonNullableTransientDependencies dependencies)
insert - - unresolved insert action.dependencies - - non-nullable transient dependencies
(must be non-null and non-empty).IllegalArgumentException - if dependencies is null or empty.public 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 Set<AbstractEntityInsertAction> resolveDependentActions(Object managedEntity, SessionImplementor session)
managedEntity.managedEntity - - the managed entity namesession - - the sessionIllegalArgumentException - if managedEntity did not have managed or read-only status.public void clear()
UnresolvedEntityInsertActions.public void serialize(ObjectOutputStream oos) throws IOException
UnresolvedEntityInsertActions object.oos - - the output streamIOException - if there is an error writing this object to the output stream.public static UnresolvedEntityInsertActions deserialize(ObjectInputStream ois, SessionImplementor session) throws IOException, ClassNotFoundException
UnresolvedEntityInsertActions object.ois - - the input stream.session - - the session.UnresolvedEntityInsertActions objectIOException - if there is an error writing this object to the output stream.ClassNotFoundException - if there is a class that cannot be loaded.Copyright © 2017 JBoss by Red Hat. All rights reserved.