Rakesh API

biz.wedoit4u.ejb.entity
Class CustomerBean

java.lang.Object
  extended by biz.wedoit4u.ejb.entity.EntityBeanAdapter
      extended by biz.wedoit4u.ejb.entity.CustomerBean
All Implemented Interfaces:
java.io.Serializable, javax.ejb.EnterpriseBean, javax.ejb.EntityBean

public abstract class CustomerBean
extends EntityBeanAdapter

The implementation of the entity bean that represents a record in the customers table.

Copyright 2003, Rakesh Vidyadharan

Version:
$Id: CustomerBean.java,v 1.5 2004/05/26 11:42:34 rakesh Exp $
Author:
Rakesh Vidyadharan on 9th September 2003
See Also:
Serialized Form

Field Summary
protected static char DEFAULT_ACTIVE
          The default value set for the active column in the database.
 
Constructor Summary
CustomerBean()
           
 
Method Summary
 java.lang.Integer ejbCreate(java.lang.String username, java.lang.String password, char active, CustomerType customerType)
          Create a new customers record with just the values for the required columns.
 java.lang.Integer ejbCreate(java.lang.String username, java.lang.String password, CustomerType customerType)
          Create a new customers record with just the values for the required columns.
 java.lang.Integer ejbCreate(java.lang.String username, java.lang.String password, java.lang.String email, java.lang.String domain, char active, java.util.Date creationDate, java.util.Date activationDate, java.util.Date expirationDate, CustomerType customerType)
          Create a new customers record with the values specified for all the columns in the table.
 void ejbPostCreate(java.lang.String username, java.lang.String password, char active, CustomerType customerType)
          Mandatory matching postCreate method to the ejbCreate( String, String, char, CustomerType ) method.
 void ejbPostCreate(java.lang.String username, java.lang.String password, CustomerType customerType)
          Mandatory matching postCreate method to the ejbCreate( String, String, CustomerType ) method.
 void ejbPostCreate(java.lang.String username, java.lang.String password, java.lang.String email, java.lang.String domain, char active, java.util.Date creationDate, java.util.Date activationDate, java.util.Date expirationDate, CustomerType customerType)
          Mandatory matching postCreate method to the ejbCreate( String, String, String, String, char, Date, Date, Date, CustomerType ) method.
abstract  java.util.Date getActivationDate()
          Return the value in the activation_date column.
abstract  char getActive()
          Return the value in the active column.
abstract  java.util.Set getCategories()
          Return a Set of entity bean instances that represent associated records in the categories table.
abstract  java.util.Date getCreationDate()
          Return the value in the creation_date column.
abstract  int getCustomerId()
          Return the value in the customer_id column.
abstract  CustomerType getCustomerType()
          Return a reference to the CustomerType entity bean instance referenced by the customer_type_id foreign key column.
abstract  java.lang.String getDomain()
          Return the value in the domain column.
abstract  java.lang.String getEmail()
          Return the value in the email column.
abstract  java.util.Date getExpirationDate()
          Return the value in the expiration_date column.
abstract  java.lang.String getPassword()
          Return the value in the password column.
abstract  java.lang.String getUsername()
          Return the value in the username column.
abstract  void setActivationDate(java.util.Date activationDate)
          Set the value in the activation_date column.
abstract  void setActive(char active)
          Set the value in the active column.
abstract  void setCategories(java.util.Set categories)
          Set a Set of entity bean instances that represent associated records in the categories table.
abstract  void setCreationDate(java.util.Date creationDate)
          Set the value in the creation_date column.
abstract  void setCustomerId(int customerId)
          Set the value in the customer_id column.
abstract  void setCustomerType(CustomerType customerType)
          Set the value in the customer_type_id column using the CustomerType entity bean that represents the appropriate record in the customer_types table.
abstract  void setDomain(java.lang.String domain)
          Set the value in the domain column.
abstract  void setEmail(java.lang.String email)
          Set the value in the email column.
