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

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


  public static Reference[] getLinkedTargetReferenceByMany2ManyForTag (Table table, String tag) {
    List<Reference> list = new ArrayList<Reference>();
    Reference[] referenceOrigin = getLinkedMany2ManyReferenceForTag(table, tag);
    for (int i = 0; i < referenceOrigin.length; i++) {
      Reference ref = getTargetReferenceEntityByMany2ManyForTag(referenceOrigin[i], tag);
      list.add(ref);
    }
    return (Reference[]) list.toArray(new Reference[list.size()]);
  }
View Full Code Here


  public static Reference[] getLinkedTargetReferenceByMany2Many (Table table) {
    List<Reference> list = new ArrayList<Reference>();
    if(table!=null) {
      Reference[] referenceOrigin = getLinkedMany2ManyReference(table);
      for (int i = 0; i < referenceOrigin.length; i++) {
        Reference ref = getTargetReferenceEntityByMany2Many(referenceOrigin[i]);
        list.add(ref);
      }
    }
    return (Reference[]) list.toArray(new Reference[list.size()]);
  }
View Full Code Here

    }
    return false;
  }
 
  public static Table getForeignTable (Column column) {
    Reference reference = getReference(column);
    return (reference!=null)? reference.getForeignTable():null;
  }
View Full Code Here

      table.setForeignKey (foreignKey);   
  }
 
  public static ForeignKey getForeignKey (Field field, Database database) {
    if (field.getLinkToTargetEntity()!=null && field.getLinkToTargetField()!=null) {
      Reference reference = ReferenceUtils.getReference(field, database);
      if (reference!=null) {
        org.apache.ddlutils.model.ForeignKey foreignKeyMp = new org.apache.ddlutils.model.ForeignKey();
        foreignKeyMp.setName(field.getName());
        ForeignKey foreignKey = new ForeignKeyDDLUtils (foreignKeyMp);
        foreignKey.setForeignTableName(field.getLinkToTargetEntity());
View Full Code Here

TOP

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

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.