コード例 #1
0
 /**
  * This method was generated by Apache iBATIS ibator. This method corresponds to the database
  * table logs
  *
  * @ibatorgenerated Wed Jan 14 10:00:26 CST 2015
  */
 public Logs selectByPrimaryKey(Integer id) {
   Logs key = new Logs();
   key.setId(id);
   Logs record =
       (Logs)
           getSqlMapClientTemplate()
               .queryForObject("logs.ibatorgenerated_selectByPrimaryKey", key);
   return record;
 }
コード例 #2
0
 /**
  * This method was generated by Apache iBATIS ibator. This method corresponds to the database
  * table logs
  *
  * @ibatorgenerated Wed Jan 14 10:00:26 CST 2015
  */
 public int deleteByPrimaryKey(Integer id) {
   Logs key = new Logs();
   key.setId(id);
   int rows = getSqlMapClientTemplate().delete("logs.ibatorgenerated_deleteByPrimaryKey", key);
   return rows;
 }