com.ibm.commerce.taxation.objects
Class StateCodeAccessBean

java.lang.Object
  com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
      com.ibm.commerce.taxation.objects.StateCodeAccessBean
All Implemented Interfaces:
StateCodeAccessBeanData

public class StateCodeAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements StateCodeAccessBeanData

This table maps the internal StateProv Abbreviation Code to the State or Province Code dictated by the third-party product or vendor identified in the PRODUCTVENDOR column. This access bean corresponds to the database table 'STATECODE'.

See Also:
Serialized Form

Constructor Summary
StateCodeAccessBean()
Zero argument constructor used to initialize the access bean.
StateCodeAccessBean(javax.ejb.EJBObject o)
constructor
Method Summary
void commitCopyHelper()
Update(flush) data to the EJBObject (persistent storage).
protected java.lang.String defaultJNDIName()
java.util.Enumeration findByProductVendorAndStateProvinceName(java.lang.String astrProductVendor, java.lang.String astrStateProvinceName)
Retrieves all the state codes in the specified state name under the indicated product vendor.
java.util.Enumeration findByProductVendorLanguageIdAndState(java.lang.String astrProductVendor, java.lang.Integer aLanguageId, java.lang.String astrState)
Retrieves all the state codes in the specified state name under the indicated product vendor.
java.util.Enumeration findByProductVendorLanguageIdAndStateAbbr(java.lang.String astrProductVendor, java.lang.Integer aLanguageId, java.lang.String astrStateAbbr)
Retrieves all the state codes in the specified state abbreviation and language id under the indicated product vendor.
java.util.Enumeration findByProductVendorLanguageIdAndStateName(java.lang.String astrProductVendor, java.lang.Integer aLanguageId, java.lang.String astrStateProvinceName)
Retrieves all the state codes in the specified state name under the indicated product vendor.
java.lang.String getProductVendor()
This method accesses a non-CMP field
java.lang.String getStateAbbr()
This method accesses a non-CMP field
java.lang.String getStateCode()
This method accesses a non-CMP field
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setInitKey_strProductVendor(java.lang.String newValue)
Set the primary key for this object
void setInitKey_strStateAbbr(java.lang.String newValue)
Set the primary key for this object
void setProductVendor(java.lang.String newValue)
This method accesses a non-CMP field
void setStateAbbr(java.lang.String newValue)
This method accesses a non-CMP field
void setStateCode(java.lang.String newValue)
This method accesses a non-CMP field
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

StateCodeAccessBean

public StateCodeAccessBean()
Zero argument constructor used to initialize the access bean. This constructor corresponds to the following home interface method: public abstract com.ibm.commerce.taxation.objects.StateCode com.ibm.commerce.taxation.objimpl.StateCodeHomeBase.findByPrimaryKey(com.ibm.commerce.taxation.objects.StateCodeKey) throws java.rmi.RemoteException,javax.ejb.FinderException The home interface method properties need to be set by calling the following setter methods before calling any business methods: setInitKey_strStateAbbr( java.lang.String ) setInitKey_strProductVendor( java.lang.String )

StateCodeAccessBean

public StateCodeAccessBean(javax.ejb.EJBObject o)
                    throws java.rmi.RemoteException
constructor
Parameters:
o - javax.ejb.EJBObject
Throws:
java.rmi.RemoteException
Method Detail

findByProductVendorAndStateProvinceName

public java.util.Enumeration findByProductVendorAndStateProvinceName(java.lang.String astrProductVendor,
                                                                     java.lang.String astrStateProvinceName)
                                                              throws java.rmi.RemoteException,
                                                                     javax.ejb.FinderException,
                                                                     javax.naming.NamingException

Retrieves all the state codes in the specified state name under the indicated product vendor.

The SQL query used to fetch all the required rows from the STATECODE table is:

SELECT * FROM STATECODE T1 WHERE (T1.PRODUCTVENDOR = ? AND T1.STATEPROVABBR = ANY (SELECT STATEPROV.STATEPROVABBR FROM STATEPROV WHERE STATEPROV.NAME = ?))

Parameters:
astrProductVendor - java.lang.String
astrStateProvinceName - java.lang.String
Returns:
Enumeration of all the StateCodeAccessBeans representing rows that match the search criteria.
Throws:
java.rmi.RemoteException
javax.ejb.FinderException
javax.naming.NamingException

findByProductVendorLanguageIdAndState

public java.util.Enumeration findByProductVendorLanguageIdAndState(java.lang.String astrProductVendor,
                                                                   java.lang.Integer aLanguageId,
                                                                   java.lang.String astrState)
                                                            throws java.rmi.RemoteException,
                                                                   javax.ejb.FinderException,
                                                                   javax.naming.NamingException

Retrieves all the state codes in the specified state name under the indicated product vendor.

The SQL query used to fetch all the required rows from the STATECODE table is:

SELECT * FROM STATECODE T1 WHERE T1.PRODUCTVENDOR = ? AND T1.STATEPROVABBR = ANY (SELECT STATEPROV.STATEPROVABBR FROM STATEPROV WHERE STATEPROV.LANGUAGE_ID=? AND ((STATEPROV.STATEPROVABBR=?) OR (STATEPROV.NAME=?)))

