Beispiel #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;
 }
Beispiel #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, ?, ?, ?)";
    */
  }
 public Object insert(Object obj) throws DataAccessException {
   logger.debug("Ruuning statement: " + namespace + INSERT);
   validateNameSpace();
   return sqlMapClientTemplate.insert(namespace + INSERT, obj);
 }
Beispiel #5
0
 public void addSysLog(SysLogDto dto) {
   sqlMapClientTemplate.insert("addSysLog", dto);
 }
Beispiel #6
0
 public int addOrder(SysOrderDto dto) {
   sqlMapClientTemplate.insert("addOrder", dto);
   return 1;
 }
Beispiel #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);
 }
 public void saveCertAccessHistory(CertAccessHistoryDto certAccessHistoryDto) {
   sqlMapClientTemplate.insert("saveCertAccessHistory", certAccessHistoryDto);
 }