Package com.webobjects.foundation

Examples of com.webobjects.foundation.NSMutableSet.allObjects()


            NSMutableSet<EOEnterpriseObject> result = new NSMutableSet();
            for (EOEnterpriseObject eo : objects) {
                NSArray targetObjects = indexableObjectsForObject(type, eo);
                result.addObjectsFromArray(targetObjects);
            }
            return result.allObjects();
        }

        private final NSMutableSet<String> _warned = new NSMutableSet();

        protected NSArray indexableObjectsForObject(String type, EOEnterpriseObject object) {
View Full Code Here


                    }
                } else {
                    result.addObject(eo);
                }
            }
            return result.allObjects();
        }

    }

    private static ERXAsyncQueue<Transaction> _queue;
View Full Code Here

                    throw NSForwardException._runtimeExceptionForThrowable(e);
                }
            }
        }

        return result.allObjects();
    }

    public IndexDocument documentForGlobalID(EOKeyGlobalID globalID) {
        return findDocument(globalID);
    }
View Full Code Here

        for (Enumeration e = rules().objectEnumerator(); e.hasMoreElements();) {
            Rule r = (Rule)e.nextElement();
            if (r.rhsKeyPath().equals(rhs) && r.canFireInContext(context))
                canidateSet.addObject(r);
        }
        return canidateSet.count() == 0 ? canidateSet.allObjects() :
            EOSortOrdering.sortedArrayUsingKeyOrderArray(canidateSet.allObjects(), ruleSortOrderingKeyArray());
    }


    static class _LhsKeysCallback extends ERDQualifierTraversalCallback {
View Full Code Here

            Rule r = (Rule)e.nextElement();
            if (r.rhsKeyPath().equals(rhs) && r.canFireInContext(context))
                canidateSet.addObject(r);
        }
        return canidateSet.count() == 0 ? canidateSet.allObjects() :
            EOSortOrdering.sortedArrayUsingKeyOrderArray(canidateSet.allObjects(), ruleSortOrderingKeyArray());
    }


    static class _LhsKeysCallback extends ERDQualifierTraversalCallback {
        public NSMutableArray keys=new NSMutableArray();
View Full Code Here

                deriveElement = false;
            } else {
                deriveElement = true;
            }
        }
        return keys.allObjects();
    }   

    /**
     * Cover method for calling the four argument method
     * passing in <code>null</code> for the <code>otherObject</code>
View Full Code Here

                          }
                        }
                    }
                }
            }
            allTests = theClassNames.allObjects();
            try {
                allTests = allTests.sortedArrayUsingComparator(NSComparator.AscendingStringComparator);
            } catch (Exception ex) {
                log.warn(ex);
                // so we won't get sorted, oh well :)
View Full Code Here

            if ((displayedHash == null) || (!displayedHash.containsObject(displayedObject))) {
              _displayedObjects.removeObjectAtIndex(i);
            }
          }
          if ((selectedHash != null) && (rebuildSelected)) {
            _selectedObjects = new NSMutableArray(selectedHash.allObjects());
          }
          _selection = _NSArrayUtilities.indexesForObjectsIndenticalTo(_displayedObjects, _selectedObjects);
        }

      }
View Full Code Here

            markEnd("ToOne.Calculation", source, key);
            if(eos.count() > 1) {
              markStart("ToOne.Fetching", source, key);
              doFetch(dbc, ec, relationship, eos);
              freshenFetchTimestamps(faults.allObjects(), timestamp);
              markEnd("ToOne.Fetching", source, key);
              if(batchLog.isDebugEnabled()) {
                batchLog.debug("Fetched " + faults.count() + " to-one " + relationship.destinationEntity().name() + " from " + eos.count() " " + source.entityName() + " for " + key);
              }
              return EOFaultHandler.isFault(eo);
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.