Package javax.jdo

Examples of javax.jdo.JDOFatalUserException


     */
    public void makeTransient(Object o)
    {
        if (isClosed())
        {
            throw new JDOFatalUserException(generateIsClosedErrorMessage("makeTransient(Object)"));
        }
        m_conn.getEditingContext().remove(m_conn.getIdentity(o));
        m_conn.serviceObjectCache().remove(m_conn.getIdentity(o));
    }
View Full Code Here


    public void makeTransientAll(Object[] objects)
    {
        if (isClosed())
        {
            throw new JDOFatalUserException(generateIsClosedErrorMessage("makeTransientAll(Object[])"));
        }
        if (null == objects)
        {
            throw new NullPointerException("makeTransientAll(Object[]) was passed a null Array.");
        }
View Full Code Here

    public void makeTransientAll(Collection collection)
    {
        if (isClosed())
        {
            throw new JDOFatalUserException(generateIsClosedErrorMessage("makeTransientAll(Collection)"));
        }
        if (null == collection)
        {
            throw new NullPointerException("makeTransientAll(Collection) was passed a null Collection.");
        }
View Full Code Here

    public void makeTransactional(Object o)
    {
        if (isClosed())
        {
            throw new JDOFatalUserException(generateIsClosedErrorMessage("makeTransactional(Object)"));
        }
        try
        {
            m_conn.getEditingContext().insert(m_conn.getIdentity(o), o, LockType.READ_LOCK);
        }
View Full Code Here

    public void makeTransactionalAll(Object[] objects)
    {
        if (isClosed())
        {
            throw new JDOFatalUserException(generateIsClosedErrorMessage("makeTransactionalAll(Object[])"));
        }
        if (null == objects)
        {
            throw new NullPointerException("makeTransactionalAll(Object[]) was passed a null Array.");
        }
View Full Code Here

    public void makeTransactionalAll(Collection collection)
    {
        if (isClosed())
        {
            throw new JDOFatalUserException(generateIsClosedErrorMessage("makeTransactionalAll(Collection)"));
        }
        if (null == collection)
        {
            throw new NullPointerException("makeTransactionalAll(Collection) was passed a null Collection.");
        }
View Full Code Here

            {
                if (ne.getNestedExceptions() != null)
                {
                    if (ne.getFailedObject() != null)
                    {
                        return new JDOFatalUserException(ne.getMessage(), ne.getNestedExceptions(), ne.getFailedObject());
                    }
                    return new JDOFatalUserException(ne.getMessage(), ne.getNestedExceptions());
                }
                else if (ne.getFailedObject() != null)
                {
                    JDOPersistenceManager.LOGGER.info("Exception thrown", ne);
                    return new JDOFatalUserException(ne.getMessage(), ne.getFailedObject());
                }
                else
                {
                    JDOPersistenceManager.LOGGER.info("Exception thrown", ne);
                    return new JDOFatalUserException(ne.getMessage(), ne);
                }
            }
            else
            {
                if (ne.getNestedExceptions() != null)
View Full Code Here

                    {
                        return JDOImplHelper.getInstance();
                    }
                    catch (SecurityException e)
                    {
                        throw new JDOFatalUserException(LOCALISER.msg("026000"), e);
                    }
                }
            });
    }
View Full Code Here

     */
    public boolean getDetachAllOnCommit()
    {
        if (om.isClosed())
        {
            throw new JDOFatalUserException(LOCALISER.msg("010002"));
        }
        return om.getBooleanProperty(ObjectManager.PROP_DETACH_ON_COMMIT);
    }
View Full Code Here

     */
    public boolean getCopyOnAttach()
    {
        if (om.isClosed())
        {
            throw new JDOFatalUserException(LOCALISER.msg("010002"));
        }
        return om.getBooleanProperty(ObjectManager.PROP_COPY_ON_ATTACH);
    }
View Full Code Here

TOP

Related Classes of javax.jdo.JDOFatalUserException

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.