Package org.apache.ojb.broker

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


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

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

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

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

        {
            String msg = "SQLException during the execution of the delete (for "
                + cld.getClassOfObject().getName()
                + "): " + e.getMessage();
            logger.error(msg, e);
            throw new PersistenceBrokerSQLException("JdbcAccessImpl: " + msg, e);
        }
        finally
        {
            broker.serviceStatementManager().closeResources(stmt, null);
        }
View Full Code Here

        {
            String msg = "SQLException during the execution of delete by query (for "
                + cld.getClassOfObject().getName()
                + "): " + e.getMessage();
            logger.error(msg,e);
            throw new PersistenceBrokerSQLException(msg, e);
        }
        finally
        {
            broker.serviceStatementManager().closeResources(stmt, null);
        }
View Full Code Here

            {
                throw new KeyConstraintViolatedException(msg.toString(), e);
            }
            else
            {
                throw new PersistenceBrokerSQLException(msg.toString(), e);
            }
        }
        finally
        {
            broker.serviceStatementManager().closeResources(stmt, null);
View Full Code Here

       */
            if (retval != null)
            {
                retval.close();
            }
            throw new PersistenceBrokerSQLException(msg, e);
        }
    }
View Full Code Here

             */
            if (retval != null)
            {
                retval.close();
            }
            throw new PersistenceBrokerSQLException(msg, e);
        }
    }
View Full Code Here

            {
                throw new KeyConstraintViolatedException(msg, e);
            }
            else
            {
                throw new PersistenceBrokerSQLException(msg, e);
            }
        }
        finally
        {
            stmtMan.closeResources(stmt, null);
View Full Code Here

TOP

Related Classes of org.apache.ojb.broker.PersistenceBrokerSQLException

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.