com.ibm.commerce.inventory.objects
Class InventoryAdjustmentCodeAccessBean

java.lang.Object
  |
  +--com.ibm.ivj.ejb.runtime.AbstractAccessBean
        |
        +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
              |
              +--com.ibm.commerce.inventory.objects.InventoryAdjustmentCodeAccessBean
All Implemented Interfaces:
InventoryAdjustmentCodeAccessBeanData, java.io.Serializable

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

This bean provides access to the INVADJCODE table.

The following is a description of this table:

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.

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
InventoryAdjustmentCodeAccessBean()
          Default constructor.
InventoryAdjustmentCodeAccessBean(javax.ejb.EJBObject object)
          Creates an access bean for the specified EJB
InventoryAdjustmentCodeAccessBean(java.lang.Integer StoreentId, java.lang.String AdjustCode)
          Maps to a corresponding ejbCreate method in the home interface of the EJB
 
Method Summary
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
 java.util.Enumeration findByCodeAndStoreentId(java.lang.String Code, java.lang.Long StoreentId)
          Retrieves the Inventory Adjusment Code 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)
          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 NULL.
 java.sql.Timestamp getLastupdateInEJBType()
          This method provides access to the INVADJCODE.LASTUPDATE column of DB2 type TIMESTAMP NULL.
 java.lang.String getMarkForDelete()
          This method provides access to the INVADJCODE.MARKFORDELETE column of DB2 type INTEGER NULL.
 java.lang.Integer getMarkForDeleteInEJBType()
          This method provides access to the INVADJCODE.MARKFORDELETE column of DB2 type INTEGER NULL.
 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.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setAdjustCode(java.lang.String aAdjustCode)
          This method provides access to the INVADJCODE.ADJUSTCODE column of DB2 type CHAR(4) NOT NULL.
 void setInitKey_invAdjCodeId(java.lang.String aInitKey_invAdjCodeId)
          Set the primary key for this object
 void setInvAdjCodeId(java.lang.Long aInvAdjCodeId)
          This method provides access to the INVADJCODE.INVADJCODE_ID column of DB2 type BIGINT NOT NULL.
 void setInvAdjCodeId(java.lang.String aInvAdjCodeId)
          This method provides access to the INVADJCODE.INVADJCODE_ID column of DB2 type BIGINT NOT NULL.
 void setLastupdate(java.lang.String aLastupdate)
          This method provides access to the INVADJCODE.LASTUPDATE column of DB2 type TIMESTAMP NULL.
 void setLastupdate(java.sql.Timestamp aLastupdate)
          This method provides access to the INVADJCODE.LASTUPDATE column of DB2 type TIMESTAMP NULL.
 void setMarkForDelete(java.lang.Integer aMarkForDelete)
          This method provides access to the INVADJCODE.MARKFORDELETE column of DB2 type INTEGER NULL.
 void setMarkForDelete(java.lang.String aMarkForDelete)
          This method provides access to the INVADJCODE.MARKFORDELETE column of DB2 type INTEGER NULL.
 void setStoreentId(java.lang.Integer aStoreentId)
          This method provides access to the INVADJCODE.STOREENT_ID column of DB2 type INTEGER NOT NULL.
 void setStoreentId(java.lang.String aStoreentId)
          This method provides access to the INVADJCODE.STOREENT_ID column of DB2 type INTEGER 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

InventoryAdjustmentCodeAccessBean

public InventoryAdjustmentCodeAccessBean()

Default constructor. Maps to findByPrimaryKey.


InventoryAdjustmentCodeAccessBean

public InventoryAdjustmentCodeAccessBean(javax.ejb.EJBObject object)
                                  throws java.rmi.RemoteException

Creates an access bean for the specified EJB

Parameters:
object - - javax.ejb.EJBObject
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception

InventoryAdjustmentCodeAccessBean

public InventoryAdjustmentCodeAccessBean(java.lang.Integer StoreentId,
                                         java.lang.String AdjustCode)
                                  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:
StoreentId - - java.lang.Integer
AdjustCode - - 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

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

findByCodeAndStoreentId

