Package in.partake.model.dao

Examples of in.partake.model.dao.DAOException


    public void update2(Postgres9Connection con, String[] columns, Object values[]) throws DAOException {
        try {
            update2(con.getConnection(), columns, values);
        } catch (SQLException e) {
            throw new DAOException(e);
        }
    }
View Full Code Here


    /** We treat the first column as primary key. */
    public void put(Postgres9Connection con, String[] columns, Object values[]) throws DAOException {
        try {
            put(con.getConnection(), columns, values);
        } catch (SQLException e) {
            throw new DAOException(e);
        }
    }
View Full Code Here

    /** We don't treat the first column as primary key. */
    public void insert(Postgres9Connection con, String[] columns, Object values[]) throws DAOException {
        try {
            insert(con.getConnection(), columns, values);
        } catch (SQLException e) {
            throw new DAOException(e);
        }
    }
View Full Code Here

    /** Removes all entries whose <code>column</code> has <code>value</code>. */
    public void remove(Postgres9Connection con, String column, String value) throws DAOException {
        try {
            remove(con.getConnection(), column, value);
        } catch (SQLException e) {
            throw new DAOException(e);
        }
    }
View Full Code Here

    public void truncate(Postgres9Connection con) throws DAOException {
        try {
            truncate(con.getConnection());
        } catch (SQLException e) {
            throw new DAOException(e);
        }
    }
View Full Code Here

        } catch (JsonParseException e) {
            throw new IllegalArgumentException(e);
        } catch (JsonMappingException e) {
            throw new IllegalArgumentException(e);
        } catch (IOException e) {
            throw new DAOException(e);
        }
        return map(obj);
    }
View Full Code Here

        PreparedStatement ps = null;
        try {
            ps = con.prepareStatement("DELETE FROM " + tableName);
            ps.execute();
        } catch (SQLException e) {
            throw new DAOException(e);
        } finally {
            close(ps);
        }
    }
View Full Code Here

     */
    protected boolean existsTable(Postgres9Connection pcon, String tableName) throws DAOException {
        try {
            return existsTable(pcon.getConnection(), tableName);
        } catch (SQLException e) {
            throw new DAOException(e);
        }
    }
View Full Code Here

     */
    protected void dropTable(Postgres9Connection pcon, String tableName) throws DAOException {
        try {
            dropTable(pcon.getConnection(), tableName);
        } catch (SQLException e) {
            throw new DAOException(e);
        }
    }
View Full Code Here

     */
    protected void executeSQL(Postgres9Connection pcon, String sql) throws DAOException {
        try {
            executeSQL(pcon.getConnection(), sql);
        } catch (SQLException e) {
            throw new DAOException(e);
        }
    }
View Full Code Here

TOP

Related Classes of in.partake.model.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.