Examples of CamelJpaConsumerBindingModel


Examples of org.switchyard.component.camel.jpa.model.CamelJpaConsumerBindingModel

    protected V1CamelJpaBindingModel createTestModel() {
        V1CamelJpaBindingModel model = new V1CamelJpaBindingModel(CamelJpaNamespace.V_1_0.uri());
        model.setEntityClassName(V1CamelJpaBindingModelTest.ENTITY_CLASS_NAME);
        model.setPersistenceUnit(V1CamelJpaBindingModelTest.PERSISTENCE_UNIT);

        CamelJpaConsumerBindingModel consumer = (CamelJpaConsumerBindingModel) new V1CamelJpaConsumerBindingModel(CamelJpaNamespace.V_1_0.uri())
            .setConsumeDelete(CONSUME_DELETE)
            .setConsumeLockEntity(CONSUME_LOCK_ENTITY)
            .setMaximumResults(MAXIMUM_RESULTS)
            .setQuery(QUERY)
            .setNamedQuery(NAMED_QUERY)
View Full Code Here

Examples of org.switchyard.component.camel.jpa.model.CamelJpaConsumerBindingModel

        return model.setConsumer(consumer);
    }

    @Override
    protected void createModelAssertions(V1CamelJpaBindingModel model) {
        CamelJpaConsumerBindingModel consumer = model.getConsumer();
        assertEquals(CONSUME_DELETE, consumer.isConsumeDelete());
        assertEquals(CONSUME_LOCK_ENTITY, consumer.isConsumeLockEntity());
        assertEquals(MAXIMUM_RESULTS, consumer.getMaximumResults());
        assertEquals(QUERY, consumer.getQuery());
        assertEquals(NAMED_QUERY, consumer.getNamedQuery());
        assertEquals(RESULT_CLASS, consumer.getResultClass());
        assertEquals(TRANSACTED, consumer.isTransacted());
    }
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.