Package org.hibernate.proxy
Interface HibernateProxy
-
- All Superinterfaces:
PrimeAmongSecondarySupertypes
,Serializable
- All Known Implementing Classes:
MapProxy
public interface HibernateProxy extends Serializable, PrimeAmongSecondarySupertypes
Marker interface for entity proxies
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default HibernateProxy
asHibernateProxy()
Special internal contract to optimize type checkingstatic LazyInitializer
extractLazyInitializer(Object object)
Extract the LazyInitializer from the object, if and only if the object is actually an HibernateProxy.LazyInitializer
getHibernateLazyInitializer()
Get the underlying lazy initialization handler.Object
writeReplace()
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 Detail
-
extractLazyInitializer
static LazyInitializer extractLazyInitializer(Object object)
Extract the LazyInitializer from the object, if and only if the object is actually an HibernateProxy. If not, null is returned.- Parameters:
object
- any entity- Returns:
- either null (if object is not an HibernateProxy) or the LazyInitializer of the HibernateProxy.
-
writeReplace
Object writeReplace()
Perform serialization-time write-replacement of this proxy.- Returns:
- The serializable proxy replacement.
-
getHibernateLazyInitializer
LazyInitializer getHibernateLazyInitializer()
Get the underlying lazy initialization handler.- Returns:
- The lazy initializer.
-
asHibernateProxy
default HibernateProxy asHibernateProxy()
Special internal contract to optimize type checking- Specified by:
asHibernateProxy
in interfacePrimeAmongSecondarySupertypes
- Returns:
- this same instance
- See Also:
PrimeAmongSecondarySupertypes
-
-