public abstract class

AbstractFieldInterceptor

extends Object
implements Serializable FieldInterceptor
java.lang.Object
   ↳ org.hibernate.intercept.AbstractFieldInterceptor
Known Direct Subclasses

Summary

Protected Constructors
AbstractFieldInterceptor(SessionImplementor session, Set uninitializedFields, String entityName)
Public Methods
final void clearDirty()
Clear the internal dirty flag.
final void dirty()
Forcefully mark the entity as being dirty.
final String getEntityName()
final SessionImplementor getSession()
final Set getUninitializedFields()
final boolean isDirty()
Is the entity considered dirty?
final boolean isInitialized()
Is the entity to which we are bound completely initialized?
final boolean isInitialized(String field)
The the given field initialized for the entity to which we are bound?
final boolean isInitializing()
final void setSession(SessionImplementor session)
Use to associate the entity to which we are bound to the given session.
Protected Methods
final Object intercept(Object target, String fieldName, Object value)
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.hibernate.intercept.FieldInterceptor

Protected Constructors

protected AbstractFieldInterceptor (SessionImplementor session, Set uninitializedFields, String entityName)

Public Methods

public final void clearDirty ()

Clear the internal dirty flag.

public final void dirty ()

Forcefully mark the entity as being dirty.

public final String getEntityName ()

public final SessionImplementor getSession ()

public final Set getUninitializedFields ()

public final boolean isDirty ()

Is the entity considered dirty?

Returns
  • True if the entity is dirty; otherwise false.

public final boolean isInitialized ()

Is the entity to which we are bound completely initialized?

Returns
  • True if the entity is initialized; otherwise false.

public final boolean isInitialized (String field)

The the given field initialized for the entity to which we are bound?

Parameters
field The name of the field to check
Returns
  • True if the given field is initialized; otherwise false.

public final boolean isInitializing ()

public final void setSession (SessionImplementor session)

Use to associate the entity to which we are bound to the given session.

Parameters
session The session to which we are now associated.

Protected Methods

protected final Object intercept (Object target, String fieldName, Object value)