/** * Resets all the entities in this context, removing any known rows and * clearing out any transactions. */ public void resetAllEntities() { _entityStores.removeAllObjects(); if (_transactionEntityStores != null) { _transactionEntityStores.removeAllObjects(); } }
public void makeStale() { _staleTotal = true; _totals.removeAllObjects(); _totalList = null; }
public void invalidateCache() { _staticsPerKey.removeAllObjects(); }
@Override public void awake() { _model = null; _vheadingIndex = 0; _indexDict.removeAllObjects(); _colorDict = null; _showPresentationControls = null; _showRecordGroupHeadings = null; _showTopCriteriaLabel = null; _shouldTotalCheck = null; _recordGroupTotalToShow = null; _currentZCriteria.removeAllObjects(); //_initializedDimensionArrayFromBindings = false; initializeDimensionArrayFromBindings(); }
public WOComponent refreshLoggingClicked() { cache.removeAllObjects(); selectionPath = new NSMutableArray(); events = null; webEvents = null; eofEvents = null; return null; }
public void rebuildModel(NSNotification notification) { if(_model != null && _model == notification.object()) { log.debug("rebuildModel: {}: {}", notification.object().hashCode(), _model.hashCode()); _currentZCriteria.removeAllObjects(); _initializedDimensionArrayFromBindings = false; _model = null; } }
public void flatListForAttributeList() { //OWDebug.println(1, "entered"); _flatAttributeList.removeAllObjects(); _flatAttributeDepthDict.removeAllObjects(); _attributeListDepth = 0; //OWDebug.println(1, "_attributeList: "+ _attributeList); if(_attributeList != null){ Enumeration anEnum = _attributeList.objectEnumerator(); while (anEnum.hasMoreElements()) { DRAttribute att = (DRAttribute)anEnum.nextElement(); //OWDebug.println(1, "att:"+att); flatListForAttribute(att); } } //OWDebug.println(1, "_flatAttributeDepthDict: "+ _flatAttributeDepthDict); }
public void flatListForAttributeListTotals() { _flatAttributeListTotal.removeAllObjects(); _flatAttributeListTotalDict.removeAllObjects(); Enumeration anEnum = _flatAttributeList.objectEnumerator(); while (anEnum.hasMoreElements()) { DRAttribute att = (DRAttribute)anEnum.nextElement(); if (att.shouldTotal()) { _flatAttributeListTotal.addObject(att); } } getFlatAttributeDepthDictTotals(); //OWDebug.println(1, "_flatAttributeListTotalDict:"+ _flatAttributeListTotalDict); }
public void modelGroupDidLoad(NSNotification n) { configuration.removeAllObjects(); EOModelGroup group = (EOModelGroup) n.object(); for (Enumeration e = group.models().objectEnumerator(); e.hasMoreElements();) { EOModel model = (EOModel) e.nextElement(); for (Enumeration e1 = model.entities().objectEnumerator(); e1.hasMoreElements();) { EOEntity entity = (EOEntity) e1.nextElement(); if (entity.userInfo() != null && entity.userInfo().objectForKey(ERXAUDIT_KEYS) != null) { configureEntity(entity); } } } log.info("Configuration: {}", configuration); NSNotificationCenter.defaultCenter().removeObserver(_handler, ERXModelGroup.ModelGroupAddedNotification, null); NSSelector sel = ERXSelectorUtilities.notificationSelector("handleSave"); NSNotificationCenter.defaultCenter().addObserver(_handler, sel, ERXEC.EditingContextWillSaveChangesNotification, null); }
public void setValue(Object newValue) { _value = newValue; WODisplayGroup displayGroup = displayGroup(); if (displayGroup != null) { displayGroup.queryMatch().removeAllObjects(); if (relationshipKey() != null) { displayGroup.queryMatch().takeValueForKey(newValue, relationshipKey() + "." + selectedKey()); if (newValue != null) { displayGroup.queryOperator().takeValueForKey(selectedOperator(), relationshipKey() + "." + selectedKey()); } } else { displayGroup.queryMatch().takeValueForKey(newValue, selectedKey()); if (newValue != null) { displayGroup.queryOperator().takeValueForKey(selectedOperator(), selectedKey()); } } } }