private MapSqlParameterSource getInsertOrUpdateParams(final VdsStatic vds) {
return getCustomMapSqlParameterSource()
.addValue("host_name", vds.getHostName())
.addValue("free_text_comment", vds.getComment())
.addValue("vds_unique_id", vds.getUniqueID())
.addValue("port", vds.getPort())
.addValue("cluster_id", vds.getClusterId())
.addValue("vds_id", vds.getId())
.addValue("vds_name", vds.getName())
.addValue("server_SSL_enabled", vds.isServerSslEnabled())
.addValue("vds_type", vds.getVdsType())
.addValue("vds_strength", vds.getVdsStrength())
.addValue("pm_enabled", vds.isPmEnabled())
.addValue("pm_proxy_preferences", FenceProxySourceTypeHelper.saveAsString(vds.getFenceProxySources()))
.addValue("pm_detect_kdump", vds.isPmKdumpDetection())
.addValue("otp_validity", vds.getOtpValidity())
.addValue("vds_spm_priority", vds.getVdsSpmPriority())
.addValue("console_address", vds.getConsoleAddress())
.addValue("sshKeyFingerprint", vds.getSshKeyFingerprint())
.addValue("ssh_port", vds.getSshPort())
.addValue("ssh_username", vds.getSshUsername())
.addValue("disable_auto_pm", vds.isDisablePowerManagementPolicy())
.addValue("host_provider_id", vds.getHostProviderId())
.addValue("openstack_network_provider_id", vds.getOpenstackNetworkProviderId())
.addValue("kernel_cmdline", KernelCmdlineColumn.fromVdsStatic(vds).toJson())
.addValue("last_stored_kernel_cmdline", vds.getLastStoredKernelCmdline())
.addValue("reinstall_required", vds.isReinstallRequired())
.addValue("vgpu_placement", vds.getVgpuPlacement());
}