FileDocCategorySizeDatePackage
Account.javaAPI DocJBoss 4.2.11700Fri Jul 13 20:55:36 BST 2007xpetstore.domain

Account

public class Account extends Object implements Serializable
author
Herve Tchepannou
hibernate.class
table="T_ACCOUNT"

Fields Summary
private String
_userId
private String
_password
Constructors Summary
public Account()


    //~ Constructors -----------------------------------------------------------

       
    
        super(  );
    
Methods Summary
public java.lang.StringgetPassword()

return
String
hibernate.property
column="pwd" length="10" not-null="true"

        return _password;
    
public java.lang.StringgetUserId()

return
String
hibernate.id
generator-class="assigned" length="10"

        return _userId;
    
public booleanmatchPassword(java.lang.String password)

        return ( password == null )
               ? ( _password == null )
               : password.equals( _password );
    
public voidset(xpetstore.domain.Account account)

        _password = account.getPassword(  );
    
public voidsetPassword(java.lang.String password)
Sets the password.

param
password The password to set

        _password = password;
    
public voidsetUserId(java.lang.String userId)
Sets the userId.

param
userId The userId to set

        _userId = userId;