Examples of requiresTransaction()


Examples of org.teiid.query.processor.ProcessorPlan.requiresTransaction()

  }

  @Test public void testQueryPhysical() {
    ProcessorPlan plan = helpPlan("SELECT pm1.g1.e1, e2, pm1.g1.e3 as a, e4 as b FROM pm1.g1", FakeMetadataFactory.example1Cached(), //$NON-NLS-1$
      new String[] {"SELECT pm1.g1.e1, e2, pm1.g1.e3, e4 FROM pm1.g1"} ); //$NON-NLS-1$
    assertTrue(!plan.requiresTransaction(true));
        checkNodeTypes(plan, FULL_PUSHDOWN);   
  }
   
  @Test public void testSelectStarPhysical() {
    ProcessorPlan plan = helpPlan("SELECT * FROM pm1.g1", FakeMetadataFactory.example1Cached(), //$NON-NLS-1$
View Full Code Here

Examples of org.teiid.query.processor.ProcessorPlan.requiresTransaction()

       
        FakeMetadataFacade metadata = FakeMetadataFactory.example1Cached();
       
        ProcessorPlan plan = helpPlan(sql, metadata, new String[] {"SELECT DISTINCT g_0.e1 FROM pm1.g1 AS g_0"}, ComparisonMode.EXACT_COMMAND_STRING); //$NON-NLS-1$
        //no txn required, since an interated insert is used
        assertFalse(plan.requiresTransaction(false));
       
        checkNodeTypes(plan, FULL_PUSHDOWN);
       
        checkNodeTypes(plan, new int[] {1}, new Class[] {ProjectIntoNode.class});
    }
View Full Code Here

Examples of org.teiid.query.processor.ProcessorPlan.requiresTransaction()

       
        FakeMetadataFacade metadata = FakeMetadataFactory.example1Cached();
       
        ProcessorPlan plan = helpPlan(sql, metadata, new String[] {"SELECT g_0.e1 FROM pm1.g2 AS g_0"}, ComparisonMode.EXACT_COMMAND_STRING); //$NON-NLS-1$
        //requires a txn, since an non pushdown/iterated insert is used
        assertTrue(plan.requiresTransaction(false));
       
        checkNodeTypes(plan, new int[] {1}, new Class[] {ProjectIntoNode.class});
    }
   
    /**
 
View Full Code Here

Examples of org.teiid.query.processor.ProcessorPlan.requiresTransaction()

       
        FakeMetadataFacade metadata = FakeMetadataFactory.example1Cached();
       
        ProcessorPlan plan = helpPlan(sql, metadata, new String[] {"SELECT g_0.e1 FROM pm1.g2 AS g_0"}, ComparisonMode.EXACT_COMMAND_STRING); //$NON-NLS-1$
        //requires a txn, since an non pushdown/iterated insert is used
        assertTrue(plan.requiresTransaction(false));
       
        checkNodeTypes(plan, new int[] {1}, new Class[] {ProjectIntoNode.class});
    }
   
    /**
 
View Full Code Here

Examples of org.teiid.query.processor.ProcessorPlan.requiresTransaction()

        ProcessorPlan plan = getProcedurePlan(userUpdateStr, metadata);
                                    
        helpTestProcess(plan, 1, dataMgr, metadata);
       
        assertTrue(plan.requiresTransaction(false));
    }
   
    @Test public void testUpdateAssignmentNotExecutedVirtual() throws Exception {
        String procedure = "CREATE PROCEDURE  "; //$NON-NLS-1$
        procedure = procedure + "BEGIN\n"; //$NON-NLS-1$
View Full Code Here

Examples of org.teiid.query.processor.ProcessorPlan.requiresTransaction()

                Arrays.asList( new Object[] { "Second", null, new Integer(15), null} ), //$NON-NLS-1$
                Arrays.asList( new Object[] { "Third", null, new Integer(51), null} ) //$NON-NLS-1$
        };
        helpTestProcess(plan, expected, dataMgr, metadata);
       
        assertTrue(!plan.requiresTransaction(false));
    }
   
    /**
     * Test the use of a procedure variable in the criteria of a LEFT OUTER
     * JOIN which will be optimized out as non-JOIN criteria.
View Full Code Here

Examples of org.teiid.query.processor.ProcessorPlan.requiresTransaction()

    if (transactionalReads) {
      return true;
    }
    if (node instanceof PlanExecutionNode) {
      ProcessorPlan plan = ((PlanExecutionNode)node).getProcessorPlan();
      return plan.requiresTransaction(transactionalReads);
    }
    for (RelationalNode child : node.getChildren()) {
      if (child != null && requiresTransaction(transactionalReads, child)) {
        return true;
      }
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.