Codota Logo
CeQueueMapper.selectByUuid
Code IndexAdd Codota to your IDE (free)

How to use
selectByUuid
method
in
org.sonar.db.ce.CeQueueMapper

Best Java code snippets using org.sonar.db.ce.CeQueueMapper.selectByUuid (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ArrayList a =
  • Codota Iconnew ArrayList<String>()
  • Codota Iconnew ArrayList()
  • Codota Iconnew ArrayList<Object>()
  • Smart code suggestions by Codota
}
origin: SonarSource/sonarqube

public Optional<CeQueueDto> selectByUuid(DbSession session, String uuid) {
 return Optional.ofNullable(mapper(session).selectByUuid(uuid));
}
origin: SonarSource/sonarqube

private Optional<CeQueueDto> tryToPeek(DbSession session, String eligibleTaskUuid, String workerUuid) {
 long now = system2.now();
 int touchedRows = mapper(session).updateIf(eligibleTaskUuid,
  new UpdateIf.NewProperties(IN_PROGRESS, workerUuid, now, now),
  new UpdateIf.OldProperties(PENDING));
 if (touchedRows != 1) {
  return Optional.empty();
 }
 CeQueueDto result = mapper(session).selectByUuid(eligibleTaskUuid);
 session.commit();
 return Optional.ofNullable(result);
}
origin: org.sonarsource.sonarqube/sonar-db

public Optional<CeQueueDto> selectByUuid(DbSession session, String uuid) {
 return Optional.fromNullable(mapper(session).selectByUuid(uuid));
}
origin: org.sonarsource.sonarqube/sonar-db

private Optional<CeQueueDto> tryToPeek(DbSession session, String taskUuid) {
 int touchedRows = mapper(session).updateIfStatus(taskUuid, IN_PROGRESS, system2.now(), system2.now(), PENDING);
 if (touchedRows != 1) {
  return Optional.absent();
 }
 CeQueueDto result = mapper(session).selectByUuid(taskUuid);
 session.commit();
 return Optional.of(result);
}
org.sonar.db.ceCeQueueMapperselectByUuid

Popular methods of CeQueueMapper

  • countByQuery
  • deleteByUuid
  • insert
  • selectAllInAscOrder
  • selectByQueryInDescOrder
  • selectEligibleForPeek
  • updateIf
  • countByStatusAndComponentUuid
  • countByStatusAndMainComponentUuid
  • countByStatusAndMainComponentUuids
  • resetAllInProgressTasks
    Reset all IN_PROGRESS TASKS
  • resetAllToPendingStatus
  • resetAllInProgressTasks,
  • resetAllToPendingStatus,
  • resetTasksWithUnknownWorkerUUIDs,
  • resetToPendingForWorker,
  • selectByComponentUuid,
  • selectByMainComponentUuid,
  • selectInProgressStartedBefore,
  • selectPending,
  • selectWornout

Popular in Java

  • Reactive rest calls using spring rest template
  • runOnUiThread (Activity)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • getExternalFilesDir (Context)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • TreeSet (java.util)
    A NavigableSet implementation based on a TreeMap. The elements are ordered using their Comparable, o
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
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