|
Rakesh API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Customers
The local home interface to the entity bean that represents a record
in the customers table.
Copyright 2003, Rakesh Vidyadharan and wedoit4u.biz
| Method Summary | |
|---|---|
Customer |
create(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. |
Customer |
create(java.lang.String username,
java.lang.String password,
CustomerType customerType)
Create a new customers record with just the values
for the required columns. |
Customer |
create(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. |
java.util.Collection |
findAll()
Return a Collection of entity bean instances that
represent all the records in the customers table. |
java.util.Collection |
findByCustomerType(CustomerType customerType)
Return a Collection of entity bean instances that
represent all the records in the customers table,
that belong to the specified CustomerType. |
Customer |
findByPrimaryKey(int customerId)
Return the entity bean instance identified by the primary key value specified. |
Customer |
findByUsername(java.lang.String username)
Find the entity bean instance that is identified by the username specified. |
| Methods inherited from interface javax.ejb.EJBLocalHome |
|---|
remove |
| Method Detail |
|---|
Customer create(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 )
Customer create(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 )
Customer create(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 )
Customer findByPrimaryKey(int customerId)
throws javax.ejb.FinderException
customerId - - The customer_id value by which to
find the appropriate bean instance.
javax.ejb.FinderException - - If errors are encountered while fetching
the appropriate instance.
Customer findByUsername(java.lang.String username)
throws javax.ejb.FinderException
username specified.
username - - The username value by which to
find the appropriate bean instance.
javax.ejb.FinderException - - If errors are encountered while fetching
the appropriate bean instance.
java.util.Collection findByCustomerType(CustomerType customerType)
throws javax.ejb.FinderException
Collection of entity bean instances that
represent all the records in the customers table,
that belong to the specified CustomerType.
customerType - - The customer type for which
the collection of customers is to be retrieved.
javax.ejb.FinderException - - If errors are encountered while fetching
the appropriate instances.
java.util.Collection findAll()
throws javax.ejb.FinderException
Collection of entity bean instances that
represent all the records in the customers table.
javax.ejb.FinderException - - If errors are encountered while fetching
the appropriate instances.
|
Rakesh API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||