|
Rakesh API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbiz.wedoit4u.ejb.entity.EntityBeanAdapter
biz.wedoit4u.ejb.entity.CustomerBean
public abstract class CustomerBean
The implementation of the entity bean that represents a record in the
customers table.
Copyright 2003, Rakesh Vidyadharan
| 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 |
|---|
protected static final char DEFAULT_ACTIVE
default value set for the active
column in the database.
| Constructor Detail |
|---|
public CustomerBean()
| Method Detail |
|---|
public abstract int getCustomerId()
customer_id column.
public abstract void setCustomerId(int customerId)
customer_id column.
customerId - - The value to set.public abstract java.lang.String getUsername()
username column.
public abstract void setUsername(java.lang.String username)
username column.
username - - The value to set.public abstract java.lang.String getPassword()
password column.
public abstract void setPassword(java.lang.String password)
password column.
password - - The value to set.public abstract java.lang.String getEmail()
email column.
public abstract void setEmail(java.lang.String email)
email column.
email - - The value to set.public abstract java.lang.String getDomain()
domain column.
public abstract void setDomain(java.lang.String domain)
domain column.
domain - - The value to set.public abstract char getActive()
active column.
public abstract void setActive(char active)
active column.
active - - The value to set.public abstract java.util.Date getCreationDate()
creation_date column.
public abstract void setCreationDate(java.util.Date creationDate)
creation_date column.
creationDate - - The value to set.public abstract java.util.Date getActivationDate()
activation_date column.
public abstract void setActivationDate(java.util.Date activationDate)
activation_date column.
activationDate - - The value in the column.public abstract java.util.Date getExpirationDate()
expiration_date column.
public abstract void setExpirationDate(java.util.Date expirationDate)
expiration_date column.
expirationDate - - The value in the column.public abstract CustomerType getCustomerType()
CustomerType entity bean
instance referenced by the customer_type_id foreign key
column.
public abstract void setCustomerType(CustomerType customerType)
customer_type_id column using
the CustomerType entity bean that represents the
appropriate record in the customer_types table.
customerType - - The appropriate entity bean instance.public abstract java.util.Set getCategories()
Set of entity bean instances that represent
associated records in the categories table.
Set of Category instances
that are associated with this customer.public abstract void setCategories(java.util.Set categories)
Set of entity bean instances that represent
associated records in the categories table.
categories - - The Set of Category
instances that are associated with this customer.
public java.lang.Integer ejbCreate(java.lang.String username,
java.lang.String password,
CustomerType customerType)
throws javax.ejb.CreateException
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.
username - - The username value.password - - The password value.customerType - - The customer_type_id represented
by the entity bean instance.
javax.ejb.CreateException - - If errors are encountered while creating
the new record.DatabaseHelper.getNextSequenceValue( String )
public void ejbPostCreate(java.lang.String username,
java.lang.String password,
CustomerType customerType)
postCreate method to the
ejbCreate( String, String, CustomerType ) method. No
special handling required after the new record is created.
username - - The username value.password - - The password value.customerType - - The customer_type_id represented
by the entity bean instance.
public java.lang.Integer ejbCreate(java.lang.String username,
java.lang.String password,
char active,
CustomerType customerType)
throws javax.ejb.CreateException
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.
username - - The username value.password - - The password value.active - - The active value.customerType - - The customer_type_id represented
by the entity bean instance.
javax.ejb.CreateException - - If errors are encountered while creating
the new record.DatabaseHelper.getNextSequenceValue( String )
public void ejbPostCreate(java.lang.String username,
java.lang.String password,
char active,
CustomerType customerType)
postCreate method to the
ejbCreate( String, String, char, CustomerType ) method.
No special handling required after the new record is created.
username - - The username value.password - - The password value.active - - The active value.customerType - - The customer_type_id represented
by the entity bean instance.
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
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.
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.
javax.ejb.CreateException - - If errors are encountered while creating
the new record.DatabaseHelper.getNextSequenceValue( String )
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)
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.
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 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||