Rakesh API

biz.wedoit4u.ejb.entity
Class CustomerTypeBean

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

public abstract class CustomerTypeBean
extends EntityBeanAdapter

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

Copyright 2003, Rakesh Vidyadharan

Version:
$Id: CustomerTypeBean.java,v 1.6 2004/05/26 11:42:34 rakesh Exp $
Author:
Rakesh Vidyadharan on 16th September 2003
See Also:
Serialized Form

Constructor Summary
CustomerTypeBean()
           
 
Method Summary
 java.lang.Integer ejbCreate(java.lang.String type)
          Create a new customer_types record with just the value for the required column.
 java.lang.Integer ejbCreate(java.lang.String type, java.lang.String description)
          Create a new customer_types record.
 void ejbPostCreate(java.lang.String type)
          Mandatory matching postCreate method to the ejbCreate( String ) method.
 void ejbPostCreate(java.lang.String type, java.lang.String description)
          Mandatory matching postCreate method to the ejbCreate( String, String ) method.
abstract  java.util.Set getCustomers()
          Return a Set of references to the Customer entity beans that belong to this customer_type.
abstract  int getCustomerTypeId()
          Return the value in the customer_type_id column.
abstract  java.lang.String getDescription()
          Return the value in the description column.
abstract  java.lang.String getType()
          Return the value in the type column.
abstract  void setCustomers(java.util.Set customers)
          Set a Set of references to the Customer entity beans that belong to this customer_type.
abstract  void setCustomerTypeId(int customer_typeId)
          Set the value in the customer_type_id column.
abstract  void setDescription(java.lang.String description)
          Set the value in the description column.
abstract  void setType(java.lang.String type)
          Set the value in the type 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

CustomerTypeBean

public CustomerTypeBean()
Method Detail

ejbCreate

public java.lang.Integer ejbCreate(java.lang.String type)
                            throws javax.ejb.CreateException
Create a new customer_types record with just the value for the required column. This method obtains the next sequence value for the customer_type_id value, and sets the customer_type_id value to the sequence value.

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

ejbPostCreate

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

Parameters:
type - - The type value.

ejbCreate

public java.lang.Integer ejbCreate(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:
Integer - The primary key value of the entity bean representing the new record.
Throws:
javax.ejb.CreateException - - If errors are encountered while creating the new record.
See Also:
DatabaseHelper.getNextSequenceValue( String )

ejbPostCreate

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

Parameters:
type - - The type value.
description - - The description value.

getCustomerTypeId

public abstract int getCustomerTypeId()
Return the value in the customer_type_id column.

Returns:
int - The value in the column.

setCustomerTypeId

public abstract void setCustomerTypeId(int customer_typeId)
Set the value in the customer_type_id column.

Parameters:
customer_typeId - - The value to set.

getType

public abstract java.lang.String getType()
Return the value in the type column.

Returns:
String - The value in the column.

setType

public abstract void setType(java.lang.String type)
Set the value in the type column.

Parameters:
type - - The value to set.

getDescription

public abstract java.lang.String getDescription()
Return the value in the description column.

Returns:
String - The value in the column.

setDescription

public abstract void setDescription(java.lang.String description)
Set the value in the description column.

Parameters:
description - - The value to set.

getCustomers

public abstract java.util.Set getCustomers()
Return a Set of references to the Customer entity beans that belong to this customer_type.

Returns:
Set - The Set of customers belonging to this type.

setCustomers

public abstract void setCustomers(java.util.Set customers)
Set a Set of references to the Customer entity beans that belong to this customer_type.

Parameters:
customers - - The Set of customers belonging to this type.

Rakesh API

Copyright © 2002-2005 - Rakesh Vidyadharan