Examples of NetworkDeviceDomain


Examples of de.sosd.mediaserver.domain.db.NetworkDeviceDomain

    return updateDevice(ndb, system);
  }
 
  @Transactional(propagation = Propagation.SUPPORTS)
  public NetworkDeviceBean findDevice(NetworkDeviceBean ndb) {
    NetworkDeviceDomain result = manager.find(NetworkDeviceDomain.class, ndb.getMacAddress());
   
    if (result != null) {
      return convert(result);
    }
    return null;
View Full Code Here

Examples of de.sosd.mediaserver.domain.db.NetworkDeviceDomain

    return null;
  }
 
  @Transactional(propagation = Propagation.REQUIRED)
  public NetworkDeviceBean updateDevice(NetworkDeviceBean ndb, SystemDomain system) {
    NetworkDeviceDomain ndd = manager.find(NetworkDeviceDomain.class, ndb.getMacAddress());
   
    if (ndd == null) {
      ndd = new NetworkDeviceDomain(ndb, system);
    } else {
      ndd.updateFrom(ndb);
    }
   
    manager.persist(ndd);
    return convert(ndd);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.