Package es.twentymobile.mule.modules.jpa.strategy

Examples of es.twentymobile.mule.modules.jpa.strategy.EntityManagerStrategy


   *             {@sample.xml ../../../doc/jpa-connector.xml.sample
   *             jpa:persist}
   */
  @Processor
  public Object persist(Object object, @Optional Boolean flush) throws JpaException {
    EntityManagerStrategy emStrategy;
    if (flush != null) {
      emStrategy = EntityManagerStrategyFactory.createEntityManagerCommand(getEntityManager(), ReceiveAction.PERSIST, flush);
    } else {
      emStrategy = EntityManagerStrategyFactory.createEntityManagerCommand(getEntityManager(), ReceiveAction.PERSIST, Boolean.FALSE);
    }
View Full Code Here


   *
   *             {@sample.xml ../../../doc/jpa-connector.xml.sample jpa:merge}
   */
  @Processor
  public Object merge(Object object, @Optional Boolean flush) throws JpaException {
    EntityManagerStrategy emStrategy;
    if (flush != null) {
      emStrategy = EntityManagerStrategyFactory.createEntityManagerCommand(getEntityManager(), ReceiveAction.MERGE, flush);
    } else {
      emStrategy = EntityManagerStrategyFactory.createEntityManagerCommand(getEntityManager(), ReceiveAction.MERGE, Boolean.FALSE);
    }
View Full Code Here

   *             {@sample.xml ../../../doc/jpa-connector.xml.sample
   *             jpa:delete}
   */
  @Processor
  public void delete(Object object, @Optional Boolean flush) throws JpaException {
    EntityManagerStrategy emStrategy;
    if (flush != null) {
      emStrategy = EntityManagerStrategyFactory.createEntityManagerCommand(getEntityManager(), ReceiveAction.DELETE, flush);
    } else {
      emStrategy = EntityManagerStrategyFactory.createEntityManagerCommand(getEntityManager(), ReceiveAction.DELETE, Boolean.FALSE);
    }
View Full Code Here

TOP

Related Classes of es.twentymobile.mule.modules.jpa.strategy.EntityManagerStrategy

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