Parameters:
astrProductVendor - java.lang.String
aLanguageId - java.lang.Integer
astrState - java.lang.String
Returns:
Enumeration of all the StateCodeAccessBeans representing rows that match the search criteria.
Throws:
java.rmi.RemoteException
javax.ejb.FinderException
javax.naming.NamingException

findByProductVendorLanguageIdAndStateAbbr

public java.util.Enumeration findByProductVendorLanguageIdAndStateAbbr(java.lang.String astrProductVendor,
                                                                       java.lang.Integer aLanguageId,
                                                                       java.lang.String astrStateAbbr)
                                                                throws java.rmi.RemoteException,
                                                                       javax.ejb.FinderException,
                                                                       javax.naming.NamingException

Retrieves all the state codes in the specified state abbreviation and language id under the indicated product vendor.

The SQL query used to fetch all the required rows from the STATECODE table is:

SELECT * FROM STATECODE T1 WHERE (T1.PRODUCTVENDOR = ? AND T1.STATEPROVABBR = ANY (SELECT STATEPROV.STATEPROVABBR FROM STATEPROV WHERE STATEPROV.LANGUAGE_ID=? AND STATEPROV.STATEPROVABBR=?))

Parameters:
astrProductVendor - java.lang.String
aLanguageId - java.lang.Integer
astrStateAbbr - java.lang.String
Returns:
Enumeration of all the StateCodeAccessBeans representing rows that match the search criteria.
Throws:
java.rmi.RemoteException
javax.ejb.FinderException
javax.naming.NamingException

findByProductVendorLanguageIdAndStateName

public java.util.Enumeration findByProductVendorLanguageIdAndStateName(java.lang.String astrProductVendor,
                                                                       java.lang.Integer aLanguageId,
                                                                       java.lang.String astrStateProvinceName)
                                                                throws java.rmi.RemoteException,
                                                                       javax.ejb.FinderException,
                                                                       javax.naming.NamingException

Retrieves all the state codes in the specified state name under the indicated product vendor.

The SQL query used to fetch all the required rows from the STATECODE table is:

SELECT * FROM STATECODE T1 WHERE T1.PRODUCTVENDOR = ? AND T1.STATEPROVABBR = ANY (SELECT STATEPROV.STATEPROVABBR FROM STATEPROV WHERE STATEPROV.LANGUAGE_ID=? AND STATEPROV.NAME = ?)

Parameters:
astrProductVendor - java.lang.String
aLanguageId - java.lang.Integer
astrStateProvinceName - java.lang.String
Returns:
Enumeration of all the StateCodeAccessBeans representing rows that match the search criteria.
Throws:
java.rmi.RemoteException
javax.ejb.FinderException
javax.naming.NamingException

setInitKey_strStateAbbr

public void setInitKey_strStateAbbr(java.lang.String newValue)

Set the primary key for this object

Parameters:
newValue - java.lang.String
Returns:
void

setInitKey_strProductVendor

public void setInitKey_strProductVendor(java.lang.String newValue)

Set the primary key for this object

Parameters:
newValue - java.lang.String
Returns:
void

defaultJNDIName

protected java.lang.String defaultJNDIName()
Returns:
String

instantiateEJB

protected void instantiateEJB()
                       throws java.rmi.RemoteException,
                              javax.ejb.FinderException,
                              javax.naming.NamingException
Returns:
void
Throws:
java.rmi.RemoteException
javax.ejb.FinderException
javax.naming.NamingException

instantiateEJBByPrimaryKey

protected boolean instantiateEJBByPrimaryKey()
                                      throws java.rmi.RemoteException,
                                             javax.ejb.CreateException,
                                             javax.naming.NamingException
Returns:
boolean
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.naming.NamingException

commitCopyHelper

public void commitCopyHelper()
                      throws java.rmi.RemoteException,
                             javax.ejb.CreateException,
                             javax.ejb.FinderException,
                             javax.naming.NamingException

Update(flush) data to the EJBObject (persistent storage).

Returns:
void
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

refreshCopyHelper

public void refreshCopyHelper()
                       throws java.rmi.RemoteException,
                              javax.ejb.CreateException,
                              javax.ejb.FinderException,
                              javax.naming.NamingException

Load data from the EJBObject.

Returns:
void
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

getProductVendor

public java.lang.String getProductVendor()
                                  throws java.rmi.RemoteException,
                                         javax.ejb.CreateException,
                                         javax.ejb.FinderException,
                                         javax.naming.NamingException
This method accesses a non-CMP field
Specified by:
getProductVendor in interface StateCodeAccessBeanData
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setProductVendor

public void setProductVendor(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setProductVendor in interface StateCodeAccessBeanData

getStateCode

public java.lang.String getStateCode()
                              throws java.rmi.RemoteException,
                                     javax.ejb.CreateException,
                                     javax.ejb.FinderException,
                                     javax.naming.NamingException
This method accesses a non-CMP field
Specified by:
getStateCode in interface StateCodeAccessBeanData
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setStateCode

public void setStateCode(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setStateCode in interface StateCodeAccessBeanData

getStateAbbr

public java.lang.String getStateAbbr()
                              throws java.rmi.RemoteException,
                                     javax.ejb.CreateException,
                                     javax.ejb.FinderException,
                                     javax.naming.NamingException
This method accesses a non-CMP field
Specified by:
getStateAbbr in interface StateCodeAccessBeanData
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setStateAbbr

public void setStateAbbr(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setStateAbbr in interface StateCodeAccessBeanData

Feedback