abstract  void setExpirationDate(java.util.Date expirationDate)
          Set the value in the expiration_date column.
abstract  void setPassword(java.lang.String password)
          Set the value in the password column.
abstract  void setUsername(java.lang.String username)
          Set the value in the username column.
 
Methods inherited from class biz.wedoit4u.ejb.entity.EntityBeanAdapter
ejbActivate, ejbLoad, ejbPassivate, ejbRemove, ejbStore, setEntityContext, unsetEntityContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_ACTIVE

protected static final char DEFAULT_ACTIVE
The default value set for the active column in the database.

See Also:
Constant Field Values
Constructor Detail

CustomerBean

public CustomerBean()
Method Detail

getCustomerId

public abstract int getCustomerId()
Return the value in the customer_id column.

Returns:
int - The value in the column.

setCustomerId

public abstract void setCustomerId(int customerId)
Set the value in the customer_id column.

Parameters:
customerId - - The value to set.

getUsername

public abstract java.lang.String getUsername()
Return the value in the username column.

Returns:
String - The value in the column.

setUsername

public abstract void setUsername(java.lang.String username)
Set the value in the username column.

Parameters:
username - - The value to set.

getPassword

public abstract java.lang.String getPassword()
Return the value in the password column.

Returns:
String - The value in the column.

setPassword

public abstract void setPassword(java.lang.String password)
Set the value in the password column.

Parameters:
password - - The value to set.

getEmail

public abstract java.lang.String getEmail()
Return the value in the email column.

Returns:
String - The value in the column.

setEmail

public abstract void setEmail(java.lang.String email)
Set the value in the email column.

Parameters:
email - - The value to set.

getDomain

public abstract java.lang.String getDomain()
Return the value in the domain column.

Returns:
String - The value in the column.

setDomain

public abstract void setDomain(java.lang.String domain)
Set the value in the domain column.

Parameters:
domain - - The value to set.

getActive

public abstract char getActive()
Return the value in the active column.

Returns:
char - The value in the column.

setActive

public abstract void setActive(char active)
Set the value in the active column.

Parameters:
active - - The value to set.

getCreationDate

public abstract java.util.Date getCreationDate()
Return the value in the creation_date column.

Returns:
Date - The value in the column.

setCreationDate

public abstract void setCreationDate(java.util.Date creationDate)
Set the value in the creation_date column.

Parameters:
creationDate - - The value to set.

getActivationDate

public abstract java.util.Date getActivationDate()
Return the value in the activation_date column.

Returns:
Date - The value in the column.

setActivationDate

public abstract void setActivationDate(java.util.Date activationDate)
Set the value in the activation_date column.

Parameters:
activationDate - - The value in the column.

getExpirationDate

public abstract java.util.Date getExpirationDate()
Return the value in the expiration_date column.

Returns:
Date - The value in the column.

setExpirationDate

public abstract void setExpirationDate(java.util.Date expirationDate)
Set the value in the expiration_date column.

Parameters:
expirationDate - - The value in the column.

getCustomerType

public abstract CustomerType getCustomerType()
Return a reference to the CustomerType entity bean instance referenced by the customer_type_id foreign key column.

Returns:
CustomerType - The appropriate entity bean instance.

setCustomerType

public abstract void setCustomerType(CustomerType customerType)
Set the value in the customer_type_id column using the CustomerType entity bean that represents the appropriate record in the customer_types table.

Parameters:
customerType - - The appropriate entity bean instance.

getCategories

public abstract java.util.Set getCategories()
Return a Set of entity bean instances that represent associated records in the categories table.

Returns:
Set - The Set of Category instances that are associated with this customer.

setCategories

public abstract void setCategories(java.util.Set categories)
Set a Set of entity bean instances that represent associated records in the categories table.

Parameters:
categories - - The Set of Category instances that are associated with this customer.

ejbCreate

public java.lang.Integer ejbCreate(java.lang.String username,
                                   java.lang.String password,
                                   CustomerType customerType)
                            throws javax.ejb.CreateException
