Package org.apache.ojb.broker

Examples of org.apache.ojb.broker.PersistenceBrokerSQLException


            logger.error(msg,e);
            if (SQL_STATE_KEY_VIOLATED.equals(e.getSQLState()))
            {
                throw new KeyConstraintViolatedException(msg, e);
            }
            throw new PersistenceBrokerSQLException(msg, e);
        }
        finally
        {          
            broker.serviceStatementManager().closeResources(stmt, null);
        }
View Full Code Here


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

                + " field="
                + fmd.getAttributeName()
                + " : "
                + e.getMessage();
            logger.error(msg,e);
            throw new PersistenceBrokerSQLException(msg, e);
        }
    }
View Full Code Here

            Identity result = new Identity(obj, broker, classDescriptor);
            return result;
        }
        catch (SQLException e)
        {
            throw new PersistenceBrokerSQLException("Error reading object from column", e);
        }
        catch (Exception e)
        {
            throw new PersistenceBrokerException("Error reading Identity from result set", e);
        }
View Full Code Here

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

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

        {
            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

        {
            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

        {
            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

        {
            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

            result = rs.next();
        }
        catch(SQLException e)
        {
            LoggerFactory.getDefaultLogger().error("[BrokerHelper#doesExist] Can't check for existance", e);
            throw new PersistenceBrokerSQLException("Exist check failed for identity " + oid
                    + ", sql was " + sql, e);
        }
        finally
        {
            sm.closeResources(stmt, rs);
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.