Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.clra.member.remote
Class MemberBean  view MemberBean download MemberBean.java

java.lang.Object
  extended bycom.clra.member.remote.MemberBean
All Implemented Interfaces:
javax.ejb.EnterpriseBean, javax.ejb.EntityBean, java.io.Serializable

public class MemberBean
extends java.lang.Object
implements javax.ejb.EntityBean

Version:
$Revision: 1.11 $ $Date: 2003/02/26 03:38:45 $

Field Summary
private static java.lang.String base
           
private  javax.ejb.EntityContext context
           
static java.text.SimpleDateFormat dateFormat
           
private  boolean isDirty
           
private  java.lang.String m_accountName
           
private  java.lang.String m_accountPassword
           
private  com.clra.member.AccountType m_accountType
           
private  java.util.Date m_accountYear
           
private  com.clra.member.Address m_address
           
private  java.util.Date m_birthDate
           
private  com.clra.member.Telephone m_dayPhone
           
private  com.clra.member.Email m_email
           
private  com.clra.member.Telephone m_eveningPhone
           
private  java.lang.Integer m_memberId
           
private  com.clra.member.MemberName m_memberName
           
private  com.clra.member.Telephone m_otherPhone
           
private  java.util.Set m_roles
           
private static org.apache.log4j.Category theLog
           
 
Constructor Summary
MemberBean()
           
 
Method Summary
private  void _setData(com.clra.member.MemberSnapshot data)
          A private method outside the watchful eye of the EJB container.
private  void deleteRoles()
          Deletes (possibly multiple) MemberRole rows
 void ejbActivate()
           
 java.lang.Integer ejbCreate(java.lang.String accountName, java.lang.String accountPassword, com.clra.member.AccountType accountType, com.clra.member.MemberName memberName, com.clra.member.Email email, com.clra.member.Telephone evening, com.clra.member.Telephone day, com.clra.member.Telephone other, com.clra.member.Address address, java.util.Date accountYear, java.util.Date birthDate, com.clra.member.MemberRole[] roles)
           
 java.util.Collection ejbFindAll()
           
 java.lang.Integer ejbFindByAccountName(java.lang.String name)
           
 java.lang.Integer ejbFindByPrimaryKey(java.lang.Integer primaryKey)
           
 void ejbLoad()
           
 void ejbPassivate()
           
 void ejbPostCreate(java.lang.String accountName, java.lang.String accountPassword, com.clra.member.AccountType accountType, com.clra.member.MemberName memberName, com.clra.member.Email email, com.clra.member.Telephone evening, com.clra.member.Telephone day, com.clra.member.Telephone other, com.clra.member.Address address, java.util.Date accountYear, java.util.Date birthDate, com.clra.member.MemberRole[] roles)
           
 void ejbRemove()
           
 void ejbStore()
           
 java.lang.String getAccountName()
           
 java.lang.String getAccountPassword()
           
 com.clra.member.AccountType getAccountType()
           
 java.util.Date getAccountYear()
           
 com.clra.member.Address getAddress()
           
 java.util.Date getBirthDate()
           
 com.clra.member.MemberSnapshot getData()
           
 com.clra.member.Telephone getDayTelephone()
           
 com.clra.member.Email getEmail()
           
 com.clra.member.Telephone getEveningTelephone()
           
 java.lang.Integer getId()
           
 com.clra.member.MemberName getMemberName()
           
 com.clra.member.MemberRole[] getMemberRoles()
           
 com.clra.member.Telephone getOtherTelephone()
           
 java.util.Map getTelephones()
           
private  void insertRoles()
          Inserts (possibly multiple) MemberRole rows
private  void insertRows()
          Inserts a single Member row, and possibly multiple MemberRole rows
private  void loadRows()
          Load a single Member row, and possibly multiple MemberRole rows
