Examples of EntryImpl


Examples of org.apache.aries.samples.blog.persistence.jpa.entity.EntryImpl

  public void removeAuthor(String emailAddress) {
    em.remove(em.find(AuthorImpl.class, emailAddress));
  }

  public void removeBlogEntry(long id) {
    EntryImpl b = em.find(EntryImpl.class, id);
    b = em.merge(b);
    b.getAuthor().getEntries().remove(b);

    em.remove(em.merge(b));
    em.merge(b.getAuthor());

  }
View Full Code Here

Examples of org.apache.aries.samples.blog.persistence.jpa.entity.EntryImpl

    em.merge(b.getAuthor());

  }

  public EntryImpl getBlogEntryById(long postId) {
    EntryImpl b =  em.find(EntryImpl.class, postId);
    return b;
  }
View Full Code Here

Examples of org.apache.aries.samples.blog.persistence.jpa.entity.EntryImpl

    return b;
  }

  public void setPublishDate (long postId, Date date) {
    //Added for testing
    EntryImpl b = em.find(EntryImpl.class, postId);
    b.setPublishDate(date)
    em.merge(b);
  }
View Full Code Here

Examples of org.apache.aries.samples.blog.persistence.jpa.entity.EntryImpl

    em.merge(b);
  }
 
  public void setUpdatedDate (long postId, Date date) {
    //Added for testing
    EntryImpl b = em.find(EntryImpl.class, postId);
    b.setUpdatedDate(date)
    em.merge(b);
  }
View Full Code Here

Examples of org.eclipse.wst.wsi.internal.core.report.impl.EntryImpl

          if (!omitRequest(messageEntryRequest))
          {
            // Create entry
            // ADD: Need to create entry from report
            //Entry entry = this.reporter.getReport().createEntry();
            Entry entry = new EntryImpl();
            entry.setEntryType(
                  EntryType.getEntryType(MessageValidator.TYPE_MESSAGE_REQUEST));
            entry.setReferenceID(messageEntryRequest.getId());
            entry.setEntryDetail(messageEntryRequest);
 
            // Create the context for the request-response pair
            EntryContext requestTargetContext =
                 new EntryContext(
                      entry,
                      messageEntryRequest,
                      messageEntryResponse);
            if (requestTargetContext != null)
              processLogEntry(requestTargetContext);
 
            // Create entry
            // ADD: Need to create entry from report
            //Entry entry = this.reporter.getReport().createEntry();
            entry = new EntryImpl();
            entry.setEntryType(
              EntryType.getEntryType(MessageValidator.TYPE_MESSAGE_RESPONSE));
            entry.setReferenceID(messageEntryResponse.getId());
            entry.setEntryDetail(messageEntryResponse);
 
            EntryContext responseTargetContext =
                  new EntryContext(
                    entry,
                    messageEntryRequest,
View Full Code Here

Examples of org.eclipse.wst.wsi.internal.core.report.impl.EntryImpl

        /* Process all remaining requests in the messageEntryList */
        for (int i = 0; i < messageEntryList.size(); i++) {
            MessageEntry logEntry = (MessageEntry) messageEntryList.get(i);
            if (!omitRequest(logEntry))
            {
              Entry entry = new EntryImpl();
              entry.setEntryType(EntryType.getEntryType(
                    MessageValidator.TYPE_MESSAGE_REQUEST));
              entry.setReferenceID(logEntry.getId());
              entry.setEntryDetail(logEntry);
              EntryContext requestTargetContext =
                new EntryContext(entry, logEntry, null);
              if (requestTargetContext != null)
                processLogEntry(requestTargetContext);
            }
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.