Package org.odmg

Examples of org.odmg.ODMGRuntimeException


            {
                throw (ODMGRuntimeException) e;
            }
            else
            {
                throw new ODMGRuntimeException("Method beforeCompletion() fails, status of JTA-tx was "
                        + TxUtil.getStatusString(status) + ", message: " + e.getMessage());
            }

        }
        finally
View Full Code Here


                clazz = this.getElementsExtentClass(broker);
            }
            catch (PersistenceBrokerException e)
            {
                getLog().error(e);
                throw new ODMGRuntimeException(e.getMessage());
            }
            Query q = new QueryByCriteria(clazz, allElementsCriteria);
            if (getLog().isDebugEnabled()) getLog().debug(q.toString());

            result = null;
View Full Code Here

                        " message was (" + e.getMessage() + ")");
            }
            else if(!(e instanceof RuntimeException))
            {
                log.warn("Error while write objects for tx " + transaction, e);
                throw new ODMGRuntimeException("Unexpected error while write objects: " + e.getMessage());
            }
            else
            {
                log.warn("Error while write objects for tx " + transaction, e);
                throw (RuntimeException) e;
View Full Code Here

        {
            m_configurator.configure(query);
        }
        catch (ConfigurationException e)
        {
            throw new ODMGRuntimeException("Error in configuration of OQLQueryImpl instance: "
                    + e.getMessage());
        }
        return query;
    }
View Full Code Here

            // 2. perfom query
            return (DSetImpl) broker.getCollectionByQuery(DSetImpl.class, q);
        }
        catch (PersistenceBrokerException e)
        {
            throw new ODMGRuntimeException(e.getMessage());
        }
        finally
        {
            capsule.destroy();
        }
View Full Code Here

        {
            getConfigurator().configure(tx);
        }
        catch (ConfigurationException e)
        {
            throw new ODMGRuntimeException("Error in configuration of TransactionImpl instance: " + e.getMessage());
        }
        return tx;
    }
View Full Code Here

        {
            getConfigurator().configure(tx);
        }
        catch (ConfigurationException e)
        {
            throw new ODMGRuntimeException("Error in configuration of TransactionImpl instance: " + e.getMessage());
        }
        return tx;
    }
View Full Code Here

        {
            getConfigurator().configure(query);
        }
        catch (ConfigurationException e)
        {
            throw new ODMGRuntimeException("Error in configuration of OQLQueryImpl instance: " + e.getMessage());
        }
        return query;

    }
View Full Code Here

                    tx.getBroker().getClassDescriptor(myObj.getClass()), oid, myObj);
        }
        catch(PersistenceBrokerException ex)
        {
            LoggerFactory.getDefaultLogger().error("ObjectEnvelope: ", ex);
            throw new ODMGRuntimeException("Unexpected error while check existence of "
                    + myObj + ", exception was "+ ex);
        }
        if(needsInsert)
        {
            // if object is not already persistent it must be marked as new
View Full Code Here

            {
                throw (ODMGRuntimeException) e;
            }
            else
            {
                throw new ODMGRuntimeException("Method beforeCompletion() fails, status of JTA-tx was "
                        + TxUtil.getStatusString(status) + ", message: " + e.getMessage());
            }

        }
        finally
View Full Code Here

TOP

Related Classes of org.odmg.ODMGRuntimeException

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.