Interface LazyPropertyInitializer
-
- All Known Implementing Classes:
AbstractEntityPersister
,JoinedSubclassEntityPersister
,SingleTableEntityPersister
,UnionSubclassEntityPersister
public interface LazyPropertyInitializer
Contract for controlling how lazy properties get initialized.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
LazyPropertyInitializer.InterceptorImplementor
Deprecated.Prefer the form of these methods defined onBytecodeLazyAttributeInterceptor
instead
-
Field Summary
Fields Modifier and Type Field Description static Serializable
UNFETCHED_PROPERTY
Marker value for uninitialized properties.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object
initializeLazyProperty(String fieldName, Object entity, SharedSessionContractImplementor session)
Initialize the property, and return its new value.
-
-
-
Field Detail
-
UNFETCHED_PROPERTY
static final Serializable UNFETCHED_PROPERTY
Marker value for uninitialized properties.
-
-
Method Detail
-
initializeLazyProperty
Object initializeLazyProperty(String fieldName, Object entity, SharedSessionContractImplementor session)
Initialize the property, and return its new value.- Parameters:
fieldName
- The name of the field being initializedentity
- The entity on which the initialization is occurringsession
- The session from which the initialization originated.- Returns:
- ?
-
-