/** * 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; }
public void insert(OpUser record) { if (record.getUserId() == null) { record.setUserId(keyIncrementer.nextLongValue()); } getSqlMapClientTemplate().insert("op_user.abatorgenerated_insert", record); }
/** * 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; }