Examples of PersistenceBrokerSQLException


Examples of org.apache.ojb.broker.PersistenceBrokerSQLException

            {
                throw (ResourceClosedException)ex;
            }
            if(ex instanceof SQLException)
            {
                throw new PersistenceBrokerSQLException("Calling ResultSet.next() failed", (SQLException) ex);
            }
            else
            {
               throw new PersistenceBrokerException("Can't get next row from ResultSet", ex);
            }
View Full Code Here

Examples of org.apache.ojb.broker.PersistenceBrokerSQLException

            rs = stmt.executeQuery();
            result = rs.next();
        }
        catch(SQLException e)
        {
            throw new PersistenceBrokerSQLException("Exist check failed for identity " + oid
                    + ", sql was " + sql, e);
        }
        finally
        {
            sm.closeResources(stmt, rs);
View Full Code Here

Examples of org.apache.ojb.broker.PersistenceBrokerSQLException

            stmt = createStatement(con, scrollable);
        }
        catch (SQLException ex)
        {
            log.error(ex);
            throw new PersistenceBrokerSQLException(ex);
        }
        return stmt;
    }
View Full Code Here

Examples of org.apache.ojb.broker.PersistenceBrokerSQLException

            stmt = prepareStatement(con, sql, scrollable);
        }
        catch (java.sql.SQLException ex)
        {
            log.error(ex);
            throw new PersistenceBrokerSQLException(ex);
        }
        return stmt;
    }
View Full Code Here

Examples of org.apache.ojb.broker.PersistenceBrokerSQLException

                extents.addAll(extMap.values());
            }

            if (cld == null)
            {
                throw new PersistenceBrokerSQLException("Table is NULL for alias: " + alias);
            }
        }
View Full Code Here

Examples of org.apache.ojb.broker.PersistenceBrokerSQLException

        {
            return cld.getStatementsForClass(m_conMan).getDeleteStmt(m_conMan.getConnection());
        }
        catch (SQLException e)
        {
            throw new PersistenceBrokerSQLException("Could not build statement ask for", e);
        }
        catch (LookupException e)
        {
            throw new PersistenceBrokerException("Used ConnectionManager instance could not obtain a connection", e);
        }
View Full Code Here

Examples of org.apache.ojb.broker.PersistenceBrokerSQLException

        {
            return cds.getStatementsForClass(m_conMan).getInsertStmt(m_conMan.getConnection());
        }
        catch (SQLException e)
        {
            throw new PersistenceBrokerSQLException("Could not build statement ask for", e);
        }
        catch (LookupException e)
        {
            throw new PersistenceBrokerException("Used ConnectionManager instance could not obtain a connection", e);
        }
View Full Code Here

Examples of org.apache.ojb.broker.PersistenceBrokerSQLException

        {
            return cds.getStatementsForClass(m_conMan).getSelectByPKStmt(m_conMan.getConnection());
        }
        catch (SQLException e)
        {
            throw new PersistenceBrokerSQLException("Could not build statement ask for", e);
        }
        catch (LookupException e)
        {
            throw new PersistenceBrokerException("Used ConnectionManager instance could not obtain a connection", e);
        }
View Full Code Here

Examples of org.apache.ojb.broker.PersistenceBrokerSQLException

        {
            return cds.getStatementsForClass(m_conMan).getUpdateStmt(m_conMan.getConnection());
        }
        catch (SQLException e)
        {
            throw new PersistenceBrokerSQLException("Could not build statement ask for", e);
        }
        catch (LookupException e)
        {
            throw new PersistenceBrokerException("Used ConnectionManager instance could not obtain a connection", e);
        }
View Full Code Here

Examples of org.apache.ojb.broker.PersistenceBrokerSQLException

            logger.error(
                "SQLException during the execution of the delete (for a "
                    + cld.getClassOfObject().getName()
                    + "): "
                    + e.getMessage(), e);
            throw new PersistenceBrokerSQLException(e);
        }
        finally
        {
            broker.serviceStatementManager().closeResources(stmt, null);
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.