Examples of LocalField


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

      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

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

    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

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

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

    // generated Java:
    //    this.cdt.getCurrentTime();
    mb.getField(lf);
    mb.callMethod(VMOpcode.INVOKEVIRTUAL, (String) null, "getCurrentTime", "java.sql.Time", 0);
View Full Code Here

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

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

    // generated Java:
    //    this.cdt.getCurrentTimestamp();
    mb.getField(lf);
    mb.callMethod(VMOpcode.INVOKEVIRTUAL, (String) null,
View Full Code Here

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

                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

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

        acb.getCurrentTimestampExpression(mb);
        break;
    }

    String fieldType = getTypeCompiler().interfaceName();
    LocalField field = acb.newFieldDeclaration(Modifier.PRIVATE, fieldType);
    getTypeCompiler().generateDataValue(mb, field);
  }
View Full Code Here

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

    operand.generateExpression(acb, mb);
        mb.upCast( ClassName.DataValueDescriptor);
        mb.push( constantLength);

        /* Allocate an object for re-use to hold the result of the operator */
        LocalField field = acb.newFieldDeclaration(Modifier.PRIVATE, resultTypeName);
        mb.getField(field);
        mb.callMethod(VMOpcode.INVOKEVIRTUAL, ClassName.BaseActivation, methodName, resultTypeName, 3);

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

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

    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

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

    /* Figure out the result type name */
    resultTypeName = getTypeCompiler().interfaceName();

    // Generate the code to build the array
    LocalField arrayField =
      acb.newFieldDeclaration(Modifier.PRIVATE, rightInterfaceType);

    /* The array gets created in the constructor.
     * All constant elements in the array are initialized
     * in the constructor.  All non-constant elements, if any,
View Full Code Here

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

    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
Copyright © 2018 www.massapi.com. 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.