Top Description Inners Fields Methods
org.hibernate.bytecode.enhance.spi

public Interface LazyPropertyInitializer

Known Direct Implementers
org.hibernate.persister.entity.AbstractEntityPersister
Imports
java.io.Serializable, java.util.Collections, .Set, org.hibernate.bytecode.enhance.spi.interceptor.BytecodeLazyAttributeInterceptor, org.hibernate.engine.spi.SharedSessionContractImplementor

Contract for controlling how lazy properties get initialized.
Author
Gavin King

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface
LazyPropertyInitializer.InterceptorImplementor

Deprecated Prefer the form of these methods defined on BytecodeLazyAttributeInterceptor instead

Field Summary

Modifier and TypeField and Description
public static final Serializable
UNFETCHED_PROPERTY

Marker value for uninitialized properties.

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

?
initializeLazyProperty
(String
The name of the field being initialized
fieldName
,
Object
The entity on which the initialization is occurring
entity
,
SharedSessionContractImplementor
The session from which the initialization originated.
session
)

Initialize the property, and return its new value.

Field Detail

UNFETCHED_PROPERTYback to summary
public static final Serializable UNFETCHED_PROPERTY

Marker value for uninitialized properties.

Method Detail

initializeLazyPropertyback to summary
public Object initializeLazyProperty(String fieldName, Object entity, SharedSessionContractImplementor session)

Initialize the property, and return its new value.

Parameters
fieldName:String

The name of the field being initialized

entity:Object

The entity on which the initialization is occurring

session:SharedSessionContractImplementor

The session from which the initialization originated.

Returns:Object

?

org.hibernate.bytecode.enhance.spi back to summary

public Interface LazyPropertyInitializer.InterceptorImplementor

Known Direct Subinterfaces
org.hibernate.engine.spi.PersistentAttributeInterceptor
Annotations
@Deprecated

Deprecated

Prefer the form of these methods defined on BytecodeLazyAttributeInterceptor instead

Method Summary

Modifier and TypeMethod and Description
public default void
public default Set<String>

Method Detail

attributeInitializedback to summary
public default void attributeInitialized(String name)
getInitializedLazyAttributeNamesback to summary
public default Set<String> getInitializedLazyAttributeNames()