- Add a Transient Attribute to the View Object (e.g Row Status(Integer / BigDecimal), make sure this attribute is made Updatable - Always)
- Define the Row Impl for the VO
- Getter method the row-
/**
* Gets the attribute value for the calculated attribute RowStatus.
* @return the RowStatus
*/
public Integer getRowStatus() {
//return (Integer) getAttributeInternal(ROWSTATUS);
byte entityState = this.getEntity(0).getEntityState();
return new Integer(entityState);
}
Integer values:
2 - Modified
0 - New
1 - Unmodified
-1 - Initialized

No comments:
Post a Comment