Codota Logo
FileMoveRowDto
Code IndexAdd Codota to your IDE (free)

How to use
FileMoveRowDto
in
org.sonar.db.component

Best Java code snippets using org.sonar.db.component.FileMoveRowDto (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
LocalDateTime l =
  • Codota Iconnew LocalDateTime()
  • Codota IconLocalDateTime.now()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
  • Smart code suggestions by Codota
}
origin: SonarSource/sonarqube

private Map<String, DbComponent> getDbFilesByUuid() {
 try (DbSession dbSession = dbClient.openSession(false)) {
  ImmutableList.Builder<DbComponent> builder = ImmutableList.builder();
  dbClient.componentDao().scrollAllFilesForFileMove(dbSession, rootHolder.getRoot().getUuid(),
   resultContext -> {
    FileMoveRowDto row = resultContext.getResultObject();
    builder.add(new DbComponent(row.getId(), row.getKey(), row.getUuid(), row.getPath(), row.getLineCount()));
   });
  return builder.build().stream()
   .collect(MoreCollectors.uniqueIndex(DbComponent::getUuid));
 }
}
origin: SonarSource/sonarqube

private java.util.Optional<FileMoveRowDto> getById(long id) {
 return dtos.stream().filter(t -> t.getId() == id).findAny();
}
origin: SonarSource/sonarqube

private static void verifyFileMoveRowDto(RecordingResultHandler resultHander, ComponentAndSource componentAndSource) {
 FileMoveRowDto dto = resultHander.getById(componentAndSource.component.getId()).get();
 assertThat(dto.getKey()).isEqualTo(componentAndSource.component.getDbKey());
 assertThat(dto.getUuid()).isEqualTo(componentAndSource.component.uuid());
 assertThat(dto.getPath()).isEqualTo(componentAndSource.component.path());
 assertThat(dto.getLineCount()).isEqualTo(componentAndSource.source.getLineCount());
}
origin: org.sonarsource.sonarqube/sonar-server

private Map<String, DbComponent> getDbFilesByKey() {
 try (DbSession dbSession = dbClient.openSession(false)) {
  ImmutableList.Builder<DbComponent> builder = ImmutableList.builder();
  dbClient.componentDao().scrollAllFilesForFileMove(dbSession, rootHolder.getRoot().getUuid(),
   resultContext -> {
    FileMoveRowDto row = resultContext.getResultObject();
    builder.add(new DbComponent(row.getId(), row.getKey(), row.getUuid(), row.getPath(), row.getLineCount()));
   });
  return builder.build().stream()
   .collect(MoreCollectors.uniqueIndex(DbComponent::getKey));
 }
}
org.sonar.db.componentFileMoveRowDto

Most used methods

  • getId
  • getKey
  • getLineCount
  • getPath
  • getUuid

Popular in Java

  • Making http requests using okhttp
  • getSystemService (Context)
  • getExternalFilesDir (Context)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • Menu (java.awt)
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • HashSet (java.util)
    This class implements the Set interface, backed by a hash table (actually a HashMap instance). It m
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now