Examples of AdaptrexAssociationType


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

   
    /*
     * Add association
     */
    for (String fieldName : adaptrexAssociations.keySet()) {
      AdaptrexAssociationType adaptrexAssociation = adaptrexEntity.getAssociation(fieldName);
      String assocIdName = fieldName + StringUtils.capitalize(AdaptrexEntityType.ENTITY_ID_NAME);
      boolean includeAssoc = entityJoins.contains(StringUtilities.capitalize(fieldName));
      boolean includeAssocId = doInclude(entityClazz, assocIdName, entityIncludes, entityExcludes);
     
      if (!includeAssoc && !includeAssocId) continue;
     
      Object fieldValue = adaptrexAssociation.getAssociationFrom(entity);
     
      if (includeAssoc) {
        Map<String,Object> assoc = fieldValue == null
            ? null
            : getObjectGraph(fieldValue, fieldName, entity, entityName);
View Full Code Here

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

    Class<?> parentClass = parentConfig.getEntityClass();
   
    AdaptrexPersistenceManager orm = parentConfig.getORMPersistenceManager();
    AdaptrexEntityType adaptrexEntity = orm.getAdaptrexEntity(parentClass.getSimpleName());
   
    AdaptrexAssociationType adaptrexAssociation = adaptrexEntity.getAssociation(associationName);
    if (adaptrexAssociation != null) {
      this.type = BELONGS_TO;
      this.modelName = parentConfig.getModelName() + associationSimpleName;
      this.entityClassName = adaptrexAssociation.getAssociationType().getSimpleName();
     
      this.name = StringUtilities.uncapitalize(associationName);
      this.associationKey = this.name;
      this.foreignKey = this.name + StringUtils.capitalize(AdaptrexEntityType.ENTITY_ID_NAME);
     
View Full Code Here

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

   
    /*
     * Add association
     */
    for (String fieldName : adaptrexAssociations.keySet()) {
      AdaptrexAssociationType adaptrexAssociation = adaptrexEntity.getAssociation(fieldName);
      String assocIdName = fieldName + StringUtils.capitalize(AdaptrexEntityType.ENTITY_ID_NAME);
      boolean includeAssoc = entityJoins.contains(StringUtilities.capitalize(fieldName));
      boolean includeAssocId = doInclude(entityClazz, assocIdName, entityIncludes, entityExcludes);
     
      if (!includeAssoc && !includeAssocId) continue;
     
      Object fieldValue = adaptrexAssociation.getAssociationFrom(entity);
     
      if (includeAssoc) {
        Map<String,Object> assoc = fieldValue == null
            ? null
            : getObjectGraph(fieldValue, fieldName, entity, entityName);
View Full Code Here

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

    Class<?> parentClass = parentConfig.getEntityClass();
   
    AdaptrexPersistenceManager orm = parentConfig.getORMPersistenceManager();
    AdaptrexEntityType adaptrexEntity = orm.getAdaptrexEntity(parentClass.getSimpleName());
   
    AdaptrexAssociationType adaptrexAssociation = adaptrexEntity.getAssociation(associationName);
    if (adaptrexAssociation != null) {
      this.type = BELONGS_TO;
      this.modelName = parentConfig.getModelName() + associationSimpleName;
      this.entityClassName = adaptrexAssociation.getAssociationType().getSimpleName();
     
      this.name = StringUtilities.uncapitalize(associationName);
      this.associationKey = this.name;
      this.foreignKey = this.name + AdaptrexEntityType.ENTITY_ID_NAME;
     
View Full Code Here

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

   
    /*
     * Add association
     */
    for (String fieldName : adaptrexAssociations.keySet()) {
      AdaptrexAssociationType adaptrexAssociation = adaptrexEntity.getAssociation(fieldName);
      String assocIdName = fieldName + AdaptrexEntityType.ENTITY_ID_NAME;
      boolean includeAssoc = entityJoins.contains(StringUtilities.capitalize(fieldName));
      boolean includeAssocId = doInclude(entityClazz, assocIdName, entityIncludes, entityExcludes);
     
      if (!includeAssoc && !includeAssocId) continue;
     
      Object fieldValue = adaptrexAssociation.getAssociationFrom(entity);
     
      if (includeAssoc) {
        Map<String,Object> assoc = fieldValue == null
            ? null
            : getObjectGraph(fieldValue, fieldName, entity, entityName);
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.