com.ibm.commerce.common.objects
Class StoreEntityAccessBean

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

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

Each row of this table represents a StoreEntity. A StoreEntity is an abstract superclass that can represent either a Store or a StoreGroup. This access bean corresponds to the database table 'STOREENT'.

See Also:
Serialized Form

Constructor Summary
StoreEntityAccessBean()
Zero argument constructor used to initialize the access bean.
StoreEntityAccessBean(javax.ejb.EJBObject o)
constructor
Method Summary
void commitCopyHelper()
Update(flush) data to the EJBObject (persistent storage).
protected java.lang.String defaultJNDIName()
StoreEntityAccessBean findByIdentifierAndMemberId(java.lang.String storeIdentifier, java.lang.Long memberId)
Retrieves the StoreEntityAccessBean representing the store with the specified identifier and member ID
java.util.Enumeration findByMember(java.lang.Long memberId)
Retrieves an Enumeration of StoreEntityAccessBeans representing all store with the specified member ID
boolean fulfills(java.lang.Long arg0, java.lang.String arg1)
java.lang.String getDefaultCurrency()
This method provides access to the STOREENT.SETCCURR column of DB2 type CHAR(3).
StoreEntityDescriptionAccessBean getDescription(java.lang.Integer languageId)
Gets the description of the store entity for the specified language ID
java.lang.String getIdentifier()
This method provides access to the STOREENT.IDENTIFIER column of DB2 type VARCHAR(254) NOT NULL.
java.lang.Integer getMarkForDelete()
This method accesses a non-CMP field
java.lang.String getMemberId()
This method provides access to the STOREENT.MEMBER_ID column of DB2 type BIGINT NOT NULL.
java.lang.Long getMemberIdInEJBType()
This method provides access to the STOREENT.MEMBER_ID column of DB2 type BIGINT NOT NULL.
java.lang.Long getOwner()
This method accesses a non-CMP field
java.lang.String getStoreEntityId()
This method provides access to the STOREENT.STOREENT_ID column of DB2 type INTEGER NOT NULL.
java.lang.Integer getStoreEntityIdInEJBType()
This method provides access to the STOREENT.STOREENT_ID column of DB2 type INTEGER NOT NULL.
java.lang.String getType()
Gets the name of the class of the object instance
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setDefaultCurrency(java.lang.String newValue)
This method accesses a non-CMP field
void setIdentifier(java.lang.String newValue)
This method accesses a non-CMP field
void setInitKey_storeEntityId(java.lang.String newValue)
Set the primary key for this object
void setMarkForDelete(java.lang.Integer newValue)
This method accesses a non-CMP field
void setMemberId(java.lang.Long newValue)
This method accesses a non-CMP field
void setMemberId(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

StoreEntityAccessBean

public StoreEntityAccessBean()
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.StoreEntity com.ibm.commerce.common.objects.StoreEntityHome.findByPrimaryKey(com.ibm.commerce.common.objects.StoreEntityKey) 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_storeEntityId( java.lang.Integer )

StoreEntityAccessBean

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

findByIdentifierAndMemberId

public StoreEntityAccessBean findByIdentifierAndMemberId(java.lang.String storeIdentifier,
                                                         java.lang.Long memberId)
                                                  throws java.rmi.RemoteException,
                                                         javax.ejb.FinderException,
                                                         javax.naming.NamingException

Retrieves the StoreEntityAccessBean representing the store with the specified identifier and member ID

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

SELECT * FROM STOREENT T1 WHERE (IDENTIFIER = ? AND MEMBER_ID = ? AND MARKFORDELETE != 1)

Parameters:
storeIdentifier - The store identifier
memberId - The member ID
Returns:
The StoreEntity representing the row that matches the search criteria.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException

findByMember

public java.util.Enumeration findByMember(java.lang.Long memberId)
                                   throws java.rmi.RemoteException,
                                          javax.ejb.FinderException,
                                          javax.naming.NamingException

Retrieves an Enumeration of StoreEntityAccessBeans representing all store with the specified member ID

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

SELECT * FROM STOREENT T1 WHERE (MEMBER_ID = ? AND MARKFORDELETE != 1)

Parameters:
memberId - The member ID
Returns:
An Enumeration of StoreEntityAccessBeans representing the 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_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

getIdentifier

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

This method provides access to the STOREENT.IDENTIFIER column of DB2 type VARCHAR(254) NOT NULL.

The following is a description of this column:

A string that, together with MEMBER_ID, uniquely identifies the StoreEntity.

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

setIdentifier

public void setIdentifier(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 STOREENT.STOREENT_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Generated unique key.

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

The following is a description of this column:

Generated unique key.

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

getMemberId

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

This method provides access to the STOREENT.MEMBER_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The owner of the StoreEntity.

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

getMemberIdInEJBType

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

This method provides access to the STOREENT.MEMBER_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The owner of the StoreEntity.

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

setMemberId

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

setMemberId

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

getType

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

Gets the name of the class of the object instance

Returns:
A class name
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

getDefaultCurrency

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

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

The following is a description of this column:

The default currency for a StoreEntity that will be used by a customer who has not specified a preferred currency. This is a currency code as per ISO 4217 standards. If the currency code is NULL for a Store, the default currency is obtained from its StoreGroup. See also the STORELANG table.

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

setDefaultCurrency

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

fulfills

public boolean fulfills(java.lang.Long arg0,
                        java.lang.String arg1)
                 throws java.rmi.RemoteException,
                        java.lang.Exception,
                        javax.ejb.FinderException,
                        javax.naming.NamingException
Parameters:
arg0 - java.lang.Long
arg1 - java.lang.String
Returns:
boolean
Throws:
java.rmi.RemoteException
java.lang.Exception
javax.ejb.FinderException
javax.naming.NamingException

getDescription

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

Gets the description of the store entity for the specified language ID

Parameters:
languageId - The language ID for the description
Returns:
A com.ibm.commerce.common.objects.StoreEntityDescriptionAccessBean object
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

getOwner

public java.lang.Long getOwner()
                        throws java.lang.Exception,
                               java.rmi.RemoteException,
                               javax.ejb.FinderException,
                               javax.naming.NamingException
This method accesses a non-CMP field
Throws:
java.lang.Exception
java.rmi.RemoteException
javax.ejb.FinderException
javax.naming.NamingException

getMarkForDelete

public java.lang.Integer getMarkForDelete()
                                   throws java.rmi.RemoteException,
                                          javax.ejb.CreateException,
                                          javax.ejb.FinderException,
                                          javax.naming.NamingException
This method accesses a non-CMP field
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setMarkForDelete

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

Feedback