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

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

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

origin: org.apache.metamodel/MetaModel-core

/**
 * Retrieves a table by it's reference which may be it's alias or it's
 * qualified table name. Typically, this method is used to resolve a
 * SelectItem with a reference like "foo.bar", where "foo" may either be an
 * alias or a table name
 * 
 * @param reference
 * @return a FromItem which matches the provided reference string
 */
public FromItem getItemByReference(String reference) {
  if (reference == null) {
    return null;
  }
  for (final FromItem item : getItems()) {
    FromItem result = getItemByReference(item, reference);
    if (result != null) {
      return result;
    }
  }
  return null;
}
origin: apache/metamodel

/**
 * Retrieves a table by it's reference which may be it's alias or it's
 * qualified table name. Typically, this method is used to resolve a
 * SelectItem with a reference like "foo.bar", where "foo" may either be an
 * alias or a table name
 * 
 * @param reference
 * @return a FromItem which matches the provided reference string
 */
public FromItem getItemByReference(String reference) {
  if (reference == null) {
    return null;
  }
  for (final FromItem item : getItems()) {
    FromItem result = getItemByReference(item, reference);
    if (result != null) {
      return result;
    }
  }
  return null;
}
origin: apache/metamodel

final FromItem leftResult = getItemByReference(item.getLeftSide(), reference);
if (leftResult != null) {
  return leftResult;
final FromItem rightResult = getItemByReference(item.getRightSide(), reference);
if (rightResult != null) {
  return rightResult;
origin: org.apache.metamodel/MetaModel-core

final FromItem leftResult = getItemByReference(item.getLeftSide(), reference);
if (leftResult != null) {
  return leftResult;
final FromItem rightResult = getItemByReference(item.getRightSide(), reference);
if (rightResult != null) {
  return rightResult;
origin: apache/metamodel

final String prefix = expression.substring(0, splitIndex);
columnName = expression.substring(splitIndex + 1);
fromItem = _query.getFromClause().getItemByReference(prefix);
origin: org.apache.metamodel/MetaModel-core

final String prefix = expression.substring(0, splitIndex);
columnName = expression.substring(splitIndex + 1);
fromItem = _query.getFromClause().getItemByReference(prefix);
org.apache.metamodel.queryFromClausegetItemByReference

Javadoc

Retrieves a table by it's reference which may be it's alias or it's qualified table name. Typically, this method is used to resolve a SelectItem with a reference like "foo.bar", where "foo" may either be an alias or a table name

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
  • indexOf
  • toSql

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getSupportFragmentManager (FragmentActivity)
  • getSystemService (Context)
  • setContentView (Activity)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Best IntelliJ plugins
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