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() |
SessionImplementor |
getSession() |
Set |
getUninitializedFields() |
protected Object |
intercept(Object target,
String fieldName,
Object value) |
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() |
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 FieldInterceptorpublic final SessionImplementor getSession()
public final Set getUninitializedFields()
public final String getEntityName()
public final boolean isInitializing()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.