Package org.rssowl.core.persist.event

Examples of org.rssowl.core.persist.event.LabelEvent


          }
        }

        @Override
        public void entitiesUpdated(Set<LabelEvent> events) {
          LabelEvent event = events.iterator().next();
          labelUpdatedCalled[0] = true;
          Label dbLabel = (Label) event.getEntity();
          assertTrue(updatedLabel[0].isIdentical(dbLabel));
        }
      };
      DynamicDAO.addEntityListener(ILabel.class, labelListener);
      long savedLabelId = DynamicDAO.save(initialLabel).getId().longValue();
View Full Code Here


    super(Label.class, false);
  }

  @Override
  protected final LabelEvent createDeleteEventTemplate(ILabel entity) {
    return new LabelEvent(null, entity, true);
  }
View Full Code Here

  }

  @Override
  protected final LabelEvent createSaveEventTemplate(ILabel entity) {
    ILabel oldLabel = fDb.ext().peekPersisted(entity, Integer.MAX_VALUE, true);
    return new LabelEvent(oldLabel, entity, true);
  }
View Full Code Here

    return createSaveEventTemplate(entity);
  }

  @Override
  protected final LabelEvent createSaveEventTemplate(ILabel entity) {
    return new LabelEvent(entity, true);
  }
View Full Code Here

          }
        }

        @Override
        public void entitiesUpdated(Set<LabelEvent> events) {
          LabelEvent event = events.iterator().next();
          labelUpdatedCalled[0] = true;
          Label dbLabel = (Label) event.getEntity();
          assertTrue(updatedLabel[0].isIdentical(dbLabel));
        }
      };
      DynamicDAO.addEntityListener(ILabel.class, labelListener);
      long savedLabelId = DynamicDAO.save(initialLabel).getId().longValue();
View Full Code Here

      IFolder oldParent = eventTemplate == null ? null : eventTemplate.getOldParent();
      modelEvent = new FolderEvent(folder, oldParent, root);
    }
    else if (entity instanceof ILabel) {
      ILabel label = (ILabel) entity;
      modelEvent = new LabelEvent(label, root);
    }
    else if (entity instanceof ISearchCondition) {
      ISearchCondition searchCond = (ISearchCondition) entity;
      modelEvent = new SearchConditionEvent(searchCond, root);
    }
View Full Code Here

      IFolder oldParent = eventTemplate == null ? null : eventTemplate.getOldParent();
      modelEvent = new FolderEvent(folder, oldParent, root);
    }
    else if (entity instanceof ILabel) {
      ILabel label = (ILabel) entity;
      LabelEvent eventTemplate = (LabelEvent) template;
      ILabel oldLabel = eventTemplate == null ? null : eventTemplate.getOldLabel();
      modelEvent = new LabelEvent(oldLabel, label, root);
    }
    else if (entity instanceof ISearchCondition) {
      ISearchCondition searchCond = (ISearchCondition) entity;
      modelEvent = new SearchConditionEvent(searchCond, root);
    }
View Full Code Here

   * @see org.rssowl.core.internal.persist.dao.AbstractEntityDAO#
   * createDeleteEventTemplate(org.rssowl.core.persist.IEntity)
   */
  @Override
  protected final LabelEvent createDeleteEventTemplate(ILabel entity) {
    return new LabelEvent(null, entity, true);
  }
View Full Code Here

   * (org.rssowl.core.persist.IEntity)
   */
  @Override
  protected final LabelEvent createSaveEventTemplate(ILabel entity) {
    ILabel oldLabel = fDb.ext().peekPersisted(entity, Integer.MAX_VALUE, true);
    return new LabelEvent(oldLabel, entity, true);
  }
View Full Code Here

      FolderEvent eventTemplate = (FolderEvent) template;
      IFolder oldParent = eventTemplate == null ? null : eventTemplate.getOldParent();
      modelEvent = new FolderEvent(folder, oldParent, root);
    } else if (entity instanceof ILabel) {
      ILabel label = (ILabel) entity;
      LabelEvent eventTemplate = (LabelEvent) template;
      ILabel oldLabel = eventTemplate == null ? null : eventTemplate.getOldLabel();
      modelEvent = new LabelEvent(oldLabel, label, root);
    } else if (entity instanceof ISearchCondition) {
      ISearchCondition searchCond = (ISearchCondition) entity;
      modelEvent = new SearchConditionEvent(searchCond, root);
    } else if (entity instanceof IPreference) {
      IPreference pref = (IPreference) entity;
View Full Code Here

TOP

Related Classes of org.rssowl.core.persist.event.LabelEvent

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.