Examples of JDODataStoreException


Examples of javax.jdo.JDODataStoreException

                ((TransactionImpl) currentTransaction()).begin(true);
            }
            count = ((TransactionImpl) currentTransaction()).getDriver()
                .count(selector);
        } catch (DriverException e) {
            throw new JDODataStoreException(I18N.msg("E_query_failed"), e);
        } finally {
            if (useNontrans) {
                currentTransaction().commit();
            }
        }
View Full Code Here

Examples of javax.jdo.JDODataStoreException

        selector.require(dfg);
        Collection rows = selectRows(selector);
        if (!rows.isEmpty()) {
            row = (Row) rows.iterator().next();
        } else {
            throw new JDODataStoreException(I18N.msg("E_row_deleted"));
        }
        handler.resetRow(row);
    }
View Full Code Here

Examples of javax.jdo.JDODataStoreException

        }
        catch (SQLException e)
        {
            if (query.getObjectManager().getOMFContext().getApi().equalsIgnoreCase("JDO"))
            {
                throw new JDODataStoreException(LOCALISER.msg("052601",e));
            }
            else
            {
                throw new JPOXDataStoreException(LOCALISER.msg("052601",e));
            }
View Full Code Here

Examples of javax.jdo.JDODataStoreException

        }
        catch (SQLException sqe)
        {
            if (query.getObjectManager().getOMFContext().getApi().equalsIgnoreCase("JDO"))
            {
                throw new JDODataStoreException(LOCALISER.msg("052601", sqe));
            }
            else
            {
                throw new JPOXDataStoreException(LOCALISER.msg("052601", sqe));
            }
View Full Code Here

Examples of javax.jdo.JDODataStoreException

                        size = rs.getRow();
                    }
                }
                catch (SQLException sqle)
                {
                    throw new JDODataStoreException(LOCALISER.msg("052601", sqle));
                }
            }
            else
            {
                // TODO Support other ways of determining the size of the result set (e.g SELECT COUNT(*) ...)
View Full Code Here

Examples of javax.jdo.JDODataStoreException

            pm.open(cs);
            bindPM2Thread(pm);
            pm.addUse();
            return pm;
        } catch (Exception e) {
            throw new JDODataStoreException(
                    "Cannot provides a PersistenceManager ", new Exception[]{e});
        }
    }
View Full Code Here

Examples of javax.jdo.JDODataStoreException

  }
  public RuntimeException newFatalDataStoreRuntimeException(Throwable nested) {
    return new JDOFatalDataStoreException("", nested);
  }
  public RuntimeException newDataStoreRuntimeException(String msg) {
    return new JDODataStoreException(msg);
  }
View Full Code Here

Examples of javax.jdo.JDODataStoreException

  }
  public RuntimeException newDataStoreRuntimeException(String msg) {
    return new JDODataStoreException(msg);
  }
  public RuntimeException newDataStoreRuntimeException(String msg, Throwable nested) {
    return new JDODataStoreException(msg, nested);
  }
View Full Code Here

Examples of javax.jdo.JDODataStoreException

        started = true;
    }
   
    protected POManagerFactoryItf getThis() {
        if (_this == null) {
            throw new JDODataStoreException(
                    "Cannot provides a PersistenceManager without a reference to the component");
        } else if (_this instanceof Component) {
            try {
                _this = ((Component)_this).getFcInterface("po-manager-factory");
            } catch (NoSuchInterfaceException e) {
                throw new JDODataStoreException(
                        "Cannot provides a PersistenceManager ", new Exception[]{e});
            }
        }
        return (POManagerFactoryItf) _this;
    }
View Full Code Here

Examples of javax.jdo.JDODataStoreException

                return new DSConnectionFilter(
                        tx.getConnectionHolder().getCHConnectionForWrite(),
                        false);
            }
        } catch(PersistenceException e) {
            throw new JDODataStoreException("Impossible to allocate a native connection:", e);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.