Examples of IDbTrans


Examples of com.tll.dao.IDbTrans

    return injector.getInstance(EntityBeanFactory.class);
  }

  private void addEntityToDb(IEntity entity) {
    // stub address first
    final IDbTrans dbt = getDbTrans();
    dbt.startTrans();
    dbt.setComplete();
    try {
      injector.getInstance(IEntityDao.class).persist(entity);
    }
    finally {
      if(dbt.isTransStarted()) dbt.endTrans();
    }
  }
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.