Package com.jenginetest.builder.model.impl

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


  protected SLibrary toUnwrappedModel(SLibrary sLibrary) {
    if (sLibrary instanceof SLibraryImpl) {
      return sLibrary;
    }

    SLibraryImpl sLibraryImpl = new SLibraryImpl();

    sLibraryImpl.setNew(sLibrary.isNew());
    sLibraryImpl.setPrimaryKey(sLibrary.getPrimaryKey());

    sLibraryImpl.setLibraryId(sLibrary.getLibraryId());
    sLibraryImpl.setName(sLibrary.getName());
    sLibraryImpl.setAddress(sLibrary.getAddress());

    return sLibraryImpl;
  }
View Full Code Here


   *
   * @param libraryId the primary key for the new s library
   * @return the new s library
   */
  public SLibrary create(long libraryId) {
    SLibrary sLibrary = new SLibraryImpl();

    sLibrary.setNew(true);
    sLibrary.setPrimaryKey(libraryId);

    return sLibrary;
  }
View Full Code Here

TOP

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

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.