public java.util.Enumeration findByCodeAndStoreentId(java.lang.String Code,
                                                     java.lang.Long StoreentId)
                                              throws java.rmi.RemoteException,
                                                     javax.ejb.FinderException,
                                                     javax.naming.NamingException

Retrieves the Inventory Adjusment Code 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:
Code - - 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 - The javax.naming.NamingException exception

findByStoreentId

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

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

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

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

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

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

The following is a description of this column:

The time this InventoryAdjustmentCode was most recently updated.

Specified by:
getLastupdate in interface InventoryAdjustmentCodeAccessBeanData
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

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

The following is a description of this column:

The time this InventoryAdjustmentCode was most recently updated.

Returns:
java.sql.Timestamp
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

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

The following is a description of this column:

Indicates whether the InventoryAdjustmentCode should be deleted:
0 = Do not delete. It can be used to adjust inventory.
1 = Marked for delete. It may not be used to adjust inventory.
Refer to the Database Cleanup utility.

Specified by:
getMarkForDelete in interface InventoryAdjustmentCodeAccessBeanData
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

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

The following is a description of this column:

Indicates whether the InventoryAdjustmentCode should be deleted:
0 = Do not delete. It can be used to adjust inventory.
1 = Marked for delete. It may not be used to adjust inventory.
Refer to the Database Cleanup utility.

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

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

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

setAdjustCode

public void setAdjustCode(java.lang.String aAdjustCode)

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:
setAdjustCode in interface InventoryAdjustmentCodeAccessBeanData
Parameters:
aAdjustCode - java.lang.String
Returns:
void

setInitKey_invAdjCodeId

public void setInitKey_invAdjCodeId(java.lang.String aInitKey_invAdjCodeId)

Set the primary key for this object

Parameters:
aInitKey_invAdjCodeId - java.lang.String
Returns:
void

setInvAdjCodeId

public void setInvAdjCodeId(java.lang.Long aInvAdjCodeId)

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.

Parameters:
aInvAdjCodeId - java.lang.Long
Returns:
void

setInvAdjCodeId

public void setInvAdjCodeId(java.lang.String aInvAdjCodeId)

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:
setInvAdjCodeId in interface InventoryAdjustmentCodeAccessBeanData
Parameters:
aInvAdjCodeId - java.lang.String
Returns:
void

setLastupdate

public void setLastupdate(java.lang.String aLastupdate)

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

The following is a description of this column:

The time this InventoryAdjustmentCode was most recently updated.

Specified by:
setLastupdate in interface InventoryAdjustmentCodeAccessBeanData
Parameters:
aLastupdate - java.lang.String
Returns:
void

setLastupdate

public void setLastupdate(java.sql.Timestamp aLastupdate)

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

The following is a description of this column:

The time this InventoryAdjustmentCode was most recently updated.

Parameters:
aLastupdate - java.sql.Timestamp
Returns:
void

setMarkForDelete

public void setMarkForDelete(java.lang.Integer aMarkForDelete)

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

The following is a description of this column:

Indicates whether the InventoryAdjustmentCode should be deleted:
0 = Do not delete. It can be used to adjust inventory.
1 = Marked for delete. It may not be used to adjust inventory.
Refer to the Database Cleanup utility.

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

setMarkForDelete

public void setMarkForDelete(java.lang.String aMarkForDelete)

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

The following is a description of this column:

Indicates whether the InventoryAdjustmentCode should be deleted:
0 = Do not delete. It can be used to adjust inventory.
1 = Marked for delete. It may not be used to adjust inventory.
Refer to the Database Cleanup utility.

Specified by:
setMarkForDelete in interface InventoryAdjustmentCodeAccessBeanData
Parameters:
aMarkForDelete - java.lang.String
Returns:
void

setStoreentId

public void setStoreentId(java.lang.Integer aStoreentId)

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.

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

setStoreentId

public void setStoreentId(java.lang.String aStoreentId)

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:
setStoreentId in interface InventoryAdjustmentCodeAccessBeanData
Parameters:
aStoreentId - java.lang.String
Returns:
void