public final class NonNullableTransientDependencies
extends java.lang.Object
Constructor and Description |
---|
NonNullableTransientDependencies() |
Modifier and Type | Method and Description |
---|---|
java.lang.Iterable<java.lang.Object> |
getNonNullableTransientEntities() |
java.lang.Iterable<java.lang.String> |
getNonNullableTransientPropertyPaths(java.lang.Object entity)
Retrieve the paths that refer to the transient entity
|
boolean |
isEmpty()
Are there any paths currently tracked here?
|
void |
resolveNonNullableTransientEntity(java.lang.Object entity)
Clean up any tracked references for the given entity, throwing an exception if there were any paths.
|
java.lang.String |
toLoggableString(SharedSessionContractImplementor session)
Build a loggable representation of the paths tracked here at the moment.
|
public java.lang.Iterable<java.lang.Object> getNonNullableTransientEntities()
public java.lang.Iterable<java.lang.String> getNonNullableTransientPropertyPaths(java.lang.Object entity)
entity
- The transient entitypublic boolean isEmpty()
true
indicates there are no path tracked here currentlypublic void resolveNonNullableTransientEntity(java.lang.Object entity)
entity
- The entityjava.lang.IllegalStateException
- If the entity had tracked pathspublic java.lang.String toLoggableString(SharedSessionContractImplementor session)
session
- The session (used to resolve entity names)Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.