Class InspectionInfo


  • public class InspectionInfo
    extends Object
    Author:
    AG
    • Constructor Detail

      • InspectionInfo

        public InspectionInfo​(@NotNull
                              SQLRunnerEx sqlRunner,
                              @NotNull
                              SBuild build)
      • InspectionInfo

        public InspectionInfo​(@NotNull
                              SQLRunnerEx sqlRunner,
                              @NotNull
                              SBuild build,
                              int[] stats)
    • Method Detail

      • getBuild

        @NotNull
        public SBuild getBuild()
      • getBuildId

        public long getBuildId()
      • getStatistics

        @Nullable
        public int[] getStatistics()
      • getStatistics

        @Nullable
        public static int[] getStatistics​(@NotNull
                                          SQLRunnerEx sqlRunner,
                                          long buildId)
      • getStatisticsForBuilds

        @NotNull
        public static Map<SBuild,​int[]> getStatisticsForBuilds​(@NotNull
                                                                     SQLRunnerEx sqlRunner,
                                                                     @NotNull
                                                                     List<SBuild> builds)
      • hasResults

        public static boolean hasResults​(@NotNull
                                         SQLRunnerEx sqlRunner,
                                         long buildId)
      • getInspections

        public List<String[]> getInspections()
      • getInspectionsWithFilesAndDetails

        public List<String[]> getInspectionsWithFilesAndDetails​(int limit,
                                                                boolean newOnly)
      • getFiles

        public List<String[]> getFiles​(long inspectionId,
                                       String path)
      • getPaths

        public Map<String,​Pair<Boolean,​Integer>> getPaths()
        returns list of all paths in this build
        Returns:
        path : isNew, min(severity)
      • getDetails

        public List<String[]> getDetails​(long inspectionId,
                                         String fileName,
                                         boolean filterNew)
      • formatFQName

        public static String formatFQName​(String fqName,
                                          int type)