| Modifier and Type | Field and Description |
|---|---|
| private CacheMode | |
| private final LoadAccessContext | |
| private Set | |
| private Set | |
| private final EntityPersister | |
| private GraphSemantic | |
| private LockOptions | |
| private Boolean | |
| private RootGraphImplementor |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private Object | coerceId(Object id, SessionFactoryImplementor factory)
Deprecated
as a consequence of
SessionFactoryImplementor being deprecated.
|
| public IdentifierLoadAccess | disableFetchProfile(String profileName)
Implements org. |
| protected T | |
| protected final T | |
| public IdentifierLoadAccess | enableFetchProfile(String profileName)
Implements org. |
| public final T | getReference(Object
The identifier for which to obtain a reference id)Implements org. |
| private Object | getReference(Object id, EventSource eventSource, SessionFactoryImplementor factory, String entityName, Boolean readOnly)
Deprecated
as a consequence of
SessionFactoryImplementor being deprecated.
|
| public TypeConfiguration | |
| private void | |
| private static boolean | isLoadByIdComplianceEnabled(SessionFactoryImplementor factory)
Deprecated
as a consequence of
SessionFactoryImplementor being deprecated.
|
| private Boolean | |
| public final T | load(Object
The identifier id)Implements org. |
| private Object | |
| public Optional | loadOptional(Object
The identifier id)Implements org. load, except that here an Optional is
returned.
|
| protected T | |
| public final IdentifierLoadAccessImpl | with(LockOptions
The lock options to use lockOptions)Implements org. |
| public IdentifierLoadAccess | with(CacheMode
The cacheMode)CacheMode to useImplements org. CacheMode to use when obtaining an entity.
|
| public IdentifierLoadAccess | with(RootGraph<T> graph, GraphSemantic semantic)
Implements org. |
| public IdentifierLoadAccess | withReadOnly(boolean readOnly)
Implements org. |
| cacheMode | back to summary |
|---|---|
| private CacheMode cacheMode | |
| context | back to summary |
|---|---|
| private final LoadAccessContext context | |
| disabledFetchProfiles | back to summary |
|---|---|
| private Set<String> disabledFetchProfiles | |
| enabledFetchProfiles | back to summary |
|---|---|
| private Set<String> enabledFetchProfiles | |
| entityPersister | back to summary |
|---|---|
| private final EntityPersister entityPersister | |
| graphSemantic | back to summary |
|---|---|
| private GraphSemantic graphSemantic | |
| lockOptions | back to summary |
|---|---|
| private LockOptions lockOptions | |
| readOnly | back to summary |
|---|---|
| private Boolean readOnly | |
| rootGraph | back to summary |
|---|---|
| private RootGraphImplementor<T> rootGraph | |
| IdentifierLoadAccessImpl | back to summary |
|---|---|
| public IdentifierLoadAccessImpl(LoadAccessContext context, EntityPersister entityPersister) | |
| coerceId | back to summary |
|---|---|
| private Object coerceId(Object id, SessionFactoryImplementor factory)
Deprecated as a consequence of | |
| disableFetchProfile | back to summary |
|---|---|
| public IdentifierLoadAccess 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.
| |
| doGetReference | back to summary |
|---|---|
protected T doGetReference(Object id)
| |
| doLoad | back to summary |
|---|---|
protected final T doLoad(Object id)
| |
| enableFetchProfile | back to summary |
|---|---|
| public IdentifierLoadAccess 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.
| |
| getReference | back to summary |
|---|---|
| public final T getReference(Object id) Implements org. Doc from org. Return the persistent instance with the given identifier, 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 | |
| getReference | back to summary |
|---|---|
| private Object getReference(Object id, EventSource eventSource, SessionFactoryImplementor factory, String entityName, Boolean readOnly)
Deprecated as a consequence of | |
| getTypeConfiguration | back to summary |
|---|---|
| public TypeConfiguration getTypeConfiguration() Implements org.
| |
| initializeIfNecessary | back to summary |
|---|---|
| private void initializeIfNecessary(Object result) | |
| isLoadByIdComplianceEnabled | back to summary |
|---|---|
| private static boolean isLoadByIdComplianceEnabled(SessionFactoryImplementor factory)
Deprecated as a consequence of | |
| isReadOnly | back to summary |
|---|---|
| private Boolean isReadOnly(SessionImplementor session) | |
| load | back to summary |
|---|---|
| public final T load(Object id) Implements org. Doc from org. Return the persistent instance with the given identifier, or null if there is no such persistent instance. If the instance is already associated with the session, return that instance, initializing it if needed. This method never returns an uninitialized instance. | |
| load | back to summary |
|---|---|
| private Object load(Object id, EventSource eventSource, String entityName, Boolean readOnly) | |
| loadOptional | back to summary |
|---|---|
| public Optional Implements org. | |
| perform | back to summary |
|---|---|
| protected T perform(Supplier<T> executor) | |
| with | back to summary |
|---|---|
| public final IdentifierLoadAccessImpl Implements org. Doc from org. Specify the lock options to use when querying the database.
| |
| with | back to summary |
|---|---|
| public IdentifierLoadAccess Implements org. Doc from org. Specify the
| |
| with | back to summary |
|---|---|
| public IdentifierLoadAccess Implements org. Doc from org. Customize the associations fetched by specifying an entity graph, and how it should be interpreted.
| |
| withReadOnly | back to summary |
|---|---|
| public IdentifierLoadAccess Implements org. Doc from org. Specify whether the entity should be loaded in read-only mode.
| |