Examples of entityName()


Examples of com.webobjects.eocontrol.EOKeyGlobalID.entityName()

      public void processRelationships(EODatabase database, NSArray gids, NSDictionary snapshots, Object context, SynchronizerSettings settings) {
        Enumeration gidsEnum = gids.objectEnumerator();
        while (gidsEnum.hasMoreElements()) {
          EOKeyGlobalID gid = (EOKeyGlobalID) gidsEnum.nextElement();
          processGID(database, gid, context, settings);
          EOEntity entity = database.entityNamed(gid.entityName());
          NSDictionary snapshot = (NSDictionary) snapshots.objectForKey(gid);
          Enumeration relationshipsEnum = entity.relationships().objectEnumerator();
          while (relationshipsEnum.hasMoreElements()) {
            EORelationship relationship = (EORelationship) relationshipsEnum.nextElement();
            if (!relationship.isToMany()) {
View Full Code Here

Examples of com.webobjects.eocontrol.EOKeyGlobalID.entityName()

        ec.lock();
       
        Enumeration e = objects.objectEnumerator();
        while (e.hasMoreElements()) {
            EOKeyGlobalID globalID = (EOKeyGlobalID) e.nextElement();
            String entityName = globalID.entityName();

            if (shouldSynchronizeEntity(entityName)) {
                EODatabaseContext dbContext = ERCNNotificationCoordinator.databaseContextForEntityNamed(entityName, ec);
                NSMutableArray snapshotsForEntity = (NSMutableArray)result.objectForKey(entityName);
                if (snapshotsForEntity == null) {
View Full Code Here

Examples of com.webobjects.eocontrol.EOKeyGlobalID.entityName()

        NSMutableDictionary result = new NSMutableDictionary();
       
        Enumeration e = objects.objectEnumerator();
        while (e.hasMoreElements()) {
            EOKeyGlobalID globalID = (EOKeyGlobalID) e.nextElement();
            String entityName = globalID.entityName();

            if (shouldSynchronizeEntity(entityName)) {
                NSMutableArray globalIDsForEntity = (NSMutableArray)result.objectForKey(entityName);
                if (globalIDsForEntity == null) {
                    globalIDsForEntity = new NSMutableArray();
View Full Code Here

Examples of com.webobjects.eocontrol.EOKeyGlobalID.entityName()

        EOObjectStoreCoordinator osc = (EOObjectStoreCoordinator) oscs.nextElement();
        Enumeration cacheChangeEnum = remoteChange.remoteCacheChanges().objectEnumerator();
        while (cacheChangeEnum.hasMoreElements()) {
          ERXDatabase.CacheChange cacheChange = (ERXDatabase.CacheChange) cacheChangeEnum.nextElement();
          EOKeyGlobalID gid = (EOKeyGlobalID) cacheChange.gid();
          EODatabaseContext dbc = ERXEOAccessUtilities.databaseContextForEntityNamed(osc, gid.entityName());
          EODatabase database = dbc.database();
          dbc.lock();
          try {
            if (cacheChange instanceof ERXDatabase.SnapshotInserted) {
              _insertCacheChangeProcessor.processCacheChange(dbc, database, cacheChange);
View Full Code Here

Examples of com.webobjects.eocontrol.EOKeyGlobalID.entityName()

    ERXEC erxec = (ERXEC) ec;
    NSArray<EOGlobalID> gids = (NSArray<EOGlobalID>)ERXKeyValueCodingUtilities.privateValueForKey(erxec, "_globalIDsForRegisteredObjects");
    for(EOGlobalID gid : gids) {
      if (gid instanceof EOKeyGlobalID) {
        EOKeyGlobalID kgid = (EOKeyGlobalID) gid;
        String entityName = kgid.entityName();
        Integer count = counts.objectForKey(entityName);
        if(count == null) {
          count = Integer.valueOf(0);
          counts.setObjectForKey(count, entityName);
        }
View Full Code Here

Examples of com.webobjects.eocontrol.EOKeyGlobalID.entityName()

             while (gidEnum.hasMoreElements()) {
               EOGlobalID gid = (EOGlobalID) gidEnum.nextElement();
               if (gid instanceof EOKeyGlobalID) {
                 EOEnterpriseObject eo = null;
                 EOKeyGlobalID keyGID = (EOKeyGlobalID) gid;
                 String entityName = keyGID.entityName();
                 EOEntity entity = modelGroup.entityNamed(entityName);
                 NSDictionary snapshot = database.snapshotForGlobalID(gid);
                 if (snapshot != null) {
                   EOQualifier gidQualifier = entity.qualifierForPrimaryKey(entity.primaryKeyForGlobalID(gid));
                   EOFetchSpecification gidFetchSpec = new EOFetchSpecification(entityName, gidQualifier, null);
View Full Code Here

Examples of com.webobjects.eocontrol.EOKeyGlobalID.entityName()

    }
  }

  protected void writeGID(DataOutputStream dos, EOGlobalID gid) throws IOException {
    EOKeyGlobalID keyGID = (EOKeyGlobalID) gid;
    String entityName = keyGID.entityName();
    dos.writeUTF(entityName);
    writeGIDKeys(dos, keyGID);
  }

  protected void writeGIDKeys(DataOutputStream dos, EOKeyGlobalID gid) throws IOException {
View Full Code Here

Examples of com.webobjects.eocontrol.EOKeyGlobalID.entityName()

    }
    NSMutableDictionary<String, NSSet<EOGlobalID>> result = new NSMutableDictionary<String, NSSet<EOGlobalID>>();
    for (EOGlobalID gid : gids) {
      if (gid instanceof EOKeyGlobalID) {
        EOKeyGlobalID keyGID = (EOKeyGlobalID)gid;
        String entityName = keyGID.entityName();
        if (shouldSynchronizeEntity(entityName)) {
          NSMutableSet<EOGlobalID> globalIDsForEntity = (NSMutableSet<EOGlobalID>) result.objectForKey(entityName);
          if (globalIDsForEntity == null) {
            globalIDsForEntity = new NSMutableSet<EOGlobalID>();
            result.setObjectForKey(globalIDsForEntity, entityName);
View Full Code Here

Examples of com.webobjects.eocontrol.EOKeyGlobalID.entityName()

      NSMutableArray<ERXDatabase.CacheChange> mutableFilteredCacheChanges = new NSMutableArray<ERXDatabase.CacheChange>();
      for (ERXDatabase.CacheChange cacheChange : cacheChanges) {
        EOGlobalID gid = cacheChange.gid();
        if (gid instanceof EOKeyGlobalID) {
          EOKeyGlobalID keyGID = (EOKeyGlobalID)gid;
          String entityName = keyGID.entityName();
          if (shouldSynchronizeEntity(entityName)) {
            mutableFilteredCacheChanges.addObject(cacheChange);
          }
        }
      }
View Full Code Here

Examples of com.webobjects.eocontrol.EOKeyGlobalID.entityName()

      try {
        EODatabase database = databaseContext.database();
        for (EOGlobalID gid : (NSArray<EOGlobalID>) database.snapshots().allKeys()) {
          if (gid instanceof EOKeyGlobalID) {
            EOKeyGlobalID kgid = (EOKeyGlobalID) gid;
            String entityName = kgid.entityName();
            SEEntityStats entityStats = _entityStats.get(entityName);
            if (entityStats == null) {
              EOEntity entity = _model.entityNamed(entityName);
              if (entity != null) {
                entityStats = new SEEntityStats(databaseContext, entity);
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.