Top Description Methods
org.hibernate.proxy

public Interface HibernateProxy

extends Serializable, PrimeAmongSecondarySupertypes
Known Direct Implementers
org.hibernate.proxy.map.MapProxy
Imports
java.io.Serializable, org.hibernate.Internal, org.hibernate.engine.spi.PrimeAmongSecondarySupertypes, org.checkerframework.checker.nullness.qual.Nullable

Interface implemented directly by entity proxies, exposing access to the associated LazyInitializer.
Author
Gavin King

Method Summary

Modifier and TypeMethod and Description
public default HibernateProxy

Returns:

this instance
asHibernateProxy
()

Overrides default org.hibernate.engine.spi.PrimeAmongSecondarySupertypes.asHibernateProxy.

Special internal contract to optimize type checking.
public static @Nullable LazyInitializer

Returns:

the associated LazyInitializer if the given object is a proxy, or null otherwise.
extractLazyInitializer
(final @Nullable Object
any reference to an entity
object
)

Extract the LazyInitializer from the given object, if and only if the object is actually a proxy.

public LazyInitializer

Returns:

The associated LazyInitializer.
getHibernateLazyInitializer
()

Get the lazy initialization handler for this object.

public Object

Returns:

The serializable proxy replacement.
writeReplace
()

Perform serialization-time write-replacement of this proxy.

Inherited from org.hibernate.engine.spi.PrimeAmongSecondarySupertypes:
asCompositeOwnerasCompositeTrackerasManagedasManagedCompositeasManagedEntityasManagedMappedSuperclassasPersistentAttributeInterceptableasProxyConfigurationasSelfDirtinessTracker

Method Detail

asHibernateProxyback to summary
public default HibernateProxy asHibernateProxy()

Overrides default org.hibernate.engine.spi.PrimeAmongSecondarySupertypes.asHibernateProxy.

Special internal contract to optimize type checking.

Returns:HibernateProxy

this instance

Annotations
@Internal
@Override
See Also
PrimeAmongSecondarySupertypes
extractLazyInitializerback to summary
public static @Nullable LazyInitializer extractLazyInitializer(final @Nullable Object object)

Extract the LazyInitializer from the given object, if and only if the object is actually a proxy. Otherwise, return a null value.

Parameters
object:@Nullable Object

any reference to an entity

Returns:@Nullable LazyInitializer

the associated LazyInitializer if the given object is a proxy, or null otherwise.

getHibernateLazyInitializerback to summary
public LazyInitializer getHibernateLazyInitializer()

Get the lazy initialization handler for this object.

Returns:LazyInitializer

The associated LazyInitializer.

writeReplaceback to summary
public Object writeReplace()

Perform serialization-time write-replacement of this proxy.

Returns:Object

The serializable proxy replacement.