/** @see com.pureinfo.srm.project.domain.IProjectPersonMgr#findAllByRelativeId(int) */ protected void deleteAllByRelativeId(DolphinObject _newObj, String _sRelativeIdName, Class _clazz) throws PureException { IStatement query = null; try { String strSQL = "SELECT * FROM {this} WHERE {this." + _sRelativeIdName + "} = ?"; IContentMgr mgr = ArkContentHelper.getContentMgrOf(_clazz); query = mgr.createQuery(strSQL, 0); query.setInt(0, _newObj.getIntProperty("id", 0)); mgr.delete(query.executeQuery()); } catch (Exception ex) { ex.printStackTrace(System.err); throw new PureException( SRMExceptionTypes.PP_FINDALL_PERSONS_OFPROJECT, "RelativeId: " + _newObj.getIntProperty("id", 0), ex); } finally { if (query != null) { query.clear(); } LocalContextHelper.closeSession(); } }