Tabnine Logo
Data.setVisible
Code IndexAdd Tabnine to your IDE (free)

How to use
setVisible
method
in
io.cattle.platform.core.model.Data

Best Java code snippets using io.cattle.platform.core.model.Data.setVisible (Showing top 1 results out of 315)

origin: rancher/cattle

  @Override
  public String doWithLock() {
    Data data = objectManager.findAny(Data.class,
        DATA.NAME, key);
    if ( data != null && data.getVisible() != null && data.getVisible() == visible ) {
      return data.getValue();
    } else if ( data != null ) {
      data.setVisible(visible);
      objectManager.persist(data);
      return data.getValue();
    }
    try {
      String value = generator.call();
      if ( value == null ) {
        return value;
      }
      return objectManager.create(Data.class,
          DATA.NAME, key,
          DATA.VISIBLE, visible,
          DATA.VALUE, value).getValue();
    } catch (Exception e) {
      ExceptionUtils.rethrowRuntime(e);
      throw new RuntimeException("Failed to generate value for [" + key + "]", e);
    }
  }
});
io.cattle.platform.core.modelDatasetVisible

Javadoc

Setter for cattle.data.visible.

Popular methods of Data

  • getId
    Getter for cattle.data.id.
  • getName
    Getter for cattle.data.name.
  • from
    Load data from another generated Record/POJO implementing the common interface Data
  • getValue
    Getter for cattle.data.value.
  • getVisible
    Getter for cattle.data.visible.

Popular in Java

  • Running tasks concurrently on multiple threads
  • getApplicationContext (Context)
  • getSharedPreferences (Context)
  • getSystemService (Context)
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • JButton (javax.swing)
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now