org.sonar.db.purge.PurgeMapper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sonar-db Show documentation
Show all versions of sonar-db Show documentation
Create and request SonarQube schema
/*
* SonarQube
* Copyright (C) 2009-2016 SonarSource SA
* mailto:contact AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package org.sonar.db.purge;
import java.util.List;
import javax.annotation.Nullable;
import org.apache.ibatis.annotations.Param;
public interface PurgeMapper {
List selectSnapshotIds(PurgeSnapshotQuery query);
List selectSnapshotIdsByResource(@Param("resourceIds") List resourceIds);
/**
* Returns the list of components of a project from a project_uuid. The project itself is also returned.
*/
List selectComponentsByProjectUuid(String projectUuid);
void deleteSnapshot(@Param("snapshotIds") List snapshotIds);
void deleteSnapshotDuplications(@Param("snapshotIds") List snapshotIds);
void deleteSnapshotEvents(@Param("snapshotIds") List snapshotIds);
void deleteSnapshotMeasures(@Param("snapshotIds") List snapshotIds);
List selectMetricIdsWithoutHistoricalData();
void deleteSnapshotWastedMeasures(@Param("snapshotIds") List snapshotIds, @Param("mids") List metricIds);
void updatePurgeStatusToOne(long snapshotId);
void disableResource(long resourceId);
void resolveResourceIssuesNotAlreadyResolved(@Param("componentUuid") String componentUuid, @Param("dateAsLong") Long dateAsLong);
void deleteResourceIndex(@Param("resourceIds") List resourceIds);
void deleteEvent(long eventId);
void setSnapshotIsLastToFalse(long resourceId);
void deleteResourceLinks(@Param("componentUuids") List componentUuids);
void deleteResourceProperties(@Param("resourceIds") List resourceIds);
void deleteResource(@Param("resourceIds") List resourceIds);
void deleteResourceGroupRoles(@Param("resourceIds") List resourceIds);
void deleteResourceUserRoles(@Param("resourceIds") List resourceIds);
void deleteResourceManualMeasures(@Param("componentUuids") List componentUuids);
void deleteComponentEvents(@Param("componentUuids") List componentUuids);
void deleteAuthors(@Param("resourceIds") List resourceIds);
List selectPurgeableSnapshotsWithEvents(long resourceId);
List selectPurgeableSnapshotsWithoutEvents(long resourceId);
void deleteComponentIssueChanges(@Param("componentUuids") List componentUuids);
void deleteComponentIssues(@Param("componentUuids") List componentUuids);
void deleteOldClosedIssueChanges(@Param("projectUuid") String projectUuid, @Nullable @Param("toDate") Long toDate);
void deleteOldClosedIssues(@Param("projectUuid") String projectUuid, @Nullable @Param("toDate") Long toDate);
void deleteFileSourcesByProjectUuid(String rootProjectUuid);
void deleteFileSourcesByUuid(String fileUuid);
void deleteCeActivityByProjectUuid(String projectUuid);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy