/* (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