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

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


   * @param guestbookId the primary key for the new guestbook
   * @return the new guestbook
   */
  @Override
  public Guestbook create(long guestbookId) {
    Guestbook guestbook = new GuestbookImpl();

    guestbook.setNew(true);
    guestbook.setPrimaryKey(guestbookId);

    String uuid = PortalUUIDUtil.generate();

    guestbook.setUuid(uuid);

    return guestbook;
  }
View Full Code Here


  protected Guestbook toUnwrappedModel(Guestbook guestbook) {
    if (guestbook instanceof GuestbookImpl) {
      return guestbook;
    }

    GuestbookImpl guestbookImpl = new GuestbookImpl();

    guestbookImpl.setNew(guestbook.isNew());
    guestbookImpl.setPrimaryKey(guestbook.getPrimaryKey());

    guestbookImpl.setUuid(guestbook.getUuid());
    guestbookImpl.setGuestbookId(guestbook.getGuestbookId());
    guestbookImpl.setGroupId(guestbook.getGroupId());
    guestbookImpl.setCompanyId(guestbook.getCompanyId());
    guestbookImpl.setUserId(guestbook.getUserId());
    guestbookImpl.setUserName(guestbook.getUserName());
    guestbookImpl.setCreateDate(guestbook.getCreateDate());
    guestbookImpl.setModifiedDate(guestbook.getModifiedDate());
    guestbookImpl.setName(guestbook.getName());

    return guestbookImpl;
  }
View Full Code Here

   * @param guestbookId the primary key for the new guestbook
   * @return the new guestbook
   */
  @Override
  public Guestbook create(long guestbookId) {
    Guestbook guestbook = new GuestbookImpl();

    guestbook.setNew(true);
    guestbook.setPrimaryKey(guestbookId);

    String uuid = PortalUUIDUtil.generate();

    guestbook.setUuid(uuid);

    return guestbook;
  }
View Full Code Here

  protected Guestbook toUnwrappedModel(Guestbook guestbook) {
    if (guestbook instanceof GuestbookImpl) {
      return guestbook;
    }

    GuestbookImpl guestbookImpl = new GuestbookImpl();

    guestbookImpl.setNew(guestbook.isNew());
    guestbookImpl.setPrimaryKey(guestbook.getPrimaryKey());

    guestbookImpl.setUuid(guestbook.getUuid());
    guestbookImpl.setGuestbookId(guestbook.getGuestbookId());
    guestbookImpl.setGroupId(guestbook.getGroupId());
    guestbookImpl.setCompanyId(guestbook.getCompanyId());
    guestbookImpl.setUserId(guestbook.getUserId());
    guestbookImpl.setUserName(guestbook.getUserName());
    guestbookImpl.setCreateDate(guestbook.getCreateDate());
    guestbookImpl.setModifiedDate(guestbook.getModifiedDate());
    guestbookImpl.setName(guestbook.getName());

    return guestbookImpl;
  }
View Full Code Here

   * @param guestbookId the primary key for the new guestbook
   * @return the new guestbook
   */
  @Override
  public Guestbook create(long guestbookId) {
    Guestbook guestbook = new GuestbookImpl();

    guestbook.setNew(true);
    guestbook.setPrimaryKey(guestbookId);

    String uuid = PortalUUIDUtil.generate();

    guestbook.setUuid(uuid);

    return guestbook;
  }
View Full Code Here

  protected Guestbook toUnwrappedModel(Guestbook guestbook) {
    if (guestbook instanceof GuestbookImpl) {
      return guestbook;
    }

    GuestbookImpl guestbookImpl = new GuestbookImpl();

    guestbookImpl.setNew(guestbook.isNew());
    guestbookImpl.setPrimaryKey(guestbook.getPrimaryKey());

    guestbookImpl.setUuid(guestbook.getUuid());
    guestbookImpl.setGuestbookId(guestbook.getGuestbookId());
    guestbookImpl.setGroupId(guestbook.getGroupId());
    guestbookImpl.setCompanyId(guestbook.getCompanyId());
    guestbookImpl.setUserId(guestbook.getUserId());
    guestbookImpl.setUserName(guestbook.getUserName());
    guestbookImpl.setCreateDate(guestbook.getCreateDate());
    guestbookImpl.setModifiedDate(guestbook.getModifiedDate());
    guestbookImpl.setName(guestbook.getName());

    return guestbookImpl;
  }
View Full Code Here

TOP

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

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.