Examples of JDOUserException


Examples of com.sun.jdo.api.persistence.support.JDOUserException

        this.pm = pm;
        this.persistenceCapableClass = persistenceCapableClass;

        // check persistenceCapableClass parameter being null
        if (persistenceCapableClass == null)
            throw new JDOUserException(
                    I18NHelper.getMessage(messages, "jdo.extentcollection.constructor.invalidclass", "null"));// NOI18N
        // check persistence-capable
        if (Model.RUNTIME.getMappingClass(persistenceCapableClass.getName(),
                persistenceCapableClass.getClassLoader()) == null)
            throw new JDOUserException(
                    I18NHelper.getMessage(messages, "jdo.extentcollection.constructor.nonpc", // NOI18N
                            persistenceCapableClass.getName()));

        // subclasses == true is not yet supported
        if (subclasses)
View Full Code Here

Examples of javax.jdo.JDOUserException

                exceptions.add(ex);
            }
        }
        if (!exceptions.isEmpty())
        {
            throw new JDOUserException(LOCALISER_JDO.msg("012002"),(Throwable[])exceptions.toArray(new Throwable[exceptions.size()]));
        }

        // Let superclass close its resources
        super.close();
    }
View Full Code Here

Examples of javax.jdo.JDOUserException

        {
            setProperty("org.jpox.TransactionType", type);
        }
        else
        {
            throw new JDOUserException(LOCALISER.msg("008012", "javax.jdo.option.TransactionType", type));
        }
    }
View Full Code Here

Examples of javax.jdo.JDOUserException

        {
            setProperty("org.jpox.ServerTimeZoneID", id);
        }
        else
        {
            throw new JDOUserException("Invalid TimeZone ID specified");
        }
    }
View Full Code Here

Examples of javax.jdo.JDOUserException

     */
    protected void assertConfigurable()
    {
        if (!configurable)
        {
            throw new JDOUserException(LOCALISER.msg("008016"));
        }
    }
View Full Code Here

Examples of javax.jdo.JDOUserException

     * @param sm StateManager.
     * @return new LifeCycle state.
     **/
    public LifeCycleState transitionMakeNontransactional(StateManager sm)
    {
        throw new JDOUserException(LOCALISER.msg("027007"),sm.getInternalObjectId());
    }
View Full Code Here

Examples of javax.jdo.JDOUserException

     * @param useFetchPlan to make transient the fields in the fetch plan
     * @return new LifeCycle state.
     **/
    public LifeCycleState transitionMakeTransient(StateManager sm, boolean useFetchPlan, boolean detachAllOnCommit)
    {
        throw new JDOUserException(LOCALISER.msg("027008"),sm.getInternalObjectId());
    }
View Full Code Here

Examples of javax.jdo.JDOUserException

     * @param isLoaded if the field was previously loaded.
     * @return new LifeCycle state.
     **/
    public LifeCycleState transitionReadField(StateManager sm, boolean isLoaded)
    {
        throw new JDOUserException(LOCALISER.msg("027009"),sm.getInternalObjectId());
    }
View Full Code Here

Examples of javax.jdo.JDOUserException

     * @param sm StateManager.
     * @return new LifeCycle state.
     **/
    public LifeCycleState transitionWriteField(StateManager sm)
    {
        throw new JDOUserException(LOCALISER.msg("027010"),sm.getInternalObjectId());
    }
View Full Code Here

Examples of javax.jdo.JDOUserException

            apmf.releasePersistenceManager(this);
            objectMgr.postClose();
        }
        catch (TransactionActiveOnCloseException tae)
        {
            throw new JDOUserException(tae.getMessage(), this);
        }
        catch (JPOXException jpe)
        {
            throw JPOXJDOHelper.getJDOExceptionForJPOXException(jpe);
        }
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.