Package com.avaje.ebeaninternal.server.querydefn

Examples of com.avaje.ebeaninternal.server.querydefn.NaturalKeyBindParam


      // no natural key caching for this query
      return null;
    }
   
    // check if it is a find by unique id (using the natural key)
    NaturalKeyBindParam keyBindParam = query.getNaturalKeyBindParam();
    if (keyBindParam == null || !isNaturalKey(keyBindParam.getName())) {
      // query is not appropriate
      return null;
    }
   
    // try to lookup the id using the natural key
    Object id = naturalKeyCache.get(keyBindParam.getValue());
    if (natLog.isTraceEnabled()) {
      natLog.trace(" LOOKUP {}({}) - id:{}", cacheName, keyBindParam.getValue(), id);
    }
    if (id == null) {
      return null;
    }
   
View Full Code Here


    if (positionedParameters != null){
      return null;
    }
    if (namedParameters != null && namedParameters.size() == 1){
      Entry<String, Param> e = namedParameters.entrySet().iterator().next();
      return new NaturalKeyBindParam(e.getKey(), e.getValue().getInValue());
    }
    return null;
  }
View Full Code Here

TOP

Related Classes of com.avaje.ebeaninternal.server.querydefn.NaturalKeyBindParam

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.