Package net.sf.minuteProject.configuration.bean

Examples of net.sf.minuteProject.configuration.bean.Package


    return complementComponentListWithRelationship(components);
    //return new ArrayList<Component>(components.values());
  }
 
  private static Hashtable<String, Component> composeComponentList (Table table) {
    Package pack = copyPackage(table);
    Hashtable<String, Component> components = new Hashtable<String, Component>();
    for (Column column : table.getColumns()) {
      String key = getComponentBeanPath(table.getName(), column.getName());
      String fullPath = getComponentBeanPropertyPath(table.getName(), column.getName());
      Component component = components.get(key);
View Full Code Here


    return components;
  }
 
  //TODO put in packageUtils
  private static Package copyPackage (Table table) {
    Package pack = new Package();
    Package packOrig = table.getPackage();
    String formatAlias = StringUtils.lowerCase(FormatUtils.getJavaName(table.getAlias()));
    pack.setName(packOrig.getName()+"."+formatAlias);
    pack.setBusinessPackage(packOrig.getBusinessPackage());
    return pack;
  }
View Full Code Here

  private static Component createNewComponent(String componentName, String path, Component component) {
    Component componentNew = new ComponentDDLUtils();
    componentNew.setPath(path);
    componentNew.setName(componentName);
    //Table table = component.getTable();
    Package pack = component.getPackage();
    //pack.setName(pack.getName()+StringUtils.lowerCase(FormatUtils.getJavaName(table.getName())));
    componentNew.setPackage(pack);
    componentNew.setTable(component.getTable());
    return componentNew;
   
View Full Code Here

TOP

Related Classes of net.sf.minuteProject.configuration.bean.Package

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.