Rakesh API

biz.wedoit4u.ejb.entity
Interface CustomerTypes

All Superinterfaces:
javax.ejb.EJBLocalHome

public interface CustomerTypes
extends javax.ejb.EJBLocalHome

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

Copyright 2003, Rakesh Vidyadharan and wedoit4u.biz

Version:
$Id: CustomerTypes.java,v 1.3 2004/05/26 11:42:34 rakesh Exp $
Author:
Rakesh Vidyadharan 16th September 2003

Method Summary
 CustomerType create(java.lang.String type)
          Create a new customer_types record with just the values for the required columns.
 CustomerType create(java.lang.String type, java.lang.String description)
          Create a new customer_types record.
 java.util.Collection findAll()
          Return all the entity beans that represent all the rows in the customer_types table.
 CustomerType findByPrimaryKey(int customerTypeId)
          Return the entity bean instance identified by the primary key value specified.
 CustomerType findByType(java.lang.String type)
          Return the entity bean instance identified by the unique type value specified.
 
Methods inherited from interface javax.ejb.EJBLocalHome
remove
 

Method Detail

create

CustomerType create(java.lang.String type)
                    throws javax.ejb.CreateException
Create a new customer_types record with just the values for the required columns. This method obtains the next sequence value for the customer_type_id value, and sets the customerType_id value to the sequence value.

Parameters:
type - - The type value.
Returns:
CustomerType - An entity bean representing the new record.
Throws:
javax.ejb.CreateException - - If errors are encountered while creating the new record.
See Also:
DatabaseHelper.getNextSequenceValue( String )

create

CustomerType create(java.lang.String type,
                    java.lang.String description)
                    throws javax.ejb.CreateException
Create a new customer_types record. This method obtains the next sequence value for the customer_id value, and sets the customer_type_id value to the sequence value.

Parameters:
type - - The type value.
description - - The description value.
Returns:
CustomerType - An entity bean representing the new record.
Throws:
javax.ejb.CreateException - - If errors are encountered while creating the new record.
See Also:
DatabaseHelper.getNextSequenceValue( String )

findByPrimaryKey

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

Parameters:
customerTypeId - - The customer_type_id value by which to find the appropriate bean instance.
Returns:
CustomerType - The appropriate entity bean instance.
Throws:
javax.ejb.FinderException - - If errors are encountered while fetching the appropriate instance.

findByType

CustomerType findByType(java.lang.String type)
                        throws javax.ejb.FinderException
Return the entity bean instance identified by the unique type value specified.

Parameters:
type - - The type value by which to find the appropriate bean instance.
Returns:
CustomerType - The appropriate entity bean instance.
Throws:
javax.ejb.FinderException - - If errors are encountered while fetching the appropriate instance.

findAll

java.util.Collection findAll()
                             throws javax.ejb.FinderException
Return all the entity beans that represent all the rows in the customer_types table.

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

Rakesh API

Copyright © 2002-2005 - Rakesh Vidyadharan