Tabnine Logo
XccTemplate
Code IndexAdd Tabnine to your IDE (free)

How to use
XccTemplate
in
com.marklogic.xcc.template

Best Java code snippets using com.marklogic.xcc.template.XccTemplate (Showing top 4 results out of 315)

origin: com.marklogic/ml-javaclient-util

  /**
   * Convenience method for executing any adhoc query.
   *
   * @param xquery the XQuery statement to execute
   * @return the response from MarkLogic as a String
   */
  public String executeAdhocQuery(String xquery) {
    return execute(new AdhocQueryCallback(xquery));
  }
}
origin: com.marklogic/ml-javaclient-util

  @Override
  protected void executeQuery(String xquery) {
    if (logger.isDebugEnabled()) {
      logger.debug(xquery);
    }
    xccTemplate.executeAdhocQuery(xquery);
  }
}
origin: com.marklogic/ml-javaclient-util

@Bean
public XccTemplate xccTemplate() {
  return new XccTemplate(String.format("xcc://%s:%s@%s:8000/%s", getMlUsername(), getMlPassword(), getMlHost(),
      buildContentDatabaseName(mlAppName)));
}
origin: com.marklogic/ml-app-deployer

/**
 * Currently only have an XCC implementation for static checking, as XCC gives much more useful error messages
 * than REST does.
 *
 * @param appConfig
 * @return
 */
protected StaticChecker newStaticChecker(AppConfig appConfig) {
  String xccUri = "xcc://%s:%s@%s:%d";
  xccUri = String.format(xccUri, appConfig.getRestAdminUsername(), appConfig.getRestAdminPassword(),
    appConfig.getHost(), appConfig.getRestPort());
  XccStaticChecker checker = new XccStaticChecker(new XccTemplate(xccUri));
  checker.setBulkCheck(appConfig.isBulkLoadAssets());
  checker.setCheckLibraryModules(appConfig.isStaticCheckLibraryAssets());
  return checker;
}
com.marklogic.xcc.templateXccTemplate

Javadoc

Spring-style Template class that handles instantiating an XCC Session and then closing it, allowing the Callback implementation to focus on what to do with the Session.

Most used methods

  • <init>
  • execute
  • executeAdhocQuery
    Convenience method for executing any adhoc query.

Popular in Java

  • Reactive rest calls using spring rest template
  • scheduleAtFixedRate (ScheduledExecutorService)
  • onRequestPermissionsResult (Fragment)
  • setContentView (Activity)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • Socket (java.net)
    Provides a client-side TCP socket.
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • ImageIO (javax.imageio)
  • Top plugins for Android Studio
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