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)
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
protected 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 © 2016 JBoss by Red Hat. All rights reserved.