static java.lang.Integer nextId()
          A utility that gets (and reserves) the next id for a member
 void setAccountName(java.lang.String accountName)
           
 void setAccountPassword(java.lang.String password)
           
 void setAccountType(com.clra.member.AccountType type)
           
 void setAccountYear(java.util.Date year)
           
 void setAddress(com.clra.member.Address address)
           
 void setBirthDate(java.util.Date date)
           
 void setData(com.clra.member.MemberSnapshot data)
          Sets all properties of a member except the member id.
 void setDayTelephone(com.clra.member.Telephone phone)
           
 void setEmail(com.clra.member.Email email)
           
 void setEntityContext(javax.ejb.EntityContext ctx)
          Set the context (and primary key) of this instance
 void setEveningTelephone(com.clra.member.Telephone phone)
           
 void setMemberName(com.clra.member.MemberName name)
           
 void setMemberRoles(com.clra.member.MemberRole[] roles)
           
 void setOtherTelephone(com.clra.member.Telephone phone)
           
 void setTelephones(java.util.Map telephones)
           
private  void storeRows()
          Stores a single Member row, and possibly multiple MemberRole rows
private static java.lang.String toDataString(com.clra.member.Telephone phone)
           
 void unsetEntityContext()
          Unset the context (and primary key) of this instance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

base

private static final java.lang.String base

theLog

private static final org.apache.log4j.Category theLog

isDirty

private transient boolean isDirty

context

private javax.ejb.EntityContext context

m_memberId

private java.lang.Integer m_memberId

m_accountName

private java.lang.String m_accountName

m_accountPassword

private java.lang.String m_accountPassword

m_accountType

private com.clra.member.AccountType m_accountType

m_memberName

private com.clra.member.MemberName m_memberName

m_email

private com.clra.member.Email m_email

m_eveningPhone

private com.clra.member.Telephone m_eveningPhone

m_dayPhone

private com.clra.member.Telephone m_dayPhone

m_otherPhone

private com.clra.member.Telephone m_otherPhone

m_address

private com.clra.member.Address m_address

m_accountYear

private java.util.Date m_accountYear

m_birthDate

private java.util.Date m_birthDate

m_roles

private java.util.Set m_roles

dateFormat

public static final java.text.SimpleDateFormat dateFormat
Constructor Detail

MemberBean

public MemberBean()
Method Detail

setEntityContext

public void setEntityContext(javax.ejb.EntityContext ctx)
Set the context (and primary key) of this instance

Specified by:
setEntityContext in interface javax.ejb.EntityBean

unsetEntityContext

public void unsetEntityContext()
Unset the context (and primary key) of this instance

Specified by:
unsetEntityContext in interface javax.ejb.EntityBean

setData

public void setData(com.clra.member.MemberSnapshot data)
Sets all properties of a member except the member id. The member id of the specified snapshot must match the member id of this bean.


_setData

private void _setData(com.clra.member.MemberSnapshot data)
A private method outside the watchful eye of the EJB container. Used to implement both setData and loadRows().


setAccountName

public void setAccountName(java.lang.String accountName)

setAccountPassword

public void setAccountPassword(java.lang.String password)

setAccountType

public void setAccountType(com.clra.member.AccountType type)

setMemberName

public void setMemberName(com.clra.member.MemberName name)

setEmail

public void setEmail(com.clra.member.Email email)

setTelephones

public void setTelephones(java.util.Map telephones)

setEveningTelephone

public void setEveningTelephone(com.clra.member.Telephone phone)

setDayTelephone

public void setDayTelephone(com.clra.member.Telephone phone)

setOtherTelephone

public void setOtherTelephone(com.clra.member.Telephone phone)

setAddress

public void setAddress(com.clra.member.Address address)

setAccountYear

public void setAccountYear(java.util.Date year)

setBirthDate

public void setBirthDate(java.util.Date date)

setMemberRoles

public void setMemberRoles(com.clra.member.MemberRole[] roles)

getId

public java.lang.Integer getId()

getData

