Rakesh API

biz.wedoit4u.ejb.entity
Class ContentBean

java.lang.Object
  extended by biz.wedoit4u.ejb.entity.EntityBeanAdapter
      extended by biz.wedoit4u.ejb.entity.ContentBean
All Implemented Interfaces:
java.io.Serializable, javax.ejb.EnterpriseBean, javax.ejb.EntityBean

public abstract class ContentBean
extends EntityBeanAdapter

The implementation of the entity bean that represents a record in the contents table.

Copyright 2003, Rakesh Vidyadharan

Version:
$Id: ContentBean.java,v 1.4 2004/05/26 11:42:33 rakesh Exp $
Author:
Rakesh Vidyadharan on 9th September 2003
See Also:
Serialized Form

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

ContentBean

public ContentBean()
Method Detail

getContentId

public abstract int getContentId()
Return the value in the content_id column.

Returns:
int - The column value.

setContentId

public abstract void setContentId(int contentId)
Set the value in the content_id column.

Parameters:
contentId - - The column value.

getCategory

public abstract Category getCategory()
Return the value in the category_id column as a reference to the Category entity bean instance representing the value.

Returns:
Category - The appropriate entity bean instance.

setCategory

public abstract void setCategory(Category category)
Set the value of the category_id column.

Parameters:
category - - The value to set.

getTitle

public abstract java.lang.String getTitle()
Return the value in the title column.

Returns:
String - The column value.

setTitle

public abstract void setTitle(java.lang.String title)
Set the value in the title column.

Parameters:
title - - The value to set.

getBrief

public abstract java.lang.String getBrief()
Return the value in the picture column.

Returns:
String - The column value.

setBrief

public abstract void setBrief(java.lang.String picture)
Set the value in the picture column.

Parameters:
picture - - The value to set.

getPicture

public abstract java.lang.String getPicture()
Return the value in the picture column.

Returns:
String - The column value.

setPicture

public abstract void setPicture(java.lang.String picture)
Set the value in the picture column.

Parameters:
picture - - The value to set.

getBody

public abstract java.lang.String getBody()
Return the value in the body column.

Returns:
String - The column value.

setBody

public abstract void setBody(java.lang.String body)
Set the value in the body column.

Parameters:
body - - The value to set.

getCreationDate

public abstract java.util.Date getCreationDate()
Return the value in the creation_date column.

Returns:
Date - The value in the column.

setCreationDate

public abstract void setCreationDate(java.util.Date creationDate)
Return the value in the creation_date column.

Parameters:
creationDate - The value in the column.

getModificationDate

public abstract java.util.Date getModificationDate()
Return the value in the modification_date column.

Returns:
Date - The value in the column.

setModificationDate

public abstract void setModificationDate(java.util.Date modificationDate)
Return the value in the modification_date column.

Parameters:
modificationDate - The value to set.

ejbCreate

public java.lang.Integer ejbCreate(Category category,
                                   java.lang.String title)
                            throws javax.ejb.CreateException
Create a new record in the content table with just the required columns.

Parameters:
category - - The category_id to use for the new content.
title - - The title value to set.
Returns:
Integer - The primary key value of the newly created bean.
Throws:
javax.ejb.CreateException - - If errors are encountered while creating the new record.

ejbPostCreate

public void ejbPostCreate(Category category,
                          java.lang.String title)
Mandatory matching postCreate method to the ejbCreate( Category, String ) method. No special handling required after the new record is created.

Parameters:
category - - The category_id to use for the new content.
title - - The title value to set.

ejbCreate

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
Create a new record in the content table with all the columns specified.

Parameters:
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.
Returns:
Integer - The primary key value of the newly created bean.
Throws:
javax.ejb.CreateException - - If errors are encountered while creating the new record.

ejbPostCreate

public 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. No special handling required after the new record is created.

Parameters:
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.

ejbCreate

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
Create a new record in the content table with all the columns specified.

Parameters:
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.
Returns:
Integer - The primary key value of the newly created bean.
Throws:
javax.ejb.CreateException - - If errors are encountered while creating the new record.

ejbPostCreate

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)
Mandatory matching postCreate method to the ejbCreate( Category, String ) method. No special handling required after the new record is created.

Parameters:
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

Copyright © 2002-2005 - Rakesh Vidyadharan