FileDocCategorySizeDatePackage
Account.javaAPI DocJBoss 4.2.12276Fri Jul 13 20:56:00 BST 2007xpetstore.domain.signon.ejb

Account

public class Account extends Object
ejb.bean name="Account" type="CMP" view-type="local" primkey-field="userId" schema="Account" cmp-version="${ejb.cmp.version}"
ejb.value-object name="Account" match="*"
ejb.transaction type="Required"
ejb.persistence table-name="T_ACCOUNT"
jboss.persistence create-table="${jboss.create.table}" remove-table="${jboss.remove.table}"

Fields Summary
private String
userId
private String
password
Constructors Summary
public Account()

      
   
public Account(String userId, String password)

      this.userId = userId;
      this.password = password;
   
Methods Summary
public java.lang.StringgetPassword()

ejb.persistence column-name="pwd" jdbc-type="VARCHAR" sql-type="varchar(10)"

       return password;
    
public java.lang.StringgetUserId()

ejb.pk-field
ejb.persistence column-name="userId" jdbc-type="VARCHAR" sql-type="varchar(10)"
ejb.interface-method
ejb.transaction type="NotSupported"

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

ejb.interface-method
ejb.transaction type="Supports"

        return ( password == null )
               ? ( getPassword(  ) == null )
               : password.equals( getPassword(  ) );
    
public voidsetPassword(java.lang.String password)

       this.password = password;
    
public voidsetUserId(java.lang.String userId)

       this.userId = userId;
    
public java.lang.StringtoString()

       StringBuffer buffer = new StringBuffer(200);
       buffer.append("[Account: userId " + userId);
       buffer.append(", password " + password);
       buffer.append("]");
       
       return buffer.toString();