com.ibm.commerce.common.objects
Class SupportedLanguageAccessBean

java.lang.Object
  |
  +--com.ibm.ivj.ejb.runtime.AbstractAccessBean
        |
        +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
              |
              +--com.ibm.commerce.common.objects.SupportedLanguageAccessBean
All Implemented Interfaces:
java.io.Serializable, SupportedLanguageAccessBeanData

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

This bean provides access to the STORELANG table.

The following is a description of this table:

Each row of this table indicates that a StoreEntity supports a language. A Store also supports all languages supported by its StoreGroup, and must be able to provide information when requested for a supported language. See also the LANGPAIR table.

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
SupportedLanguageAccessBean()
          Default constructor.
SupportedLanguageAccessBean(javax.ejb.EJBObject ejbObject)
          Creates an access bean for the specified EJB
 
Method Summary
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
 java.util.Enumeration findAll()
          Retrieves all SupportedLanguageAccessBeans
 java.util.Enumeration findByStore(java.lang.Integer aDByStore)
          Retrieves all SupportedLanguageAccessBeans by store entity id
 java.lang.String getCurrency()
          This method provides access to the STORELANG.SETCCURR column of DB2 type CHAR(3) NULL.
 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.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setCurrency(java.lang.String aCurrency)
          This method provides access to the STORELANG.SETCCURR column of DB2 type CHAR(3) NULL.
 void setInitKey_languageId(java.lang.String aInitKey_languageId)
          Set the primary key for this object
 void setInitKey_storeEntityId(java.lang.String aInitKey_storeEntityId)
          Set the primary key for this object
 
Methods inherited from class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
__getCache, __getCache, __getKey, __setCache, __setCache, __setKey, commitCopyHelper, createAccessBeans, createAccessBeans, instantiateEJBByPrimaryKey, refreshCopyHelper, setEJBRef
 
Methods inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
defaultJNDIName, defaultNameServiceType, defaultNameServiceURL, getEJBRef, getGlobalHome, getHome, getInit_GlobalNameServiceTypeName, getInit_GlobalNameServiceURLName, getInit_JNDIName, getInit_NameServiceTypeName, getInit_NameServiceURLName, getInitContext, getInitContext, instantiateEJB, resetEJBRef, resetHomeCache, setInit_GlobalNameServiceTypeName, setInit_GlobalNameServiceURLName, setInit_JNDIName, setInit_NameServiceTypeName, setInit_NameServiceURLName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SupportedLanguageAccessBean

public SupportedLanguageAccessBean()

Default constructor. Maps to findByPrimaryKey.


SupportedLanguageAccessBean

public SupportedLanguageAccessBean(javax.ejb.EJBObject ejbObject)
                            throws java.rmi.RemoteException

Creates an access bean for the specified EJB

Parameters:
ejbObject - javax.ejb.EJBObject
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
Method Detail

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).

Overrides:
commitCopyHelper in class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
Returns:
void
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

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:
java.util.Enumeration
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

findByStore

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

Retrieves all SupportedLanguageAccessBeans by 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:
aDByStore - java.lang.Integer
Returns:
java.util.Enumeration
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

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) NULL.

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.

Specified by:
getCurrency in interface SupportedLanguageAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

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.

Specified by:
getLanguageId in interface SupportedLanguageAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

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 - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

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.

Specified by:
getStoreEntityId in interface SupportedLanguageAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

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 - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

refreshCopyHelper

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

Load data from the EJBObject.

Overrides:
refreshCopyHelper in class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
Returns:
void
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

setCurrency

public void setCurrency(java.lang.String aCurrency)

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

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.

Specified by:
setCurrency in interface SupportedLanguageAccessBeanData
Parameters:
aCurrency - java.lang.String
Returns:
void

setInitKey_languageId

public void setInitKey_languageId(java.lang.String aInitKey_languageId)

Set the primary key for this object

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

setInitKey_storeEntityId

public void setInitKey_storeEntityId(java.lang.String aInitKey_storeEntityId)

Set the primary key for this object

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