예제 #1
0
  /** 对执行数据增加的PreparedStatement中的参数进行赋值 */
  public void prepareInsertStatement(PreparedStatement ps, BaseVO bean) throws Exception {

    HomePageVO vo = (HomePageVO) bean;
    ps.setInt(1, vo.getTempl_id());
    ps.setString(2, vo.getCaption());
    ps.setString(3, vo.getUrl());
  }
예제 #2
0
  /** 对执行数据修改的PreparedStatement中的参数进行赋值 */
  public void prepareUpdateStatement(PreparedStatement ps, BaseVO bean) throws Exception {

    HomePageVO vo = (HomePageVO) bean;
    ps.setString(1, vo.getCaption());
    ps.setString(2, vo.getUrl());
  }