求大神解释代码
public int deleteDocument(String[] ids)
{
SystemCommonVO vo = new SystemCommonVO();
commandContext.setServiceName("systemCommonService");
int i=0;
for(int t=0;t<ids.length;t++)
{
vo = new SystemCommonVO();
vo.setField("D_ID",ids[0]);
vo.setTablename("T_Document");
commandContext.clear();
commandContext.setCommandName("deleteSystemCommonVOs");
commandContext.setCommandParams(new Object[]{vo},new Class[]{SystemCommonVO.class});
i=i+(Integer)this.executeCommandContext().getResult();
}
return i;
}
我就这样子写了三个表 都是删除 前两个表都有表约束 ,不能删除,但是是删一条,最好的那个表就全部都删了。
[解决办法]
翻来覆去看了你最后那句话几次,表示我语文算是白学了。。。
只能猜测你关注的问题跟数据库的 级联删除 有关。
[解决办法]