Rakesh API

biz.wedoit4u.ejb.entity
Interface Contents

All Superinterfaces:
javax.ejb.EJBLocalHome

public interface Contents
extends javax.ejb.EJBLocalHome

The local home interface to the entity bean that represents a record in the contents table.

Copyright 2003, Rakesh Vidyadharan and wedoit4u.biz

Version:
$Id: Contents.java,v 1.2 2004/05/26 11:42:33 rakesh Exp $
Author:
Rakesh Vidyadharan 9th September 2003

Method Summary
 Content create(Category category, java.lang.String title)
          Create a new record in the content table with just the required columns.
 Content create(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 except the Date columns that are populated by database triggers.
 Content create(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.
 java.util.Collection findAll()
          Return a Collection of all the entity bean instances that represent all the records in the contents table.
 java.util.Collection findByCategory(Category category)
          Return the entity bean intances that are associated with the specified category_id.
 Content findByPrimaryKey(int contentId)
          Return the entity bean instance identified by the primary key value specified.
 
Methods inherited from interface javax.ejb.EJBLocalHome
remove
 

Method Detail

create

Content create(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:
Content - A bean instance representing the new record.
Throws:
javax.ejb.CreateException - - If errors are encountered while creating the new record.

create

Content create(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 except the Date columns that are populated by database triggers.

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:
Content - A bean instance representing the new record.
Throws:
javax.ejb.CreateException - - If errors are encountered while creating the new record.

create

Content create(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:
Content - A bean instance representing the new record.
Throws:
javax.ejb.CreateException - - If errors are encountered while creating the new record.

findByPrimaryKey

Content findByPrimaryKey(int contentId)
                         throws javax.ejb.FinderException
Return the entity bean instance identified by the primary key value specified.

Parameters:
contentId - - The content_id based upon which to find the appropriate bean instance.
Returns:
Content - The appropriate entity bean instance.
Throws:
javax.ejb.FinderException - - If errors are encountered while fetching the bean instance.

findByCategory

java.util.Collection findByCategory(Category category)
                                    throws javax.ejb.FinderException
Return the entity bean intances that are associated with the specified category_id.

Parameters:
category - - The category_id based upon which to find the appropriate bean instances.
Returns:
Collection - A collection of appropriate entity bean instance.
Throws:
javax.ejb.FinderException - - If errors are encountered while fetching the bean instance.

findAll

java.util.Collection findAll()
                             throws javax.ejb.FinderException
Return a Collection of all the entity bean instances that represent all the records in the contents table.

Returns:
Collection - A collection of appropriate entity bean instance.
Throws:
javax.ejb.FinderException - - If errors are encountered while fetching the bean instance.

Rakesh API

Copyright © 2002-2005 - Rakesh Vidyadharan