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

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

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

origin: apache/metamodel

private void replaceParametersInFromClause(Object[] values, AtomicInteger parameterIndex, Query originalQuery,
    Query newQuery) {
  final List<FromItem> fromItems = originalQuery.getFromClause().getItems();
  int i = 0;
  for (FromItem fromItem : fromItems) {
    final Query subQuery = fromItem.getSubQuery();
    if (subQuery != null) {
      final Query newSubQuery = newQuery.getFromClause().getItem(i).getSubQuery();
      replaceParametersInQuery(values, parameterIndex, subQuery, newSubQuery);
      newQuery.getFromClause().removeItem(i);
      newQuery.getFromClause().addItem(i, new FromItem(newSubQuery).setAlias(fromItem.getAlias()));
    }
    i++;
  }
}
origin: org.apache.metamodel/MetaModel-core

private void replaceParametersInFromClause(Object[] values, AtomicInteger parameterIndex, Query originalQuery,
    Query newQuery) {
  final List<FromItem> fromItems = originalQuery.getFromClause().getItems();
  int i = 0;
  for (FromItem fromItem : fromItems) {
    final Query subQuery = fromItem.getSubQuery();
    if (subQuery != null) {
      final Query newSubQuery = newQuery.getFromClause().getItem(i).getSubQuery();
      replaceParametersInQuery(values, parameterIndex, subQuery, newSubQuery);
      newQuery.getFromClause().removeItem(i);
      newQuery.getFromClause().addItem(i, new FromItem(newSubQuery).setAlias(fromItem.getAlias()));
    }
    i++;
  }
}
org.apache.metamodel.queryFromClauseaddItem

Popular methods of FromClause

  • getItems
  • getItem
  • getItemCount
  • removeItem
  • <init>
  • 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
  • indexOf
  • toSql

Popular in Java

  • Creating JSON documents from java classes using gson
  • onRequestPermissionsResult (Fragment)
  • setContentView (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • JList (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