Codota Logo
Context.get
Code IndexAdd Codota to your IDE (free)

How to use
get
method
in
sirius.kernel.commons.Context

Best Java code snippets using sirius.kernel.commons.Context.get (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
FileOutputStream f =
  • Codota IconFile file;new FileOutputStream(file)
  • Codota IconString name;new FileOutputStream(name)
  • Codota IconFile file;new FileOutputStream(file, true)
  • Smart code suggestions by Codota
}
origin: com.scireum/sirius-db

@Override
protected void writeBlobToParameter(String name, Blob blob) throws SQLException {
  OutputStream out = (OutputStream) params.get(name);
  if (out == null) {
    return;
  }
  try (InputStream in = blob.getBinaryStream()) {
    ByteStreams.copy(in, out);
  } catch (IOException e) {
    throw new SQLException(e);
  }
}
origin: com.scireum/sirius-kernel

/**
 * Provides the value associated with the given key as {@link Value}
 *
 * @param key the key for which the value should ne returned
 * @return a value wrapping the internally associated value for the given key
 */
@Nonnull
public Value getValue(Object key) {
  return Value.of(get(key));
}
origin: com.scireum/sirius-db

private Object computeEffectiveParameterValue(String fullParameterName) throws SQLException {
  String accessPath = null;
  String parameterName = fullParameterName;
  if (fullParameterName.contains(".")) {
    accessPath = parameterName.substring(parameterName.indexOf('.') + 1);
    parameterName = parameterName.substring(0, parameterName.indexOf('.'));
  }
  Object paramValue = context.get(parameterName);
  if (accessPath == null || paramValue == null) {
    return paramValue;
  }
  try {
    return Reflection.evalAccessPath(accessPath, paramValue);
  } catch (Exception e) {
    throw new SQLException(NLS.fmtr("StatementCompiler.cannotEvalAccessPath")
                 .set("name", parameterName)
                 .set("path", accessPath)
                 .set("value", paramValue)
                 .set("query", originalSQL)
                 .format(), e);
  }
}
sirius.kernel.commonsContextget

Javadoc

Provides the value associated with the given key as Value

Popular methods of Context

  • create
    Creates a new context
  • put
  • set
    Associates the given value to the given key, while returning this to permit fluent method chains
  • entrySet
  • putAll
  • <init>

Popular in Java

  • Start an intent from android
  • runOnUiThread (Activity)
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • getSharedPreferences (Context)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • Notification (javax.management)
  • DataSource (javax.sql)
    A factory for connections to the physical data source that this DataSource object represents. An alt
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registery of org.quartz
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.This exception may include information for locating the er
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