Package org.hibernate.proxy
Interface HibernateProxy
- All Superinterfaces:
PrimeAmongSecondarySupertypes
,Serializable
- All Known Implementing Classes:
MapProxy
Interface implemented directly by entity proxies, exposing
access to the associated
LazyInitializer
.-
Method Summary
Modifier and TypeMethodDescriptiondefault HibernateProxy
Special internal contract to optimize type checking.static @Nullable LazyInitializer
extractLazyInitializer
(@Nullable Object object) Extract theLazyInitializer
from the given object, if and only if the object is actually a proxy.Get the lazy initialization handler for this object.Perform serialization-time write-replacement of this proxy.Methods inherited from interface org.hibernate.engine.spi.PrimeAmongSecondarySupertypes
asCompositeOwner, asCompositeTracker, asManaged, asManagedComposite, asManagedEntity, asManagedMappedSuperclass, asPersistentAttributeInterceptable, asProxyConfiguration, asSelfDirtinessTracker
-
Method Details
-
extractLazyInitializer
Extract theLazyInitializer
from the given object, if and only if the object is actually a proxy. Otherwise, return a null value.- Parameters:
object
- any reference to an entity- Returns:
- the associated
LazyInitializer
if the given object is a proxy, ornull
otherwise.
-
writeReplace
Object writeReplace()Perform serialization-time write-replacement of this proxy.- Returns:
- The serializable proxy replacement.
-
getHibernateLazyInitializer
LazyInitializer getHibernateLazyInitializer()Get the lazy initialization handler for this object.- Returns:
- The associated
LazyInitializer
.
-
asHibernateProxy
Special internal contract to optimize type checking.- Specified by:
asHibernateProxy
in interfacePrimeAmongSecondarySupertypes
- Returns:
- this instance
- See Also:
-