Examples of AdaptrexCollectionType


Examples of com.adaptrex.core.persistence.api.AdaptrexCollectionType

    /*
     * Add collections
     */
    for (String fieldName : adaptrexCollections.keySet()) {
      AdaptrexCollectionType adaptrexCollection = adaptrexEntity.getCollection(fieldName);
      String assocIdsName = StringUtilities.singularize(fieldName) +
          StringUtils.capitalize(AdaptrexEntityType.COLLECTION_IDS_NAME);
      boolean includeAssoc = entityJoins.contains(StringUtilities.capitalize(fieldName));
      boolean includeAssocIds = doInclude(entityClazz, assocIdsName, entityIncludes, entityExcludes);
     
      if (!includeAssoc && !includeAssocIds) continue;
     
      Object fieldValue = adaptrexCollection.getCollectionFrom(entity);
     
      List<Object> associatedIds = new ArrayList<Object>();
      List<Map<String, Object>> associatedData = new ArrayList<Map<String, Object>>();
     
      List<Object> assocObjList = fieldValue == null
View Full Code Here

Examples of com.adaptrex.core.persistence.api.AdaptrexCollectionType

     
      this.getterName = "get" + associationSimpleName;
      this.setterName = "set" + associationSimpleName;
    }
   
    AdaptrexCollectionType adaptrexCollection = adaptrexEntity.getCollection(associationName);
    if (adaptrexCollection != null) {
      this.type = HAS_MANY;
      this.modelName = parentConfig.getModelName() + Inflector.getInstance().singularize(associationSimpleName);
      this.entityClassName = adaptrexCollection.getItemType().getSimpleName();
      this.associationKey = StringUtilities.uncapitalize(associationName);
      this.name = "get" + associationSimpleName;
    }

    if (adaptrexAssociation == null && adaptrexCollection == null) {
View Full Code Here

Examples of com.adaptrex.core.persistence.api.AdaptrexCollectionType

    /*
     * Add collections
     */
    for (String fieldName : adaptrexCollections.keySet()) {
      AdaptrexCollectionType adaptrexCollection = adaptrexEntity.getCollection(fieldName);
      String assocIdsName = StringUtilities.singularize(fieldName) +
          StringUtils.capitalize(AdaptrexEntityType.COLLECTION_IDS_NAME);
      boolean includeAssoc = entityJoins.contains(StringUtilities.capitalize(fieldName));
      boolean includeAssocIds = doInclude(entityClazz, assocIdsName, entityIncludes, entityExcludes);
     
      if (!includeAssoc && !includeAssocIds) continue;
     
      Object fieldValue = adaptrexCollection.getCollectionFrom(entity);
     
      List<Object> associatedIds = new ArrayList<Object>();
      List<Map<String, Object>> associatedData = new ArrayList<Map<String, Object>>();
     
      List<Object> assocObjList = fieldValue == null
View Full Code Here

Examples of com.adaptrex.core.persistence.api.AdaptrexCollectionType

     
      this.getterName = "get" + associationSimpleName;
      this.setterName = "set" + associationSimpleName;
    }
   
    AdaptrexCollectionType adaptrexCollection = adaptrexEntity.getCollection(associationName);
    if (adaptrexCollection != null) {
      this.type = HAS_MANY;
      this.modelName = parentConfig.getModelName() + Inflector.getInstance().singularize(associationSimpleName);
      this.entityClassName = adaptrexCollection.getItemType().getSimpleName();
      this.associationKey = StringUtilities.uncapitalize(associationName);
      this.name = "get" + associationSimpleName;
    }

    if (adaptrexAssociation == null && adaptrexCollection == null) {
View Full Code Here

Examples of com.adaptrex.core.persistence.api.AdaptrexCollectionType

    /*
     * Add collections
     */
    for (String fieldName : adaptrexCollections.keySet()) {
      AdaptrexCollectionType adaptrexCollection = adaptrexEntity.getCollection(fieldName);
      String assocIdsName = StringUtilities.singularize(fieldName) + AdaptrexEntityType.COLLECTION_IDS_NAME;
      boolean includeAssoc = entityJoins.contains(StringUtilities.capitalize(fieldName));
      boolean includeAssocIds = doInclude(entityClazz, assocIdsName, entityIncludes, entityExcludes);
     
      if (!includeAssoc && !includeAssocIds) continue;
     
      Object fieldValue = adaptrexCollection.getCollectionFrom(entity);
     
      List<Object> associatedIds = new ArrayList<Object>();
      List<Map<String, Object>> associatedData = new ArrayList<Map<String, Object>>();
     
      List<Object> assocObjList = fieldValue == null
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.