Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.hibernate.intercept
Class AbstractFieldInterceptor  view AbstractFieldInterceptor download AbstractFieldInterceptor.java

java.lang.Object
  extended byorg.hibernate.intercept.AbstractFieldInterceptor
All Implemented Interfaces:
FieldInterceptor, java.io.Serializable

public abstract class AbstractFieldInterceptor
extends java.lang.Object
implements FieldInterceptor, java.io.Serializable


Field Summary
private  boolean dirty
           
private  java.lang.String entityName
           
private  boolean initializing
           
private  org.hibernate.engine.SessionImplementor session
           
private  java.util.Set uninitializedFields
           
 
Constructor Summary
protected AbstractFieldInterceptor(org.hibernate.engine.SessionImplementor session, java.util.Set uninitializedFields, java.lang.String entityName)
           
 
Method Summary
 void clearDirty()
          Clear the internal dirty flag.
 void dirty()
          Forcefully mark the entity as being dirty.
 java.lang.String getEntityName()
           
 org.hibernate.engine.SessionImplementor getSession()
           
 java.util.Set getUninitializedFields()
           
protected  java.lang.Object intercept(java.lang.Object target, java.lang.String fieldName, java.lang.Object value)
           
 boolean isDirty()
          Is the entity considered dirty?
 boolean isInitialized()
          Is the entity to which we are bound completely initialized?
 boolean isInitialized(java.lang.String field)
          The the given field initialized for the entity to which we are bound?
 boolean isInitializing()
           
 void setSession(org.hibernate.engine.SessionImplementor session)
          Use to associate the entity to which we are bound to the given session.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

session

private transient org.hibernate.engine.SessionImplementor session

uninitializedFields

private java.util.Set uninitializedFields

entityName

private final java.lang.String entityName

initializing

private transient boolean initializing

dirty

private boolean dirty
Constructor Detail

AbstractFieldInterceptor

protected AbstractFieldInterceptor(org.hibernate.engine.SessionImplementor session,
                                   java.util.Set uninitializedFields,
                                   java.lang.String entityName)
Method Detail

setSession

public final void setSession(org.hibernate.engine.SessionImplementor session)
Description copied from interface: FieldInterceptor
Use to associate the entity to which we are bound to the given session.

Specified by:
setSession in interface FieldInterceptor

isInitialized

public final boolean isInitialized()
Description copied from interface: FieldInterceptor
Is the entity to which we are bound completely initialized?

Specified by:
isInitialized in interface FieldInterceptor

isInitialized

public final boolean isInitialized(java.lang.String field)
Description copied from interface: FieldInterceptor
The the given field initialized for the entity to which we are bound?

Specified by:
isInitialized in interface FieldInterceptor

dirty

public final void dirty()
Description copied from interface: FieldInterceptor
Forcefully mark the entity as being dirty.

Specified by:
dirty in interface FieldInterceptor

isDirty

public final boolean isDirty()
Description copied from interface: FieldInterceptor
Is the entity considered dirty?

Specified by:
isDirty in interface FieldInterceptor

clearDirty

public final void clearDirty()
Description copied from interface: FieldInterceptor
Clear the internal dirty flag.

Specified by:
clearDirty in interface FieldInterceptor

intercept

protected final java.lang.Object intercept(java.lang.Object target,
                                           java.lang.String fieldName,
                                           java.lang.Object value)

getSession

public final org.hibernate.engine.SessionImplementor getSession()

getUninitializedFields

public final java.util.Set getUninitializedFields()

getEntityName

public final java.lang.String getEntityName()

isInitializing

public final boolean isInitializing()