Package org.rssowl.core.internal.persist

Examples of org.rssowl.core.internal.persist.Description


     * not been changed.
     */
    if (!n.isTransientDescriptionSet())
      return;

    Description dbDescription = null;
    String dbDescriptionValue = null;

    dbDescription = getDescriptionDAO().load(news.getId());
    if (dbDescription != null)
      dbDescriptionValue = dbDescription.getValue();

    String newsDescriptionValue = n.getTransientDescription();

    /*
     * If the description in the news has been set to null and it's already null
     * in the database, there is nothing to do.
     */
    if (dbDescriptionValue == null && newsDescriptionValue == null)
      return;
    else if (dbDescriptionValue == null && newsDescriptionValue != null)
      db.set(new Description(news, newsDescriptionValue));
    else if (dbDescriptionValue != null && newsDescriptionValue == null)
      db.delete(dbDescription);
    else if (dbDescriptionValue != null && !dbDescriptionValue.equals(newsDescriptionValue)) {
      if (dbDescription != null) {
        dbDescription.setDescription(newsDescriptionValue);
        db.set(dbDescription);
      }
    }
  }
View Full Code Here


        news.setId(id);

        String description = ((News) news).getTransientDescription();
        if (description != null) {
          mergeResult.addUpdatedObject(new Description(news, description));
        }
      }

      /* Return early on cancellation */
      if (monitor.isCanceled() || Owl.isShuttingDown())
View Full Code Here

TOP

Related Classes of org.rssowl.core.internal.persist.Description

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.