Package com.ibatis.dao.client

Examples of com.ibatis.dao.client.DaoException


  public SqlMapDaoTransaction(SqlMapClient client) {
    try {
      client.startTransaction();
      this.client = client;
    } catch (SQLException e) {
      throw new DaoException("Error starting SQL Map transaction.  Cause: " + e, e);
    }
  }
View Full Code Here


  public void commit() {
    try {
      client.commitTransaction();
      client.endTransaction();
    } catch (SQLException e) {
      throw new DaoException("Error committing SQL Map transaction.  Cause: " + e, e);
    }
  }
View Full Code Here

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

  public void rollback() {
    try {
      client.endTransaction();
    } catch (SQLException e) {
      throw new DaoException("Error ending SQL Map transaction.  Cause: " + e, e);
    }
  }
View Full Code Here

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

  public Connection getConnection() {
    try {
      return client.getCurrentConnection();
    } catch (SQLException e) {
      throw new DaoException("Error getting connection from SQL Map Client.  Cause: " + e, e);
    }
  }
View Full Code Here

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

  public Object load(Class aClass, Serializable serializable, LockMode lockMode) {
    try {
      return getSession().load(aClass, serializable, lockMode);
    } catch (HibernateException e) {
      throw new DaoException("Error occurred in a Hibernate DAO.  Cause: " + e, e);
    }
  }
View Full Code Here

  public Object load(Class aClass, Serializable serializable) {
    try {
      return getSession().load(aClass, serializable);
    } catch (HibernateException e) {
      throw new DaoException("Error occurred in a Hibernate DAO.  Cause: " + e, e);
    }
  }
View Full Code Here

  public void load(Object o, Serializable serializable) {
    try {
      getSession().load(o, serializable);
    } 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.