com.ibm.commerce.common.objects
Class LanguageAccessBean

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

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

This bean provides access to the LANGUAGE table.

The following is a description of this table:

Each row of this table represents a language.

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
LanguageAccessBean()
          Default constructor.
LanguageAccessBean(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 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) NULL.
 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) NULL.
 java.lang.String getLanguage()
          This method provides access to the LANGUAGE.LANGUAGE column of DB2 type CHAR(5) NULL.
 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) NULL.
 java.lang.String getVariant()
          This method provides access to the LANGUAGE.VARIANT column of DB2 type CHAR(10) NULL.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setCountry(java.lang.String aCountry)
          This method provides access to the LANGUAGE.COUNTRY column of DB2 type CHAR(5) NULL.
 void setEncoding(java.lang.String aEncoding)
          This method provides access to the LANGUAGE.ENCODING column of DB2 type VARCHAR(32) NULL.
 void setInitKey_languageId(java.lang.String aInitKey_languageId)
          Set the primary key for this object
 void setLanguage(java.lang.String aLanguage)
          This method provides access to the LANGUAGE.LANGUAGE column of DB2 type CHAR(5) NULL.
 void setLocaleName(java.lang.String aLocaleName)
          This method provides access to the LANGUAGE.LOCALENAME column of DB2 type CHAR(16) NOT NULL.
 void setMimeCharSet(java.lang.String aMimeCharSet)
          This method provides access to the LANGUAGE.MIMECHARSET column of DB2 type VARCHAR(32) NULL.
 void setVariant(java.lang.String aVariant)
          This method provides access to the LANGUAGE.VARIANT column of DB2 type CHAR(10) NULL.
 
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

LanguageAccessBean

public LanguageAccessBean()

Default constructor. Maps to findByPrimaryKey.


LanguageAccessBean

public LanguageAccessBean(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 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 - The javax.naming.NamingException exception

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 - The javax.naming.NamingException exception

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

The following is a description of this column:

Country or region component of the locale.

Specified by:
getCountry in interface LanguageAccessBeanData
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

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

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

The following is a description of this column:

The character encoding value that the browser should use to display the page for this language.

Specified by:
getEncoding in interface LanguageAccessBeanData
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

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

The following is a description of this column:

Language component of the locale. For a list of language components, see the LANGUAGE table.

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

The following is a description of this column:

A unique key for the language, used as part of the foreign key in tables that contain language-dependent information. For a list of language components, see the LANGUAGE table.

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

The following is a description of this column:

A unique key for the language, used as part of the foreign key in tables that contain language-dependent information. 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

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 for formatting.

Specified by:
getLocaleName in interface LanguageAccessBeanData
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

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

The following is a description of this column:

The MIME character encoding value that the notification system will use to encode a message for this language.

Specified by:
getMimeCharSet in interface LanguageAccessBeanData
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

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

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

setCountry

public void setCountry(java.lang.String aCountry)

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

The following is a description of this column:

Country or region component of the locale.

Specified by:
setCountry in interface LanguageAccessBeanData
Parameters:
aCountry - java.lang.String
Returns:
void

setEncoding

public void setEncoding(java.lang.String aEncoding)

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

The following is a description of this column:

The character encoding value that the browser should use to display the page for this language.

Specified by:
setEncoding in interface LanguageAccessBeanData
Parameters:
aEncoding - 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

setLanguage

public void setLanguage(java.lang.String aLanguage)

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

The following is a description of this column:

Language component of the locale. For a list of language components, see the LANGUAGE table.

Specified by:
setLanguage in interface LanguageAccessBeanData
Parameters:
aLanguage - java.lang.String
Returns:
void

setLocaleName

public void setLocaleName(java.lang.String aLocaleName)

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 for formatting.

Specified by:
setLocaleName in interface LanguageAccessBeanData
Parameters:
aLocaleName - java.lang.String
Returns:
void

setMimeCharSet

public void setMimeCharSet(java.lang.String aMimeCharSet)

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

The following is a description of this column:

The MIME character encoding value that the notification system will use to encode a message for this language.

Specified by:
setMimeCharSet in interface LanguageAccessBeanData
Parameters:
aMimeCharSet - java.lang.String
Returns:
void

setVariant

public void setVariant(java.lang.String aVariant)

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

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:
setVariant in interface LanguageAccessBeanData
Parameters:
aVariant - java.lang.String
Returns:
void