Package org.jpox.exceptions

Examples of org.jpox.exceptions.JPOXUserException


              else
              {
                    ObjectManager valueOM = ObjectManagerHelper.getObjectManager(value);
                  if (valueOM != null && om != valueOM)
                  {
                      throw new JPOXUserException(LOCALISER.msg("041015"), id);
                  }
              }
             
              if (requiresPersisting)
              {
View Full Code Here


     */
    public ScalarExpression newLiteral(QueryExpression qs, Object value)
    {
        if (containerIsStoredInSingleColumn())
        {
            throw new JPOXUserException(LOCALISER.msg("041025", fmd.getFullFieldName())).setFatal();
        }
        if (value instanceof Queryable)
        {
            return new CollectionSubqueryExpression(qs, ((Queryable)value).newQueryStatement());
        }
View Full Code Here

     */
    public ScalarExpression newScalarExpression(QueryExpression qs, LogicSetExpression te)
    {
        if (containerIsStoredInSingleColumn())
        {
            throw new JPOXUserException(LOCALISER.msg("041025", fmd.getFullFieldName())).setFatal();
        }
        return new CollectionExpression(qs, datastoreContainer.getIDMapping(), te, ((CollectionStore) storeMgr.getBackingStoreForField(qs.getClassLoaderResolver(),fmd,null)), fieldName);
    }
View Full Code Here

     */
    public ScalarExpression newLiteral(QueryExpression qs, Object value)
    {
        if (containerIsStoredInSingleColumn())
        {
            throw new JPOXUserException(LOCALISER.msg("041025", fmd.getFullFieldName())).setFatal();
        }
        return new MapLiteral(qs, this, (java.util.Map)value);
    }
View Full Code Here

     **/
    public ScalarExpression newScalarExpression(QueryExpression qs, LogicSetExpression te)
    {
        if (containerIsStoredInSingleColumn())
        {
            throw new JPOXUserException(LOCALISER.msg("041025", fmd.getFullFieldName())).setFatal();
        }
        return new MapExpression(qs, datastoreContainer.getIDMapping(), te, (MapStore) storeMgr.getBackingStoreForField(qs.getClassLoaderResolver(), fmd, null), fieldName);
    }
View Full Code Here

        if( acmd != null )
        {
            AbstractMemberMetaData fmd =acmd.getMetaDataForMember(fieldName);
            if( fmd == null )
            {
                throw new JPOXUserException("Cannot access field "+fieldName+" on type "+cls.getName());
            }
            return fmd.getType();
        }
        else
        {
            Field field = ClassUtils.getFieldForClass(cls, fieldName);
            if( field == null )
            {
                throw new JPOXUserException("Cannot access field "+fieldName+" on type "+cls.getName());
            }
            return field.getType();
        }

    }
View Full Code Here

    protected void compileUnaryExpression()
    {
        if (p.parseString("++"))
        {
            throw new JPOXUserException("Unsupported operator '++'");
        }
        else if (p.parseString("--"))
        {
            throw new JPOXUserException("Unsupported operator '--'");
        }

        if (p.parseChar('+'))
        {
            compileUnaryExpression();
View Full Code Here

            while ((c = ci.next()) != quote)
            {
                if (c == CharacterIterator.DONE)
                {
                    throw new JPOXUserException("Invalid string literal: " + input);
                }

                if (c == '\\')
                {
                    c = parseEscapedCharacter();
View Full Code Here

                    ci.previous();
                }

                if (i > 0xff)
                {
                    throw new JPOXUserException("Invalid character escape: '\\" + Integer.toOctalString(i) + "'");
                }

                return (char)i;
            }
            else
            {
                switch (c)
                {
                    case 'b':   return '\b';
                    case 't':   return '\t';
                    case 'n':   return '\n';
                    case 'f':   return '\f';
                    case 'r':   return '\r';
                    case '"':   return '"';
                    case '\''return '\'';
                    case '\\'return '\\';
                    default:
                        throw new JPOXUserException("Invalid character escape: '\\" + c + "'");
                }
            }
        }
View Full Code Here

                skipWS();
                String name = parseName();
                skipWS();
                if( !parseString(":=") && !parseString("=") )
                {
                    throw new JPOXUserException("Expected := or = symbols but found \""+remaining()+"\" at position "+this.getIndex()+" of text \""+input+"\"");
                }
                String argument = parseStringLiteral();
                if( argument == null )
                {
                    argument = parseIdentifier();
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.