Exemplo n.º 1
0
 /**
  * This method was generated by Abator for iBATIS. This method corresponds to the database table
  * op_user
  *
  * @abatorgenerated
  */
 public OpUser selectByPrimaryKey(Long userId) {
   OpUser key = new OpUser();
   key.setUserId(userId);
   OpUser record =
       (OpUser)
           getSqlMapClientTemplate()
               .queryForObject("op_user.abatorgenerated_selectByPrimaryKey", key);
   return record;
 }
Exemplo n.º 2
0
 public void insert(OpUser record) {
   if (record.getUserId() == null) {
     record.setUserId(keyIncrementer.nextLongValue());
   }
   getSqlMapClientTemplate().insert("op_user.abatorgenerated_insert", record);
 }
Exemplo n.º 3
0
 /**
  * This method was generated by Abator for iBATIS. This method corresponds to the database table
  * op_user
  *
  * @abatorgenerated
  */
 public int deleteByPrimaryKey(Long userId) {
   OpUser key = new OpUser();
   key.setUserId(userId);
   int rows = getSqlMapClientTemplate().delete("op_user.abatorgenerated_deleteByPrimaryKey", key);
   return rows;
 }