com.ibm.commerce.common.objects
Class AlternativeLanguageAccessBean

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

public class AlternativeLanguageAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements AlternativeLanguageAccessBeanData

This bean provides access to the LANGPAIR table.

The following is a description of this table:

Each row of this table represents an alternative language relationship, for a particular StoreEntity. When information is not available in the requested language, information in the alternative language may be used instead.

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
AlternativeLanguageAccessBean()
          Default constructor.
AlternativeLanguageAccessBean(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 findAllForStoreGroupSortedByLanguageStoreAndSequence()
          Retrieves all AlternativeLanguageAccessBeans according to the search criteria
 java.util.Enumeration findAllForStoreSortedByLanguageStoreAndSequence()
          Retrieves all AlternativeLanguageAccessBeans according to the search criteria
 java.lang.String getAlternativeLanguageId()
          This method provides access to the LANGPAIR.LANGUAGE_ID_ALT column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getAlternativeLanguageIdInEJBType()
          This method provides access to the LANGPAIR.LANGUAGE_ID_ALT column of DB2 type INTEGER NOT NULL.
 java.lang.String getLanguageId()
          This method provides access to the LANGPAIR.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getLanguageIdInEJBType()
          This method provides access to the LANGPAIR.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.
 java.lang.String getSequence()
          This method provides access to the LANGPAIR.SEQUENCE column of DB2 type FLOAT NOT NULL.
 java.lang.Double getSequenceInEJBType()
          This method provides access to the LANGPAIR.SEQUENCE column of DB2 type FLOAT NOT NULL.
 java.lang.String getStoreEntityId()
          This method provides access to the LANGPAIR.STOREENT_ID column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getStoreEntityIdInEJBType()
          This method provides access to the LANGPAIR.STOREENT_ID column of DB2 type INTEGER NOT NULL.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setInitKey_alternativeLanguageId(java.lang.Integer aInitKey_alternativeLanguageId)
          Set the primary key for this object
 void setInitKey_languageId(java.lang.Integer aInitKey_languageId)
          Set the primary key for this object
 void setInitKey_storeEntityId(java.lang.Integer aInitKey_storeEntityId)
          Set the primary key for this object
 void setSequence(java.lang.Double aSequence)
          This method provides access to the LANGPAIR.SEQUENCE column of DB2 type FLOAT NOT NULL.
 void setSequence(java.lang.String aSequence)
          This method provides access to the LANGPAIR.SEQUENCE column of DB2 type FLOAT NOT 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

AlternativeLanguageAccessBean

public AlternativeLanguageAccessBean()

Default constructor. Maps to findByPrimaryKey.


AlternativeLanguageAccessBean

public AlternativeLanguageAccessBean(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

findAllForStoreGroupSortedByLanguageStoreAndSequence

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

Retrieves all AlternativeLanguageAccessBeans according to the search criteria

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

SELECT * FROM LANGPAIR T1 WHERE T1.STOREENT_ID IN (SELECT STOREGRP.STOREGRP_ID FROM STOREGRP) ORDER BY T1.LANGUAGE_ID, T1.STOREENT_ID, T1.SEQUENCE

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

findAllForStoreSortedByLanguageStoreAndSequence

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

Retrieves all AlternativeLanguageAccessBeans according to the search criteria

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

SELECT * FROM LANGPAIR T1 WHERE T1.STOREENT_ID NOT IN (SELECT STOREGRP.STOREGRP_ID FROM STOREGRP) ORDER BY T1.LANGUAGE_ID, T1.STOREENT_ID, T1.SEQUENCE

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

getAlternativeLanguageId

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

This method provides access to the LANGPAIR.LANGUAGE_ID_ALT column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The alternative language.

Specified by:
getAlternativeLanguageId in interface AlternativeLanguageAccessBeanData
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

getAlternativeLanguageIdInEJBType

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

This method provides access to the LANGPAIR.LANGUAGE_ID_ALT column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The alternative language.

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

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

The following is a description of this column:

The requested language. For a list of language components, see the LANGUAGE table.

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

The following is a description of this column:

The requested language. 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

getSequence

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

This method provides access to the LANGPAIR.SEQUENCE column of DB2 type FLOAT NOT NULL.

The following is a description of this column:

When the requested language is supported (see the STORELANG table) but information is not available in that language, each alternative language is tried in ascending order of SEQUENCE. A Store may override the SEQUENCE specified for its StoreGroup.

Specified by:
getSequence in interface AlternativeLanguageAccessBeanData
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

getSequenceInEJBType

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

This method provides access to the LANGPAIR.SEQUENCE column of DB2 type FLOAT NOT NULL.

The following is a description of this column:

When the requested language is supported (see the STORELANG table) but information is not available in that language, each alternative language is tried in ascending order of SEQUENCE. A Store may override the SEQUENCE specified for its StoreGroup.

Returns:
java.lang.Double
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 LANGPAIR.STOREENT_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The StoreEntity this relationship is part of. The alternative language relationships for a store include the alternative language relationships for its StoreGroup.

Specified by:
getStoreEntityId in interface AlternativeLanguageAccessBeanData
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 LANGPAIR.STOREENT_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The StoreEntity this relationship is part of. The alternative language relationships for a store include the alternative language relationships for 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

setInitKey_alternativeLanguageId

public void setInitKey_alternativeLanguageId(java.lang.Integer aInitKey_alternativeLanguageId)

Set the primary key for this object

Parameters:
aInitKey_alternativeLanguageId - java.lang.Integer
Returns:
void

setInitKey_languageId

public void setInitKey_languageId(java.lang.Integer aInitKey_languageId)

Set the primary key for this object

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

setInitKey_storeEntityId

public void setInitKey_storeEntityId(java.lang.Integer aInitKey_storeEntityId)

Set the primary key for this object

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

setSequence

public void setSequence(java.lang.Double aSequence)

This method provides access to the LANGPAIR.SEQUENCE column of DB2 type FLOAT NOT NULL.

The following is a description of this column:

When the requested language is supported (see the STORELANG table) but information is not available in that language, each alternative language is tried in ascending order of SEQUENCE. A Store may override the SEQUENCE specified for its StoreGroup.

Parameters:
aSequence - java.lang.Double
Returns:
void

setSequence

public void setSequence(java.lang.String aSequence)

This method provides access to the LANGPAIR.SEQUENCE column of DB2 type FLOAT NOT NULL.

The following is a description of this column:

When the requested language is supported (see the STORELANG table) but information is not available in that language, each alternative language is tried in ascending order of SEQUENCE. A Store may override the SEQUENCE specified for its StoreGroup.

Specified by:
setSequence in interface AlternativeLanguageAccessBeanData
Parameters:
aSequence - java.lang.String
Returns:
void