Create a new customers record with just the values for the required columns. This method obtains the next sequence value for the customer_id value, and sets the customer_id value to the sequence value. The value for the active will be set to the default value specified for the column in the database.

Parameters:
username - - The username value.
password - - The password value.
customerType - - The customer_type_id represented by the entity bean instance.
Returns:
Integer - The primary key value of the entity bean representing the new record.
Throws:
javax.ejb.CreateException - - If errors are encountered while creating the new record.
See Also:
DatabaseHelper.getNextSequenceValue( String )

ejbPostCreate

public void ejbPostCreate(java.lang.String username,
                          java.lang.String password,
                          CustomerType customerType)
Mandatory matching postCreate method to the ejbCreate( String, String, CustomerType ) method. No special handling required after the new record is created.

Parameters:
username - - The username value.
password - - The password value.
customerType - - The customer_type_id represented by the entity bean instance.

ejbCreate

public java.lang.Integer ejbCreate(java.lang.String username,
                                   java.lang.String password,
                                   char active,
                                   CustomerType customerType)
                            throws javax.ejb.CreateException
Create a new customers record with just the values for the required columns. This method obtains the next sequence value for the customer_id value, and sets the customer_id value to the sequence value.

Parameters:
username - - The username value.
password - - The password value.
active - - The active value.
customerType - - The customer_type_id represented by the entity bean instance.
Returns:
Integer - The primary key value of the entity bean representing the new record.
Throws:
javax.ejb.CreateException - - If errors are encountered while creating the new record.
See Also:
DatabaseHelper.getNextSequenceValue( String )

ejbPostCreate

public void ejbPostCreate(java.lang.String username,
                          java.lang.String password,
                          char active,
                          CustomerType customerType)
Mandatory matching postCreate method to the ejbCreate( String, String, char, CustomerType ) method. No special handling required after the new record is created.

Parameters:
username - - The username value.
password - - The password value.
active - - The active value.
customerType - - The customer_type_id represented by the entity bean instance.

ejbCreate

public java.lang.Integer ejbCreate(java.lang.String username,
                                   java.lang.String password,
                                   java.lang.String email,
                                   java.lang.String domain,
                                   char active,
                                   java.util.Date creationDate,
                                   java.util.Date activationDate,
                                   java.util.Date expirationDate,
                                   CustomerType customerType)
                            throws javax.ejb.CreateException
Create a new customers record with the values specified for all the columns in the table. This method obtains the next sequence value for the customer_id value, and sets the customer_id value to the sequence value.

Parameters:
username - - The username value.
password - - The password value.
email - - The email value. This may be null.
domain - - The domain value. This may be null.
active - - The active value.
creationDate - - The creation_date value.
activationDate - - The activation_date value.
expirationDate - - The expiration_date value.
customerType - - The customer_type_id represented by the entity bean instance.
Returns:
Integer - The primary key value of the entity bean representing the new record.
Throws:
javax.ejb.CreateException - - If errors are encountered while creating the new record.
See Also:
DatabaseHelper.getNextSequenceValue( String )

ejbPostCreate

public void ejbPostCreate(java.lang.String username,
                          java.lang.String password,
                          java.lang.String email,
                          java.lang.String domain,
                          char active,
                          java.util.Date creationDate,
                          java.util.Date activationDate,
                          java.util.Date expirationDate,
                          CustomerType customerType)
Mandatory matching postCreate method to the ejbCreate( String, String, String, String, char, Date, Date, Date, CustomerType ) method. No special handling required after the new record is created.

Parameters:
username - - The username value.
password - - The password value.
email - - The email value. This may be null.
domain - - The domain value. This may be null.
active - - The active value.
creationDate - - The creation_date value.
activationDate - - The activation_date value.
expirationDate - - The expiration_date value.
customerType - - The customer_type_id represented by the entity bean instance.

Rakesh API

Copyright © 2002-2005 - Rakesh Vidyadharan