|
Rakesh API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbiz.wedoit4u.ejb.entity.EntityBeanProvider
public final class EntityBeanProvider
This class provides static accessor methods that
provide a convenient means of getting references to
the various EJB's developed for the TMS Webservices initiative.
The methods defined in this class simply invoke the
appropriate finder methods for accessing entity
beans.
Copyright 2003, Rakesh Vidyadharan and wedoit4u.biz
| Field Summary | |
|---|---|
private static Categories |
categories
A reference to the Contents home object for the
Category entity bean. |
private static Contents |
contents
A reference to the Categories home object for the
Content entity bean. |
private static Customers |
customers
A reference to the Customers home object for the
Customer entity bean. |
private static CustomerTypes |
customerTypes
A reference to the CustomerTypes home object for the
CustomerType entity bean. |
private static javax.naming.InitialContext |
initialContext
A reference to the application servers InitialContext. |
private static SiteProperties |
siteProperties
A reference to the SiteProperties home object for the
SiteProperty entity bean. |
| Constructor Summary | |
|---|---|
private |
EntityBeanProvider()
Default constructor. |
| Method Summary | |
|---|---|
static java.util.Collection |
getAllCategories()
Return a Collection of reference to the Category entity beans that represent all the records in the
customer_id table. |
static java.util.Collection |
getAllContents()
Return a Collection of Content entity
bean instances that represent all the records in the
contents table. |
static java.util.Collection |
getAllCustomers()
Return a Collection of references to all the entity
bean instances that represent all the records in the
customers table. |
static java.util.Collection |
getAllCustomerTypes()
Return a collection of all the CustomerType entity bean
instances that represent all the rows in the customer_type
table. |
static java.util.Collection |
getAllSiteProperties()
Return a Collection of entity beans of type SiteProperty that represent all the records in the
site_properties table. |
static Categories |
getCategories()
Fetch the home object for the Category entity
bean. |
static Category |
getCategory(int categoryId)
Return a reference to the Category entity bean identified
by the primary key value specified. |
static java.util.Collection |
getCategoryByCustomer(Customer customer)
Return a Collection of reference to the Category entity beans that belong to the specified
customer_id. |
static Content |
getContent(int contentId)
Return a reference to the Content entity bean identified
by the primary key value specified. |
static java.util.Collection |
getContentByCategory(Category category)
Return a Collection of Content entity
bean instances that are associated with the specified
Category. |
static Contents |
getContents()
Fetch the home object for the Contents
entity bean. |
static Customer |
getCustomer(int customerId)
Return a reference to the Customer entity bean. |
static Customer |
getCustomer(java.lang.String username)
Return a reference to the Customer entity bean. |
static java.util.Collection |
getCustomerByCustomerType(CustomerType customerType)
Return a Collection of entity bean instances that
represent all the records in the customers table,
that belong to the specified CustomerType. |
static Customers |
getCustomers()
Fetch the home object for the Customer
entity bean. |
static CustomerType |
getCustomerType(int customerTypeId)
Return a reference to the CustomerType entity bean. |
static CustomerType |
getCustomerType(java.lang.String type)
Return a reference to the CustomerType entity bean
identified by the type value. |
static CustomerTypes |
getCustomerTypes()
Fetch the home object for the CustomerType
entity bean. |
static SiteProperties |
getSiteProperties()
Fetch the home object for the SiteProperty
entity bean. |
static SiteProperty |
getSiteProperty(int customerId)
Return a reference to the SiteProperty entity bean. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static javax.naming.InitialContext initialContext
InitialContext.
This reference is fetched only once for the sake of efficiency.
private static CustomerTypes customerTypes
CustomerTypes home object for the
CustomerType entity bean. This reference is fetched only
once for the sake of efficiency.
private static Customers customers
Customers home object for the
Customer entity bean. This reference is fetched only
once for the sake of efficiency.
private static Categories categories
Contents home object for the
Category entity bean. This reference is fetched only
once for the sake of efficiency.
private static Contents contents
Categories home object for the
Content entity bean. This reference is fetched only
once for the sake of efficiency.
private static SiteProperties siteProperties
SiteProperties home object for the
SiteProperty entity bean. This reference is fetched only
once for the sake of efficiency.
| Constructor Detail |
|---|
private EntityBeanProvider()
| Method Detail |
|---|
public static final CustomerTypes getCustomerTypes()
throws javax.naming.NamingException
home object for the CustomerType
entity bean. The reference is fetched only if the customerTypes reference is null.
javax.naming.NamingException - - Any errors encountered while getting a
reference to the application servers InitialContext.
public static final CustomerType getCustomerType(int customerTypeId)
throws javax.ejb.FinderException,
javax.naming.NamingException
CustomerType entity bean.
customerTypeId - - The customerType_id
column value by which the appropriate bean instance is to be
fetched.
javax.ejb.FinderException - - Any errors encountered while looking up
the associated bean instance specified by the userId value.
javax.naming.NamingException - - Any errors encountered while getting a
reference to the customerTypes home object.
public static final CustomerType getCustomerType(java.lang.String type)
throws javax.ejb.FinderException,
javax.naming.NamingException
CustomerType entity bean
identified by the type value.
type - - The type column
value by which the appropriate bean instance is to be fetched.
javax.ejb.FinderException - - Any errors encountered while looking up
the associated bean instance specified by the username value.
javax.naming.NamingException - - Any errors encountered while getting a
reference to the customerTypes home object.
public static final java.util.Collection getAllCustomerTypes()
throws javax.ejb.FinderException,
javax.naming.NamingException
CustomerType entity bean
instances that represent all the rows in the customer_type
table.
javax.ejb.FinderException - - Any errors encountered while looking up
the associated bean instance specified by the username value.
javax.naming.NamingException - - Any errors encountered while getting a
reference to the customerTypes home object.
public static final Customers getCustomers()
throws javax.naming.NamingException
home object for the Customer
entity bean. The reference is fetched only if the customers reference is null.
javax.naming.NamingException - - Any errors encountered while getting a
reference to the application servers InitialContext.
public static final Customer getCustomer(int customerId)
throws javax.ejb.FinderException,
javax.naming.NamingException
Customer entity bean.
customerId - - The customer_id column
value by which the appropriate bean instance is to be fetched.
javax.ejb.FinderException - - Any errors encountered while looking up
the associated bean instance specified by the userId value.
javax.naming.NamingException - - Any errors encountered while getting a
reference to the customers home object.
public static final Customer getCustomer(java.lang.String username)
throws javax.ejb.FinderException,
javax.naming.NamingException
Customer entity bean.
username - - The username column
value by which the appropriate bean instance is to be fetched.
javax.ejb.FinderException - - Any errors encountered while looking up
the associated bean instance specified by the username value.
javax.naming.NamingException - - Any errors encountered while getting a
reference to the customers home object.
public static final java.util.Collection getCustomerByCustomerType(CustomerType customerType)
throws javax.naming.NamingException,
javax.ejb.FinderException
Collection of entity bean instances that
represent all the records in the customers table,
that belong to the specified CustomerType.
customerType - - The customer type for which
the collection of customers is to be retrieved.
javax.naming.NamingException - - Any errors encountered while getting a
reference to the customers home object.
javax.ejb.FinderException - - If errors are encountered while fetching
the appropriate instances.
public static final java.util.Collection getAllCustomers()
throws javax.ejb.FinderException,
javax.naming.NamingException
Collection of references to all the entity
bean instances that represent all the records in the
customers table.
javax.ejb.FinderException - - Any errors encountered while looking up
the associated bean instance specified by the username value.
javax.naming.NamingException - - Any errors encountered while getting a
reference to the customers home object.
public static final Categories getCategories()
throws javax.naming.NamingException
home object for the Category entity
bean. The reference is fetched only if the categories
reference is null.
javax.naming.NamingException - - Any errors encountered while getting a
reference to the home object from the application servers
InitialContext.
public static final Category getCategory(int categoryId)
throws javax.ejb.FinderException,
javax.naming.NamingException
Category entity bean identified
by the primary key value specified.
categoryId - - The category_id column value
by which the appropriate bean instance is to be fetched.
javax.ejb.FinderException - - Any errors encountered while looking up
the associated bean instance specified by the categoryId value.
javax.naming.NamingException - - Any errors encountered while getting a
reference to the home object from the application servers
InitialContext.
public static final java.util.Collection getCategoryByCustomer(Customer customer)
throws javax.ejb.FinderException,
javax.naming.NamingException
Collection of reference to the Category entity beans that belong to the specified
customer_id.
customer - - The customer_id column
value by which the appropriate bean instances are to be fetched.
The customer_id value is represented by its entity bean
representation.
javax.ejb.FinderException - - Any errors encountered while looking up
the associated bean instance specified by the userId value.
javax.naming.NamingException - - Any errors encountered while getting a
reference to the home object from the application servers
InitialContext.
public static final java.util.Collection getAllCategories()
throws javax.ejb.FinderException,
javax.naming.NamingException
Collection of reference to the Category entity beans that represent all the records in the
customer_id table.
javax.ejb.FinderException - - Any errors encountered while looking up
the associated bean instance specified by the userId value.
javax.naming.NamingException - - Any errors encountered while getting a
reference to the home object from the application servers
InitialContext.
public static final Contents getContents()
throws javax.naming.NamingException
home object for the Contents
entity bean. This reference is fetched only if the contents is null.
javax.naming.NamingException - - Any errors encountered while getting a
reference to the home object from the application servers
InitialContext.
public static final Content getContent(int contentId)
throws javax.ejb.FinderException,
javax.naming.NamingException
Content entity bean identified
by the primary key value specified.
contentId - - The content_id column
value by which the appropriate bean instance is to be fetched.
javax.ejb.FinderException - - Any errors encountered while looking up
the associated bean instance specified by the deviceTypeId value.
javax.naming.NamingException - - Any errors encountered while getting a
reference to the home object from the application servers
InitialContext.
public static final java.util.Collection getAllContents()
throws javax.ejb.FinderException,
javax.naming.NamingException
Collection of Content entity
bean instances that represent all the records in the
contents table.
javax.ejb.FinderException - - If errors are encountered while finding
devices for the specified customer.
javax.naming.NamingException - - Any errors encountered while getting a
reference to the home object from the application servers
InitialContext.
public static final java.util.Collection getContentByCategory(Category category)
throws javax.ejb.FinderException,
javax.naming.NamingException
Collection of Content entity
bean instances that are associated with the specified
Category.
category - - The category_id for which
all the Content instances are to be retrieved using the
related Category entity bean instance.
javax.ejb.FinderException - - If errors are encountered while finding
devices for the specified customer.
javax.naming.NamingException - - Any errors encountered while getting a
reference to the home object from the application servers
InitialContext.
public static final SiteProperties getSiteProperties()
throws javax.naming.NamingException
home object for the SiteProperty
entity bean. This reference is fetched only if the siteProperties is null.
javax.naming.NamingException - - Any errors encountered while getting a
reference to the home object from the application servers
InitialContext.
public static final SiteProperty getSiteProperty(int customerId)
throws javax.ejb.FinderException,
javax.naming.NamingException
SiteProperty entity bean.
customerId - - The customer_id
column value by which the appropriate bean instance is to be
fetched.
javax.ejb.FinderException - - Any errors encountered while looking up
the associated bean instance specified by the userId value.
javax.naming.NamingException - - Any errors encountered while getting a
reference to the customers home object.
public static final java.util.Collection getAllSiteProperties()
throws javax.ejb.FinderException,
javax.naming.NamingException
Collection of entity beans of type SiteProperty that represent all the records in the
site_properties table.
javax.ejb.FinderException - - Any errors encountered while looking up
the associated bean instance specified by the userId value.
javax.naming.NamingException - - Any errors encountered while getting a
reference to the customers home object.
|
Rakesh API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||