Package org.xorm.util

Examples of org.xorm.util.FieldDescriptor


     * @exception JDOUserException if the named field does not exist.
     */
    public FieldDescriptor getFieldDescriptor(String field) {
        Iterator i = fields.iterator();
        while (i.hasNext()) {
            FieldDescriptor fd = (FieldDescriptor) i.next();
            if (fd.name.equals(field)) return fd;
        }
        throw new JDOUserException(I18N.msg("E_no_field", new Object[] { field, clazz.getName() }));
    }
View Full Code Here


     * Convenience method to go from a get/set method to the
     * associated relationship mapping.
     */
    public RelationshipMapping getRelationshipForMethod(Method method) {
        String methodName = method.getName();
        FieldDescriptor fd = (FieldDescriptor) methodToProperty.get(methodName);
        if (fd == null) return null;
        return (RelationshipMapping) relationships.get(fd.name);
    }
View Full Code Here

            //find getter abd setter
            PropertyDescriptor descriptor = (PropertyDescriptor)propMap.get(name);
            if(descriptor == null){
                throw new JDOFatalUserException(I18N.msg("E_unknown_property", name, clazz.getName()));
            }
            FieldDescriptor fd = new FieldDescriptor(descriptor);
            descriptorsColl.add(fd);
        }
        return descriptorsColl;
    }
View Full Code Here

TOP

Related Classes of org.xorm.util.FieldDescriptor

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.