private void populateHostData(Host host,HostParam param){
  if (param.getName() != null) {
    host.setLabel(param.getName());
  }
  if (param.getHostName() != null) {
    host.setHostName(param.getHostName());
  }
  if (param.getCluster() != null) {
    host.setCluster(param.getCluster());
  }
  if (param.getOsVersion() != null) {
    host.setOsVersion(param.getOsVersion());
  }
  if (param.getUserName() != null) {
    host.setUsername(param.getUserName());
  }
  if (param.getPassword() != null) {
    host.setPassword(param.getPassword());
  }
  if (param.getPortNumber() != null) {
    host.setPortNumber(param.getPortNumber());
  }
  if (param.getUseSsl() != null) {
    host.setUseSSL(param.getUseSsl());
  }
  if (param.getType() != null) {
    host.setType(param.getType());
  }
  if (param.getDiscoverable() != null) {
    host.setDiscoverable(param.getDiscoverable());
  }
  if (param.getVcenterDataCenter() != null) {
    host.setVcenterDataCenter(NullColumnValueGetter.isNullURI(param.getVcenterDataCenter()) ? NullColumnValueGetter.getNullURI() : param.getVcenterDataCenter());
  }
  Cluster cluster=null;
  if (!NullColumnValueGetter.isNullURI(param.getCluster())) {
    cluster=queryObject(Cluster.class,param.getCluster(),true);
    if (!NullColumnValueGetter.isNullURI(cluster.getVcenterDataCenter())) {
      host.setVcenterDataCenter(cluster.getVcenterDataCenter());
    }
    if (!NullColumnValueGetter.isNullURI(cluster.getProject())) {
      host.setProject(cluster.getProject());
    }
  }
  if (param.getBootVolume() != null) {
    host.setBootVolumeId(NullColumnValueGetter.isNullURI(param.getBootVolume()) ? NullColumnValueGetter.getNullURI() : param.getBootVolume());
  }
}

private void populateHostData ( Host host , HostParam param ) { if ( param . getName ( ) != null ) { host . setLabel ( param . getName ( ) ) ; } if ( param . getHostName ( ) != null ) { host . setHostName ( param . getHostName ( ) ) ; } if ( param . getCluster ( ) != null ) { host . setCluster ( param . getCluster ( ) ) ; } if ( param . getOsVersion ( ) != null ) { host . setOsVersion ( param . getOsVersion ( ) ) ; } if ( param . getUserName ( ) != null ) { host . setUsername ( param . getUserName ( ) ) ; } if ( param . getPassword ( ) != null ) { host . setPassword ( param . getPassword ( ) ) ; } if ( param . getPortNumber ( ) != null ) { host . setPortNumber ( param . getPortNumber ( ) ) ; } if ( param . getUseSsl ( ) != null ) { host . setUseSSL ( param . getUseSsl ( ) ) ; } if ( param . getType ( ) != null ) { host . setType ( param . getType ( ) ) ; } if ( param . getDiscoverable ( ) != null ) { host . setDiscoverable ( param . getDiscoverable ( ) ) ; } if ( param . getVcenterDataCenter ( ) != null ) { host . setVcenterDataCenter ( NullColumnValueGetter . isNullURI ( param . getVcenterDataCenter ( ) ) ? NullColumnValueGetter . getNullURI ( ) : param . getVcenterDataCenter ( ) ) ; } Cluster cluster = null ; if ( ! NullColumnValueGetter . isNullURI ( param . getCluster ( ) ) ) { cluster = queryObject ( Cluster . class , param . getCluster ( ) , true ) ; if ( ! NullColumnValueGetter . isNullURI ( cluster . getVcenterDataCenter ( ) ) ) { host . setVcenterDataCenter ( cluster . getVcenterDataCenter ( ) ) ; } if ( ! NullColumnValueGetter . isNullURI ( cluster . getProject ( ) ) ) { host . setProject ( cluster . getProject ( ) ) ; } } if ( param . getBootVolume ( ) != null ) { host . setBootVolumeId ( NullColumnValueGetter . isNullURI ( param . getBootVolume ( ) ) ? NullColumnValueGetter . getNullURI ( ) : param . getBootVolume ( ) ) ; } }
populate an instance of host with the provided host parameter
