/** * This method was generated by Apache iBATIS ibator. This method corresponds to the database * table messages * * @ibatorgenerated Tue Mar 31 14:41:13 CST 2015 */ public Messages selectByPrimaryKey(Integer id) { Messages key = new Messages(); key.setId(id); Messages record = (Messages) getSqlMapClientTemplate() .queryForObject("messages.ibatorgenerated_selectByPrimaryKey", key); return record; }
/** * This method was generated by Apache iBATIS ibator. This method corresponds to the database * table messages * * @ibatorgenerated Tue Mar 31 14:41:13 CST 2015 */ public int deleteByPrimaryKey(Integer id) { Messages key = new Messages(); key.setId(id); int rows = getSqlMapClientTemplate().delete("messages.ibatorgenerated_deleteByPrimaryKey", key); return rows; }