com.ibm.commerce.common.objects
Class LanguageAccessBean

java.lang.Object
  com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
      com.ibm.commerce.common.objects.LanguageAccessBean
All Implemented Interfaces:
LanguageAccessBeanData

public class LanguageAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements LanguageAccessBeanData

Each row of this table represents a language. WebSphere Commerce supports multiple languages and is translated into ten languages by default. Using the predefined ISO codes users can add other supported languages. This access bean corresponds to the database table 'LANGUAGE'.

See Also:
Serialized Form

Constructor Summary
LanguageAccessBean()
Zero argument constructor used to initialize the access bean.
LanguageAccessBean(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 LanguageAccessBeans
java.util.Enumeration findByLocaleName(java.lang.String localeName)
Retrieves all LanguageAccessBean by locale name
java.lang.String getCountry()
This method provides access to the LANGUAGE.COUNTRY column of DB2 type CHAR(5).
LanguageDescriptionAccessBean getDescription(java.lang.Integer languageId, java.lang.Integer storeId)
Returns LanguageDescriptionAccessBean by languageId and storeId
java.lang.String getEncoding()
This method provides access to the LANGUAGE.ENCODING column of DB2 type VARCHAR(32).
java.lang.String getLanguage()
This method provides access to the LANGUAGE.LANGUAGE column of DB2 type CHAR(5).
java.lang.String getLanguageId()
This method provides access to the LANGUAGE.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.
java.lang.Integer getLanguageIdInEJBType()
This method provides access to the LANGUAGE.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.
java.lang.String getLocaleName()
This method provides access to the LANGUAGE.LOCALENAME column of DB2 type CHAR(16) NOT NULL.
java.lang.String getMimeCharSet()
This method provides access to the LANGUAGE.MIMECHARSET column of DB2 type VARCHAR(32).
java.lang.String getVariant()
This method provides access to the LANGUAGE.VARIANT column of DB2 type CHAR(10).
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setCountry(java.lang.String newValue)
This method accesses a non-CMP field
void setEncoding(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 setLanguage(java.lang.String newValue)
This method accesses a non-CMP field
void setLocaleName(java.lang.String newValue)
This method accesses a non-CMP field
void setMimeCharSet(java.lang.String newValue)
This method accesses a non-CMP field
void setVariant(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

LanguageAccessBean

public LanguageAccessBean()
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.Language com.ibm.commerce.common.objimpl.LanguageHomeBase.findByPrimaryKey(com.ibm.commerce.common.objects.LanguageKey) 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 )

LanguageAccessBean

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

findAll

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

Retrieves all LanguageAccessBeans

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

SELECT * FROM LANGUAGE 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

findByLocaleName

public java.util.Enumeration findByLocaleName(java.lang.String localeName)
                                       throws java.rmi.RemoteException,
                                              javax.ejb.FinderException,
                                              javax.naming.NamingException

Retrieves all LanguageAccessBean by locale name

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

SELECT * FROM LANGUAGE T1 WHERE (T1.LOCALENAME = ?)

Parameters:
localeName - Locale name
Returns:
java.util.Enumeration
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

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

getLanguage

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

This method provides access to the LANGUAGE.LANGUAGE column of DB2 type CHAR(5).

The following is a description of this column:

Language component of the locale:&l

Specified by:
getLanguage in interface LanguageAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setLanguage

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

getCountry

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

This method provides access to the LANGUAGE.COUNTRY column of DB2 type CHAR(5).

The following is a description of this column:

Country or region component of the locale:&l

Specified by:
getCountry in interface LanguageAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setCountry

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

getVariant

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

This method provides access to the LANGUAGE.VARIANT column of DB2 type CHAR(10).

The following is a description of this column:

Variant component of the locale. Used to specify the locale encoding character set or to further segregate a distinct formatting custom for a political, geographical, or cultural region.

Specified by:
getVariant in interface LanguageAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setVariant

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

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 LANGUAGE.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The language ID (primary key of this table) for each language. Foreign key to the tables that contain language-dependent information. The following is the list of language components (language ID codes) of the locale:&l

Specified by:
getLanguageId in interface LanguageAccessBeanData
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 LANGUAGE.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The language ID (primary key of this table) for each language. Foreign key to the tables that contain language-dependent information. The following is the list of language components (language ID codes) of the locale:&l

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

getMimeCharSet

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

This method provides access to the LANGUAGE.MIMECHARSET column of DB2 type VARCHAR(32).

The following is a description of this column:

The MIME character encoding value that the notification system uses to encode a message for the selected language.

Specified by:
getMimeCharSet in interface LanguageAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setMimeCharSet

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

getLocaleName

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

This method provides access to the LANGUAGE.LOCALENAME column of DB2 type CHAR(16) NOT NULL.

The following is a description of this column:

A Java locale used to represent a political, geographical, or cultural region that has a distinct language and customs. The following is the list of locale used for formatting:&l

Specified by:
getLocaleName in interface LanguageAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setLocaleName

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

getEncoding

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

This method provides access to the LANGUAGE.ENCODING column of DB2 type VARCHAR(32).

The following is a description of this column:

The character encoding value that the browser uses to display the page in the selected language.

Specified by:
getEncoding in interface LanguageAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setEncoding

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

getDescription

public LanguageDescriptionAccessBean getDescription(java.lang.Integer languageId,
                                                    java.lang.Integer storeId)
                                             throws javax.ejb.CreateException,
                                                    javax.ejb.FinderException,
                                                    java.rmi.RemoteException,
                                                    javax.naming.NamingException

Returns LanguageDescriptionAccessBean by languageId and storeId

Parameters:
languageId - Language id
storeId - Store id
Returns:
com.ibm.commerce.common.objects.LanguageDescriptionAccessBean
Throws:
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.naming.NamingException - The javax.naming.NamingException exception

Feedback