public IObjectPK runSave() throws Exception {
IObjectPK pk = runSub();
if (pk != null) {
executeSave(pk.toString());
}
refreshListPage();
return pk;
}
public IObjectPK runSub() throws Exception {
if (getBizInterface() == null)
throw new Exception("don't implement getBizInterface() !");
if (UtilRequest.isPrepare("ActionSave", this)) {
Object pk = ActionCache.get("Fw_ObjectPK");
if (pk != null)
return (IObjectPK) pk;
}
return getBizInterface().save(editData);
}
IObjectPK pk = runSub();
if (pk != null) {
executeSave(pk.toString());
}
refreshListPage();
return pk;
}
public IObjectPK runSub() throws Exception {
if (getBizInterface() == null)
throw new Exception("don't implement getBizInterface() !");
if (UtilRequest.isPrepare("ActionSave", this)) {
Object pk = ActionCache.get("Fw_ObjectPK");
if (pk != null)
return (IObjectPK) pk;
}
return getBizInterface().save(editData);
}
本文介绍了一种在Java中实现业务逻辑保存的方法。通过runSave方法处理数据保存流程,其中包括了从缓存获取主键、调用业务接口保存数据、刷新页面等步骤。
2355

被折叠的 条评论
为什么被折叠?



