Package org.apache.ojb.broker

Examples of org.apache.ojb.broker.PersistenceBrokerException


                count = rsStmt.m_rs.getInt(1);
            }
        }
        catch (SQLException e)
        {
            throw new PersistenceBrokerException(e);
        }
        finally
        {
            rsStmt.close();
        }
View Full Code Here


            rsMetaData = getRsAndStmt().m_rs.getMetaData();
            columnCount = rsMetaData.getColumnCount();
        }
        catch (SQLException e)
        {
            throw new PersistenceBrokerException(e);
        }
    }
View Full Code Here

                Object item = JdbcTypesHelper.getObjectFromColumn(getRsAndStmt().m_rs, new Integer(jdbcType), i + 1);
                result[i] = item;
            }
            catch (SQLException e)
            {
                throw new PersistenceBrokerException(e);
            }
        }
        return result;
    }
View Full Code Here

        {
            return (IndirectionHandler) getIndirectionHandlerConstructor().newInstance(args);
        }
        catch(InvocationTargetException ex)
        {
            throw new PersistenceBrokerException("Exception while creating a new indirection handler instance", ex);
        }
        catch(InstantiationException ex)
        {
            throw new PersistenceBrokerException("Exception while creating a new indirection handler instance", ex);
        }
        catch(IllegalAccessException ex)
        {
            throw new PersistenceBrokerException("Exception while creating a new indirection handler instance", ex);
        }
    }
View Full Code Here

        {
            return (ManageableCollection) getCollectionProxyConstructor(collectionClass).newInstance(args);
        }
        catch(InstantiationException ex)
        {
            throw new PersistenceBrokerException("Exception while creating a new collection proxy instance", ex);
        }
        catch(InvocationTargetException ex)
        {
            throw new PersistenceBrokerException("Exception while creating a new collection proxy instance", ex);
        }
        catch(IllegalAccessException ex)
        {
            throw new PersistenceBrokerException("Exception while creating a new collection proxy instance", ex);
        }
    }
View Full Code Here

            catch(ClassCastException e)
            {
                // shouldn't happen but still ...
                msg = "The InvocationHandler for the provided Proxy was not an instance of " + IndirectionHandler.class.getName();
                log.error(msg);
                throw new PersistenceBrokerException(msg, e);
            }
            catch(IllegalArgumentException e)
            {
                msg = "Could not retrieve real object for given Proxy: " + objectOrProxy;
                log.error(msg);
                throw new PersistenceBrokerException(msg, e);
            }
            catch(PersistenceBrokerException e)
            {
                log.error("Could not retrieve real object for given Proxy: " + objectOrProxy);
                throw e;
View Full Code Here

            catch(ClassCastException e)
            {
                // shouldn't happen but still ...
                msg = "The InvocationHandler for the provided Proxy was not an instance of " + IndirectionHandler.class.getName();
                log.error(msg);
                throw new PersistenceBrokerException(msg, e);
            }
            catch(IllegalArgumentException e)
            {
                msg = "Could not retrieve real object for given Proxy: " + objectOrProxy;
                log.error(msg);
                throw new PersistenceBrokerException(msg, e);
            }
            catch(PersistenceBrokerException e)
            {
                log.error("Could not retrieve real object for given Proxy: " + objectOrProxy);
                throw e;
View Full Code Here

            catch(ClassCastException e)
            {
                // shouldn't happen but still ...
                msg = "The InvocationHandler for the provided Proxy was not an instance of " + IndirectionHandler.class.getName();
                log.error(msg);
                throw new PersistenceBrokerException(msg, e);
            }
            catch(IllegalArgumentException e)
            {
                msg = "Could not retrieve real object for given Proxy: " + objectOrProxy;
                log.error(msg);
                throw new PersistenceBrokerException(msg, e);
            }
        }
        else if(isVirtualOjbProxy(objectOrProxy))
        {
            handler = VirtualProxy.getIndirectionHandler((VirtualProxy) objectOrProxy);
View Full Code Here

            }
        }
        catch (Exception ex)
        {
            logger.error(ex);
            throw new PersistenceBrokerException(ex);
        }
    }
View Full Code Here

            }
        }
        catch (Exception ex)
        {
            logger.error(ex);
            throw new PersistenceBrokerException(ex);
        }
    }
View Full Code Here

TOP

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

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.