Examples of DefineQueryEntity


Examples of reportgen.cores.ejb.annotations.DefineQueryEntity

        if (isNew) {
            oldValues = null;
        } else {
            Class aClass = old.getClass();
            if (aClass.isAnnotationPresent(DefineQueryEntity.class)) {
                DefineQueryEntity annotation = (DefineQueryEntity) aClass.getAnnotation(DefineQueryEntity.class);
                nameEntity = annotation.title();
            } else {
                nameEntity = aClass.getSimpleName();
            }

            className = old.getClass().getSimpleName();
View Full Code Here

Examples of reportgen.cores.ejb.annotations.DefineQueryEntity

            className = current.getClass().getSimpleName();
            if (current instanceof GenericEntity) {
                id = ((GenericEntity)current).getId();
            }
            if (aClass.isAnnotationPresent(DefineQueryEntity.class)) {
                DefineQueryEntity annotation = (DefineQueryEntity) aClass.getAnnotation(DefineQueryEntity.class);
                nameEntity = annotation.title();
            } else {
                nameEntity = aClass.getSimpleName();
            }
        }
View Full Code Here

Examples of reportgen.cores.ejb.annotations.DefineQueryEntity

     */
  @SuppressWarnings("unchecked")
    public static String getEntityHumanName(Class c) {
        String res = null;
        if (c.isAnnotationPresent(DefineQueryEntity.class)) {
            DefineQueryEntity q = (DefineQueryEntity) c.getAnnotation(DefineQueryEntity.class);
            res = q.title();
        }
        if(res != null) {
            return res;
        }
        return c.getSimpleName();
View Full Code Here

Examples of reportgen.cores.ejb.annotations.DefineQueryEntity

            default: {
                return false;
            }
        }

        DefineQueryEntity gene = entityClass.getAnnotation(DefineQueryEntity.class);
        if (gene != null) {
            hudClassName = gene.title();
        }
        if (DirectoryEntityExternal.class.isAssignableFrom(entityClass)) {
             hasExtKey = true;
         }
         if (DirectoryEntityDirty.class.isAssignableFrom(entityClass)) {
View Full Code Here

Examples of reportgen.cores.ejb.annotations.DefineQueryEntity

        DefineQueryProperty gen = (DefineQueryProperty) cls.getAnnotation(DefineQueryProperty.class);
        if(gen != null) {
            title = gen.title();
            desc = gen.desc();
        } else {
            DefineQueryEntity gene = (DefineQueryEntity) cls.getAnnotation(DefineQueryEntity.class);
            if(gene != null) {
                title = gene.title();
                desc = gene.desc();               
            } else {
                assert cls.isAnnotationPresent(Entity.class);
                title = cls.getSimpleName();
            }
        }
View Full Code Here

Examples of reportgen.cores.ejb.annotations.DefineQueryEntity

        break;
      }

            default:
                return false;
        }        DefineQueryEntity gene = entityClass.getAnnotation(DefineQueryEntity.class);
        if (gene != null) {
            hudClassName = gene.title();
        }
        if (DirectoryEntityExternal.class.isAssignableFrom(entityClass)) {
            hasExtKey = true;
        }
        if (DirectoryEntityDirty.class.isAssignableFrom(entityClass)) {
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.