Codota Logo
SelectClause.getSelectList
Code IndexAdd Codota to your IDE (free)

How to use
getSelectList
method
in
org.nuxeo.ecm.core.query.sql.model.SelectClause

Best Java code snippets using org.nuxeo.ecm.core.query.sql.model.SelectClause.getSelectList (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Dictionary d =
  • Codota Iconnew Hashtable()
  • Codota IconBundle bundle;bundle.getHeaders()
  • Codota Iconnew Properties()
  • Smart code suggestions by Codota
}
origin: org.nuxeo.ecm.core/nuxeo-core-storage-mongodb

protected void walkProjection() {
  projection = new Document();
  boolean projectionOnFulltextScore = false;
  for (Operand op : selectClause.getSelectList().values()) {
    if (!(op instanceof Reference)) {
      throw new QueryParseException("Projection not supported: " + op);
    }
    FieldInfo fieldInfo = walkReference((Reference) op);
    String propertyField = fieldInfo.prop;
    if (!propertyField.equals(NXQL.ECM_UUID) //
        && !propertyField.equals(fieldInfo.projectionField) //
        && !propertyField.contains("/")) {
      propertyKeys.put(fieldInfo.projectionField, propertyField);
    }
    projection.put(fieldInfo.projectionField, ONE);
    if (propertyField.contains("*")) {
      projectionHasWildcard = true;
    }
    if (fieldInfo.projectionField.equals(KEY_FULLTEXT_SCORE)) {
      projectionOnFulltextScore = true;
    }
  }
  if (projectionOnFulltextScore || sortOnFulltextScore) {
    if (!hasFulltext) {
      throw new QueryParseException(NXQL.ECM_FULLTEXT_SCORE + " cannot be used without " + NXQL.ECM_FULLTEXT);
    }
    projection.put(KEY_FULLTEXT_SCORE, new Document(MONGODB_META, MONGODB_TEXT_SCORE));
  }
}
origin: org.nuxeo.elasticsearch/nuxeo-elasticsearch-core

  @Override
  public void visitSelectClause(SelectClause selectClause) {
    SchemaManager schemaManager = Framework.getService(SchemaManager.class);
    for (int i = 0; i < selectClause.getSelectList().size(); i++) {
      Operand op = selectClause.get(i);
      if (!(op instanceof Reference)) {
        // ignore it
        continue;
      }
      String name = ((Reference) op).name;
      Field field = schemaManager.getField(name);
      fieldsAndTypes.put(name, field == null ? null : field.getType());
    }
  }
});
origin: org.nuxeo.ecm.core/nuxeo-core-storage-sql

boolean selectStar = selectClause.getSelectList().size() == 1
    && (selectClause.get(0).equals(new Reference(NXQL.ECM_UUID)));
org.nuxeo.ecm.core.query.sql.modelSelectClausegetSelectList

Popular methods of SelectClause

  • get
  • accept
  • add
  • isDistinct
  • isEmpty

Popular in Java

  • Start an intent from android
  • setRequestProperty (URLConnection)
  • startActivity (Activity)
  • getApplicationContext (Context)
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate(i
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Locale (java.util)
    A Locale object represents a specific geographical, political, or cultural region. An operation that
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
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