org.hibernate.intercept
Interface FieldInterceptor
- AbstractFieldInterceptor, FieldInterceptorImpl, FieldInterceptorImpl
public interface FieldInterceptor
Contract for field interception handlers.
void | clearDirty() - Clear the internal dirty flag.
|
void | dirty() - Forcefully mark the entity as being dirty.
|
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?
|
void | setSession(SessionImplementor session) - Use to associate the entity to which we are bound to the given session.
|
clearDirty
public void clearDirty()
Clear the internal dirty flag.
dirty
public void dirty()
Forcefully mark the entity as being dirty.
isDirty
public boolean isDirty()
Is the entity considered dirty?
- True if the entity is dirty; otherwise false.
isInitialized
public boolean isInitialized()
Is the entity to which we are bound completely initialized?
- True if the entity is initialized; otherwise false.
isInitialized
public boolean isInitialized(String field)
The the given field initialized for the entity to which we are bound?
field
- The name of the field to check
- True if the given field is initialized; otherwise false.
setSession
public void setSession(SessionImplementor session)
Use to associate the entity to which we are bound to the given session.
session
- The session to which we are now associated.