Examples of JavaType


Examples of org.apache.jdo.model.java.JavaType

        if (descrs != null) {
            for (int i = 0; i < descrs.length; i++) {
                PropertyDescriptor descr = descrs[i];
                if (descr == null) continue;
                String name = descr.getName();
                JavaType type =
                    beanClass.getJavaTypeForClass(descr.getPropertyType());
                Method getter = descr.getReadMethod();
                JavaMethod javaGetter = (getter == null) ? null :
                    beanClass.createJavaMethod(getter);
                Method setter = descr.getWriteMethod();
View Full Code Here

Examples of org.apache.jdo.model.java.JavaType

            // return embeddedKey, if explicitly set by the setter
            return embeddedKey.booleanValue();
        }
       
        // not set => calculate
        JavaType type = getKeyType();
        return (type != null) ?
            TypeSupport.isEmbeddedElementType(type) : false;
    }
View Full Code Here

Examples of org.apache.jdo.model.java.JavaType

            // return keyType, if explicitly set by the setter
            return keyType;
        }
   
        // not set => calculate
        JavaType type = null;
        if (keyTypeName != null) {
            JDOField jdoField = getDeclaringField();
            JDOClass jdoClass = jdoField.getDeclaringClass();
            JDOModel jdoModel = jdoClass.getDeclaringModel();
            type = TypeSupport.resolveType(jdoModel, keyTypeName,
View Full Code Here

Examples of org.apache.jdo.model.java.JavaType

            // return embeddedKey, if explicitly set by the setter
            return embeddedValue.booleanValue();
        }
       
        // not set => calculate
        JavaType type = getValueType();
        return (type != null) ?
            TypeSupport.isEmbeddedElementType(type) : false;
    }
View Full Code Here

Examples of org.apache.jdo.model.java.JavaType

            // return valueType, if explicitly set by the setter
            return valueType;
        }
   
        // not set => calculate
        JavaType type = null;
        if (valueTypeName != null) {
            JDOField jdoField = getDeclaringField();
            JDOClass jdoClass = jdoField.getDeclaringClass();
            JDOModel jdoModel = jdoClass.getDeclaringModel();
            type = TypeSupport.resolveType(jdoModel, valueTypeName,
View Full Code Here

Examples of org.apache.jdo.model.java.JavaType

        // return true if obj is this
        if (obj == this) return  true;
        // return false if obj does not have the correct type
        if ((obj == null) || !(obj instanceof JavaType)) return false;

        JavaType other = (JavaType)obj;
        // compare names
        String name = getName();
        if (name == null) return other.getName() == null;
        return name.equals(other.getName());
    }
View Full Code Here

Examples of org.apache.jdo.model.java.JavaType

            // return embeddedElement, if explicitly set by the setter
            return embeddedElement.booleanValue();
        }
       
        // not set => calculate
        JavaType type = getElementType();
        return (type != null) ?
            TypeSupport.isEmbeddedElementType(type) : false;
    }
View Full Code Here

Examples of org.apache.jdo.model.java.JavaType

            // return elementType, if explicitly set by the setter
            return elementType;
        }
   
        // not set => calculate
        JavaType type = null;
        if (elementTypeName != null) {
            JDOField jdoField = getDeclaringField();
            JDOClass jdoClass = jdoField.getDeclaringClass();
            JDOModel jdoModel = jdoClass.getDeclaringModel();
            type = TypeSupport.resolveType(jdoModel, elementTypeName,
View Full Code Here

Examples of org.apache.jdo.model.java.JavaType

     * Get the JDOClass corresponding to the type or element of this
     * relationship.
     * @return the related class
     */
    public JDOClass getRelatedJDOClass() {
        JavaType relatedType = getRelatedJavaType();

        if (relatedType != null) {
            JDOClass myClass = getDeclaringField().getDeclaringClass();
            String relatedTypeName = relatedType.getName();

            if (relatedTypeName.equals(myClass.getName()))
                return myClass;
       
            return myClass.getDeclaringModel().getJDOClass(relatedTypeName);
View Full Code Here

Examples of org.apache.jdo.model.java.JavaType

        if (field != null) {
            return new BaseReflectionJavaField(field, this);
        }
       
        // check superclass, if available and other than Object
        JavaType superclass = getSuperclass();
        if ((superclass != null) && (superclass != PredefinedType.objectType)) {
            return superclass.getJavaField(fieldName);
        }
       
        return null;
    }
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.