public com.clra.member.MemberSnapshot getData()

getAccountName

public java.lang.String getAccountName()

getAccountPassword

public java.lang.String getAccountPassword()

getAccountType

public com.clra.member.AccountType getAccountType()

getMemberName

public com.clra.member.MemberName getMemberName()

getEmail

public com.clra.member.Email getEmail()

getTelephones

public java.util.Map getTelephones()

getEveningTelephone

public com.clra.member.Telephone getEveningTelephone()

getDayTelephone

public com.clra.member.Telephone getDayTelephone()

getOtherTelephone

public com.clra.member.Telephone getOtherTelephone()

getAddress

public com.clra.member.Address getAddress()

getAccountYear

public java.util.Date getAccountYear()

getBirthDate

public java.util.Date getBirthDate()

getMemberRoles

public com.clra.member.MemberRole[] getMemberRoles()

ejbCreate

public java.lang.Integer ejbCreate(java.lang.String accountName,
                                   java.lang.String accountPassword,
                                   com.clra.member.AccountType accountType,
                                   com.clra.member.MemberName memberName,
                                   com.clra.member.Email email,
                                   com.clra.member.Telephone evening,
                                   com.clra.member.Telephone day,
                                   com.clra.member.Telephone other,
                                   com.clra.member.Address address,
                                   java.util.Date accountYear,
                                   java.util.Date birthDate,
                                   com.clra.member.MemberRole[] roles)
                            throws javax.ejb.CreateException

ejbPostCreate

public void ejbPostCreate(java.lang.String accountName,
                          java.lang.String accountPassword,
                          com.clra.member.AccountType accountType,
                          com.clra.member.MemberName memberName,
                          com.clra.member.Email email,
                          com.clra.member.Telephone evening,
                          com.clra.member.Telephone day,
                          com.clra.member.Telephone other,
                          com.clra.member.Address address,
                          java.util.Date accountYear,
                          java.util.Date birthDate,
                          com.clra.member.MemberRole[] roles)

ejbFindByPrimaryKey

public java.lang.Integer ejbFindByPrimaryKey(java.lang.Integer primaryKey)
                                      throws javax.ejb.FinderException

ejbFindByAccountName

public java.lang.Integer ejbFindByAccountName(java.lang.String name)
                                       throws javax.ejb.FinderException

ejbFindAll

public java.util.Collection ejbFindAll()
                                throws javax.ejb.FinderException

ejbRemove

public void ejbRemove()
Specified by:
ejbRemove in interface javax.ejb.EntityBean

ejbActivate

public void ejbActivate()
Specified by:
ejbActivate in interface javax.ejb.EntityBean

ejbPassivate

public void ejbPassivate()
Specified by:
ejbPassivate in interface javax.ejb.EntityBean

ejbLoad

public void ejbLoad()
Specified by:
ejbLoad in interface javax.ejb.EntityBean

ejbStore

public void ejbStore()
Specified by:
ejbStore in interface javax.ejb.EntityBean

insertRows

private void insertRows()
                 throws java.sql.SQLException,
                        javax.ejb.CreateException
Inserts a single Member row, and possibly multiple MemberRole rows


loadRows

private void loadRows()
               throws com.clra.member.MemberException,
                      java.sql.SQLException
Load a single Member row, and possibly multiple MemberRole rows


storeRows

private void storeRows()
                throws java.sql.SQLException
Stores a single Member row, and possibly multiple MemberRole rows


insertRoles

private void insertRoles()
                  throws java.sql.SQLException
Inserts (possibly multiple) MemberRole rows


deleteRoles

private void deleteRoles()
                  throws java.sql.SQLException
Deletes (possibly multiple) MemberRole rows


nextId

public static java.lang.Integer nextId()
                                throws java.sql.SQLException,
                                       javax.ejb.CreateException
A utility that gets (and reserves) the next id for a member


toDataString

private static java.lang.String toDataString(com.clra.member.Telephone phone)