Package org.apache.derby.iapi.services.compiler

Examples of org.apache.derby.iapi.services.compiler.LocalField


    {
      /* This sets up the method and the static field */
      MethodBuilder exprFun = acb.newExprFun();

      /* Now we fill in the body of the method */
      LocalField rowField =
                generateIndexableRow(acb, numberOfStopPredicates);

      int  colNum = 0;
      int size = size();
      for (int index = 0; index < size; index++)
View Full Code Here


    String                  retvalType  = ClassName.Qualifier + "[][]";
    MethodBuilder           consMB      = acb.getConstructor();
    MethodBuilder           executeMB   = acb.getExecuteMethod();

    /* Create and initialize the array of Qualifiers */
    LocalField qualField =
            acb.newFieldDeclaration(Modifier.PRIVATE, retvalType);


    /*
    ** Stick a reinitialize of the Qualifier array in execute().
View Full Code Here

    {
      /* This sets up the method and the static field */
      MethodBuilder exprFun = acb.newExprFun();

      /* Now we fill in the body of the method */
      LocalField rowField = generateIndexableRow(acb, numberOfStartPredicates);

      int  colNum = 0;
      int size = size();
      for (int index = 0; index < size; index++)
      {
View Full Code Here

    /*
    ** Assign the indexable row to a field, and put this assignment into
    ** the constructor for the activation class.  This way, we only have
    ** to get the row once.
    */
    LocalField field =
      acb.newFieldDeclaration(Modifier.PRIVATE, ClassName.ExecIndexRow);
   
    mb.setField(field);

    return field;
View Full Code Here

                       ClassName.LanguageConnectionContext, 0);

    mb.callMethod(VMOpcode.INVOKEINTERFACE, (String) null, methodName, methodType, 0);

    String fieldType = getTypeCompiler().interfaceName();
    LocalField field = acb.newFieldDeclaration(Modifier.PRIVATE, fieldType);

    acb.generateDataValue(mb, getTypeCompiler(),
        getTypeServices().getCollationType(), field);
  }
View Full Code Here

    /* If this node is for an ungrouped aggregator,
     * then we generate a conditional
     * wrapper so that we only new the aggregator once.
     *    (fx == null) ? fx = new ... : fx
     */
    LocalField objectFieldLF = null;
    if (singleInstantiation)
    {
      /* Declare the field */
      objectFieldLF = acb.newFieldDeclaration(Modifier.PRIVATE, javaClassName);

View Full Code Here

      String typeName = getTypeId().getCorrespondingJavaTypeName();

      mb.push(value.toString());
      mb.callMethod(VMOpcode.INVOKESTATIC, typeName, "valueOf", typeName, 1);

      LocalField field = acb.newFieldDeclaration(Modifier.PRIVATE, fieldType);

      acb.generateDataValue(mb, tc, getTypeServices().getCollationType(), field);
    }
  }
View Full Code Here

    String resultTypeName = getTypeCompiler().interfaceName();

    /* field = method call */
    /* Allocate an object for re-use to hold the result of the operator */
    LocalField field = acb.newFieldDeclaration(Modifier.PRIVATE, resultTypeName);

    /*
    ** Store the result of the method call in the field, so we can re-use
    ** the object.
    */
 
View Full Code Here

                vtiType, Modifier.PUBLIC);
    userExprFun.addThrownException("java.lang.Exception");


    // If it's a re-useable PreparedStatement then hold onto it.
    LocalField psHolder = reuseablePs ? acb.newFieldDeclaration(Modifier.PRIVATE, "java.sql.PreparedStatement") : null;

    if (reuseablePs) {

      userExprFun.getField(psHolder);
      userExprFun.conditionalIfNull();
View Full Code Here

      // application could retain a reference to it and corrupt
      // future calls with the same CallableStatement object.

      String methodParameterType = methodParameterTypes[parameterNumber];
      String arrayType = methodParameterType.substring(0, methodParameterType.length() - 2);
      LocalField lf = acb.newFieldDeclaration(Modifier.PRIVATE, methodParameterType);

      if (outParamArrays == null)
        outParamArrays = new LocalField[methodParms.length];

      outParamArrays[parameterNumber] = lf;
View Full Code Here

TOP

Related Classes of org.apache.derby.iapi.services.compiler.LocalField

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.