Examples of upCast()


Examples of org.apache.derby.iapi.services.compiler.MethodBuilder.upCast()

      userExprFun.getField(psHolder);
      userExprFun.conditionalIfNull();
    }

    methodCall.generateExpression(acb, userExprFun);
        userExprFun.upCast(vtiType);

    if (reuseablePs) {

      userExprFun.putField(psHolder);
View Full Code Here

Examples of org.apache.derby.iapi.services.compiler.MethodBuilder.upCast()

        generateReturnsNullOnNullCheck(mb);
      }
      else
      {
        mb.dup();
        mb.upCast(ClassName.DataValueDescriptor);
        mb.push(primitiveTN);
        mb.callMethod(VMOpcode.INVOKESTATIC, ClassName.BaseActivation, "nullToPrimitiveTest", "void", 2);
      }

      // stack is dvd
View Full Code Here

Examples of org.apache.derby.iapi.services.compiler.MethodBuilder.upCast()

        exprFun.pushThis(); // instance for getRowLocationTemplate
        exprFun.push(savedItem); // first arg
        exprFun.callMethod(VMOpcode.INVOKEINTERFACE, ClassName.Activation, "getRowLocationTemplate",
                  ClassName.RowLocation, 1);

        exprFun.upCast(ClassName.DataValueDescriptor);
        exprFun.callMethod(VMOpcode.INVOKEINTERFACE, ClassName.Row, "setColumn",
                      "void", 2);
        continue;
      }
View Full Code Here

Examples of org.apache.derby.iapi.services.compiler.MethodBuilder.upCast()

      userExprFun.getField(psHolder);
      userExprFun.conditionalIfNull();
    }

    methodCall.generateExpression(acb, userExprFun);
        userExprFun.upCast(vtiType);

    if (reuseablePs) {

      userExprFun.putField(psHolder);
View Full Code Here

Examples of org.apache.derby.iapi.services.compiler.MethodBuilder.upCast()

        isAscending[columnNumber], isStartKey, acb, mb);
    }
    else
      pred.generateExpressionOperand(optTable, baseColumns[columnNumber], acb, mb);

    mb.upCast(ClassName.DataValueDescriptor);

    mb.callMethod(VMOpcode.INVOKEINTERFACE, ClassName.Row, "setColumn", "void", 2);

    /* Also tell the row if this column uses ordered null semantics */
    if (!isIn)
View Full Code Here

Examples of org.apache.derby.iapi.services.compiler.MethodBuilder.upCast()

        generateReturnsNullOnNullCheck(mb);
      }
      else
      {
        mb.dup();
        mb.upCast(ClassName.DataValueDescriptor);
        mb.push(primitiveTN);
        mb.callMethod(VMOpcode.INVOKESTATIC, ClassName.BaseActivation, "nullToPrimitiveTest", "void", 2);
      }

      // stack is dvd
View Full Code Here

Examples of org.apache.derby.iapi.services.compiler.MethodBuilder.upCast()

        exprFun.pushThis(); // instance for getRowLocationTemplate
        exprFun.push(savedItem); // first arg
        exprFun.callMethod(VMOpcode.INVOKEINTERFACE, ClassName.Activation, "getRowLocationTemplate",
                  ClassName.RowLocation, 1);

        exprFun.upCast(ClassName.DataValueDescriptor);
        exprFun.callMethod(VMOpcode.INVOKEINTERFACE, ClassName.Row, "setColumn",
                      "void", 2);
        continue;
      }
View Full Code Here

Examples of org.apache.derby.iapi.services.compiler.MethodBuilder.upCast()

      inNode.generateStartStopKey(isAscending[columnNumber], isStartKey, acb, mb);
    }
    else
      pred.generateExpressionOperand(optTable, baseColumns[columnNumber], acb, mb);

    mb.upCast(ClassName.DataValueDescriptor);

    mb.callMethod(VMOpcode.INVOKEINTERFACE, ClassName.Row, "setColumn", "void", 2);

    /* Also tell the row if this column uses ordered null semantics */
    if (!isIn)
View Full Code Here

Examples of org.axonframework.upcasting.UpcasterChain.upcast()

    @Test
    @Transactional
    public void testStoreAndLoadEvents_WithUpcaster() {
        assertNotNull(testSubject);
        UpcasterChain mockUpcasterChain = mock(UpcasterChain.class);
        when(mockUpcasterChain.upcast(isA(SerializedObject.class), isA(UpcastingContext.class)))
                .thenAnswer(new Answer<Object>() {
                    @Override
                    public Object answer(InvocationOnMock invocation) throws Throwable {
                        SerializedObject serializedObject = (SerializedObject) invocation.getArguments()[0];
                        return Arrays.asList(serializedObject, serializedObject);
View Full Code Here

Examples of org.axonframework.upcasting.UpcasterChain.upcast()

    @Test
    public void testStoreAndLoadEvents_WithUpcaster() throws SQLException {
        assertNotNull(testSubject);
        UpcasterChain mockUpcasterChain = mock(UpcasterChain.class);
        when(mockUpcasterChain.upcast(isA(SerializedObject.class), isA(UpcastingContext.class)))
                .thenAnswer(new Answer<Object>() {
                    @Override
                    public Object answer(InvocationOnMock invocation) throws Throwable {
                        SerializedObject serializedObject = (SerializedObject) invocation.getArguments()[0];
                        return Arrays.asList(serializedObject, serializedObject);
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.