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)
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 checkpublic 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
public final SessionImplementor getSession()
public final Set getUninitializedFields()
public final String getEntityName()
public final boolean isInitializing()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.