Package org.apache.ojb.broker

Examples of org.apache.ojb.broker.PersistenceBrokerSQLException


                "SQLException during the execution of delete by query (for a "
                    + cld.getClassOfObject().getName()
                    + "): "
                    + e.getMessage(),
                e);
            throw new PersistenceBrokerSQLException(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(e);
        }
    }
View Full Code Here

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

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

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

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

                    + " field="
                    + fmd.getAttributeName()
                    + " : "
                    + e.getMessage(),
                e);
            throw new PersistenceBrokerSQLException(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

            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.