Examples of synchronizeMode()


Examples of org.hightides.annotations.Controller.synchronizeMode()

    params.put("containsDate", containsDate);
    params.put("initializing", initializing);
    Annotation annotation = clazz.getAnnotation(Controller.class);
    if (annotation instanceof Controller) {
      Controller controller = (Controller) annotation;
      params.put("syncMode", controller.synchronizeMode());
    } else {
      // unexpected case... but handle it nevertheless
      params.put("syncMode", SyncMode.UPDATE);
      _log.error("Unable to retrieve syncMode for ["+clazz.getName()+"]");
    }
View Full Code Here

Examples of org.hightides.annotations.Dao.synchronizeMode()

    Annotation annotation = clazz.getAnnotation(Dao.class);
    if (Sortable.class.isAssignableFrom(clazz))
      params.put("isSortable", true);
    if (annotation instanceof Dao) {
      Dao dao = (Dao) annotation;
      params.put("syncMode", dao.synchronizeMode());
    } else {
      // unexpected case... but handle it nevertheless
      params.put("syncMode", SyncMode.UPDATE);
      _log.error("Unable to retrieve syncMode for ["+clazz.getName()+"]");
    }
View Full Code Here

Examples of org.hightides.annotations.Page.synchronizeMode()

    params.put(fieldsPrefix +  "fields", fieldParams);
    params.put("titleField", AnnotationUtil.getTitleField(clazz));
    Annotation annotation = clazz.getAnnotation(Page.class);
    if (annotation instanceof Page) {
      Page page = (Page) annotation;
      params.put("syncMode", page.synchronizeMode());
      params.put("pageType", page.pageType());
    } else {
      // unexpected case... but handle it nevertheless
      params.put("syncMode", SyncMode.UPDATE);
      _log.error("Unable to retrieve syncMode for ["+clazz.getName()+"]");
View Full Code Here

Examples of org.hightides.annotations.Service.synchronizeMode()

  public Map<String, Object> getParameters(Class clazz) {
    Map<String, Object> params = new HashMap<String, Object>();
    Annotation annotation = clazz.getAnnotation(Service.class);
    if (annotation instanceof Service) {
      Service service = (Service) annotation;
      params.put("syncMode", service.synchronizeMode());
    } else {
      // unexpected case... but handle it nevertheless
      params.put("syncMode", SyncMode.UPDATE);
      _log.error("Unable to retrieve syncMode for ["+clazz.getName()+"]");
    }
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.