java.lang.Object
org.hibernate.intercept.AbstractFieldInterceptor
- All Implemented Interfaces:
- FieldInterceptor, java.io.Serializable
- public abstract class AbstractFieldInterceptor
- extends java.lang.Object
- implements FieldInterceptor, java.io.Serializable
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
AbstractFieldInterceptor
protected AbstractFieldInterceptor(org.hibernate.engine.SessionImplementor session,
java.util.Set uninitializedFields,
java.lang.String entityName)
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()