Examples of relation()


Examples of adipe.translate.sql.State2.relation()

            if (bothColumnsFromSameOperand) {
                pIsEq = false;
            } else if (isInnerJoin) {
                index2 = index2 - r1.relation().columns().size();

                SimpleColumn replacedColumn = r2.relation().columns().get(index2 - 1);
                SimpleColumn replacedBy = r1.relation().columns().get(index1 - 1);
                for (ColumnNamesImpl cibn : relationsFound.values()) {
                    // TODO improve time complexity
                    cibn.replace(replacedColumn, replacedBy);
                }
View Full Code Here

Examples of adipe.translate.sql.State2.relation()

            if (joinType.UNION() != null) {
                throw new RuntimeException("UNION JOIN is not supported");// TODO
            } else {
                checkNotNull(joinType.outerJoinType());
                if (joinType.outerJoinType().LEFT() != null) {
                    rel = r1.relation().leftOuterJoin(r2.relation(), pcode, pIsEq);
                } else if (joinType.outerJoinType().RIGHT() != null) {
                    rel = r1.relation().rightOuterJoin(r2.relation(), pcode, pIsEq);
                } else {
                    checkNotNull(joinType.outerJoinType().FULL());
                    rel = r1.relation().fullOuterJoin(r2.relation(), pcode, pIsEq);
View Full Code Here

Examples of adipe.translate.sql.State2.relation()

            } else {
                checkNotNull(joinType.outerJoinType());
                if (joinType.outerJoinType().LEFT() != null) {
                    rel = r1.relation().leftOuterJoin(r2.relation(), pcode, pIsEq);
                } else if (joinType.outerJoinType().RIGHT() != null) {
                    rel = r1.relation().rightOuterJoin(r2.relation(), pcode, pIsEq);
                } else {
                    checkNotNull(joinType.outerJoinType().FULL());
                    rel = r1.relation().fullOuterJoin(r2.relation(), pcode, pIsEq);
                }
            }
View Full Code Here

Examples of adipe.translate.sql.State2.relation()

                    rel = r1.relation().leftOuterJoin(r2.relation(), pcode, pIsEq);
                } else if (joinType.outerJoinType().RIGHT() != null) {
                    rel = r1.relation().rightOuterJoin(r2.relation(), pcode, pIsEq);
                } else {
                    checkNotNull(joinType.outerJoinType().FULL());
                    rel = r1.relation().fullOuterJoin(r2.relation(), pcode, pIsEq);
                }
            }
        } else {
            rel = r1.relation().join(r2.relation(), pcode, pIsEq);
        }
View Full Code Here

Examples of adipe.translate.sql.State2.relation()

                    checkNotNull(joinType.outerJoinType().FULL());
                    rel = r1.relation().fullOuterJoin(r2.relation(), pcode, pIsEq);
                }
            }
        } else {
            rel = r1.relation().join(r2.relation(), pcode, pIsEq);
        }

        return makeState2(rel, rel.columns(), named);
    }
View Full Code Here

Examples of br.com.caelum.vraptor.restfulie.hypermedia.ConfigurableHypermediaResource.relation()

  @Get
  @Path("/items")
  public void list() {
    ConfigurableHypermediaResource resource = restfulie.enhance(database.lista());
    resource.relation("basket").uses(BasketsController.class).create(null);

    result.use(representation()).from(resource, "items").serialize();
  }

  @Get
View Full Code Here

Examples of com.amazonaws.hal.Link.relation()

        if ((link = method.getAnnotation(Link.class)) != null) {
            switch (link.method()) {
            case GET:
                if (List.class.isAssignableFrom(method.getReturnType())) {
                    //noinspection unchecked
                    return new HalLinkList(halResource, link.relation(),
                                           (Class) getCollectionType(method.getGenericReturnType(), 0, ResourceInfo.class),
                                           halClient);
                } else if (Map.class.isAssignableFrom(method.getReturnType())) {
                    //noinspection unchecked
                    return new HalLinkMap(halResource, link.relation(), link.keyField(),
View Full Code Here

Examples of com.amazonaws.hal.Link.relation()

                    return new HalLinkList(halResource, link.relation(),
                                           (Class) getCollectionType(method.getGenericReturnType(), 0, ResourceInfo.class),
                                           halClient);
                } else if (Map.class.isAssignableFrom(method.getReturnType())) {
                    //noinspection unchecked
                    return new HalLinkMap(halResource, link.relation(), link.keyField(),
                                          (Class) getCollectionType(method.getGenericReturnType(), 1, ResourceInfo.class),
                                          halClient);
                } else {
                    return halClient.getResource(halResource, method.getReturnType(),
                                                 getRelationHref(link, args == null ? EMPTY_ARGS : args, method.getParameterAnnotations()), false);
View Full Code Here

Examples of com.amazonaws.hal.Link.relation()

        if ((link = method.getAnnotation(Link.class)) != null) {
            switch (link.method()) {
            case GET:
                if (List.class.isAssignableFrom(method.getReturnType())) {
                    //noinspection unchecked
                    return new HalLinkList(halResource, link.relation(), getCollectionType(method.getGenericReturnType(), 0, ResourceInfo.class), halClient);
                } else if (Map.class.isAssignableFrom(method.getReturnType())) {
                    //noinspection unchecked
                    return new HalLinkMap(halResource, link.relation(), link.keyField(), getCollectionType(method.getGenericReturnType(), 1, ResourceInfo.class), halClient);
                } else {
                    return halClient.getResource(halResource, method.getReturnType(), getRelationHref(link.relation(), args), false);
View Full Code Here

Examples of com.amazonaws.hal.Link.relation()

                if (List.class.isAssignableFrom(method.getReturnType())) {
                    //noinspection unchecked
                    return new HalLinkList(halResource, link.relation(), getCollectionType(method.getGenericReturnType(), 0, ResourceInfo.class), halClient);
                } else if (Map.class.isAssignableFrom(method.getReturnType())) {
                    //noinspection unchecked
                    return new HalLinkMap(halResource, link.relation(), link.keyField(), getCollectionType(method.getGenericReturnType(), 1, ResourceInfo.class), halClient);
                } else {
                    return halClient.getResource(halResource, method.getReturnType(), getRelationHref(link.relation(), args), false);
                }

            case POST:
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.