Package org.hibernate.engine.internal
Class NonNullableTransientDependencies
java.lang.Object
org.hibernate.engine.internal.NonNullableTransientDependencies
Tracks non-nullable transient entities that would cause a particular entity insert to fail.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Retrieve the paths that refer to the transient entityboolean
isEmpty()
Are there any paths currently tracked here?void
Clean up any tracked references for the given entity, throwing an exception if there were any paths.Build a loggable representation of the paths tracked here at the moment.
-
Constructor Details
-
NonNullableTransientDependencies
public NonNullableTransientDependencies()
-
-
Method Details
-
add
-
getNonNullableTransientEntities
-
getNonNullableTransientPropertyPaths
Retrieve the paths that refer to the transient entity- Parameters:
entity
- The transient entity- Returns:
- The property paths
-
isEmpty
public boolean isEmpty()Are there any paths currently tracked here?- Returns:
true
indicates there are no path tracked here currently
-
resolveNonNullableTransientEntity
Clean up any tracked references for the given entity, throwing an exception if there were any paths.- Parameters:
entity
- The entity- Throws:
IllegalStateException
- If the entity had tracked paths
-