Package org.apache.jdo.model

Examples of org.apache.jdo.model.ModelException


     * @param member the member to be removed
     * @exception ModelException if impossible
     */
    public void removeDeclaredMember(JDOMember member) throws ModelException {
        if ((member instanceof JDOField) && fieldNumbersCalculated) {
            throw new ModelException(
                msg.msg("EXC_CannotRemoveJDOField")); //NOI18N
        }

        // nullify JDOField arrays storing calculated field lists
        declaredManagedFields = null;
View Full Code Here


     * @param name the name of the field
     * @exception ModelException if impossible
     */
    public JDOField createJDOField(String name) throws ModelException {
        if ((getDeclaredField(name) == null) && fieldNumbersCalculated) {
            throw new ModelException(
                msg.msg("EXC_CannotCreateJDOField")); //NOI18N
        }
        return super.createJDOField(name);
    }
View Full Code Here

        String name, JDOClass declaringClass, JDOField associatedJDOField)
        throws ModelException {
        super(name, declaringClass);
        this.associatedJDOField = associatedJDOField;
        if (associatedJDOField == null) {
            throw new ModelException(
                msg.msg("EXC_InvalidNullAssociatedJDOField")); //NOI18N
        }
    }
View Full Code Here

       
        if (javaField instanceof JavaProperty) {
            this.javaProperty = (JavaProperty)javaField;
        }
        else {
            throw new ModelException(msg.msg(
                "EXC_InvalidJavaFieldForJDOProperty", javaField)); //NOI18N
        }
    }
View Full Code Here

    }

    /** Throws ModelException. */
    public void setPersistenceModifier (int persistenceModifier)
        throws ModelException {
        throw new ModelException(
            msg.msg("EXC_CannotModifyJDOProperty")); //NOI18N
    }
View Full Code Here

    }
   
    /** Throws ModelException. */
    public void setPrimaryKey(boolean primaryKey)
        throws ModelException {
        throw new ModelException(
            msg.msg("EXC_CannotModifyJDOProperty")); //NOI18N
    }
View Full Code Here

    }
   
    /** Throws ModelException. */
    public void setNullValueTreatment(int nullValueTreament)
        throws ModelException {
        throw new ModelException(
            msg.msg("EXC_CannotModifyJDOProperty")); //NOI18N
    }
View Full Code Here

    }

    /** Throws ModelException. */
    public void setDefaultFetchGroup(boolean defaultFetchGroup)
        throws ModelException {
        throw new ModelException(
            msg.msg("EXC_CannotModifyJDOProperty")); //NOI18N
    }
View Full Code Here

    }
   
    /** Throws ModelException. */
    public void setEmbedded(boolean embedded)
        throws ModelException {
        throw new ModelException(
            msg.msg("EXC_CannotModifyJDOProperty")); //NOI18N
    }
View Full Code Here

    }

    /** Throws ModelException. */
    public void setSerializable(boolean serializable)
        throws ModelException {
        throw new ModelException(
            msg.msg("EXC_CannotModifyJDOProperty")); //NOI18N
    }
View Full Code Here

TOP

Related Classes of org.apache.jdo.model.ModelException

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.