org.hibernate.engine.spi
Interface ManagedEntity

All Superinterfaces:
Managed

public interface ManagedEntity
extends Managed

Specialized Managed contract for entity classes. Essentially provides access to information about an instance's association to a Session/EntityManager. Specific information includes:


Method Summary
 EntityEntry $$_hibernate_getEntityEntry()
          Provides access to the associated EntityEntry.
 Object $$_hibernate_getEntityInstance()
          Obtain a reference to the entity instance.
 ManagedEntity $$_hibernate_getNextManagedEntity()
          Part of entry linking; obtain reference to the next entry.
 ManagedEntity $$_hibernate_getPreviousManagedEntity()
          Part of entry linking; obtain reference to the previous entry.
 void $$_hibernate_setEntityEntry(EntityEntry entityEntry)
          Injects the EntityEntry associated with this entity instance.
 void $$_hibernate_setNextManagedEntity(ManagedEntity next)
          Part of entry linking; sets the next entry.
 void $$_hibernate_setPreviousManagedEntity(ManagedEntity previous)
          Part of entry linking; sets the previous entry.
 

Method Detail

$$_hibernate_getEntityInstance

Object $$_hibernate_getEntityInstance()
Obtain a reference to the entity instance.

Returns:
The entity instance.

$$_hibernate_getEntityEntry

EntityEntry $$_hibernate_getEntityEntry()
Provides access to the associated EntityEntry.

Returns:
The EntityEntry associated with this entity instance.
See Also:
$$_hibernate_setEntityEntry(org.hibernate.engine.spi.EntityEntry)

$$_hibernate_setEntityEntry

void $$_hibernate_setEntityEntry(EntityEntry entityEntry)
Injects the EntityEntry associated with this entity instance. The EntityEntry represents state associated with the entity in regards to its association with a Hibernate Session.

Parameters:
entityEntry - The EntityEntry associated with this entity instance.

$$_hibernate_getPreviousManagedEntity

ManagedEntity $$_hibernate_getPreviousManagedEntity()
Part of entry linking; obtain reference to the previous entry. Can be null, which should indicate this is the head node.

Returns:
The previous entry

$$_hibernate_setPreviousManagedEntity

void $$_hibernate_setPreviousManagedEntity(ManagedEntity previous)
Part of entry linking; sets the previous entry. Again, can be null, which should indicate this is (now) the head node.

Parameters:
previous - The previous entry

$$_hibernate_getNextManagedEntity

ManagedEntity $$_hibernate_getNextManagedEntity()
Part of entry linking; obtain reference to the next entry. Can be null, which should indicate this is the tail node.

Returns:
The next entry

$$_hibernate_setNextManagedEntity

void $$_hibernate_setNextManagedEntity(ManagedEntity next)
Part of entry linking; sets the next entry. Again, can be null, which should indicate this is (now) the tail node.

Parameters:
next - The next entry


Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.