Package org.jpox.exceptions

Examples of org.jpox.exceptions.JPOXUserException


    public LifeCycleState transitionWriteField(StateManager sm)
    {
        Transaction tx = sm.getObjectManager().getTransaction();
        if (!tx.isActive() && !tx.getNontransactionalWrite())
        {
            throw new JPOXUserException(LOCALISER.msg("027001"), sm.getInternalObjectId());
        }
        return changeState(sm, tx.isActive() ? P_DIRTY : P_NONTRANS);
    }
View Full Code Here


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

     * @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 JPOXUserException(LOCALISER.msg("027004"), sm.getInternalObjectId());
    }
View Full Code Here

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

                    pcCmd = mmgr.getMetaDataForClass(fieldTypes[0], clr);
                }
                else if (fieldTypes != null && fieldTypes.length > 1)
                {
                    // TODO Cater for multiple implementations
                    throw new JPOXUserException("Field " + fmd.getFullFieldName() + " is a reference field that is embedded. " +
                        "JPOX doesnt support embedded reference fields that have more than 1 implementation");
                }
            }

            if (pcCmd == null)
View Full Code Here

    {
        this.om = om;
        if (om == null)
        {
            // OM should always be provided so throw exception if null
            throw new JPOXUserException(LOCALISER.msg("021012"));
        }

        // Inherit IgnoreCache from PersistenceManager (JDO 1.0 $12.6.3)
        this.ignoreCache = om.getIgnoreCache();
    }
View Full Code Here

        {
            this.type = type;
        }
        else
        {
            throw new JPOXUserException(
                "JPOX Query only supports types of SELECT, BULK_UPDATE, BULK_DELETE : unknown value " + type);
        }
    }
View Full Code Here

     */
    protected void assertIsModifiable()
    {
        if (unmodifiable)
        {
            throw new JPOXUserException(LOCALISER.msg("021014"));
        }
    }
View Full Code Here

     */
    public void addSubquery(Query sub, String variableDecl, String candidateExpr, Map paramMap)
    {
        if (StringUtils.isWhitespace(variableDecl))
        {
            throw new JPOXUserException(LOCALISER.msg("021078"));
        }

        if (sub == null)
        {
            // No subquery so the variable is unset effectively meaning that it is an explicit variable
View Full Code Here

            return getParsedImports().resolveClassDeclaration(classDecl, om.getClassLoaderResolver(),
                (candidateClass == null ? null : candidateClass.getClassLoader()));
        }
        catch (ClassNotResolvedException e)
        {
            throw new JPOXUserException(LOCALISER.msg("021015", classDecl));
        }
    }
View Full Code Here

TOP

Related Classes of org.jpox.exceptions.JPOXUserException

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.