Package org.openrdf.sail.rdbms.algebra.base

Examples of org.openrdf.sail.rdbms.algebra.base.FromItem


  @Override
  public void meetFromItem(FromItem node)
    throws RuntimeException
  {
    FromItem top = gparent;
    gparent = parent;
    parent = node;
    super.meetFromItem(node);
    parent = gparent;
    gparent = top;
View Full Code Here


  @Override
  public void meetFromItem(FromItem node)
    throws RuntimeException
  {
    FromItem top = parent;
    parent = join;
    join = node;
    super.meetFromItem(node);
    join = parent;
    parent = top;
View Full Code Here

    join(var, alias, tableName, true);
  }

  private void join(ColumnVar var, String alias, String tableName, boolean left) {
    if (!isJoined(alias)) {
      FromItem valueJoin = valueJoin(alias, tableName, var, left);
      if (join == parent || join.getFromItem(var.getAlias()) != null) {
        join.addJoin(valueJoin);
      }
      else {
        parent.addJoinBefore(valueJoin, join);
View Full Code Here

  }

  @Override
  public FromItem getFromItem(String alias) {
    for (FromItem from : union) {
      FromItem item = from.getFromItem(alias);
      if (item != null) {
        return item;
      }
    }
    return super.getFromItem(alias);
View Full Code Here

  public void addJoin(SelectQuery right) {
    from.addJoin(right.getFrom());
  }

  public void addLeftJoin(SelectQuery right) {
    FromItem join = right.getFrom();
    join.setLeft(true);
    from.addJoin(join);
  }
View Full Code Here

  }

  @Override
  public FromItem getFromItem(String alias) {
    for (FromItem from : union) {
      FromItem item = from.getFromItem(alias);
      if (item != null)
        return item;
    }
    return super.getFromItem(alias);
  }
View Full Code Here

  public void addJoin(SelectQuery right) {
    from.addJoin(right.getFrom());
  }

  public void addLeftJoin(SelectQuery right) {
    FromItem join = right.getFrom();
    join.setLeft(true);
    from.addJoin(join);
  }
View Full Code Here

  @Override
  public void meetFromItem(FromItem node)
    throws RuntimeException
  {
    FromItem top = gparent;
    gparent = parent;
    parent = node;
    super.meetFromItem(node);
    parent = gparent;
    gparent = top;
View Full Code Here

  @Override
  public void meetFromItem(FromItem node)
    throws RuntimeException
  {
    FromItem top = parent;
    parent = join;
    join = node;
    super.meetFromItem(node);
    join = parent;
    parent = top;
View Full Code Here

    join(var, alias, tableName, true);
  }

  private void join(ColumnVar var, String alias, String tableName, boolean left) {
    if (query.getFromItem(alias) == null) {
      FromItem valueJoin = valueJoin(alias, tableName, var, left);
      if (join == parent || join.getFromItem(var.getAlias()) != null) {
        join.addJoin(valueJoin);
      }
      else {
        parent.addJoinBefore(valueJoin, join);
View Full Code Here

TOP

Related Classes of org.openrdf.sail.rdbms.algebra.base.FromItem

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.