Package com.jenginetest.builder.model

Examples of com.jenginetest.builder.model.SMember


  public static SMember toModel(SMemberSoap soapModel) {
    if (soapModel == null) {
      return null;
    }

    SMember model = new SMemberImpl();

    model.setMemberId(soapModel.getMemberId());
    model.setLibraryId(soapModel.getLibraryId());
    model.setFirstName(soapModel.getFirstName());
    model.setLastName(soapModel.getLastName());

    return model;
  }
View Full Code Here


  public boolean equals(Object obj) {
    if (obj == null) {
      return false;
    }

    SMember sMember = null;

    try {
      sMember = (SMember)obj;
    }
    catch (ClassCastException cce) {
      return false;
    }

    long primaryKey = sMember.getPrimaryKey();

    if (getPrimaryKey() == primaryKey) {
      return true;
    }
    else {
View Full Code Here

   *
   * @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

    Session session = null;

    try {
      session = openSession();

      SMember sMember = (SMember)session.get(SMemberImpl.class, primaryKey);

      if (sMember == null) {
        if (_log.isWarnEnabled()) {
          _log.warn(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey);
        }
View Full Code Here

   * @throws com.jenginetest.builder.NoSuchSMemberException if a s member with the primary key could not be found
   * @throws SystemException if a system exception occurred
   */
  public SMember findByPrimaryKey(long memberId)
    throws NoSuchSMemberException, SystemException {
    SMember sMember = fetchByPrimaryKey(memberId);

    if (sMember == null) {
      if (_log.isWarnEnabled()) {
        _log.warn(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + memberId);
      }
View Full Code Here

   * @param memberId the primary key of the s member
   * @return the s member, or <code>null</code> if a s member with the primary key could not be found
   * @throws SystemException if a system exception occurred
   */
  public SMember fetchByPrimaryKey(long memberId) throws SystemException {
    SMember sMember = (SMember)EntityCacheUtil.getResult(SMemberModelImpl.ENTITY_CACHE_ENABLED,
        SMemberImpl.class, memberId);

    if (sMember == _nullSMember) {
      return null;
    }
View Full Code Here

TOP

Related Classes of com.jenginetest.builder.model.SMember

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.