|
Rakesh API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbiz.wedoit4u.Session
public class Session
The parent class that is used to support the CMA and CDA
applications. This class holds the common code between the
CMASession and PartnerSession classes.
Copyright 2003, Rakesh Vidyadharan and wedoit4u.biz
| Constructor Summary | |
|---|---|
Session()
|
|
| Method Summary | |
|---|---|
(package private) CategoryBean[] |
getCategoryBeans(java.util.Collection collection)
Iterate through the Collection of entity bean
instances of type Category
and create an array of java beans. |
CategoryBean[] |
getCategoryList(int customerId)
Return an Array of java bean instances of type
CategoryBean that represents all the
records in the categories table that are associated
with the specified customer_id. |
private ContentBean[] |
getContentBeans(java.util.Collection collection)
Iterate through the Collection of entity bean
instances of type Content
and create an array of java beans. |
ContentBean[] |
getContentList()
Return an Array of java bean instances of type
ContentBean that represents all the
records in the contents table. |
ContentBean[] |
getContentList(int categoryId)
Return an Array of java bean instances of type
ContentBean that represents all the
records in the contents table that are associated
with the specified category_id. |
long |
getUniqueNumber()
Return a unique number that can be used to generate unique URL's. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Session()
| Method Detail |
|---|
public CategoryBean[] getCategoryList(int customerId)
throws CMAException
Array of java bean instances of type
CategoryBean that represents all the
records in the categories table that are associated
with the specified customer_id.
CMAException - - If Naming or Finder exceptions are
encoutered while fetching the collection of entity beans.CategoryBean.findByCustomer( int ),
getCategoryBeans( Collection )
CategoryBean[] getCategoryBeans(java.util.Collection collection)
throws CMAException
Collection of entity bean
instances of type Category
and create an array of java beans.
collection - - The collection of entity bean
instances.
CMAException - - If errors are encountered while fetching
the java bean instances.
public ContentBean[] getContentList()
throws CMAException
Array of java bean instances of type
ContentBean that represents all the
records in the contents table.
CMAException - - If Naming or Finder exceptions are
encoutered while fetching the collection of entity beans.ContentBean.findAll(),
getContentBeans( Collection )
public ContentBean[] getContentList(int categoryId)
throws CMAException
Array of java bean instances of type
ContentBean that represents all the
records in the contents table that are associated
with the specified category_id.
CMAException - - If Naming or Finder exceptions are
encoutered while fetching the collection of entity beans.ContentBean.findByCategory( int ),
getContentBeans( Collection )
private ContentBean[] getContentBeans(java.util.Collection collection)
throws CMAException
Collection of entity bean
instances of type Content
and create an array of java beans.
collection - - The collection of entity bean
instances.
CMAException - - If errors are encountered while fetching
the java bean instances.public final long getUniqueNumber()
System.currentTimeMillis().
|
Rakesh API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||