Examples of JavaType


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

     * <code>null</code> if it cannot be resolved.
     */
    public static JavaType resolveType(JDOModel jdoModel, String typeName,
                                       String packagePrefix)
    {
        JavaType type = null;
        JavaModel javaModel = jdoModel.getJavaModel();
        if (primitiveTypeNames.contains(typeName) ||
            (typeName.indexOf('.') != -1) ||
            (packagePrefix == null) || (packagePrefix.length() == 0)) {
            // Take the typeName as specified,
View Full Code Here

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

     * <code>false</code> otherwise.
     */
    public static boolean isValueArrayType(JavaType type)
    {
        if (type.isArray()) {
            JavaType elementType = type.getArrayComponentType();
            return elementType.isValue();
        }
        return false;
    }
View Full Code Here

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

     * <code>false</code> otherwise.
     */
    private static boolean isPersistenceArrayType(JavaType type)
    {
         if (type.isArray()) {
            JavaType elementType = type.getArrayComponentType();
            return elementType.isValue() ||
                   elementType.isPersistenceCapable();
        }
        return false;
    }
View Full Code Here

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

            // return java field, if explicitly set by the setter
            return javaField;
        }
       
        // not set => calculate
        JavaType javaType = getDeclaringClass().getJavaType();
        return javaType.getJavaProperty(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 elementType = getElementType();
        return (elementType != null) ?
            TypeSupport.isEmbeddedElementType(elementType) : false;
    }
View Full Code Here

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

     * Get the type representation of the array component type.
     * @return the array component type
     */
    public JavaType getElementType() {
        JDOField jdoField = getDeclaringField();
        JavaType fieldType = jdoField.getType();
        return (fieldType != null) ? fieldType.getArrayComponentType() : null;
    }
View Full Code Here

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

            return persistenceModifier;
        }
       
        // not set => calculate
        int result = PersistenceModifier.UNSPECIFIED;
        JavaType type = getType();
        if (nameHasJDOPrefix()) {
            result = PersistenceModifier.NONE;
        }
        else if (type != null) {
            result = TypeSupport.isPersistenceFieldType(type) ?
View Full Code Here

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

        boolean dfg = false;
        if (isPrimaryKey()) {
            dfg = false;
        }
        else {
            JavaType type = getType();
            if ((type != null) && type.isValue()) {
                dfg = true;
            }
        }
       
        return dfg;
View Full Code Here

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

            return embedded.booleanValue();
        }
       
        // not set => calculate
        boolean result = false;
        JavaType type = getType();
        if (type != null) {
            result = TypeSupport.isEmbeddedFieldType(type);
        }
        return result;
    }
View Full Code Here

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

            // return java field, if explicitly set by the setter
            return javaField;
        }
       
        // not set => calculate
        JavaType javaType = getDeclaringClass().getJavaType();
        return javaType.getJavaField(getName());
    }
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.