Interface LazyPropertyInitializer
-
- All Known Implementing Classes:
AbstractEntityPersister,JoinedSubclassEntityPersister,SingleTableEntityPersister,UnionSubclassEntityPersister
public interface LazyPropertyInitializerContract for controlling how lazy properties get initialized.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceLazyPropertyInitializer.InterceptorImplementorDeprecated.Prefer the form of these methods defined onBytecodeLazyAttributeInterceptorinstead
-
Field Summary
Fields Modifier and Type Field Description static SerializableUNFETCHED_PROPERTYMarker value for uninitialized properties.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ObjectinitializeLazyProperty(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:
- ?
-
-