Package com.ibatis.dao.client

Examples of com.ibatis.dao.client.DaoException


    broker = brk;

    try {
      broker.beginTransaction();
    } catch (final Throwable t) {
      throw new DaoException("Error starting OJB broker transaction.  Cause: " + t, t);
    }
  }
View Full Code Here


  public void commit() {
    try {
      broker.commitTransaction();
    } catch (final Throwable t) {
      throw new DaoException("Error committing OJB broker transaction. Cause: " + t);
    } finally {
        if (broker != null) {
            broker.close();
        }
    }
View Full Code Here

  public void rollback() {
    try {
      broker.abortTransaction();
    } catch (final Throwable t) {
      throw new DaoException("Error ending OJB broker transaction.  Cause: " + t);
    } finally {
        if (broker != null) {
            broker.close();
        }
    }
View Full Code Here

  public void flush() {
    try {
      getSession().flush();
    } catch (HibernateException e) {
      throw new DaoException("Error occurred in a Hibernate DAO.  Cause: " + e, e);
    }
  }
View Full Code Here

  public Connection connection() {
    try {
      return getSession().connection();
    } catch (HibernateException e) {
      throw new DaoException("Error occurred in a Hibernate DAO.  Cause: " + e, e);
    }
  }
View Full Code Here

  public Connection disconnect() {
    try {
      return getSession().disconnect();
    } catch (HibernateException e) {
      throw new DaoException("Error occurred in a Hibernate DAO.  Cause: " + e, e);
    }
  }
View Full Code Here

  public void reconnect() {
    try {
      getSession().reconnect();
    } catch (HibernateException e) {
      throw new DaoException("Error occurred in a Hibernate DAO.  Cause: " + e, e);
    }
  }
View Full Code Here

  public void reconnect(Connection connection) {
    try {
      getSession().reconnect(connection);
    } catch (HibernateException e) {
      throw new DaoException(e);
    }
  }
View Full Code Here

  public Connection close() {
    try {
      return getSession().close();
    } catch (HibernateException e) {
      throw new DaoException("Error occurred in a Hibernate DAO.  Cause: " + e, e);
    }
  }
View Full Code Here

  public void cancelQuery() {
    try {
      getSession().cancelQuery();
    } catch (HibernateException e) {
      throw new DaoException("Error occurred in a Hibernate DAO.  Cause: " + e, e);
    }
  }
View Full Code Here

TOP

Related Classes of com.ibatis.dao.client.DaoException

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.