Codota Logo
InternalPropertiesMapper.deleteByKey
Code IndexAdd Codota to your IDE (free)

How to use
deleteByKey
method
in
org.sonar.db.property.InternalPropertiesMapper

Best Java code snippets using org.sonar.db.property.InternalPropertiesMapper.deleteByKey (Showing top 5 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ScheduledThreadPoolExecutor s =
  • Codota Iconnew ScheduledThreadPoolExecutor(corePoolSize)
  • Codota IconThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
  • Codota IconString str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
  • Smart code suggestions by Codota
}
origin: SonarSource/sonarqube

public void delete(DbSession dbSession, String key) {
 getMapper(dbSession).deleteByKey(key);
}
origin: SonarSource/sonarqube

/**
 * Save a property which value is empty.
 */
public void saveAsEmpty(DbSession dbSession, String key) {
 checkKey(key);
 InternalPropertiesMapper mapper = getMapper(dbSession);
 mapper.deleteByKey(key);
 mapper.insertAsEmpty(key, system2.now());
}
origin: SonarSource/sonarqube

/**
 * Save a property which value is not empty.
 * <p>Value can't be {@code null} but can have any size except 0.</p>
 * 
 * @throws IllegalArgumentException if {@code key} or {@code value} is {@code null} or empty.
 * 
 * @see #saveAsEmpty(DbSession, String)
 */
public void save(DbSession dbSession, String key, String value) {
 checkKey(key);
 checkArgument(value != null && !value.isEmpty(), "value can't be null nor empty");
 InternalPropertiesMapper mapper = getMapper(dbSession);
 mapper.deleteByKey(key);
 long now = system2.now();
 if (mustsBeStoredInClob(value)) {
  mapper.insertAsClob(key, value, now);
 } else {
  mapper.insertAsText(key, value, now);
 }
}
origin: org.sonarsource.sonarqube/sonar-db

/**
 * Save a property which value is empty.
 */
public void saveAsEmpty(DbSession dbSession, String key) {
 checkKey(key);
 InternalPropertiesMapper mapper = getMapper(dbSession);
 mapper.deleteByKey(key);
 mapper.insertAsEmpty(key, system2.now());
}
origin: org.sonarsource.sonarqube/sonar-db

/**
 * Save a property which value is not empty.
 * <p>Value can't be {@code null} but can have any size except 0.</p>
 * 
 * @throws IllegalArgumentException if {@code key} or {@code value} is {@code null} or empty.
 * 
 * @see #saveAsEmpty(DbSession, String)
 */
public void save(DbSession dbSession, String key, String value) {
 checkKey(key);
 checkArgument(value != null && !value.isEmpty(), "value can't be null nor empty");
 InternalPropertiesMapper mapper = getMapper(dbSession);
 mapper.deleteByKey(key);
 long now = system2.now();
 if (mustsBeStoredInClob(value)) {
  mapper.insertAsClob(key, value, now);
 } else {
  mapper.insertAsText(key, value, now);
 }
}
org.sonar.db.propertyInternalPropertiesMapperdeleteByKey

Popular methods of InternalPropertiesMapper

  • selectAsClob
  • selectAsText
  • insertAsClob
  • insertAsEmpty
  • insertAsText

Popular in Java

  • Running tasks concurrently on multiple threads
  • getSupportFragmentManager (FragmentActivity)
  • findViewById (Activity)
  • onCreateOptionsMenu (Activity)
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Collectors (java.util.stream)
  • BoxLayout (javax.swing)
  • Option (scala)
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