示例#1
0
 public StorageDevice findDeviceByManagementIP(
     final Integer datacenterId, final String managementIp) {
   return deviceDAO.findDeviceByManagementIP(datacenterId, managementIp);
 }
示例#2
0
 public StorageDevice findDeviceById(final Integer datacenterId, final Integer deviceId) {
   return deviceDAO.getDeviceById(datacenterId, deviceId);
 }
示例#3
0
 public void updateDevice(final StorageDevice sd) {
   deviceDAO.flush();
 }
示例#4
0
 public void removeDevice(final StorageDevice sd) {
   deviceDAO.remove(sd);
   deviceDAO.flush();
 }
示例#5
0
  public StorageDevice insertDevice(final StorageDevice sd) {
    deviceDAO.persist(sd);
    deviceDAO.flush();

    return sd;
  }
示例#6
0
 public List<StorageDevice> getDevicesByDatacenter(final Integer datacenterId) {
   return deviceDAO.getDevicesByDatacenter(datacenterId);
 }