Package reportgen.cores.ejb.annotations

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


            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

     */
  @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

            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

        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

        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

Related Classes of reportgen.cores.ejb.annotations.DefineQueryEntity

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.