public abstract class AbstractFieldInterceptor extends Object implements FieldInterceptor, Serializable
| Modifier | Constructor and Description | 
|---|---|
protected  | 
AbstractFieldInterceptor(SessionImplementor session,
                        Set uninitializedFields,
                        String entityName)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
clearDirty()
Clear the internal dirty flag. 
 | 
void | 
dirty()
Forcefully mark the entity as being dirty. 
 | 
String | 
getEntityName()
Access to the intercepted entity name 
 | 
SessionImplementor | 
getSession()
Access to the session 
 | 
Set | 
getUninitializedFields()
Access to all currently uninitialized fields 
 | 
protected Object | 
intercept(Object target,
         String fieldName,
         Object value)
Interception of access to the named field 
 | 
boolean | 
isDirty()
Is the entity considered dirty? 
 | 
boolean | 
isInitialized()
Is the entity to which we are bound completely initialized? 
 | 
boolean | 
isInitialized(String field)
The the given field initialized for the entity to which we are bound? 
 | 
boolean | 
isInitializing()
Is the instance currently initializing? 
 | 
void | 
setSession(SessionImplementor session)
Use to associate the entity to which we are bound to the given session. 
 | 
protected AbstractFieldInterceptor(SessionImplementor session, Set uninitializedFields, String entityName)
public final void setSession(SessionImplementor session)
FieldInterceptorsetSession in interface FieldInterceptorsession - The session to which we are now associated.public final boolean isInitialized()
FieldInterceptorisInitialized in interface FieldInterceptorpublic final boolean isInitialized(String field)
FieldInterceptorisInitialized in interface FieldInterceptorfield - The name of the field to checkpublic final void dirty()
FieldInterceptordirty in interface FieldInterceptorpublic final boolean isDirty()
FieldInterceptorisDirty in interface FieldInterceptorpublic final void clearDirty()
FieldInterceptorclearDirty in interface FieldInterceptorprotected final Object intercept(Object target, String fieldName, Object value)
target - The call targetfieldName - The name of the field.value - The value.public final SessionImplementor getSession()
public final Set getUninitializedFields()
public final String getEntityName()
public final boolean isInitializing()
Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.