Package com.ibatis.dao.engine.transaction.toplink

Examples of com.ibatis.dao.engine.transaction.toplink.ToplinkDaoTransaction


   * @throws DaoException
   *             If a DaoException is thrown
   */
  protected Session getSession() throws DaoException {

    ToplinkDaoTransaction trans = (ToplinkDaoTransaction) daoManager
        .getTransaction(this);

    return trans.getSession();

  }
View Full Code Here


   *             If a DaoException is thrown
   */
  protected UnitOfWork getUnitOfWork() throws DaoException {

    // Get a UnitOfWork using the TransactionManager
    ToplinkDaoTransaction trans = (ToplinkDaoTransaction) daoManager
        .getTransaction(this);
    UnitOfWork uow = trans.getUnitOfWork();

    if ((uow == null) || !uow.isActive()) {

      throw new DaoException("No active unit of work.");

View Full Code Here

TOP

Related Classes of com.ibatis.dao.engine.transaction.toplink.ToplinkDaoTransaction

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.