Package com.arconsis.android.datarobot.builder.schema.data

Examples of com.arconsis.android.datarobot.builder.schema.data.Association


      }

      VariableElement association = child.accept(new AssociationElementResolvingTypeVisitor(), null);
      if (association != null) {
        AssociationReader associationReader = new AssociationReader(association, entityNames, messager);
        Association read = associationReader.read();
        if (read != null) {
          table.addAssociation(read);

          if (AssociationType.TO_MANY == read.getCardinality()) {
            if (countedToManyAssociations.containsKey(read.getCanonicalTypeInEntity())) {
              countedToManyAssociations.get(read.getCanonicalTypeInEntity()).incrementAndGet();
            } else {
              countedToManyAssociations.put(read.getCanonicalTypeInEntity(), new AtomicInteger(1));
            }
          }
        }
      }
    }
View Full Code Here


    int lastDot = canonicalType.lastIndexOf(".");
    String simpleType = canonicalType.substring(lastDot + 1, canonicalType.length());

    AssociationType cardinality = (isCollectionType) ? AssociationType.TO_MANY : AssociationType.TO_ONE;
    return new Association(nameInEntity, canonicalType, simpleType, cardinality);
  }
View Full Code Here

TOP

Related Classes of com.arconsis.android.datarobot.builder.schema.data.Association

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.