Examples of CciTemplate


Examples of org.springframework.jca.cci.core.CciTemplate

   * @param connectionFactory the CCI ConnectionFactory to create a CciTemplate for
   * @return the new CciTemplate instance
   * @see #setConnectionFactory(javax.resource.cci.ConnectionFactory)
   */
  protected CciTemplate createCciTemplate(ConnectionFactory connectionFactory) {
    return new CciTemplate(connectionFactory);
  }
View Full Code Here

Examples of org.springframework.jca.cci.core.CciTemplate

   * @param connectionFactory the CCI ConnectionFactory to create a CciTemplate for
   * @return the new CciTemplate instance
   * @see #setConnectionFactory(javax.resource.cci.ConnectionFactory)
   */
  protected CciTemplate createCciTemplate(ConnectionFactory connectionFactory) {
    return new CciTemplate(connectionFactory);
  }
View Full Code Here

Examples of org.springframework.jca.cci.core.CciTemplate

    recordFactoryControl.setReturnValue(indexedRecord, 1);

    connectionFactoryControl.replay();
    recordFactoryControl.replay();

    CciTemplate ct = new CciTemplate(connectionFactory);
    ct.createIndexedRecord("name");

    connectionFactoryControl.verify();
    recordFactoryControl.verify();
  }
View Full Code Here

Examples of org.springframework.jca.cci.core.CciTemplate

    recordFactoryControl.setReturnValue(mappedRecord, 1);

    connectionFactoryControl.replay();
    recordFactoryControl.replay();

    CciTemplate ct = new CciTemplate(connectionFactory);
    ct.createMappedRecord("name");

    connectionFactoryControl.verify();
    recordFactoryControl.verify();
  }
View Full Code Here

Examples of org.springframework.jca.cci.core.CciTemplate

    connectionFactoryControl.replay();
    connectionControl.replay();
    interactionControl.replay();

    CciTemplate ct = new CciTemplate(connectionFactory);
    ct.execute(interactionSpec, inputRecord, outputRecord);

    connectionFactoryControl.verify();
    connectionControl.verify();
    interactionControl.verify();
  }
View Full Code Here

Examples of org.springframework.jca.cci.core.CciTemplate

    connectionFactoryControl.replay();
    connectionControl.replay();
    interactionControl.replay();

    CciTemplate ct = new CciTemplate(connectionFactory);
    ct.setOutputRecordCreator(new RecordCreator() {
      public Record createRecord(RecordFactory recordFactory) {
        assertTrue(recordFactory instanceof NotSupportedRecordFactory);
        return outputRecord;
      }
    });
    ct.execute(interactionSpec, inputRecord);

    connectionFactoryControl.verify();
    connectionControl.verify();
    interactionControl.verify();
  }
View Full Code Here

Examples of org.springframework.jca.cci.core.CciTemplate

    connectionFactoryControl.replay();
    connectionControl.replay();
    interactionControl.replay();
    creatorControl.replay();

    CciTemplate ct = new CciTemplate(connectionFactory);
    ct.setOutputRecordCreator(creator);
    ct.execute(interactionSpec, inputRecord);

    connectionFactoryControl.verify();
    connectionControl.verify();
    interactionControl.verify();
    creatorControl.verify();
View Full Code Here

Examples of org.springframework.jca.cci.core.CciTemplate

    connectionFactoryControl.replay();
    connectionControl.replay();
    interactionControl.replay();

    CciTemplate ct = new CciTemplate(connectionFactory);
    ct.execute(interactionSpec, inputRecord);

    connectionFactoryControl.verify();
    connectionControl.verify();
    interactionControl.verify();
  }
View Full Code Here

Examples of org.springframework.jca.cci.core.CciTemplate

    connectionControl.replay();
    interactionControl.replay();
    extractorControl.replay();
    creatorControl.replay();

    CciTemplate ct = new CciTemplate(connectionFactory);
    ct.setOutputRecordCreator(creator);
    ct.execute(interactionSpec, inputRecord, extractor);

    connectionFactoryControl.verify();
    connectionControl.verify();
    interactionControl.verify();
    extractorControl.verify();
View Full Code Here

Examples of org.springframework.jca.cci.core.CciTemplate

    connectionFactoryControl.replay();
    connectionControl.replay();
    interactionControl.replay();
    extractorControl.replay();

    CciTemplate ct = new CciTemplate(connectionFactory);
    ct.execute(interactionSpec, inputRecord, extractor);

    connectionFactoryControl.verify();
    connectionControl.verify();
    interactionControl.verify();
    extractorControl.verify();
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.