PersistentContext pctx = (PersistentContext) instance.getPersistenceContext();
return pctx.isDirty();
}
public boolean isModified(CmpEntityBeanContext instance) {
PersistentContext pctx = (PersistentContext) instance.getPersistenceContext();
boolean modified = pctx.isDirty();
if (!modified && cmrFields != null) {
for (int i = 0; i < cmrFields.length; ++i) {
final JDBCCMRFieldBridge2.FieldState cmrState = pctx.getCMRState(i);
if (cmrState != null && cmrState.isModified()) {
modified = true;
break;
}
}