Package javax.jdo

Examples of javax.jdo.JDOException


    }
    public RuntimeException newRuntimeException(String msg, Throwable nested, Object failed) {
      return new JDOException(msg, nested, failed);
    }
    public RuntimeException newRuntimeException(Throwable nested) {
      return new JDOException("", nested);
    }
View Full Code Here


            }
            try {
                pm.getTransactionalPersistenceManager()
                        .flush((JDOTransactionItf) pm.currentTransaction(), this);
            } catch (PersistenceException e) {
                throw new JDOException("Impossible to use the cache into a " +
                        "query: Error during the flushing of data on the support", e);
            }
        }
    }
View Full Code Here

        }
        nextUnused++;
        try {
            poi.open(pm, pcm, hasSubclasses, prefetch);
        } catch (PException e) {
            throw new JDOException("Problem to fetch an Iterator over the class "
                    + candidateClass.getName(), new Exception[]{e});
        }
        return poi;
    }
View Full Code Here

        ((JDOPOManagerItf) managedConnection.getPOManager()).setMultithreaded(b);
    }

    public boolean getMultithreaded() {
        if (managedConnection == null) {
            throw new JDOException(NO_ACTIVE_CONNECTION);
        }
        return ((JDOPOManagerItf) managedConnection.getPOManager()).getMultithreaded();
    }
View Full Code Here

        return ((JDOPOManagerItf) managedConnection.getPOManager()).getMultithreaded();
    }

    public void setIgnoreCache(boolean b) {
        if (managedConnection == null) {
            throw new JDOException(NO_ACTIVE_CONNECTION);
        }
        ((JDOPOManagerItf) managedConnection.getPOManager()).setIgnoreCache(b);
    }
View Full Code Here

        ((JDOPOManagerItf) managedConnection.getPOManager()).setIgnoreCache(b);
    }

    public boolean getIgnoreCache() {
        if (managedConnection == null) {
            throw new JDOException(NO_ACTIVE_CONNECTION);
        }
        return ((JDOPOManagerItf) managedConnection.getPOManager()).getIgnoreCache();
    }
View Full Code Here

        return ((JDOPOManagerItf) managedConnection.getPOManager()).getIgnoreCache();
    }
   
    public void addInstanceLifecycleListener(InstanceLifecycleListener arg0, Class[] arg1) {
        if (managedConnection == null) {
            throw new JDOException(NO_ACTIVE_CONNECTION);
        }
        ((JDOPOManagerItf) managedConnection.getPOManager()).addInstanceLifecycleListener(arg0, arg1);
    }
View Full Code Here

        }
        ((JDOPOManagerItf) managedConnection.getPOManager()).addInstanceLifecycleListener(arg0, arg1);
    }
    public Object attachCopy(Object arg0, boolean arg1) {
        if (managedConnection == null) {
            throw new JDOException(NO_ACTIVE_CONNECTION);
        }
        return ((JDOPOManagerItf) managedConnection.getPOManager()).makePersistent(arg0);
    }
View Full Code Here

        }
        return ((JDOPOManagerItf) managedConnection.getPOManager()).makePersistent(arg0);
    }
    public Collection attachCopyAll(Collection arg0, boolean arg1) {
        if (managedConnection == null) {
            throw new JDOException(NO_ACTIVE_CONNECTION);
        }
        return ((JDOPOManagerItf) managedConnection.getPOManager()).makePersistentAll(arg0);
    }
View Full Code Here

        }
        return ((JDOPOManagerItf) managedConnection.getPOManager()).makePersistentAll(arg0);
    }
    public Object[] attachCopyAll(Object[] arg0, boolean arg1) {
        if (managedConnection == null) {
            throw new JDOException(NO_ACTIVE_CONNECTION);
        }
        return ((JDOPOManagerItf) managedConnection.getPOManager()).makePersistentAll(arg0);
    }
View Full Code Here

TOP

Related Classes of javax.jdo.JDOException

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.