/* (non-Javadoc)
   * @see com.delmar.core.dao.SqlSessionForLog#delete(java.lang.String, java.lang.Object)
   */
  public int delete(String statement, CoreModel model) {
    Integer id = null;
    try {
      id = (Integer) PropertyUtils.getProperty(model, "id");

    } catch (IllegalAccessException e) {
      logger.error(e, e);
      e.printStackTrace();
    } catch (InvocationTargetException e) {
      logger.error(e, e);
      e.printStackTrace();
    } catch (NoSuchMethodException e) {
      logger.error(e, e);
      e.printStackTrace();
    }
    writeLog(model, SessionContent.OPERATE_DELETE);
    return sqlSessionTemplate.delete(statement, model);
  }
Пример #2
0
 public void delete(String id) {
   sqlSession.delete("children.delete", id);
 }
 @Override
 public int checkJoin(int memberNum) {
   // TODO Auto-generated method stub
   return sqlSession.delete("member.dao.mapper.checkJoin", memberNum);
 }
Пример #4
0
 @Override
 public void deleteAll() {
   sqlSession.delete("deleteAllService");
 }
Пример #5
0
 @Override
 public void deleteService(ServicePara servicePara) {
   sqlSession.delete("deleteService", servicePara);
 }
Пример #6
0
 public void delAppclient(int empno) {
   sqlSession.delete("appclient.delAppclient", empno);
 }
Пример #7
0
 public Object delete(String queryId, Object params) {
   printQueryId(queryId);
   return sqlSession.delete(queryId, params);
 }
 /**
  * 删除操作
  *
  * @param statement SQL语句的Id号(命名空间+name)
  * @param parameter 参数
  */
 public int delete(String statement, Object parameter) {
   return sqlSession.delete(statement, parameter);
 }
 /**
  * 删除操作
  *
  * @param statement SQL语句的Id号(命名空间+name)
  * @return 删除的条数
  */
 public int delete(String statement) {
   return sqlSession.delete(statement);
 }
Пример #10
0
 public void reply_delete(int hobby_no) {
   logger.info("BoardDAO class List<BoardDTO> getReplyList(int idx)");
   sqlSession.delete("reply_delete", hobby_no);
 }
Пример #11
0
 public void dbDelete(int idx) {
   logger.info("BoardDAO class BoardDTO dbDelete(int)");
   sqlSession.delete("delete", idx);
 } // end dbDelete