Package net.sf.minuteProject.configuration.bean.model.data

Examples of net.sf.minuteProject.configuration.bean.model.data.Table


    }
    String beanName = getAbstractBeanName(bean);
    context.put(beanName, bean);
    if (bean instanceof Component) {
      Component component = (Component) bean;
      Table table = component.getTable();
      context.put("table", table);
    }   
    if (bean instanceof Function) {
      context.put("function", bean);
      context.put("table", ((Function)bean).getEntity(Direction.ANY));
View Full Code Here


  public static String getActionSearch (Table table) {
    return "search"+getActionSubmitManageScreen(table);
  }
 
  public static String getValidationFileName (Template template, GeneratorBean bean) {
    Table table = (Table)bean;
    String innerFileName = getActionSubmit(table);
    return getActionFileName(table)+"-"+template.getNonPluginFileMain(innerFileName);
  }
View Full Code Here

    return I18nUtils.plurialize(tableLabel);
  }

 
  public static String getControllerName (Template template, GeneratorBean bean) {
    Table table = (Table)bean;
    return I18nUtils.plurialize(FormatUtils.getJavaName(table.getAlias()));
 
View Full Code Here

 
  public static List<String> getParentSemanticReference (Table table, Reference removeReference, boolean addChunk) {
    List<String> list = new ArrayList<String>();
    for (Reference reference : table.getParents()) {
      if (!ReferenceUtils.isSimilarReference(reference, removeReference)) {
        Table parent = reference.getForeignTable();
        if (TableUtils.hasSemanticReference(parent)) {
          SemanticReference sr = reference.getForeignTable().getSemanticReference();
          for (String chunk : sr.getSemanticReferenceBeanPath()) {
            String c = FormatUtils.getJavaNameVariable(reference.getLocalColumn().getAlias());
            if (addChunk) c = c+"."+chunk;
View Full Code Here

    return I18nUtils.getPackageName(pack);
  }
 
  public static List<String> getListProperties (Reference reference) {
    List<String> list = new ArrayList<String>();
    Table linkTable = reference.getForeignTable();
    List<String> relativeChildSR = getParentChildRelativeSemanticReference(reference, linkTable);
    if (!relativeChildSR.isEmpty()) {
      list.addAll(getTabDefaultProperties(linkTable));
      list.addAll(relativeChildSR);
    }
View Full Code Here

    List<List<Table>> entityGroup = new ArrayList<List<Table>>();
    for (List<GeneratorBean> group: groups) {
      List<Table> entities = new ArrayList<Table>();
      for (GeneratorBean generatorBean : group) {
        if (generatorBean instanceof Table) {
          Table t = (Table)generatorBean;
          if (isDisplayable(t))
            entities.add(t);
        }
      }
      if (!entities.isEmpty()) {
View Full Code Here

TOP

Related Classes of net.sf.minuteProject.configuration.bean.model.data.Table

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.