Package com.avaje.ebeaninternal.api.BindParams

Examples of com.avaje.ebeaninternal.api.BindParams.Param


                } while (endOfParam < sql.length());

                // add the named parameter value to bindList
                String paramName = sql.substring(nameParamStart + 1, endOfParam);
               
                Param param;
                if (paramName.startsWith(ENCRYPTKEY_PREFIX)){
                    param = addEncryptKeyParam(paramName);
                } else {
                    param = params.getParameter(paramName);
                }
               
                if (param == null) {
                  String msg = "Bind value is not set or null for [" + paramName
                    + "] in [" + sql+ "]";
                    throw new PersistenceException(msg);
                }

                String sub = sql.substring(startPos, nameParamStart);
                orderedList.appendSql(sub);

                // check if inValue is a Collection type...
                Object inValue = param.getInValue();
                if (inValue != null && inValue instanceof Collection<?>){
                  // Chop up Collection parameter into a number
                  // of individual parameters and add each one individually
                    Collection<?> collection = (Collection<?>)inValue;
                    int c = 0;
View Full Code Here


    bindParameters.registerOut(position, type);
    return this;
  }

  public Object getObject(int position) {
    Param p = bindParameters.getParameter(position);
    return p.getOutValue();
  }
View Full Code Here

TOP

Related Classes of com.avaje.ebeaninternal.api.BindParams.Param

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.