|
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.CustomerTypeBean
public abstract class CustomerTypeBean
The implementation of the entity bean that represents a record in the
customer_types table.
Copyright 2003, Rakesh Vidyadharan
| Constructor Summary | |
|---|---|
CustomerTypeBean()
|
|
| Method Summary | |
|---|---|
java.lang.Integer |
ejbCreate(java.lang.String type)
Create a new customer_types record with just the
value for the required column. |
java.lang.Integer |
ejbCreate(java.lang.String type,
java.lang.String description)
Create a new customer_types record. |
void |
ejbPostCreate(java.lang.String type)
Mandatory matching postCreate method to the
ejbCreate( String ) method. |
void |
ejbPostCreate(java.lang.String type,
java.lang.String description)
Mandatory matching postCreate method to the
ejbCreate( String, String ) method. |
abstract java.util.Set |
getCustomers()
Return a Set of references to the Customer
entity beans that belong to this customer_type. |
abstract int |
getCustomerTypeId()
Return the value in the customer_type_id column. |
abstract java.lang.String |
getDescription()
Return the value in the description column. |
abstract java.lang.String |
getType()
Return the value in the type column. |
abstract void |
setCustomers(java.util.Set customers)
Set a Set of references to the Customer
entity beans that belong to this customer_type. |
abstract void |
setCustomerTypeId(int customer_typeId)
Set the value in the customer_type_id column. |
abstract void |
setDescription(java.lang.String description)
Set the value in the description column. |
abstract void |
setType(java.lang.String type)
Set the value in the type 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 |
| Constructor Detail |
|---|
public CustomerTypeBean()
| Method Detail |
|---|
public java.lang.Integer ejbCreate(java.lang.String type)
throws javax.ejb.CreateException
customer_types record with just the
value for the required column. This method obtains the next
sequence value for the customer_type_id
value, and sets the customer_type_id value to the
sequence value.
type - - The type value.
javax.ejb.CreateException - - If errors are encountered while creating
the new record.DatabaseHelper.getNextSequenceValue( String )public void ejbPostCreate(java.lang.String type)
postCreate method to the
ejbCreate( String ) method. No special handling required
after the new record is created.
type - - The type value.
public java.lang.Integer ejbCreate(java.lang.String type,
java.lang.String description)
throws javax.ejb.CreateException
customer_types record. This method
obtains the next sequence value for the
customer_id value, and sets the
customer_type_id value to the sequence value.
type - - The type value.description - - The description value.
javax.ejb.CreateException - - If errors are encountered while creating
the new record.DatabaseHelper.getNextSequenceValue( String )
public void ejbPostCreate(java.lang.String type,
java.lang.String description)
postCreate method to the
ejbCreate( String, String ) method. No special handling
required after the new record is created.
type - - The type value.description - - The description value.public abstract int getCustomerTypeId()
customer_type_id column.
public abstract void setCustomerTypeId(int customer_typeId)
customer_type_id column.
customer_typeId - - The value to set.public abstract java.lang.String getType()
type column.
public abstract void setType(java.lang.String type)
type column.
type - - The value to set.public abstract java.lang.String getDescription()
description column.
public abstract void setDescription(java.lang.String description)
description column.
description - - The value to set.public abstract java.util.Set getCustomers()
Set of references to the Customer
entity beans that belong to this customer_type.
Set of customers belonging to this
type.public abstract void setCustomers(java.util.Set customers)
Set of references to the Customer
entity beans that belong to this customer_type.
customers - - The Set of customers belonging to
this type.
|
Rakesh API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||