Package com.avaje.ebeaninternal.server.el

Examples of com.avaje.ebeaninternal.server.el.ElPropertyValue


   * used to build the appropriate query for +query or +lazy loading.
   */
  private void registerSecondaryQuery(OrmQueryProperties props) {
         
    String propName = props.getPath();
    ElPropertyValue elGetValue = rootDescriptor.getElGetValue(propName);

    boolean many = elGetValue.getBeanProperty().containsMany();
    registerSecondaryNode(many, props);
  }
View Full Code Here


    }
   
    private String parseProperty(Property p) {
       
        String propName = p.getProperty();
        ElPropertyValue el  = desc.getElGetValue(propName);
        if (el == null){
            return p.toStringFormat();
        }
       
        BeanProperty beanProperty = el.getBeanProperty();
        if (beanProperty instanceof BeanPropertyAssoc<?>){
            BeanPropertyAssoc<?> ap = (BeanPropertyAssoc<?>)beanProperty;
            IdBinder idBinder = ap.getTargetDescriptor().getIdBinder();
            return idBinder.getOrderBy(el.getElName(), p.isAscending());
        }
       
        return p.toStringFormat();
    }
View Full Code Here

    return new ElComparatorCompound<T>(comparators);
  }

  private ElComparator<T> createPropertyComparator(Property sortProp) {

    ElPropertyValue elGetValue = getElGetValue(sortProp.getName());

    Boolean nullsHigh = sortProp.getNullsHigh();
    if (nullsHigh == null) {
      nullsHigh = Boolean.TRUE;
    }
View Full Code Here

    }
    return getElPropertyValue(propName, true);
  }

  private ElPropertyValue getElPropertyValue(String propName, boolean propertyDeploy) {
    ElPropertyValue elGetValue = elGetCache.get(propName);
    if (elGetValue == null) {
      // need to build it potentially navigating the BeanDescriptors
      elGetValue = buildElGetValue(propName, null, propertyDeploy);
      if (elGetValue == null) {
        return null;
View Full Code Here

TOP

Related Classes of com.avaje.ebeaninternal.server.el.ElPropertyValue

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.