com.sun.j2ee.blueprints.customer.account.ejb
Class AccountDAO

java.lang.Object
  |
  +--com.sun.j2ee.blueprints.customer.account.ejb.AccountDAO

public class AccountDAO
extends java.lang.Object

This class encapsulates all the JDBC calls made by the AccountEJB. Actual logic of inserting/fetching/updating/deleting the data in relational database tables to mirror the state of AccountEJB is implemented here.


Constructor Summary
AccountDAO()
           
 
Method Summary
 void create()
           
 java.lang.String findByPrimaryKey()
           
 ContactInformation getContactInformation()
           
 java.lang.String getStatus()
           
 java.lang.String getUserId()
           
 void load()
           
 void remove()
           
 void setContactInformation(ContactInformation info)
           
 void setStatus(java.lang.String status)
           
 void setUserId(java.lang.String userId)
           
 void store()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccountDAO

public AccountDAO()
           throws AccountDAOException
Method Detail

getUserId

public java.lang.String getUserId()

getStatus

public java.lang.String getStatus()

getContactInformation

public ContactInformation getContactInformation()

setUserId

public void setUserId(java.lang.String userId)

setStatus

public void setStatus(java.lang.String status)

setContactInformation

public void setContactInformation(ContactInformation info)

create

public void create()
            throws AccountDAOException

load

public void load()
          throws AccountDAOException

store

public void store()
           throws AccountDAOException

remove

public void remove()
            throws AccountDAOException

findByPrimaryKey

public java.lang.String findByPrimaryKey()
                                  throws AccountDAOException


Copyright © 2000 Sun Microsystems Inc. All Rights Reserved.