|
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.ContentBean
public abstract class ContentBean
The implementation of the entity bean that represents a record in the
contents table.
Copyright 2003, Rakesh Vidyadharan
| Constructor Summary | |
|---|---|
ContentBean()
|
|
| Method Summary | |
|---|---|
java.lang.Integer |
ejbCreate(Category category,
java.lang.String title)
Create a new record in the content table with just
the required columns. |
java.lang.Integer |
ejbCreate(Category category,
java.lang.String title,
java.lang.String brief,
java.lang.String picture,
java.lang.String body)
Create a new record in the content table with all
the columns specified. |
java.lang.Integer |
ejbCreate(Category category,
java.lang.String title,
java.lang.String brief,
java.lang.String picture,
java.lang.String body,
java.util.Date creationDate,
java.util.Date modificationDate)
Create a new record in the content table with all
the columns specified. |
void |
ejbPostCreate(Category category,
java.lang.String title)
Mandatory matching postCreate method to the
ejbCreate( Category, String ) method. |
void |
ejbPostCreate(Category category,
java.lang.String title,
java.lang.String brief,
java.lang.String picture,
java.lang.String body)
Mandatory matching postCreate method to the
ejbCreate( Category, String ) method. |
void |
ejbPostCreate(Category category,
java.lang.String title,
java.lang.String brief,
java.lang.String picture,
java.lang.String body,
java.util.Date creationDate,
java.util.Date modificationDate)
Mandatory matching postCreate method to the
ejbCreate( Category, String ) method. |
abstract java.lang.String |
getBody()
Return the value in the body column. |
abstract java.lang.String |
getBrief()
Return the value in the picture column. |
abstract Category |
getCategory()
Return the value in the category_id column as a
reference to the Category entity bean instance representing
the value. |
abstract int |
getContentId()
Return the value in the content_id column. |
abstract java.util.Date |
getCreationDate()
Return the value in the creation_date column. |
abstract java.util.Date |
getModificationDate()
Return the value in the modification_date column. |
abstract java.lang.String |
getPicture()
Return the value in the picture column. |
abstract java.lang.String |
getTitle()
Return the value in the title column. |
abstract void |
setBody(java.lang.String body)
Set the value in the body column. |
abstract void |
setBrief(java.lang.String picture)
Set the value in the picture column. |
abstract void |
setCategory(Category category)
Set the value of the category_id column. |
abstract void |
setContentId(int contentId)
Set the value in the content_id column. |
abstract void |
setCreationDate(java.util.Date creationDate)
Return the value in the creation_date column. |
abstract void |
setModificationDate(java.util.Date modificationDate)
Return the value in the modification_date column. |
abstract void |
setPicture(java.lang.String picture)
Set the value in the picture column. |
abstract void |
setTitle(java.lang.String title)
Set the value in the title 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 ContentBean()
| Method Detail |
|---|
public abstract int getContentId()
content_id column.
public abstract void setContentId(int contentId)
content_id column.
contentId - - The column value.public abstract Category getCategory()
category_id column as a
reference to the Category entity bean instance representing
the value.
public abstract void setCategory(Category category)
category_id column.
category - - The value to set.public abstract java.lang.String getTitle()
title column.
public abstract void setTitle(java.lang.String title)
title column.
title - - The value to set.public abstract java.lang.String getBrief()
picture column.
public abstract void setBrief(java.lang.String picture)
picture column.
picture - - 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 getBody()
body column.
public abstract void setBody(java.lang.String body)
body column.
body - - 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 in the column.public abstract java.util.Date getModificationDate()
modification_date column.
public abstract void setModificationDate(java.util.Date modificationDate)
modification_date column.
modificationDate - The value to set.
public java.lang.Integer ejbCreate(Category category,
java.lang.String title)
throws javax.ejb.CreateException
content table with just
the required columns.
category - - The category_id to use
for the new content.title - - The title value to set.
javax.ejb.CreateException - - If errors are encountered while
creating the new record.
public void ejbPostCreate(Category category,
java.lang.String title)
postCreate method to the
ejbCreate( Category, String ) method. No
special handling required after the new record is created.
category - - The category_id to use
for the new content.title - - The title value to set.
public java.lang.Integer ejbCreate(Category category,
java.lang.String title,
java.lang.String brief,
java.lang.String picture,
java.lang.String body)
throws javax.ejb.CreateException
content table with all
the columns specified.
category - - The category_id to use
for the new content.title - - The title value to set.brief - - The brief value to set.picture - - The picture value to set.body - - The body value to set.
javax.ejb.CreateException - - If errors are encountered while
creating the new record.
public void ejbPostCreate(Category category,
java.lang.String title,
java.lang.String brief,
java.lang.String picture,
java.lang.String body)
postCreate method to the
ejbCreate( Category, String ) method. No
special handling required after the new record is created.
category - - The category_id to use
for the new content.title - - The title value to set.brief - - The brief value to set.picture - - The picture value to set.body - - The body value to set.
public java.lang.Integer ejbCreate(Category category,
java.lang.String title,
java.lang.String brief,
java.lang.String picture,
java.lang.String body,
java.util.Date creationDate,
java.util.Date modificationDate)
throws javax.ejb.CreateException
content table with all
the columns specified.
category - - The category_id to use
for the new content.title - - The title value to set.brief - - The brief value to set.picture - - The picture value to set.body - - The body value to set.creationDate - - The creation_date value
to set.modificationDate - - The modification_date
value to set.
javax.ejb.CreateException - - If errors are encountered while
creating the new record.
public void ejbPostCreate(Category category,
java.lang.String title,
java.lang.String brief,
java.lang.String picture,
java.lang.String body,
java.util.Date creationDate,
java.util.Date modificationDate)
postCreate method to the
ejbCreate( Category, String ) method. No
special handling required after the new record is created.
category - - The category_id to use
for the new content.title - - The title value to set.brief - - The brief value to set.picture - - The picture value to set.body - - The body value to set.creationDate - - The creation_date value
to set.modificationDate - - The modification_date
value to set.
|
Rakesh API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||