|
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.CategoryBean
public abstract class CategoryBean
The implementation of the entity bean that represents a record in the
categories table.
Copyright 2003, Rakesh Vidyadharan
| Constructor Summary | |
|---|---|
CategoryBean()
|
|
| Method Summary | |
|---|---|
java.lang.Integer |
ejbCreate(Customer customer,
java.lang.String menuName,
java.lang.String longName)
Create a new category record with just the required
values. |
java.lang.Integer |
ejbCreate(Customer customer,
java.lang.String menuName,
java.lang.String longName,
java.lang.String brief,
java.lang.String picture,
java.lang.String description)
Create a new category record with all the column
values. |
void |
ejbPostCreate(Customer customer,
java.lang.String menuName,
java.lang.String longName)
Mandatory matching postCreate method to the
ejbCreate( Customer, String, String ) method. |
void |
ejbPostCreate(Customer customer,
java.lang.String menuName,
java.lang.String longName,
java.lang.String brief,
java.lang.String picture,
java.lang.String description)
Mandatory matching postCreate method to the
ejbCreate( Customer, String, String, String, String,
String ) method. |
abstract java.lang.String |
getBrief()
Returns the value in the brief column. |
abstract int |
getCategoryId()
Returns the value in category_id column. |
abstract java.util.Set |
getContents()
Return a Set of Content entity bean
instances that are associated with this category. |
abstract Customer |
getCustomer()
Returns a reference to the Customer entity bean instance
that represents the value in the customer_id column. |
abstract java.lang.String |
getDescription()
Returns the value of the description column. |
abstract java.lang.String |
getLongName()
Returns the value in the long_name column. |
abstract java.lang.String |
getMenuName()
Returns the value in the menu_name column. |
abstract java.lang.String |
getPicture()
Returns the value in the picture column. |
abstract void |
setBrief(java.lang.String brief)
Set the value of the brief column. |
abstract void |
setCategoryId(int categoryId)
Set the value of the category_id column. |
abstract void |
setContents(java.util.Set set)
Set a Set of Content entity bean
instances that are associated with this category. |
abstract void |
setCustomer(Customer customer)
Set the value of the customer_id column. |
abstract void |
setDescription(java.lang.String description)
Set the value in the description column. |
abstract void |
setLongName(java.lang.String longName)
Set the value of the long_name column. |
abstract void |
setMenuName(java.lang.String menuName)
Set the value of the menu_name column. |
abstract void |
setPicture(java.lang.String picture)
Set the value of the picture 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 CategoryBean()
| Method Detail |
|---|
public abstract int getCategoryId()
category_id column.
public abstract void setCategoryId(int categoryId)
category_id column.
categoryId - - The value to set.public abstract Customer getCustomer()
Customer entity bean instance
that represents the value in the customer_id column.
public abstract void setCustomer(Customer customer)
customer_id column.
customer - - The value to set.public abstract java.lang.String getMenuName()
menu_name column.
public abstract void setMenuName(java.lang.String menuName)
menu_name column.
menuName - - The value to set.public abstract java.lang.String getLongName()
long_name column.
public abstract void setLongName(java.lang.String longName)
long_name column.
longName - - The value to set.public abstract java.lang.String getBrief()
brief column.
public abstract void setBrief(java.lang.String brief)
brief column.
brief - - The value to set.public abstract java.lang.String getPicture()
picture column.
public abstract void setPicture(java.lang.String picture)
picture column.
picture - - 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 getContents()
Set of Content entity bean
instances that are associated with this category.
Set of entity bean instances.
javax.ejb.FinderException - - If errors are encountered while fetching
the associated Content entity bean instances.public abstract void setContents(java.util.Set set)
Set of Content entity bean
instances that are associated with this category.
set - The Set of entity bean instances.
public java.lang.Integer ejbCreate(Customer customer,
java.lang.String menuName,
java.lang.String longName)
throws javax.ejb.CreateException
category record with just the required
values. This method obtains the next sequence value
for the category_id value, and sets the
category_id to the sequence value.
customer - - The reference to the entity bean that
represents a record in the customer table. This
will be used to set the foreign key customer_id
column.menuName - - The value for the menu_name
column.longName - - The value for the long_name
column.
javax.ejb.CreateException - - If errors are encountered while creating
the new record.DatabaseHelper.getNextSequenceValue( String )
public void ejbPostCreate(Customer customer,
java.lang.String menuName,
java.lang.String longName)
postCreate method to the
ejbCreate( Customer, String, String ) method. No
special handling required after the new record is created.
customer - - The reference to the entity bean that
represents a record in the customer table. This
will be used to set the foreign key customer_id
column.menuName - - The value for the menu_name
column.longName - - The value for the long_name
column.
public java.lang.Integer ejbCreate(Customer customer,
java.lang.String menuName,
java.lang.String longName,
java.lang.String brief,
java.lang.String picture,
java.lang.String description)
throws javax.ejb.CreateException
category record with all the column
values. This method obtains the next sequence value
for the category_id value, and sets the
category_id value to the sequence value.
customer - - The reference to the entity bean that
represents a record in the customer table. This
will be used to set the foreign key customer_id
column.menuName - - The value for the menu_name
column.longName - - The value for the long_name
column.brief - - The value for the brief column.picture - - The value for the picture
column.description - - The value for the description
column.
javax.ejb.CreateException - - If errors are encountered while creating
the new record.DatabaseHelper.getNextSequenceValue( String )
public void ejbPostCreate(Customer customer,
java.lang.String menuName,
java.lang.String longName,
java.lang.String brief,
java.lang.String picture,
java.lang.String description)
postCreate method to the
ejbCreate( Customer, String, String, String, String,
String ) method. No special handling required after the new
record is created.
customer - - The reference to the entity bean that
represents a record in the customer table. This
will be used to set the foreign key customer_id
column.menuName - - The value for the menu_name
column.longName - - The value for the long_name
column.brief - - The value for the brief column.picture - - The value for the picture
column.description - - The value for the description
column.
|
Rakesh API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||