Package cc.concurrent.mango.exception

Examples of cc.concurrent.mango.exception.NotReadablePropertyException


            if (aips.size() == 1) {
                interableProperty = aips.get(0).getInterableProperty();
                Method readMethod = BeanInfoCache.getReadMethod(mappedClass, interableProperty);
                if (readMethod == null) {
                    // 如果使用cache并且sql中有一个in语句,mappedClass必须含有特定属性,必须a in (...),则mappedClass必须含有a属性
                    throw new NotReadablePropertyException("if use cache and sql has one in clause, property "
                            + interableProperty + " of " + mappedClass + " expected readable but not");
                }
            } else if (aips.size() != 0) {
                throw new IncorrectSqlException("if use cache, sql's in clause expected less than or equal 1 but "
                        + aips.size()); // 如果使用cache,sql中的in语句不能超过1
View Full Code Here


            if (ips.size() == 1) {
                interableProperty = ips.get(0).getInterableProperty();
                Method readMethod = BeanInfoCache.getReadMethod(mappedClass, interableProperty);
                if (readMethod == null) {
                    // 如果使用cache并且sql中有一个in语句,mappedClass必须含有特定属性,必须a in (...),则mappedClass必须含有a属性
                    throw new NotReadablePropertyException("if use cache and sql has one in clause, property "
                            + interableProperty + " of " + mappedClass + " expected readable but not");
                }
            }
        }
    }
View Full Code Here

            if (aips.size() == 1) {
                interableProperty = aips.get(0).getInterableProperty();
                Method readMethod = BeanInfoCache.getReadMethod(mappedClass, interableProperty);
                if (readMethod == null) {
                    // 如果使用cache并且sql中有一个in语句,mappedClass必须含有特定属性,必须a in (...),则mappedClass必须含有a属性
                    throw new NotReadablePropertyException("if use cache and sql has one in clause, property "
                            + interableProperty + " of " + mappedClass + " expected readable but not");
                }
            } else if (aips.size() != 0) {
                throw new IncorrectSqlException("if use cache, sql's in clause expected less than or equal 1 but "
                        + aips.size()); // 如果使用cache,sql中的in语句不能超过1
View Full Code Here

                    pos = propertyPath.indexOf('.');
                    nestedPath.append(".");
                    continue;
                }
            }
            throw new NotReadablePropertyException("property ':" + parameterName + "." + nestedPath + "' is not readable");
        }

        Class<?> clazz = getClassFromType(type);
        if (clazz != null) {
            Method method = BeanInfoCache.getReadMethod((Class<?>) type, propertyPath);
            if (method != null) {
                type = method.getGenericReturnType();
                return type;
            }
        }
        nestedPath.append(propertyPath);
        throw new NotReadablePropertyException("property ':" + parameterName + "." + nestedPath + "' is not readable");
    }
View Full Code Here

            if (ips.size() == 1) {
                interableProperty = ips.get(0).getInterableProperty();
                Method readMethod = BeanInfoCache.getReadMethod(mappedClass, interableProperty);
                if (readMethod == null) {
                    // 如果使用cache并且sql中有一个in语句,mappedClass必须含有特定属性,必须a in (...),则mappedClass必须含有a属性
                    throw new NotReadablePropertyException("if use cache and sql has one in clause, property "
                            + interableProperty + " of " + mappedClass + " expected readable but not");
                }
            }
        }
    }
View Full Code Here

            }

            String parentFullName = getFullName(parameterName, parentPath.toString());
            appendParentPath(parentPath, propertyName);
            String fullName = getFullName(parameterName, parentPath.toString());
            throw new NotReadablePropertyException("property " + fullName + " is not readable, " +
                    "the type of " + parentFullName + " is " + type + ", please check it's get method");
        }

        Class<?> clazz = getClassFromType(type);
        if (clazz != null) {
            Method method = BeanInfoCache.getReadMethod(clazz, propertyPath);
            if (method != null) {
                type = method.getGenericReturnType();
                return type;
            }
        }
        String parentFullName = getFullName(parameterName, parentPath.toString());
        appendParentPath(parentPath, propertyPath);
        String fullName = getFullName(parameterName, parentPath.toString());
        throw new NotReadablePropertyException("property " + fullName + " is not readable, " +
                "the type of " + parentFullName + " is " + type + ", please check it's get method");
    }
View Full Code Here

            }

            String parentFullName = getFullName(parameterName, parentPath.toString());
            appendParentPath(parentPath, propertyName);
            String fullName = getFullName(parameterName, parentPath.toString());
            throw new NotReadablePropertyException("property " + fullName + " is not readable, " +
                    "the type of " + parentFullName + " is " + type + ", please check it's get method");
        }

        Class<?> clazz = getClassFromType(type);
        if (clazz != null) {
            Method method = BeanInfoCache.getReadMethod(clazz, propertyPath);
            if (method != null) {
                type = method.getGenericReturnType();
                return type;
            }
        }
        String parentFullName = getFullName(parameterName, parentPath.toString());
        appendParentPath(parentPath, propertyPath);
        String fullName = getFullName(parameterName, parentPath.toString());
        throw new NotReadablePropertyException("property " + fullName + " is not readable, " +
                "the type of " + parentFullName + " is " + type + ", please check it's get method");
    }
View Full Code Here

            if (ips.size() == 1) {
                interableProperty = ips.get(0).getInterableProperty();
                Method readMethod = BeanInfoCache.getReadMethod(mappedClass, interableProperty);
                if (readMethod == null) {
                    // 如果使用cache并且sql中有一个in语句,mappedClass必须含有特定属性,必须a in (...),则mappedClass必须含有a属性
                    throw new NotReadablePropertyException("if use cache and sql has one in clause, property "
                            + interableProperty + " of " + mappedClass + " expected readable but not");
                }
            }
        }
    }
View Full Code Here

            if (ips.size() == 1) {
                interableProperty = ips.get(0).getInterableProperty();
                Method readMethod = BeanInfoCache.getReadMethod(mappedClass, interableProperty);
                if (readMethod == null) {
                    // 如果使用cache并且sql中有一个in语句,mappedClass必须含有特定属性,必须a in (...),则mappedClass必须含有a属性
                    throw new NotReadablePropertyException("if use cache and sql has one in clause, property "
                            + interableProperty + " of " + mappedClass + " expected readable but not");
                }
            }
        }
    }
View Full Code Here

TOP

Related Classes of cc.concurrent.mango.exception.NotReadablePropertyException

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.