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

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


    if(cascadeDelete)
    {
      parentResultSetId = targetTableDescriptor.getSchemaName() +
                             "." + targetTableDescriptor.getName();
      // Generate the code to build the array
      LocalField arrayField =
        acb.newFieldDeclaration(Modifier.PRIVATE, resultSetArrayType);
      mb.pushNewArray(ClassName.ResultSet, dependentNodes.length)// new ResultSet[size]
      mb.setField(arrayField);
      for(int index=0 ; index <  dependentNodes.length ; index++)
      {
View Full Code Here


  {
    int nargs = 0;
    String receiverType = null;

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

    receiver.generateExpression(acb, mb);
    if (operatorType == TRIM)
    {
      mb.push(trimType);
View Full Code Here

       // this sets up the method and the static field.
       MethodBuilder userExprFun = acb.newUserExprFun();

    /* Declare the field */
    LocalField field = acb.newFieldDeclaration(Modifier.PRIVATE, ClassName.ExecRow);

    // Generate the code to create the row in the constructor
    genCreateRow(acb, field, "getValueRow", ClassName.ExecRow, size());

    ResultColumn rc;
View Full Code Here

      rowAllocatorType = ClassName.ExecRow;
    }
    numCols = size();

    /* Declare the field */
    LocalField lf = acb.newFieldDeclaration(Modifier.PRIVATE, ClassName.ExecRow);
    // Generate the code to create the row in the constructor
    genCreateRow(acb, lf, rowAllocatorMethod, rowAllocatorType, highestColumnNumber + 1);

    // now we fill in the body of the function

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

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

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

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

    // generates:
    //   java.lang.Object userExprFun( ) { }
    MethodBuilder userExprFun = ecb.newUserExprFun();

    /* Declare the field and load it with the current row */
    LocalField field = ecb.newFieldDeclaration(Modifier.PRIVATE, ClassName.ExecRow);
        userExprFun.pushThis();
        userExprFun.push( rsNumber );
        userExprFun.callMethod(VMOpcode.INVOKEVIRTUAL, ClassName.BaseActivation, "getCurrentRow", ClassName.Row, 1);
        userExprFun.putField( field );

View Full Code Here

       // this sets up the method and the static field.
       MethodBuilder userExprFun = acb.newUserExprFun();

    /* Declare the field */
    LocalField field = acb.newFieldDeclaration(Modifier.PRIVATE, ClassName.ExecRow);

    // Generate the code to create the row in the constructor
    genCreateRow(acb, field, "getValueRow", ClassName.ExecRow, size());

    ResultColumn rc;
View Full Code Here

      rowAllocatorType = ClassName.ExecRow;
    }
    numCols = size();

    /* Declare the field */
    LocalField lf = acb.newFieldDeclaration(Modifier.PRIVATE, ClassName.ExecRow);
    // Generate the code to create the row in the constructor
    genCreateRow(acb, lf, rowAllocatorMethod, rowAllocatorType, highestColumnNumber + 1);

    // now we fill in the body of the function

View Full Code Here

    generate support information for CURRENT_DATE,
    that would otherwise be painful to create manually.
   */
  void getCurrentDateExpression(MethodBuilder mb) {
    // do any needed setup
    LocalField lf = getCurrentSetup();

    // generated Java:
    //    this.cdt.getCurrentDate();
    mb.getField(lf);
    mb.callMethod(VMOpcode.INVOKEVIRTUAL, (String) null, "getCurrentDate", "java.sql.Date", 0);
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.