Package er.extensions.eof

Examples of er.extensions.eof.ERXEntityClassDescription$AttributeDefault


  private NSDictionary<Class, ERXPartial> _partials;

  @SuppressWarnings("unchecked")
  public NSDictionary<Class, ERXPartial> _partialsDictionary() {
    if (_partials == null) {
      ERXEntityClassDescription cd = (ERXEntityClassDescription) classDescription();
      NSArray<Class<ERXPartial>> partialEntityClasses = cd.partialClasses();
      if (partialEntityClasses == null || partialEntityClasses.count() == 0) {
        _partials = NSMutableDictionary.EmptyDictionary;
      }
      else {
        NSMutableDictionary<Class, ERXPartial> partials = new NSMutableDictionary<Class, ERXPartial>();
View Full Code Here


  }

  public void workaroundClassDescriptionResetProblem() {
    if (ERXProperties.booleanForKeyWithDefault("er.extensions.partials.enabled", false)) {
      for (EOEntity partialEntity : _partialsForEntity.keySet()) {
        ERXEntityClassDescription ecd = (ERXEntityClassDescription) partialEntity.classDescriptionForInstances();
        for (Class<ERXPartial> partialClass : _partialsForEntity.objectForKey(partialEntity)) {
          ecd._addPartialClass(partialClass);
        }
      }
    }
  }
View Full Code Here

            if (partialsForEntity == null) {
              partialsForEntity = new NSMutableArray<Class<ERXPartial>>();
              _partialsForEntity.setObjectForKey(partialsForEntity, partialEntity);
            }
            Class<ERXPartial> partialClass = (Class<ERXPartial>) _NSUtilities.classWithName(partialExtensionEntity.className());
            ERXEntityClassDescription ecd = (ERXEntityClassDescription) partialEntity.classDescriptionForInstances();
            ecd._addPartialClass(partialClass);
            partialsForEntity.addObject(partialClass);
            baseForPartial.setObjectForKey(partialEntity, partialExtensionEntity);
          }
        }
      }
View Full Code Here

TOP

Related Classes of er.extensions.eof.ERXEntityClassDescription$AttributeDefault

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.