Package org.apache.jdo.model

Examples of org.apache.jdo.model.ModelFatalException


        if (this.field == null) {
            this.field = getDeclaredFieldPrivileged(
                ((BaseReflectionJavaType)getDeclaringClass()).getJavaClass(),
                getName());
            if (field == null) {
                throw new ModelFatalException(msg.msg(
                    "ERR_MissingFieldInstance", //NOI18N
                    "BaseReflectionJavaField.ensureInitializedField", getName())); //NOI18N
            }
        }
    }
View Full Code Here


            BeanInfo beanInfo = Introspector.getBeanInfo(
                clazz, clazz.getSuperclass());
            return beanInfo.getPropertyDescriptors();
        }
        catch (IntrospectionException ex) {
            throw new ModelFatalException(msg.msg(
                "ERR_CannotIntrospectClass", clazz.getName()), ex); //NOI18N
        }
    }
View Full Code Here

            try {
                addPropertyDescriptor(
                    propName, new PropertyDescriptor(propName, method, null));
            }
            catch (IntrospectionException ex) {
                throw new ModelFatalException(
                    msg.msg("ERR_CannotCreatePropertyDescriptor", //NOI18N
                            propName, method.getName()), ex);
            }
        }
View Full Code Here

            try {
                addPropertyDescriptor(
                    propName, new PropertyDescriptor(propName, null, method));
            }
            catch (IntrospectionException ex) {
                throw new ModelFatalException(
                    msg.msg("ERR_CannotCreatePropertyDescriptor", //NOI18N
                            propName, method.getName()), ex);
            }
        }
View Full Code Here

                    // return getter
                    try {
                        getter.setWriteMethod(setter.getWriteMethod());
                    }
                    catch (IntrospectionException ex) {
                        throw new ModelFatalException(
                            msg.msg("ERR_CannotSetWriteMethod", //NOI18N
                                    getter.getName()), ex);
                    }           
                }
                return getter;
View Full Code Here

            Class clazz = (Class)typeDesc;
            ClassLoader classLoader = getClassLoaderPrivileged(clazz);
            return getJavaModel(classLoader).getJavaType(clazz);
        }
        catch (ClassCastException ex) {
            throw new ModelFatalException(msg.msg("EXC_InvalidTypeDesc", //NOI18N
                typeDesc.getClass().getName()));
        }
    }
View Full Code Here

                    }
                }
                );
        }
        catch (SecurityException ex) {
            throw new ModelFatalException(
                msg.msg("EXC_CannotGetClassLoader", clazz), ex); //NOI18N
        }
    }
View Full Code Here

        }
        catch (PrivilegedActionException pae) {
            throw (ClassNotFoundException) pae.getException();
        }
        catch (SecurityException ex) {
            throw new ModelFatalException(
                msg.msg("EXC_CannotGetClassInstance", name, loader), ex);
        }
    }
View Full Code Here

       
        try {
            return ((BaseReflectionJavaType)javaType).getJavaClass();
        }
        catch (ClassCastException ex) {
            throw new ModelFatalException(msg.msg(
                "EXC_InvalidJavaType", javaType.getClass())); //NOI18N
        }
    }
View Full Code Here

        String name = getPersistenceCapableSuperclassName();
        if (pcSuperclassName != null) {
            JavaType type = TypeSupport.resolveType(
                getDeclaringModel(), pcSuperclassName, getPackagePrefix());
            if (type == null) {
                throw new ModelFatalException(
                    msg.msg("EXC_CannotResolvePCSuperClass", //NOI18N
                            pcSuperclassName, getName()));
            }
            JDOClass jdoClass = type.getJDOClass();
            // pcSuperclassName might be unqualified
View Full Code Here

TOP

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

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.