Package de.sosd.mediaserver.domain.db

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


    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

Related Classes of de.sosd.mediaserver.domain.db.NetworkDeviceDomain

Copyright © 2018 www.massapicom. 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.