use of org.springframework.jdbc.core.namedparam.MapSqlParameterSource in project ovirt-engine by oVirt.
the class TagDaoImpl method attachUserGroupToTag.
@Override
public void attachUserGroupToTag(TagsUserGroupMap tagUserGroupMap) {
MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource().addValue("group_id", tagUserGroupMap.getGroupId()).addValue("tag_id", tagUserGroupMap.getTagId());
getCallsHandler().executeModification("Inserttags_user_group_map", parameterSource);
}
use of org.springframework.jdbc.core.namedparam.MapSqlParameterSource in project ovirt-engine by oVirt.
the class TagDaoImpl method detachUserFromTag.
@Override
public void detachUserFromTag(Guid tagId, Guid userId) {
MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource().addValue("tag_id", tagId).addValue("user_id", userId);
getCallsHandler().executeModification("Deletetags_user_map", parameterSource);
}
use of org.springframework.jdbc.core.namedparam.MapSqlParameterSource in project ovirt-engine by oVirt.
the class TagDaoImpl method detachVdsFromTag.
@Override
public void detachVdsFromTag(Guid tagId, Guid vdsId) {
MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource().addValue("tag_id", tagId).addValue("vds_id", vdsId);
getCallsHandler().executeModification("Deletetags_vds_map", parameterSource);
}
use of org.springframework.jdbc.core.namedparam.MapSqlParameterSource in project ovirt-engine by oVirt.
the class TagDaoImpl method attachTemplateToTag.
@Override
public void attachTemplateToTag(TagsTemplateMap tagTemplateMap) {
MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource().addValue("tag_id", tagTemplateMap.getTagId()).addValue("vm_id", tagTemplateMap.getTemplateId()).addValue("DefaultDisplayType", tagTemplateMap.getDefaultDisplayType());
getCallsHandler().executeModification("Inserttags_vm_map", parameterSource);
}
use of org.springframework.jdbc.core.namedparam.MapSqlParameterSource in project ovirt-engine by oVirt.
the class TagDaoImpl method detachUserGroupFromTag.
@Override
public void detachUserGroupFromTag(Guid tagId, Guid groupId) {
MapSqlParameterSource parameterSource = getCustomMapSqlParameterSource().addValue("group_id", groupId).addValue("tag_id", tagId);
getCallsHandler().executeModification("Deletetags_user_group_map", parameterSource);
}
Aggregations