Package com.et.ar.annotations

Examples of com.et.ar.annotations.Unique


            clasz = clasz.getSuperclass();
        }
        OrmInfo orm = OrmInfo.getOrmInfo(clasz);
        for(Field f: clasz.getDeclaredFields()){
            f.setAccessible(true);
            Unique v_unique = f.getAnnotation(Unique.class);
            if (v_unique != null){
                UniqueCreateValidator ucv = new UniqueCreateValidator(clasz,orm.table,f.getName(),v_unique);
                try{
                    Object value = f.get(this);
                    if (ucv.validate(value) == false){
View Full Code Here


            clasz = clasz.getSuperclass();
        }
        OrmInfo orm = OrmInfo.getOrmInfo(clasz);
        for (Field f: clasz.getDeclaredFields()){
            f.setAccessible(true);
            Unique v_unique = f.getAnnotation(Unique.class);
            if (v_unique != null){
                try{
                    Object idValue = OrmInfo.getFieldValue(clasz,orm.id,this);
                    UniqueUpdateValidator uuv = new UniqueUpdateValidator(clasz,orm.table,f.getName(),orm.id,idValue,v_unique);
                    if (uuv.validate(f.get(this)) == false){
View Full Code Here

TOP

Related Classes of com.et.ar.annotations.Unique

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.