Package org.tamacat.dao

Examples of org.tamacat.dao.DaoException


   
    public ResultSet executeQuery(String sql) {
        try {
            return getStatement().executeQuery(sql);
        } catch (SQLException e) {
            throw new DaoException(e);
        }
    }
View Full Code Here


    public int executeUpdate(String sql) {
        try {
            return getStatement().executeUpdate(sql);
        } catch (SQLException e) {
            throw new DaoException(e);
        }
    }
View Full Code Here

      try {
        if (getAutoCommit()) {
          getConnection().setAutoCommit(autoCommit);
        }
    } catch (SQLException e) {
      throw new DaoException(e);
    }
    }
View Full Code Here

   
    public boolean getAutoCommit() {
      try {
      return getConnection().getAutoCommit();
    } catch (SQLException e) {
      throw new DaoException(e);
    }
    }
View Full Code Here

   
    public void commit() {
      try {
      getConnection().commit();
    } catch (SQLException e) {
      throw new DaoException(e);
    }
    }
View Full Code Here

   
    public void rollback() {
      try {
      getConnection().rollback();
    } catch (SQLException e) {
      throw new DaoException(e);
    }
    }
View Full Code Here

TOP

Related Classes of org.tamacat.dao.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.