Top Fields Constructors Methods
org.hibernate.intercept

public abstract Class AbstractFieldInterceptor

extends Object
implements FieldInterceptor, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, org.hibernate.intercept.FieldInterceptor
Known Direct Subclasses
org.hibernate.intercept.cglib.FieldInterceptorImpl, org.hibernate.intercept.javassist.FieldInterceptorImpl
Imports
org.hibernate.engine.SessionImplementor, org.hibernate.LazyInitializationException, java.util.Set, java.io.Serializable

Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private boolean
private final String
private transient boolean
private transient SessionImplementor
private Set<E>

Constructor Summary

AccessConstructor and Description
protected
AbstractFieldInterceptor(SessionImplementor session, Set<E> uninitializedFields, String entityName)

Method Summary

Modifier and TypeMethod and Description
public final void
clearDirty()

Implements org.hibernate.intercept.FieldInterceptor.clearDirty.

Clear the internal dirty flag.
public final void
dirty()

Implements org.hibernate.intercept.FieldInterceptor.dirty.

Forcefully mark the entity as being dirty.
public final String
public final SessionImplementor
public final Set<E>
protected final Object
intercept(Object target, String fieldName, Object value)

public final boolean
isDirty()

Implements org.hibernate.intercept.FieldInterceptor.isDirty.

Is the entity considered dirty?
public final boolean
isInitialized()

Implements org.hibernate.intercept.FieldInterceptor.isInitialized.

Is the entity to which we are bound completely initialized?
public final boolean
isInitialized(String
The name of the field to check
field
)

Implements org.hibernate.intercept.FieldInterceptor.isInitialized.

The the given field initialized for the entity to which we are bound?
public final boolean
public final void
setSession(SessionImplementor
The session to which we are now associated.
session
)

Implements org.hibernate.intercept.FieldInterceptor.setSession.

Use to associate the entity to which we are bound to the given session.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

dirtyback to summary
private boolean dirty
entityNameback to summary
private final String entityName
initializingback to summary
private transient boolean initializing
sessionback to summary
private transient SessionImplementor session
uninitializedFieldsback to summary
private Set<E> uninitializedFields

Constructor Detail

AbstractFieldInterceptorback to summary
protected AbstractFieldInterceptor(SessionImplementor session, Set<E> uninitializedFields, String entityName)

Method Detail

clearDirtyback to summary
public final void clearDirty()

Implements org.hibernate.intercept.FieldInterceptor.clearDirty.

Doc from org.hibernate.intercept.FieldInterceptor.clearDirty.

Clear the internal dirty flag.

dirtyback to summary
public final void dirty()

Implements org.hibernate.intercept.FieldInterceptor.dirty.

Doc from org.hibernate.intercept.FieldInterceptor.dirty.

Forcefully mark the entity as being dirty.

getEntityNameback to summary
public final String getEntityName()
getSessionback to summary
public final SessionImplementor getSession()
getUninitializedFieldsback to summary
public final Set<E> getUninitializedFields()
interceptback to summary
protected final Object intercept(Object target, String fieldName, Object value)
isDirtyback to summary
public final boolean isDirty()

Implements org.hibernate.intercept.FieldInterceptor.isDirty.

Doc from org.hibernate.intercept.FieldInterceptor.isDirty.

Is the entity considered dirty?

Returns:boolean

True if the entity is dirty; otherwise false.

isInitializedback to summary
public final boolean isInitialized()

Implements org.hibernate.intercept.FieldInterceptor.isInitialized.

Doc from org.hibernate.intercept.FieldInterceptor.isInitialized.

Is the entity to which we are bound completely initialized?

Returns:boolean

True if the entity is initialized; otherwise false.

isInitializedback to summary
public final boolean isInitialized(String field)

Implements org.hibernate.intercept.FieldInterceptor.isInitialized.

Doc from org.hibernate.intercept.FieldInterceptor.isInitialized.

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

Parameters
field:String

The name of the field to check

Returns:boolean

True if the given field is initialized; otherwise false.

isInitializingback to summary
public final boolean isInitializing()
setSessionback to summary
public final void setSession(SessionImplementor session)

Implements org.hibernate.intercept.FieldInterceptor.setSession.

Doc from org.hibernate.intercept.FieldInterceptor.setSession.

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

Parameters
session:SessionImplementor

The session to which we are now associated.