Package org.tamacat.dao

Examples of org.tamacat.dao.DaoException


        try {
          String url = getUrl();
          LOG.trace("JDBC URL: " + url);
            return DriverManager.getConnection(url, getUser(), getPassword());
        } catch (SQLException e) {
            throw new DaoException(e);
        }
    }
View Full Code Here


                RdbDataType type = column.getType();
                data.mapping(column, MappingUtils.mapping(type, rs, index));
                index++;
            }
        } catch (SQLException e) {
            throw new DaoException(e);
        }
        return this;
    }
View Full Code Here

      int index, InputStream in) throws DaoException {
    try {
      stmt.setBinaryStream(index, in);
      return stmt.executeUpdate();
    } catch (SQLException e) {
      throw new DaoException(e);
    }
  }
View Full Code Here

    @Override
    public void handleException(Throwable cause) {
      RdbDaoEvent event = createRdbDaoEvent();
       getTransactionHandler().handleException(event, cause);
        throw new DaoException(cause);
    }
View Full Code Here

    @Override
    public Connection getConnection() {
        try {
            return getDataSource().getConnection();
        } catch (SQLException e) {
            throw new DaoException(e);
        }
    }
View Full Code Here

            try {
                ic = new InitialContext();
                LOG.trace("DataSource: " + dataSourceName);
                ds = (DataSource) ic.lookup(dataSourceName);
            } catch (NamingException e) {
                throw new DaoException(e);
            }
        }
        return ds;
    }
View Full Code Here

                con.set(c);
                start();
              }
          }
        } catch (SQLException e) {
            throw new DaoException(e);
        }
        return c;
    }
View Full Code Here

                if (s != null) {
                    stmt.set(s);
                }
          }
        } catch (SQLException e) {
            throw new DaoException(e);
        }
        return s;
    }
View Full Code Here

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

    public PreparedStatement preparedStatement(String sql) {
        try {
            return getConnection().prepareStatement(sql);
        } 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.