use of org.springframework.jdbc.core.namedparam.MapSqlParameterSource in project ovirt-engine by oVirt.
the class NetworkClusterDaoImpl method setExclusiveFlagOnNetworkCluster.
private void setExclusiveFlagOnNetworkCluster(Guid clusterId, Guid networkId, String procedureName) {
MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource().addValue("cluster_id", clusterId).addValue("network_id", networkId);
getCallsHandler().executeModification(procedureName, parameterSource);
}
use of org.springframework.jdbc.core.namedparam.MapSqlParameterSource in project ovirt-engine by oVirt.
the class NetworkClusterDaoImpl method save.
@Override
public void save(NetworkCluster cluster) {
MapSqlParameterSource parameterSource = createAllFieldsParameterSource(cluster);
getCallsHandler().executeModification("Insertnetwork_cluster", parameterSource);
}
use of org.springframework.jdbc.core.namedparam.MapSqlParameterSource in project ovirt-engine by oVirt.
the class VdsDynamicDaoImpl method createFullParametersMapperForSave.
private MapSqlParameterSource createFullParametersMapperForSave(VdsDynamic vds) {
MapSqlParameterSource parameterSource = createFullParametersMapper(vds);
parameterSource.addValue("controlled_by_pm_policy", vds.isPowerManagementControlledByPolicy());
return parameterSource;
}
use of org.springframework.jdbc.core.namedparam.MapSqlParameterSource in project ovirt-engine by oVirt.
the class VdsDynamicDaoImpl method updateExternalStatus.
public void updateExternalStatus(Guid id, ExternalStatus status) {
MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource().addValue("vds_guid", id).addValue("external_status", status);
getCallsHandler().executeModification("UpdateHostExternalStatus", parameterSource);
}
use of org.springframework.jdbc.core.namedparam.MapSqlParameterSource in project ovirt-engine by oVirt.
the class VdsDynamicDaoImpl method remove.
@Override
public void remove(Guid id) {
dnsResolverConfigurationDao.removeByVdsDynamicId(id);
MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource().addValue("vds_id", id);
getCallsHandler().executeModification("DeleteVdsDynamic", parameterSource);
}
Aggregations