| Modifier and Type | Field and Description |
|---|---|
| private final boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public SimpleNaturalIdLoadAccess | disableFetchProfile(String profileName)
Overrides org. Implements org. |
| public SimpleNaturalIdLoadAccess | enableFetchProfile(String profileName)
Overrides org. Implements org. |
| public LockOptions | getLockOptions()
Overrides org. Implements org. |
| public T | getReference(Object
The value of the natural id naturalIdValue)Implements org. |
| public boolean | isSynchronizationEnabled()
Overrides org. Implements org. |
| public T | load(Object
The value of the natural-id naturalIdValue)Implements org. null if there is no such persistent instance.
|
| public Optional | loadOptional(Object
The identifier naturalIdValue)Implements org. load, except that here an Optional
is returned.
|
| public SimpleNaturalIdLoadAccessImpl | setSynchronizationEnabled(boolean
Should synchronization be performed?
synchronizationEnabled)true indicates synchronization will be performed;
false indicates it will be circumvented.Implements org. |
| private void | |
| public final SimpleNaturalIdLoadAccessImpl | with(LockOptions
The lock options to use lockOptions)Overrides org. Implements org. |
| public SimpleNaturalIdLoadAccess | with(RootGraph<T> graph, GraphSemantic semantic)
Overrides org. Implements org. |
| public SimpleNaturalIdLoadAccess | withLoadGraph(RootGraph<T> graph)
Overrides default org. |
| hasSimpleNaturalId | back to summary |
|---|---|
| private final boolean hasSimpleNaturalId | |
| SimpleNaturalIdLoadAccessImpl | back to summary |
|---|---|
| public SimpleNaturalIdLoadAccessImpl(LoadAccessContext context, EntityMappingType entityDescriptor) | |
| disableFetchProfile | back to summary |
|---|---|
| public SimpleNaturalIdLoadAccess Overrides org. Implements org. Doc from org. Customize the associations fetched by specifying a fetch profile that should be disabled during this operation. This allows the session-level fetch profiles to be temporarily overridden.
| |
| enableFetchProfile | back to summary |
|---|---|
| public SimpleNaturalIdLoadAccess Overrides org. Implements org. Doc from org. Customize the associations fetched by specifying a fetch profile that should be enabled during this operation. This allows the session-level fetch profiles to be temporarily overridden.
| |
| getLockOptions | back to summary |
|---|---|
| public LockOptions getLockOptions() Overrides org. Implements org. Doc from org. The locking options for the loaded entity
| |
| getReference | back to summary |
|---|---|
| public T getReference(Object naturalIdValue) Implements org. Doc from org. Return the persistent instance with the given natural id value, assuming that the instance exists. This method might return a proxied instance that is initialized on-demand, when a non-identifier method is accessed.
You should not use this method to determine if an instance exists;
to check for existence, use | |
| isSynchronizationEnabled | back to summary |
|---|---|
| public boolean isSynchronizationEnabled() Overrides org. Implements org. Doc from org. Whether Hibernate should perform "synchronization" prior to performing look-ups?
| |
| load | back to summary |
|---|---|
| public T load(Object naturalIdValue) Implements org. Doc from org. Return the persistent instance with the given natural id value,
or | |
| loadOptional | back to summary |
|---|---|
| public Optional Implements org. Doc from org. | |
| setSynchronizationEnabled | back to summary |
|---|---|
| public SimpleNaturalIdLoadAccessImpl Implements org. Doc from org. For entities with mutable natural ids, should Hibernate perform "synchronization" prior to performing lookups? The default is to perform "synchronization" (for correctness).
See
| |
| verifySimplicity | back to summary |
|---|---|
| private void verifySimplicity(Object naturalIdValue) | |
| with | back to summary |
|---|---|
| public final SimpleNaturalIdLoadAccessImpl Overrides org. Implements org. Doc from org. Specify the lock options to use when querying the database.
| |
| with | back to summary |
|---|---|
| public SimpleNaturalIdLoadAccess Overrides org. Implements org. Doc from org. Customize the associations fetched by specifying an entity graph, and how it should be interpreted.
| |
| withLoadGraph | back to summary |
|---|---|
| public SimpleNaturalIdLoadAccess Overrides default org. Doc from org. Augment the associations fetched by default by specifying a list of additional associations to be fetched as an entity graph.
| |