Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我希望能够在 table.modifiedField 方法中执行一些逻辑,该方法将字段的先前值与新值进行比较。我如何获得以前的值?
任何修改之前的记录缓冲区都可以通过该this.orig()方法获得。
this.orig()
public void modifiedField(fieldId _fieldId) { super(_fieldId); info(strfmt("Field number %1 changed from %2 to %3",_fieldId,this.orig().(_fieldId),this.(_fieldId))); }