com.ibm.commerce.inventory.objects
Class InventoryAdjustmentCodeAccessBean

java.lang.Object
  com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
      com.ibm.commerce.inventory.objects.InventoryAdjustmentCodeAccessBean
All Implemented Interfaces:
InventoryAdjustmentCodeAccessBeanData

public class InventoryAdjustmentCodeAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements InventoryAdjustmentCodeAccessBeanData

Each row of this table defines an InventoryAdjustmentCode for a Store, or the Stores in a StoreGroup. Each code represents a reason for an InventoryAdjustment, such as broken, lost, or found. This access bean corresponds to the database table 'INVADJCODE'.

See Also:
Serialized Form

Constructor Summary
InventoryAdjustmentCodeAccessBean()
Zero argument constructor used to initialize the access bean.
InventoryAdjustmentCodeAccessBean(java.lang.Integer newStoreentId, java.lang.String newAdjustCode)
Maps to a corresponding ejbCreate method in the home interface of the EJB
InventoryAdjustmentCodeAccessBean(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 findByCodeAndStore(java.lang.String adjustcode, java.lang.Integer storeentId)
Deprecated. use findByCodeAndStoreEntityId method with java.lang.integer
java.util.Enumeration findByCodeAndStoreentId(java.lang.String adjustcode, java.lang.Long storeentId)
Deprecated. use findByCodeAndStoreEntityId method with java.lang.integer
java.util.Enumeration findByCodeAndStoreEntityId(java.lang.String adjustcode, java.lang.Integer storeentId) Retrieves the Inventory Adjusment adjustcode with the specified ADJUSTCODE and STOREENT_ID The SQL query used to fetch the requested row from the INVADJCODE table is:
SELECT * FROM INVADJCODE T1 WHERE T1.ADJUSTCODE = ? AND T1.STOREENT_ID = ?
java.util.Enumeration findByStoreentId(java.lang.Long storeentId)
Deprecated. use findByStoreEntityId method
java.util.Enumeration findByStoreEntityId(java.lang.Integer storeId) Retrieves all the Inventory Adjusment Codes that the Store represents The SQL query used to fetch the requested row from the INVADJCODE table is:
SELECT * FROM INVADJCODE T1 WHERE T1.STOREENT_ID = ?
java.lang.String getAdjustCode()
This method provides access to the INVADJCODE.ADJUSTCODE column of DB2 type CHAR(4) NOT NULL.
java.lang.String getInvAdjCodeId()
This method provides access to the INVADJCODE.INVADJCODE_ID column of DB2 type BIGINT NOT NULL.
java.lang.Long getInvAdjCodeIdInEJBType()
This method provides access to the INVADJCODE.INVADJCODE_ID column of DB2 type BIGINT NOT NULL.
java.lang.String getLastupdate()
This method provides access to the INVADJCODE.LASTUPDATE column of DB2 type TIMESTAMP.
java.sql.Timestamp getLastupdateInEJBType()
This method provides access to the INVADJCODE.LASTUPDATE column of DB2 type TIMESTAMP.
java.lang.String getMarkForDelete()
This method provides access to the INVADJCODE.MARKFORDELETE column of DB2 type INTEGER DEFAULT 0.
java.lang.Integer getMarkForDeleteInEJBType()
This method provides access to the INVADJCODE.MARKFORDELETE column of DB2 type INTEGER DEFAULT 0.
java.lang.String getStoreentId()
This method provides access to the INVADJCODE.STOREENT_ID column of DB2 type INTEGER NOT NULL.
java.lang.Integer getStoreentIdInEJBType()
This method provides access to the INVADJCODE.STOREENT_ID column of DB2 type INTEGER NOT NULL.
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setAdjustCode(java.lang.String newValue)
This method accesses a non-CMP field
void setInitKey_invAdjCodeId(java.lang.String newValue)
Set the primary key for this object
void setInvAdjCodeId(java.lang.Long newValue)
This method accesses a non-CMP field
void setInvAdjCodeId(java.lang.String newValue)
This method accesses a non-CMP field
void setLastupdate(java.lang.String newValue)
This method accesses a non-CMP field
void setLastupdate(java.sql.Timestamp newValue)
This method accesses a non-CMP field
void setMarkForDelete(java.lang.Integer newValue)
This method accesses a non-CMP field
void setMarkForDelete(java.lang.String newValue)
This method accesses a non-CMP field
void setStoreentId(java.lang.Integer newValue)
This method accesses a non-CMP field
void setStoreentId(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

InventoryAdjustmentCodeAccessBean

public InventoryAdjustmentCodeAccessBean()
Zero argument constructor used to initialize the access bean. This constructor corresponds to the following home interface method: public abstract com.ibm.commerce.inventory.objects.InventoryAdjustmentCode com.ibm.commerce.inventory.objimpl.InventoryAdjustmentCodeHomeBase.findByPrimaryKey(com.ibm.commerce.inventory.objects.InventoryAdjustmentCodeKey) 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_invAdjCodeId( java.lang.Long )

InventoryAdjustmentCodeAccessBean

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

InventoryAdjustmentCodeAccessBean

public InventoryAdjustmentCodeAccessBean(java.lang.Integer newStoreentId,
                                         java.lang.String newAdjustCode)
                                  throws javax.naming.NamingException,
                                         javax.ejb.CreateException,
                                         java.rmi.RemoteException,
                                         javax.ejb.FinderException

Maps to a corresponding ejbCreate method in the home interface of the EJB

Parameters:
newStoreentId - - java.lang.Integer
newAdjustCode - - java.lang.String
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
Method Detail

findByCodeAndStoreentId

public java.util.Enumeration findByCodeAndStoreentId(java.lang.String adjustcode,
                                                     java.lang.Long storeentId)
                                              throws java.rmi.RemoteException,
                                                     javax.ejb.FinderException,
                                                     javax.naming.NamingException
Deprecated. use findByCodeAndStoreEntityId method with java.lang.integer

Retrieves the Inventory Adjusment adjustcode with the specified ADJUSTCODE and STOREENT_ID
The SQL query used to fetch the requested row from the
INVADJCODE table is:
SELECT * FROM INVADJCODE T1 WHERE T1.ADJUSTCODE = ? AND T1.STOREENT_ID = ?

Parameters:
adjustcode - - java.lang.String
storeentId - - java.lang.Long
Returns:
java.util.Enumeration
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException

findByStoreentId

public java.util.Enumeration findByStoreentId(java.lang.Long storeentId)
                                       throws java.rmi.RemoteException,
                                              javax.ejb.FinderException,
                                              javax.naming.NamingException
Deprecated. use findByStoreEntityId method

Retrieves all the Inventory Adjusment Codes that the Store represents
The SQL query used to fetch the requested row from the
INVADJCODE table is:
SELECT * FROM INVADJCODE T1 WHERE T1.STOREENT_ID = ?

Parameters:
storeentId - - java.lang.Long
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_invAdjCodeId

public void setInitKey_invAdjCodeId(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

getLastupdate

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

This method provides access to the INVADJCODE.LASTUPDATE column of DB2 type TIMESTAMP.

The following is a description of this column:

The time this InventoryAdjustmentCode was most recently updated.

Specified by:
getLastupdate in interface InventoryAdjustmentCodeAccessBeanData
Returns:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

getLastupdateInEJBType

public java.sql.Timestamp getLastupdateInEJBType()
                                          throws java.rmi.RemoteException,
                                                 javax.ejb.CreateException,
                                                 javax.ejb.FinderException,
                                                 javax.naming.NamingException

This method provides access to the INVADJCODE.LASTUPDATE column of DB2 type TIMESTAMP.

The following is a description of this column:

The time this InventoryAdjustmentCode was most recently updated.

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

setLastupdate

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

setLastupdate

public void setLastupdate(java.sql.Timestamp newValue)
This method accesses a non-CMP field

getMarkForDelete

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

This method provides access to the INVADJCODE.MARKFORDELETE column of DB2 type INTEGER DEFAULT 0.

The following is a description of this column:

Indicates whether the InventoryAdjustmentCode should be deleted:&l

Specified by:
getMarkForDelete in interface InventoryAdjustmentCodeAccessBeanData
Returns:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

getMarkForDeleteInEJBType

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

This method provides access to the INVADJCODE.MARKFORDELETE column of DB2 type INTEGER DEFAULT 0.

The following is a description of this column:

Indicates whether the InventoryAdjustmentCode should be deleted:&l

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

setMarkForDelete

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

setMarkForDelete

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

getStoreentId

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

This method provides access to the INVADJCODE.STOREENT_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The Store or StoreGroup for the InventoryAdjustmentCode. The InventoryAdjustmentCode can be used by the specified Store, or all the Stores in the specified StoreGroup.

Specified by:
getStoreentId in interface InventoryAdjustmentCodeAccessBeanData
Returns:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

getStoreentIdInEJBType

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

This method provides access to the INVADJCODE.STOREENT_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The Store or StoreGroup for the InventoryAdjustmentCode. The InventoryAdjustmentCode can be used by the specified Store, or all the Stores in the specified StoreGroup.

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

setStoreentId

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

setStoreentId

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

getAdjustCode

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

This method provides access to the INVADJCODE.ADJUSTCODE column of DB2 type CHAR(4) NOT NULL.

The following is a description of this column:

A code that uniquely identifies this InventoryAdjustmentCode for a particular StoreEntity, suitable for display in a user interface that manages InventoryAdjustments and InventoryAdjustmentCodes.

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

setAdjustCode

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

getInvAdjCodeId

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

This method provides access to the INVADJCODE.INVADJCODE_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Generated primary key.

Specified by:
getInvAdjCodeId in interface InventoryAdjustmentCodeAccessBeanData
Returns:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

getInvAdjCodeIdInEJBType

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

This method provides access to the INVADJCODE.INVADJCODE_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Generated primary key.

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

setInvAdjCodeId

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

setInvAdjCodeId

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

findByStoreEntityId

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

Retrieves all the Inventory Adjusment Codes that the Store represents
The SQL query used to fetch the requested row from the
INVADJCODE table is:
SELECT * FROM INVADJCODE T1 WHERE T1.STOREENT_ID = ?

Returns:
java.util.Enumeration
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException

findByCodeAndStoreEntityId

public java.util.Enumeration findByCodeAndStoreEntityId(java.lang.String adjustcode,
                                                        java.lang.Integer storeentId)
                                                 throws javax.naming.NamingException,
                                                        javax.ejb.FinderException,
                                                        java.rmi.RemoteException

Retrieves the Inventory Adjusment adjustcode with the specified ADJUSTCODE and STOREENT_ID
The SQL query used to fetch the requested row from the
INVADJCODE table is:
SELECT * FROM INVADJCODE T1 WHERE T1.ADJUSTCODE = ? AND T1.STOREENT_ID = ?

Parameters:
adjustcode - - java.lang.String
storeentId - - 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

findByCodeAndStore

public java.util.Enumeration findByCodeAndStore(java.lang.String adjustcode,
                                                java.lang.Integer storeentId)
                                         throws javax.naming.NamingException,
                                                javax.ejb.FinderException,
                                                java.rmi.RemoteException
Deprecated. use findByCodeAndStoreEntityId method with java.lang.integer

Retrieves the Inventory Adjusment adjustcode with the specified ADJUSTCODE and STOREENT_ID
The SQL query used to fetch the requested row from the
INVADJCODE table is:
SELECT * FROM INVADJCODE T1 WHERE T1.ADJUSTCODE = ? AND T1.STOREENT_ID = ?

Parameters:
adjustcode - - java.lang.String
storeentId - - 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

Feedback