com.ibm.commerce.common.objects
Class SupportedLanguageAccessBean

java.lang.Object
  com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
      com.ibm.commerce.common.objects.SupportedLanguageAccessBean

public class SupportedLanguageAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean

Each row of this table indicates that a StoreEntity supports a language. See also the LANGPAIR table. This access bean corresponds to the database table 'STORELANG'.

See Also:
Serialized Form

Constructor Summary
SupportedLanguageAccessBean()
Zero argument constructor used to initialize the access bean.
SupportedLanguageAccessBean(java.lang.Integer aStoreEntityId, java.lang.Integer aLanguageId)
Creates a SupportedLanguage object with the specified store entity ID and supported language ID.
SupportedLanguageAccessBean(java.lang.Integer aStoreEntityId, java.lang.Integer aLanguageId, java.lang.String aCurrency)
Creates a SupportedLanguage object with the specified store entity ID, supported language ID and default currency.
SupportedLanguageAccessBean(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 findAll()
Retrieves all SupportedLanguageAccessBeans
java.util.Enumeration findByStore(java.lang.Integer storeId)
Retrieves all SupportedLanguageAccessBeans for the specified store entity ID
java.util.Enumeration findByStores(java.lang.Integer storeEntityId1, java.lang.Integer storeEntityId2)
Retrieves all SupportedLanguageAccessBeans for the two specified store entity IDs.
java.lang.String getCurrency()
This method provides access to the STORELANG.SETCCURR column of DB2 type CHAR(3).
java.lang.String getLanguageId()
This method provides access to the STORELANG.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.
java.lang.Integer getLanguageIdInEJBType()
This method provides access to the STORELANG.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.
java.lang.String getStoreEntityId()
This method provides access to the STORELANG.STOREENT_ID column of DB2 type INTEGER NOT NULL.
java.lang.Integer getStoreEntityIdInEJBType()
This method provides access to the STORELANG.STOREENT_ID column of DB2 type INTEGER NOT NULL.
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setCurrency(java.lang.String newValue)
This method accesses a non-CMP field
void setInitKey_languageId(java.lang.String newValue)
Set the primary key for this object
void setInitKey_storeEntityId(java.lang.String newValue)
Set the primary key for this object
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

SupportedLanguageAccessBean

public SupportedLanguageAccessBean()
Zero argument constructor used to initialize the access bean. This constructor corresponds to the following home interface method: public abstract com.ibm.commerce.common.objects.SupportedLanguage com.ibm.commerce.common.objimpl.SupportedLanguageHomeBase.findByPrimaryKey(com.ibm.commerce.common.objects.SupportedLanguageKey) 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_languageId( java.lang.Integer ) setInitKey_storeEntityId( java.lang.Integer )

SupportedLanguageAccessBean

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

SupportedLanguageAccessBean

public SupportedLanguageAccessBean(java.lang.Integer aStoreEntityId,
                                   java.lang.Integer aLanguageId)
                            throws javax.naming.NamingException,
                                   javax.ejb.FinderException,
                                   javax.ejb.CreateException,
                                   java.rmi.RemoteException

Creates a SupportedLanguage object with the specified store entity ID and supported language ID.

Parameters:
aStoreEntityId - The ID of the store entity
aLanguageId - The ID of the supported language
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception

SupportedLanguageAccessBean

public SupportedLanguageAccessBean(java.lang.Integer aStoreEntityId,
                                   java.lang.Integer aLanguageId,
                                   java.lang.String aCurrency)
                            throws javax.naming.NamingException,
                                   javax.ejb.FinderException,
                                   javax.ejb.CreateException,
                                   java.rmi.RemoteException

Creates a SupportedLanguage object with the specified store entity ID, supported language ID and default currency.

Parameters:
aStoreEntityId - The ID of the store entity
aLanguageId - The ID of the supported language
aCurrency - The currency code as per ISO 4217 standards
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception
Method Detail

findAll

public java.util.Enumeration findAll()
                              throws java.rmi.RemoteException,
                                     javax.ejb.FinderException,
                                     javax.naming.NamingException

Retrieves all SupportedLanguageAccessBeans

The SQL query used to fetch the requested row from the STORELANG table is:

SELECT * FROM STORELANG T1 WHERE 1 = 1

Returns:
An Enumeration of all the SupportedLanguageAccessBeans representing rows that match the search criteria.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException

findByStore

public java.util.Enumeration findByStore(java.lang.Integer storeId)
                                  throws java.rmi.RemoteException,
                                         javax.ejb.FinderException,
                                         javax.naming.NamingException

Retrieves all SupportedLanguageAccessBeans for the specified store entity ID

The SQL query used to fetch the requested row from the STORELANG table is:

SELECT * FROM STORELANG T1 WHERE (T1.STOREENT_ID = ?)

Parameters:
storeId - The ID of the store entity
Returns:
An Enumeration of all the SupportedLanguageAccessBeans representing rows that match the search criteria.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException

setInitKey_languageId

public void setInitKey_languageId(java.lang.String newValue)

Set the primary key for this object

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

setInitKey_storeEntityId

public void setInitKey_storeEntityId(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

getLanguageId

public java.lang.String getLanguageId()
                               throws java.rmi.RemoteException,
                                      javax.ejb.CreateException,
                                      javax.ejb.FinderException,
                                      javax.naming.NamingException

This method provides access to the STORELANG.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The language supported by the StoreEntity. For a list of language components, see the LANGUAGE table.

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

getLanguageIdInEJBType

public java.lang.Integer getLanguageIdInEJBType()
                                         throws java.rmi.RemoteException,
                                                javax.ejb.CreateException,
                                                javax.ejb.FinderException,
                                                javax.naming.NamingException

This method provides access to the STORELANG.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The language supported by the StoreEntity. For a list of language components, see the LANGUAGE table.

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

getCurrency

public java.lang.String getCurrency()
                             throws java.rmi.RemoteException,
                                    javax.ejb.CreateException,
                                    javax.ejb.FinderException,
                                    javax.naming.NamingException

This method provides access to the STORELANG.SETCCURR column of DB2 type CHAR(3).

The following is a description of this column:

A default currency for customers using the supported Language in a Store. This is a currency code as per ISO 4217 standards. A Store may override the default currency for its StoreGroup by specifying the same language and a different default currency.

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

setCurrency

public void setCurrency(java.lang.String newValue)
This method accesses a non-CMP field

getStoreEntityId

public java.lang.String getStoreEntityId()
                                  throws java.rmi.RemoteException,
                                         javax.ejb.CreateException,
                                         javax.ejb.FinderException,
                                         javax.naming.NamingException

This method provides access to the STORELANG.STOREENT_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The StoreEntity. In addition to its explicitly supported languages, a Store implicitly supports the languages supported by its StoreGroup.

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

getStoreEntityIdInEJBType

public java.lang.Integer getStoreEntityIdInEJBType()
                                            throws java.rmi.RemoteException,
                                                   javax.ejb.CreateException,
                                                   javax.ejb.FinderException,
                                                   javax.naming.NamingException

This method provides access to the STORELANG.STOREENT_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The StoreEntity. In addition to its explicitly supported languages, a Store implicitly supports the languages supported by its StoreGroup.

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

findByStores

public java.util.Enumeration findByStores(java.lang.Integer storeEntityId1,
                                          java.lang.Integer storeEntityId2)
                                   throws javax.naming.NamingException,
                                          javax.ejb.FinderException,
                                          java.rmi.RemoteException

Retrieves all SupportedLanguageAccessBeans for the two specified store entity IDs.

The SQL query used to fetch the requested row from the STORELANG table is:

SELECT * FROM STORELANG T1 WHERE (T1.STOREENT_ID IN (?,?))

Parameters:
storeEntityId1 - The ID of the first store entity.
storeEntityId2 - The ID of the second store entity.
Returns:
An Enumeration of all the SupportedLanguageAccessBeans representing rows that match the search criteria.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException

Feedback