Examples of FromItem


Examples of com.caucho.amber.query.FromItem

        AmberTable subTable = field.getTable();

        if (subTable != null && subTable != type.getTable()) {
          LinkColumns link = subTable.getDependentIdLink();

          FromItem item = parser.createDependentFromItem(_fromItem, link);

          _subItems.add(item);
        }
      }
    }
View Full Code Here

Examples of com.caucho.amber.query.FromItem

    else if (collectionExpr instanceof OneToManyExpr) {
      // ejb/06u0, jpa/10c4, jpa/10c5
      OneToManyExpr oneToMany = (OneToManyExpr) collectionExpr;
      PathExpr parent = oneToMany.getParent();

      FromItem childFromItem = ((PathExpr) itemExpr).getChildFromItem();

      AmberExpr expr;

      expr = new ManyToOneJoinExpr(oneToMany.getLinkColumns(),
                                   childFromItem,
View Full Code Here

Examples of com.caucho.amber.query.FromItem

        String id = idColumns.get(0).getName();

        cb.append(" AND (caucho." + id + " = ");

        FromItem childFromItem = ((PathExpr) _itemExpr).getChildFromItem();

        if (childFromItem != null) {
          cb.append(childFromItem.getName() + ".");

          // XXX: needs to handle compound PK.
          idColumns = childFromItem.getTable().getIdColumns();

          cb.append(idColumns.get(0).getName() + ")");
        }
      }
    }
View Full Code Here

Examples of com.caucho.amber.query.FromItem

  public FromItem bindSubPath(QueryParser parser)
  {
    // if (_childFromItem != null)
    //   return _childFromItem;

    FromItem parentFromItem = _parent.bindSubPath(parser);

    _fromItem = parentFromItem;

    return _fromItem;
View Full Code Here

Examples of com.caucho.amber.query.FromItem

  public FromItem addFromItem(QueryParser parser, String id)
    throws QueryParseException
  {
    _expr = _expr.bindSelect(parser, id);

    FromItem fromItem = _expr.bindSubPath(parser);

    return fromItem;
  }
View Full Code Here

Examples of com.caucho.amber.query.FromItem

  public FromItem addFromItem(QueryParser parser, String id)
    throws QueryParseException
  {
    _expr = (ManyToOneExpr) _expr.bindSelect(parser, id);

    FromItem fromItem = _expr.bindSubPath(parser);

    return fromItem;
  }
View Full Code Here

Examples of com.caucho.amber.query.FromItem

  public FromItem addFromItem(QueryParser parser, String id)
    throws QueryParseException
  {
    _expr = (EmbeddedExpr) _expr.bindSelect(parser, id);

    FromItem fromItem = _expr.bindSubPath(parser);

    return fromItem;
  }
View Full Code Here

Examples of com.caucho.amber.query.FromItem

  public FromItem addFromItem(QueryParser parser, String id)
    throws QueryParseException
  {
    _expr.bindSelect(parser, id);

    FromItem fromItem = _expr.getChildFromItem();

    return fromItem;
  }
View Full Code Here

Examples of com.caucho.amber.query.FromItem

  public FromItem addFromItem(QueryParser parser, String id)
    throws QueryParseException
  {
    _expr = (DependentEntityOneToOneExpr) _expr.bindSelect(parser, id);

    FromItem fromItem = _expr.bindSubPath(parser);

    return fromItem;
  }
View Full Code Here

Examples of com.caucho.amber.query.FromItem

  /**
   * Binds the expression as a select item.
   */
  public AmberExpr bindSelect(QueryParser parser)
  {
    FromItem parentFromItem = _parent.bindSubPath(parser);

    if (parentFromItem.getTable() == getColumn().getTable()) {
      _fromItem = parentFromItem;

      return this;
    }

View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.