Examples of JDOProperty


Examples of org.apache.jdo.model.jdo.JDOProperty

                declaredFields.remove(name);
            }

            // There might be a property with the field to be removed as
            // associated JDOField => remove the property too.
            JDOProperty prop = getAssociatedProperty(field);
            if (prop != null) {
                removeDeclaredMember(prop);
            }
        }
        else if (member instanceof JDOClass) {
View Full Code Here

Examples of org.apache.jdo.model.jdo.JDOProperty

     * @return a JDOProperty instance for the specified property
     * @exception ModelException if impossible
     */
    public JDOProperty createJDOProperty(String name) throws ModelException {
        // check whether there is a field or property with the specified name
        JDOProperty property = null;
        JDOField field = getDeclaredField(name);
        if (field == null) {
            property = newJDOPropertyInstance(name);
            declaredFields.put(name, property);
        }
View Full Code Here

Examples of org.apache.jdo.model.jdo.JDOProperty

     */
    public JDOProperty createJDOProperty(String name,
                                         JDOField associatedJDOField)
        throws ModelException
    {
        JDOProperty property = (JDOProperty) associatedProperties.get(name);
        if (property == null) {
            property = newJDOPropertyInstance(name, associatedJDOField);
            associatedProperties.put(name, property);
        }
        else {
            if (property.getAssociatedJDOField() != associatedJDOField) {
                throw new ModelException(
                    msg.msg("EXC_ExistingJDOAssociatedProperty", //NOI18N
                            name, associatedJDOField));
            }
        }
View Full Code Here

Examples of org.apache.jdo.model.jdo.JDOProperty

     * @return JDOProperty metadata for the property with an associated
     * JDOField or <code>null</code> if there is no such property.
     */
    public JDOProperty getAssociatedProperty(String name) {
        // first check the associated properties from this class
        JDOProperty prop = (JDOProperty) associatedProperties.get(name);
        if (prop != null) {
            return prop;
        }
       
        // not in this class => check superclass
View Full Code Here

Examples of org.apache.jdo.model.jdo.JDOProperty

     * associated JDOField or <code>null</code> if there is no such property.
     */
    public JDOProperty getAssociatedProperty(JDOField field) {
        Collection props = associatedProperties.values();
        for (Iterator i = props.iterator(); i.hasNext();) {
            JDOProperty prop = (JDOProperty)i.next();
            if (prop.getAssociatedJDOField() == field) {
                // found property => return
                return prop;
            }
        }

View Full Code Here

Examples of org.apache.jdo.model.jdo.JDOProperty

                declaredFields.remove(name);
            }

            // There might be a property with the field to be removed as
            // associated JDOField => remove the property too.
            JDOProperty prop = getAssociatedProperty(field);
            if (prop != null) {
                removeDeclaredMember(prop);
            }
        }
        else if (member instanceof JDOClass) {
View Full Code Here

Examples of org.apache.jdo.model.jdo.JDOProperty

     * @return a JDOProperty instance for the specified property
     * @exception ModelException if impossible
     */
    public JDOProperty createJDOProperty(String name) throws ModelException {
        // check whether there is a field or property with the specified name
        JDOProperty property = null;
        JDOField field = getDeclaredField(name);
        if (field == null) {
            property = newJDOPropertyInstance(name);
            declaredFields.put(name, property);
        }
View Full Code Here

Examples of org.apache.jdo.model.jdo.JDOProperty

     */
    public JDOProperty createJDOProperty(String name,
                                         JDOField associatedJDOField)
        throws ModelException
    {
        JDOProperty property = (JDOProperty) associatedProperties.get(name);
        if (property == null) {
            property = newJDOPropertyInstance(name, associatedJDOField);
            associatedProperties.put(name, property);
        }
        else {
            if (property.getAssociatedJDOField() != associatedJDOField) {
                throw new ModelException(
                    msg.msg("EXC_ExistingJDOAssociatedProperty", //NOI18N
                            name, associatedJDOField));
            }
        }
View Full Code Here

Examples of org.apache.jdo.model.jdo.JDOProperty

     * @return JDOProperty metadata for the property with an associated
     * JDOField or <code>null</code> if there is no such property.
     */
    public JDOProperty getAssociatedProperty(String name) {
        // first check the associated properties from this class
        JDOProperty prop = (JDOProperty) associatedProperties.get(name);
        if (prop != null) {
            return prop;
        }
       
        // not in this class => check superclass
View Full Code Here

Examples of org.apache.jdo.model.jdo.JDOProperty

     * associated JDOField or <code>null</code> if there is no such property.
     */
    public JDOProperty getAssociatedProperty(JDOField field) {
        Collection props = associatedProperties.values();
        for (Iterator i = props.iterator(); i.hasNext();) {
            JDOProperty prop = (JDOProperty)i.next();
            if (prop.getAssociatedJDOField() == field) {
                // found property => return
                return prop;
            }
        }

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.