/** {@inheritDoc } */ @Override public void store(Tools tools, Plugin plugin) { DAOUtil daoUtil = new DAOUtil(SQL_QUERY_UPDATE, plugin); daoUtil.setInt(1, tools.getId()); daoUtil.setString(2, tools.getArtifactId()); daoUtil.setString(3, tools.getLastRelease()); daoUtil.setInt(4, tools.getId()); daoUtil.executeUpdate(); daoUtil.free(); }
/** {@inheritDoc } */ @Override public void insert(Tools tools, Plugin plugin) { DAOUtil daoUtil = new DAOUtil(SQL_QUERY_INSERT, plugin); tools.setId(newPrimaryKey(plugin)); daoUtil.setInt(1, tools.getId()); daoUtil.setString(2, tools.getArtifactId()); daoUtil.setString(3, tools.getLastRelease()); daoUtil.executeUpdate(); daoUtil.free(); }