Package com.jenginetest.builder.model.impl

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


   *
   * @param memberId the primary key for the new s member
   * @return the new s member
   */
  public SMember create(long memberId) {
    SMember sMember = new SMemberImpl();

    sMember.setNew(true);
    sMember.setPrimaryKey(memberId);

    return sMember;
  }
View Full Code Here


  protected SMember toUnwrappedModel(SMember sMember) {
    if (sMember instanceof SMemberImpl) {
      return sMember;
    }

    SMemberImpl sMemberImpl = new SMemberImpl();

    sMemberImpl.setNew(sMember.isNew());
    sMemberImpl.setPrimaryKey(sMember.getPrimaryKey());

    sMemberImpl.setMemberId(sMember.getMemberId());
    sMemberImpl.setLibraryId(sMember.getLibraryId());
    sMemberImpl.setFirstName(sMember.getFirstName());
    sMemberImpl.setLastName(sMember.getLastName());

    return sMemberImpl;
  }
View Full Code Here

TOP

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

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.