Package org.apdplat.platform.criteria

Examples of org.apdplat.platform.criteria.Property


                     if(prop.contains(".id")){
                         //处理两个对象之间的引用,如:model.org.id=1
                        String[] attr=prop.replace(".",",").split(",");
                        if(attr.length==2){
                            Object obj=ReflectionUtils.getFieldValue(model, attr[0]);
                            properties.add(new Property(prop, ReflectionUtils.getFieldValue(obj, attr[1])));
                        }
                     }
                }
                else{
                    properties.add(new Property(prop, ReflectionUtils.getFieldValue(model, prop)));
                }
            }
        }
        assemblyModelForPartUpdate(properties);
View Full Code Here

TOP

Related Classes of org.apdplat.platform.criteria.Property

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.