Package org.apache.ojb.broker

Examples of org.apache.ojb.broker.OJBRuntimeException


            return (Collection) query.execute();
        }
        catch (Exception e)
        {
            log.error("OQLQuery failed", e);
            throw new OJBRuntimeException("OQLQuery failed", e);
        }
    }
View Full Code Here


            return (Collection) query.execute();
        }
        catch (Exception e)
        {
            log.error("OQLQuery failed", e);
            throw new OJBRuntimeException("OQLQuery failed", e);
        }
    }
View Full Code Here

        {
            colIterator = new ArrayIterator(collectionOrArray);
        }
        else
        {
            throw new OJBRuntimeException( "Given object collection of type '"
                    + (collectionOrArray != null ? collectionOrArray.getClass().toString() : "null")
                + "' can not be managed by OJB. Use Array, Collection or ManageableCollection instead!");
        }
        return colIterator;
    }
View Full Code Here

        {
            result = (Object[]) collectionOrArray;
        }
        else
        {
            throw new OJBRuntimeException( "Given object collection of type '"
                    + (collectionOrArray != null ? collectionOrArray.getClass().toString() : "null")
                + "' can not be managed by OJB. Use Array, Collection or ManageableCollection instead!");
        }
        return result;
    }
View Full Code Here

            return (Collection) query.execute();
        }
        catch(Exception e)
        {
            log.error("OQLQuery failed", e);
            throw new OJBRuntimeException("OQLQuery failed", e);
        }
    }
View Full Code Here

            return (Collection) query.execute();
        }
        catch (Exception e)
        {
            log.error("OQLQuery failed", e);
            throw new OJBRuntimeException("OQLQuery failed", e);
        }
    }
View Full Code Here

            return (Collection) query.execute();
        }
        catch (Exception e)
        {
            log.error("OQLQuery failed", e);
            throw new OJBRuntimeException("OQLQuery failed", e);
        }
    }
View Full Code Here

                bean = ((PBSessionHome) object).create();
            }
            catch(Exception e)
            {
                e.printStackTrace();
                throw new OJBRuntimeException("Can't lookup bean: " + PBSessionHome.JNDI_NAME, e);
            }
        }
View Full Code Here

            }
            catch(Throwable e)
            {
                System.err.println("Error in client: " + e.getMessage());
                test.interruptThreads();
                throw new OJBRuntimeException("[" + PBTestClient.class.getName()
                        + "] Stress test client cause exception, thread was " + Thread.currentThread(), e);
            }
        }
View Full Code Here

            ocd = searchInJdbcConnectionDescriptor();
            useConnectionLevelCache = true;
        }
        if(ocd == null)
        {
            throw new OJBRuntimeException("No object cache descriptor found for " + targetClass + ", using PBKey " + broker.getPBKey()
                    + ". Please set a cache descriptor in jdbc-connection-descriptor or in class-descriptor");
        }
        else
        {
            // use a class-descriptor level cache
View Full Code Here

TOP

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

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.