Package com.warrantchange.model.impl

Examples of com.warrantchange.model.impl.WarrantImpl


   *
   * @param id the primary key for the new Warrant
   * @return the new Warrant
   */
  public Warrant create(long id) {
    Warrant warrant = new WarrantImpl();

    warrant.setNew(true);
    warrant.setPrimaryKey(id);

    return warrant;
  }
View Full Code Here


  protected Warrant toUnwrappedModel(Warrant warrant) {
    if (warrant instanceof WarrantImpl) {
      return warrant;
    }

    WarrantImpl warrantImpl = new WarrantImpl();

    warrantImpl.setNew(warrant.isNew());
    warrantImpl.setPrimaryKey(warrant.getPrimaryKey());

    warrantImpl.setId(warrant.getId());
    warrantImpl.setUserId(warrant.getUserId());
    warrantImpl.setSummary(warrant.getSummary());
    warrantImpl.setQuantity(warrant.getQuantity());
    warrantImpl.setPrice(warrant.getPrice());
    warrantImpl.setStatus(warrant.getStatus());
    warrantImpl.setCreateDate(warrant.getCreateDate());
    warrantImpl.setModifiedDate(warrant.getModifiedDate());
    warrantImpl.setExpirationWarningSent(warrant.isExpirationWarningSent());

    return warrantImpl;
  }
View Full Code Here

TOP

Related Classes of com.warrantchange.model.impl.WarrantImpl

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.