Package org.hibernate.intercept
Class AbstractFieldInterceptor
java.lang.Object
org.hibernate.intercept.AbstractFieldInterceptor
- All Implemented Interfaces:
Serializable,FieldInterceptor
- Direct Known Subclasses:
FieldInterceptorImpl,FieldInterceptorImpl
public abstract class AbstractFieldInterceptor
extends Object
implements FieldInterceptor, Serializable
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractFieldInterceptor(SessionImplementor session, Set uninitializedFields, String entityName) -
Method Summary
Modifier and TypeMethodDescriptionfinal voidClear the internal dirty flag.final voiddirty()Forcefully mark the entity as being dirty.final Stringfinal SessionImplementorfinal Setprotected final Objectfinal booleanisDirty()Is the entity considered dirty?final booleanIs the entity to which we are bound completely initialized?final booleanisInitialized(String field) The the given field initialized for the entity to which we are bound?final booleanfinal voidsetSession(SessionImplementor session) Use to associate the entity to which we are bound to the given session.
-
Constructor Details
-
AbstractFieldInterceptor
protected AbstractFieldInterceptor(SessionImplementor session, Set uninitializedFields, String entityName)
-
-
Method Details
-
setSession
Description copied from interface:FieldInterceptorUse to associate the entity to which we are bound to the given session.- Specified by:
setSessionin interfaceFieldInterceptor- Parameters:
session- The session to which we are now associated.
-
isInitialized
public final boolean isInitialized()Description copied from interface:FieldInterceptorIs the entity to which we are bound completely initialized?- Specified by:
isInitializedin interfaceFieldInterceptor- Returns:
- True if the entity is initialized; otherwise false.
-
isInitialized
Description copied from interface:FieldInterceptorThe the given field initialized for the entity to which we are bound?- Specified by:
isInitializedin interfaceFieldInterceptor- Parameters:
field- The name of the field to check- Returns:
- True if the given field is initialized; otherwise false.
-
dirty
public final void dirty()Description copied from interface:FieldInterceptorForcefully mark the entity as being dirty.- Specified by:
dirtyin interfaceFieldInterceptor
-
isDirty
public final boolean isDirty()Description copied from interface:FieldInterceptorIs the entity considered dirty?- Specified by:
isDirtyin interfaceFieldInterceptor- Returns:
- True if the entity is dirty; otherwise false.
-
clearDirty
public final void clearDirty()Description copied from interface:FieldInterceptorClear the internal dirty flag.- Specified by:
clearDirtyin interfaceFieldInterceptor
-
intercept
-
getSession
-
getUninitializedFields
-
getEntityName
-
isInitializing
public final boolean isInitializing()
-