Package com.jenginetest.builder.model.impl

Examples of com.jenginetest.builder.model.impl.SBookImpl


   *
   * @param bookId the primary key for the new s book
   * @return the new s book
   */
  public SBook create(long bookId) {
    SBook sBook = new SBookImpl();

    sBook.setNew(true);
    sBook.setPrimaryKey(bookId);

    return sBook;
  }
View Full Code Here


  protected SBook toUnwrappedModel(SBook sBook) {
    if (sBook instanceof SBookImpl) {
      return sBook;
    }

    SBookImpl sBookImpl = new SBookImpl();

    sBookImpl.setNew(sBook.isNew());
    sBookImpl.setPrimaryKey(sBook.getPrimaryKey());

    sBookImpl.setBookId(sBook.getBookId());
    sBookImpl.setLibraryId(sBook.getLibraryId());
    sBookImpl.setTitle(sBook.getTitle());

    return sBookImpl;
  }
View Full Code Here

TOP

Related Classes of com.jenginetest.builder.model.impl.SBookImpl

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.