congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
FromClause.indexOf
Code IndexAdd Tabnine to your IDE (free)

How to use
indexOf
method
in
org.apache.metamodel.query.FromClause

Best Java code snippets using org.apache.metamodel.query.FromClause.indexOf (Showing top 2 results out of 315)

origin: apache/metamodel

/**
 * Creates a clone of the {@link SelectItem} for use within a cloned {@link Query}.
 * 
 * @param clonedQuery a new {@link Query} object that represents the clone-to-be of a query. It is expected that
 *            {@link FromItem}s have already been cloned in this {@link Query}.
 * @return
 */
protected SelectItem clone(Query clonedQuery) {
  final SelectItem subQuerySelectItem = (_subQuerySelectItem == null ? null : _subQuerySelectItem.clone());
  final FromItem fromItem;
  if (_fromItem == null) {
    fromItem = null;
  } else if (clonedQuery != null && _query != null) {
    final int indexOfFromItem = _query.getFromClause().indexOf(_fromItem);
    if (indexOfFromItem != -1) {
      fromItem = clonedQuery.getFromClause().getItem(indexOfFromItem);
    } else {
      fromItem = _fromItem.clone();
    }
  } else {
    fromItem = _fromItem.clone();
  }
  final SelectItem s = new SelectItem(_column, fromItem, _function, _functionParameters, _expression,
      subQuerySelectItem, _alias, _functionApproximationAllowed);
  return s;
}
origin: org.apache.metamodel/MetaModel-core

/**
 * Creates a clone of the {@link SelectItem} for use within a cloned {@link Query}.
 * 
 * @param clonedQuery a new {@link Query} object that represents the clone-to-be of a query. It is expected that
 *            {@link FromItem}s have already been cloned in this {@link Query}.
 * @return
 */
protected SelectItem clone(Query clonedQuery) {
  final SelectItem subQuerySelectItem = (_subQuerySelectItem == null ? null : _subQuerySelectItem.clone());
  final FromItem fromItem;
  if (_fromItem == null) {
    fromItem = null;
  } else if (clonedQuery != null && _query != null) {
    final int indexOfFromItem = _query.getFromClause().indexOf(_fromItem);
    if (indexOfFromItem != -1) {
      fromItem = clonedQuery.getFromClause().getItem(indexOfFromItem);
    } else {
      fromItem = _fromItem.clone();
    }
  } else {
    fromItem = _fromItem.clone();
  }
  final SelectItem s = new SelectItem(_column, fromItem, _function, _functionParameters, _expression,
      subQuerySelectItem, _alias, _functionApproximationAllowed);
  return s;
}
org.apache.metamodel.queryFromClauseindexOf

Popular methods of FromClause

  • getItems
  • getItem
  • getItemCount
  • removeItem
  • <init>
  • addItem
  • addItems
  • getAlias
    Gets the alias of a table, if it is registered (and visible, ie. not part of a sub-query) in the Fro
  • getItemByReference
  • toSql

Popular in Java

  • Making http requests using okhttp
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • addToBackStack (FragmentTransaction)
  • scheduleAtFixedRate (Timer)
  • 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
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • JFrame (javax.swing)
  • Top plugins for WebStorm
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