public class MapLazyInitializer extends AbstractLazyInitializer implements Serializable
Modifier and Type | Method and Description |
---|---|
Map |
getMap() |
Class |
getPersistentClass()
Get the actual class of the entity.
|
protected String |
getSessionFactoryUuid()
Get the session factory UUID.
|
protected boolean |
isAllowLoadOutsideTransaction()
Get whether the proxy can load data even
if it's not attached to a session with an ongoing transaction.
|
protected void |
prepareForPossibleLoadingOutsideTransaction()
Initialize internal state based on the currently attached session,
in order to be ready to load data even after the proxy is detached from the session.
|
getEntityName, getIdentifier, getImplementation, getImplementation, getInternalIdentifier, getSession, getTarget, initialize, initializeWithoutLoadIfPossible, isConnectedToSession, isReadOnly, isReadOnlyBeforeAttachedToSession, isReadOnlySettingAvailable, isUninitialized, isUnwrap, permissiveInitialization, setIdentifier, setImplementation, setReadOnly, setSession, setUnwrap, unsetSession
public Map getMap()
public Class getPersistentClass()
LazyInitializer
LazyInitializer.getEntityName()
should be used instead.getPersistentClass
in interface LazyInitializer
protected void prepareForPossibleLoadingOutsideTransaction()
AbstractLazyInitializer
SessionFactoryOptions.isInitializeLazyStateOutsideTransactionsEnabled()
is true
.prepareForPossibleLoadingOutsideTransaction
in class AbstractLazyInitializer
protected boolean isAllowLoadOutsideTransaction()
AbstractLazyInitializer
AbstractLazyInitializer.prepareForPossibleLoadingOutsideTransaction()
.isAllowLoadOutsideTransaction
in class AbstractLazyInitializer
true
if out-of-transaction loads are allowed, false
otherwise.protected String getSessionFactoryUuid()
AbstractLazyInitializer
AbstractLazyInitializer.prepareForPossibleLoadingOutsideTransaction()
.getSessionFactoryUuid
in class AbstractLazyInitializer
Copyright © 2001-2022 Red Hat, Inc. All Rights Reserved.