类 MapLazyInitializer
- java.lang.Object
-
- org.hibernate.proxy.AbstractLazyInitializer
-
- org.hibernate.proxy.map.MapLazyInitializer
-
- 所有已实现的接口:
Serializable,LazyInitializer
public class MapLazyInitializer extends AbstractLazyInitializer implements Serializable
Lazy initializer for "dynamic-map" entity representations.- 作者:
- Gavin King
- 另请参阅:
- 序列化表格
-
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 MapgetMap()ClassgetPersistentClass()Get the actual class of the entity.protected StringgetSessionFactoryUuid()Get the session factory UUID.protected booleanisAllowLoadOutsideTransaction()Get whether the proxy can load data even if it's not attached to a session with an ongoing transaction.protected voidprepareForPossibleLoadingOutsideTransaction()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.-
从类继承的方法 org.hibernate.proxy.AbstractLazyInitializer
getEntityName, getIdentifier, getImplementation, getImplementation, getSession, getTarget, initialize, initializeWithoutLoadIfPossible, isConnectedToSession, isReadOnly, isReadOnlyBeforeAttachedToSession, isReadOnlySettingAvailable, isUninitialized, isUnwrap, permissiveInitialization, setIdentifier, setImplementation, setReadOnly, setSession, setUnwrap, unsetSession
-
-
-
-
方法详细资料
-
getMap
public Map getMap()
-
getPersistentClass
public Class getPersistentClass()
从接口复制的说明:LazyInitializerGet the actual class of the entity. Generally,LazyInitializer.getEntityName()should be used instead.- 指定者:
getPersistentClass在接口中LazyInitializer- 返回:
- The actual entity class.
-
prepareForPossibleLoadingOutsideTransaction
protected void prepareForPossibleLoadingOutsideTransaction()
从类复制的说明:AbstractLazyInitializerInitialize 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. This method only has any effect ifSessionFactoryOptions.isInitializeLazyStateOutsideTransactionsEnabled()istrue.
-
isAllowLoadOutsideTransaction
protected boolean isAllowLoadOutsideTransaction()
从类复制的说明:AbstractLazyInitializerGet whether the proxy can load data even if it's not attached to a session with an ongoing transaction. This method should only be called during serialization, and only makes sense after a call toAbstractLazyInitializer.prepareForPossibleLoadingOutsideTransaction().- 覆盖:
isAllowLoadOutsideTransaction在类中AbstractLazyInitializer- 返回:
trueif out-of-transaction loads are allowed,falseotherwise.
-
getSessionFactoryUuid
protected String getSessionFactoryUuid()
从类复制的说明:AbstractLazyInitializerGet the session factory UUID. This method should only be called during serialization, and only makes sense after a call toAbstractLazyInitializer.prepareForPossibleLoadingOutsideTransaction().- 覆盖:
getSessionFactoryUuid在类中AbstractLazyInitializer- 返回:
- the session factory UUID.
-
-