| org.jboss.ejb.plugins.cmp.jdbc.CMPFieldStateFactory
CMPFieldStateFactory | public interface CMPFieldStateFactory (Code) | | Implementations of this interface are used to create and compare field states
for equality.
author: Alexey Loubyansky |
Method Summary | |
Object | getFieldState(Object fieldValue) Calculates and returns an object that represents the state of the field value.
The states produced by this method will be used to check whether the field
is dirty at synchronization time.
Parameters: fieldValue - field's value. | boolean | isStateValid(Object state, Object fieldValue) Checks whether the field's state state
is equal to the field value's state (possibly, calculated with
the getFieldState() method).
Parameters: state - the state to compare with field value's state. Parameters: fieldValue - field's value, the state of which will be comparedwith state . |
getFieldState | Object getFieldState(Object fieldValue)(Code) | | Calculates and returns an object that represents the state of the field value.
The states produced by this method will be used to check whether the field
is dirty at synchronization time.
Parameters: fieldValue - field's value. an object representing the field's state. |
isStateValid | boolean isStateValid(Object state, Object fieldValue)(Code) | | Checks whether the field's state state
is equal to the field value's state (possibly, calculated with
the getFieldState() method).
Parameters: state - the state to compare with field value's state. Parameters: fieldValue - field's value, the state of which will be comparedwith state . true if state equals to fieldValue 's state. |
|
|