|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.intercept.AbstractFieldInterceptor
public abstract class AbstractFieldInterceptor
Constructor Summary | |
---|---|
protected |
AbstractFieldInterceptor(SessionImplementor session,
Set uninitializedFields,
String entityName)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AbstractFieldInterceptor(SessionImplementor session, Set uninitializedFields, String entityName)
Method Detail |
---|
public final void setSession(SessionImplementor session)
FieldInterceptor
setSession
in interface FieldInterceptor
session
- The session to which we are now associated.public final boolean isInitialized()
FieldInterceptor
isInitialized
in interface FieldInterceptor
public final boolean isInitialized(String field)
FieldInterceptor
isInitialized
in interface FieldInterceptor
field
- The name of the field to check
public final void dirty()
FieldInterceptor
dirty
in interface FieldInterceptor
public final boolean isDirty()
FieldInterceptor
isDirty
in interface FieldInterceptor
public final void clearDirty()
FieldInterceptor
clearDirty
in interface FieldInterceptor
protected final Object intercept(Object target, String fieldName, Object value)
public final SessionImplementor getSession()
public final Set getUninitializedFields()
public final String getEntityName()
public final boolean isInitializing()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |