예제 #1
0
 public void insert(BoardVo boardVo) {
   System.out.println(boardVo);
   sqlMapClientTemplate.insert("board.insert", boardVo);
   /*
   		String sql = "insert into board values (board_no_seq.nextval, ?, ?, ?, ?, 0, sysdate, ?, ?, ?)";
   */
 }
 @Override
 public int insertCruiseSequence(TVmCruiseSequence cruiseSequence) {
   int res = 0;
   Object id = sqlmapclienttemplate.insert("insertCruiseSequence", cruiseSequence);
   if (id != null && Integer.class.isInstance(id)) {
     res = Integer.parseInt(id.toString());
   }
   return res;
 }
예제 #3
0
  public void updateform(long no, BoardVo boardVo) {
    System.out.println(boardVo);
    /*public BoardVo getView(long no){
    //System.out.println("BoardDao getView : " + no);
    BoardVo vo = (BoardVo) sqlMapClientTemplate.queryForObject("board.getView", no);
    return vo;*/

    System.out.println("boardDao : " + boardVo);
    sqlMapClientTemplate.insert("board.updateform", boardVo);
    /*
    		String sql = "insert into board values (board_no_seq.nextval, ?, ?, ?, ?, 0, sysdate, ?, ?, ?)";
    */
  }
예제 #4
0
 public Object insert(Object obj) throws DataAccessException {
   logger.debug("Ruuning statement: " + namespace + INSERT);
   validateNameSpace();
   return sqlMapClientTemplate.insert(namespace + INSERT, obj);
 }
예제 #5
0
 public void addSysLog(SysLogDto dto) {
   sqlMapClientTemplate.insert("addSysLog", dto);
 }
예제 #6
0
 public int addOrder(SysOrderDto dto) {
   sqlMapClientTemplate.insert("addOrder", dto);
   return 1;
 }
예제 #7
0
 public void registerComments(Comments comments) {
   ibatisTemplate.insert("registerComments", comments);
 }
 public void insertCheckphone(Checkphone checkphone) {
   String accountid = checkphone.getAccountid();
   this.updateCheckphonebyAccount(accountid, new Long(2));
   sqlMapClientTemplate.insert("Checkphone.insert", checkphone);
 }
예제 #9
0
 public void saveCertAccessHistory(CertAccessHistoryDto certAccessHistoryDto) {
   sqlMapClientTemplate.insert("saveCertAccessHistory", certAccessHistoryDto);
 }