Package com.liferay.docs.guestbook.model.impl

Examples of com.liferay.docs.guestbook.model.impl.EntryImpl


   * @param entryId the primary key for the new entry
   * @return the new entry
   */
  @Override
  public Entry create(long entryId) {
    Entry entry = new EntryImpl();

    entry.setNew(true);
    entry.setPrimaryKey(entryId);

    String uuid = PortalUUIDUtil.generate();

    entry.setUuid(uuid);

    return entry;
  }
View Full Code Here


  protected Entry toUnwrappedModel(Entry entry) {
    if (entry instanceof EntryImpl) {
      return entry;
    }

    EntryImpl entryImpl = new EntryImpl();

    entryImpl.setNew(entry.isNew());
    entryImpl.setPrimaryKey(entry.getPrimaryKey());

    entryImpl.setUuid(entry.getUuid());
    entryImpl.setEntryId(entry.getEntryId());
    entryImpl.setGroupId(entry.getGroupId());
    entryImpl.setCompanyId(entry.getCompanyId());
    entryImpl.setUserId(entry.getUserId());
    entryImpl.setUserName(entry.getUserName());
    entryImpl.setCreateDate(entry.getCreateDate());
    entryImpl.setModifiedDate(entry.getModifiedDate());
    entryImpl.setName(entry.getName());
    entryImpl.setEmail(entry.getEmail());
    entryImpl.setMessage(entry.getMessage());
    entryImpl.setGuestbookId(entry.getGuestbookId());

    return entryImpl;
  }
View Full Code Here

   * @param entryId the primary key for the new entry
   * @return the new entry
   */
  @Override
  public Entry create(long entryId) {
    Entry entry = new EntryImpl();

    entry.setNew(true);
    entry.setPrimaryKey(entryId);

    String uuid = PortalUUIDUtil.generate();

    entry.setUuid(uuid);

    return entry;
  }
View Full Code Here

  protected Entry toUnwrappedModel(Entry entry) {
    if (entry instanceof EntryImpl) {
      return entry;
    }

    EntryImpl entryImpl = new EntryImpl();

    entryImpl.setNew(entry.isNew());
    entryImpl.setPrimaryKey(entry.getPrimaryKey());

    entryImpl.setUuid(entry.getUuid());
    entryImpl.setEntryId(entry.getEntryId());
    entryImpl.setGroupId(entry.getGroupId());
    entryImpl.setCompanyId(entry.getCompanyId());
    entryImpl.setUserId(entry.getUserId());
    entryImpl.setUserName(entry.getUserName());
    entryImpl.setCreateDate(entry.getCreateDate());
    entryImpl.setModifiedDate(entry.getModifiedDate());
    entryImpl.setName(entry.getName());
    entryImpl.setEmail(entry.getEmail());
    entryImpl.setMessage(entry.getMessage());
    entryImpl.setGuestbookId(entry.getGuestbookId());

    return entryImpl;
  }
View Full Code Here

TOP

Related Classes of com.liferay.docs.guestbook.model.impl.EntryImpl

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.