/** * INTERNAL: * Causes any deferred events to be fired. Called after operation completes */ public void executeDeferredEvents(){ if (!this.isExecutingEvents && this.deferredEvents != null) { this.isExecutingEvents = true; try { for (int i = 0; i < this.deferredEvents.size(); ++i) { // the size is checked every time here because the list may grow DescriptorEvent event = this.deferredEvents.get(i); event.getDescriptor().getEventManager().executeEvent(event); } this.deferredEvents.clear(); } finally { this.isExecutingEvents = false; } } }
/** * INTERNAL: * Causes any deferred events to be fired. Called after operation completes */ public void executeDeferredEvents(){ if (!this.isExecutingEvents && this.deferredEvents != null) { this.isExecutingEvents = true; try { for (int i = 0; i < this.deferredEvents.size(); ++i) { // the size is checked every time here because the list may grow DescriptorEvent event = this.deferredEvents.get(i); event.getDescriptor().getEventManager().executeEvent(event); } this.deferredEvents.clear(); } finally { this.isExecutingEvents = false; } } }
private Validator getValidator(DescriptorEvent event) { ClassDescriptor descriptor = event.getDescriptor(); Validator res = validatorMap.get(descriptor); if (res == null) { TraversableResolver traversableResolver = new AutomaticLifeCycleValidationTraversableResolver(descriptor); res = validatorFactory.usingContext().traversableResolver(traversableResolver).getValidator(); Validator t = validatorMap.put(descriptor, res); if (t != null) { // Threading collision, use existing res = t; } } return res; }
String forSubclass = event.getDescriptor().getJavaClassName(); Hashtable<Integer, Boolean> subClassMap = m_overriddenEvents.get(forSubclass);
DatabaseMapping mapping = this.query.getDescriptor().getObjectBuilder().getMappingForAttributeName(attributeName); if (mapping == null) { throw DescriptorException.mappingForAttributeIsMissing(attributeName, getDescriptor()); AbstractRecord tempRow = getDescriptor().getObjectBuilder().createRecord(getSession()); eventChangeSet.addChange(mapping.compareForChange(clone, ((UnitOfWorkImpl)getSession()).getBackupClone(clone, getDescriptor()), eventChangeSet, getSession()));
DatabaseMapping mapping = this.query.getDescriptor().getObjectBuilder().getMappingForAttributeName(attributeName); if (mapping == null) { throw DescriptorException.mappingForAttributeIsMissing(attributeName, getDescriptor()); AbstractRecord tempRow = getDescriptor().getObjectBuilder().createRecord(getSession()); eventChangeSet.removeChange(attributeName); eventChangeSet.addChange(mapping.compareForChange(clone, ((UnitOfWorkImpl)getSession()).getBackupClone(clone, getDescriptor()), eventChangeSet, getSession())); eventChangeSet.setShouldRecalculateAfterUpdateEvent(false);
DatabaseMapping mapping = this.query.getDescriptor().getObjectBuilder().getMappingForAttributeName(attributeName); if (mapping == null) { throw DescriptorException.mappingForAttributeIsMissing(attributeName, getDescriptor()); AbstractRecord tempRow = getDescriptor().getObjectBuilder().createRecord(getSession()); eventChangeSet.removeChange(attributeName); eventChangeSet.addChange(mapping.compareForChange(clone, ((UnitOfWorkImpl)getSession()).getBackupClone(clone, getDescriptor()), eventChangeSet, getSession())); eventChangeSet.setShouldRecalculateAfterUpdateEvent(false);
DatabaseMapping mapping = this.query.getDescriptor().getObjectBuilder().getMappingForAttributeName(attributeName); if (mapping == null) { throw DescriptorException.mappingForAttributeIsMissing(attributeName, getDescriptor()); AbstractRecord tempRow = getDescriptor().getObjectBuilder().createRecord(getSession());
DatabaseMapping mapping = this.query.getDescriptor().getObjectBuilder().getMappingForAttributeName(attributeName); if (mapping == null) { throw DescriptorException.mappingForAttributeIsMissing(attributeName, getDescriptor()); AbstractRecord tempRow = getDescriptor().getObjectBuilder().createRecord(getSession());
DatabaseMapping mapping = this.query.getDescriptor().getObjectBuilder().getMappingForAttributeName(attributeName); if (mapping == null) { throw DescriptorException.mappingForAttributeIsMissing(attributeName, getDescriptor()); AbstractRecord tempRow = getDescriptor().getObjectBuilder().createRecord(getSession());
DatabaseMapping mapping = this.query.getDescriptor().getObjectBuilder().getMappingForAttributeName(attributeName); if (mapping == null) { throw DescriptorException.mappingForAttributeIsMissing(attributeName, getDescriptor()); AbstractRecord tempRow = getDescriptor().getObjectBuilder().createRecord(getSession());
DatabaseMapping mapping = this.query.getDescriptor().getObjectBuilder().getMappingForAttributeName(attributeName); if (mapping == null) { throw DescriptorException.mappingForAttributeIsMissing(attributeName, getDescriptor()); AbstractRecord tempRow = getDescriptor().getObjectBuilder().createRecord(getSession());
DatabaseMapping mapping = this.query.getDescriptor().getObjectBuilder().getMappingForAttributeName(attributeName); if (mapping == null) { throw DescriptorException.mappingForAttributeIsMissing(attributeName, getDescriptor()); AbstractRecord tempRow = getDescriptor().getObjectBuilder().createRecord(getSession());