Package de.mhus.lib.pojo

Examples of de.mhus.lib.pojo.PojoAction.doExecute()


      // looking for models
      for (String actionName : pojoModel.getActionNames()) {
        PojoAction action = pojoModel.getAction(actionName);
        if (action.getAnnotation(ALayoutModel.class) != null) {
          if (((ALayoutModel)action.getAnnotation(ALayoutModel.class)).value().equals(modelName) && action.getReturnType().equals(DefRoot.class)) {
            setDefinition( ((DefRoot) action.doExecute(pojo)) );
          } else
          if (((ALayoutModel)action.getAnnotation(ALayoutModel.class)).value().equals(modelName) && action.getReturnType() == MNls.class) {
            setNls( (MNls) action.doExecute(pojo));
          }
        }
View Full Code Here


        if (action.getAnnotation(ALayoutModel.class) != null) {
          if (((ALayoutModel)action.getAnnotation(ALayoutModel.class)).value().equals(modelName) && action.getReturnType().equals(DefRoot.class)) {
            setDefinition( ((DefRoot) action.doExecute(pojo)) );
          } else
          if (((ALayoutModel)action.getAnnotation(ALayoutModel.class)).value().equals(modelName) && action.getReturnType() == MNls.class) {
            setNls( (MNls) action.doExecute(pojo));
          }
        }
      }
     
      // fallback
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.