Examples of keyField()


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

                    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.keyField()

                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

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

                    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, args, method.getParameterAnnotations()), false);
View Full Code Here

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

                    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, args, method.getParameterAnnotations()), false);
View Full Code Here

Examples of org.elasticsearch.search.facet.range.RangeFacetBuilder.keyField()

    Assert.notNull(getName(), "Facet name can't be a null !!!");
    Assert.isTrue(StringUtils.isNotBlank(field) || StringUtils.isNotBlank(keyField) && StringUtils.isNotBlank(valueField), "Please select field or key field and value field !!!");

    RangeFacetBuilder builder = FacetBuilders.rangeFacet(getName());
    if (StringUtils.isNotBlank(keyField)) {
      builder.keyField(keyField).valueField(valueField);
    } else {
      builder.field(field);
    }

    for (Entry entry : entries) {
View Full Code Here

Examples of org.elasticsearch.search.facet.termsstats.TermsStatsFacetBuilder.keyField()

            srb = filteredSearchRequest(query, filter, IndexHelper.determineAffectedIndices(indexRangeService, deflector, range));
        }

        TermsStatsFacetBuilder stats = new TermsStatsFacetBuilder(TERMS_STATS_FACET_NAME);
        stats.global(false);
        stats.keyField(keyField);
        stats.valueField(valueField);
        stats.order(TermsStatsFacet.ComparatorType.fromString(order.toString().toLowerCase()));
        stats.size(size);

        stats.facetFilter(standardFilters(range, filter));
View Full Code Here

Examples of se.unlogic.standardutils.dao.annotations.SimplifiedRelation.keyField()

    }else{
     
      remoteTableName = simplifiedRelation.table();
    }
   
    if (!StringUtils.isEmpty(simplifiedRelation.keyField())) {

      try {
        keyField = ReflectionUtils.getField(beanClass, simplifiedRelation.keyField());

        if (keyField == null) {
View Full Code Here

Examples of se.unlogic.standardutils.dao.annotations.SimplifiedRelation.keyField()

    }
   
    if (!StringUtils.isEmpty(simplifiedRelation.keyField())) {

      try {
        keyField = ReflectionUtils.getField(beanClass, simplifiedRelation.keyField());

        if (keyField == null) {

          throw new RuntimeException("Unable to find field " + simplifiedRelation.keyField() + " in " + beanClass.getClass());
        }
View Full Code Here

Examples of se.unlogic.standardutils.dao.annotations.SimplifiedRelation.keyField()

      try {
        keyField = ReflectionUtils.getField(beanClass, simplifiedRelation.keyField());

        if (keyField == null) {

          throw new RuntimeException("Unable to find field " + simplifiedRelation.keyField() + " in " + beanClass.getClass());
        }

      } catch (SecurityException e) {

        throw new RuntimeException(e);
View Full Code Here

Examples of se.unlogic.standardutils.dao.annotations.SimplifiedRelation.keyField()

    }else{
     
      remoteTableName = simplifiedRelation.table();
    }
   
    if (!StringUtils.isEmpty(simplifiedRelation.keyField())) {

      try {
        keyField = ReflectionUtils.getField(beanClass, simplifiedRelation.keyField());

        if (keyField == null) {
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.