站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 server API Documentation 英文版文档

CMPFieldStateFactory (JBoss Server API) - JBoss 4.0.1 sp1 server API Documentation 英文版文档


org.jboss.ejb.plugins.cmp.jdbc
Interface CMPFieldStateFactory


public interface CMPFieldStateFactory

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.
 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).
 

Method Detail

getFieldState

public 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.
Returns:
an object representing the field's state.

isStateValid

public 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.
fieldValue - field's value, the state of which will be compared with state.
Returns:
true if state equals to fieldValue's state.


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.