public StorageDevice findDeviceByManagementIP( final Integer datacenterId, final String managementIp) { return deviceDAO.findDeviceByManagementIP(datacenterId, managementIp); }
public StorageDevice findDeviceById(final Integer datacenterId, final Integer deviceId) { return deviceDAO.getDeviceById(datacenterId, deviceId); }
public void updateDevice(final StorageDevice sd) { deviceDAO.flush(); }
public void removeDevice(final StorageDevice sd) { deviceDAO.remove(sd); deviceDAO.flush(); }
public StorageDevice insertDevice(final StorageDevice sd) { deviceDAO.persist(sd); deviceDAO.flush(); return sd; }
public List<StorageDevice> getDevicesByDatacenter(final Integer datacenterId) { return deviceDAO.getDevicesByDatacenter(datacenterId); }