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.

See Also:
Serialized Form

Constructor Summary
InventoryAdjustmentCodeAccessBean()
          constructor
InventoryAdjustmentCodeAccessBean(java.lang.Integer arg0, java.lang.String arg1)
          constructor
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 arg0, java.lang.Long arg1)
          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 arg0)
          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 provides access to the INVADJCODE.ADJUSTCODE column of DB2 type CHAR(4) NOT NULL.
 void setInitKey_invAdjCodeId(java.lang.String newValue)
          Set the primary key for this object
 void setInvAdjCodeId(java.lang.Long newValue)
          This method provides access to the INVADJCODE.INVADJCODE_ID column of DB2 type BIGINT NOT NULL.
 void setInvAdjCodeId(java.lang.String newValue)
          This method provides access to the INVADJCODE.INVADJCODE_ID column of DB2 type BIGINT NOT NULL.
 void setLastupdate(java.lang.String newValue)
          This method provides access to the INVADJCODE.LASTUPDATE column of DB2 type TIMESTAMP.
 void setLastupdate(java.sql.Timestamp newValue)
          This method provides access to the INVADJCODE.LASTUPDATE column of DB2 type TIMESTAMP.
 void setMarkForDelete(java.lang.Integer newValue)
          This method provides access to the INVADJCODE.MARKFORDELETE column of DB2 type INTEGER DEFAULT 0.
 void setMarkForDelete(java.lang.String newValue)
          This method provides access to the INVADJCODE.MARKFORDELETE column of DB2 type INTEGER DEFAULT 0.
 void setStoreentId(java.lang.Integer newValue)
          This method provides access to the INVADJCODE.STOREENT_ID column of DB2 type INTEGER NOT NULL.
 void setStoreentId(java.lang.String newValue)
          This method provides access to the INVADJCODE.STOREENT_ID column of DB2 type INTEGER NOT NULL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InventoryAdjustmentCodeAccessBean

public InventoryAdjustmentCodeAccessBean()
constructor

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 arg0,
                                         java.lang.String arg1)
                                  throws javax.naming.NamingException,
                                         javax.ejb.CreateException,
                                         java.rmi.RemoteException,
                                         javax.ejb.FinderException
constructor
Parameters:
arg0 - java.lang.Integer
arg1 - java.lang.String
Throws:
javax.naming.NamingException
javax.ejb.CreateException
java.rmi.RemoteException
javax.ejb.FinderException
Method Detail

findByCodeAndStoreentId

public java.util.Enumeration findByCodeAndStoreentId(java.lang.String arg0,
                                                     java.lang.Long arg1)
                                              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 = ?

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 arg0)
                                       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 = ?

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 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:
setLastupdate in interface InventoryAdjustmentCodeAccessBeanData
Parameters:
newValue - String
Returns:
void

setLastupdate

public void setLastupdate(java.sql.Timestamp newValue)

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.

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

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 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:
setMarkForDelete in interface InventoryAdjustmentCodeAccessBeanData
Parameters:
newValue - String
Returns:
void

setMarkForDelete

public void setMarkForDelete(java.lang.Integer newValue)

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

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

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 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:
newValue - String
Returns:
void

setStoreentId

public void setStoreentId(java.lang.Integer newValue)

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:
newValue - java.lang.Integer
Returns:
void

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 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:
newValue - java.lang.String
Returns:
void

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 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:
newValue - String
Returns:
void

setInvAdjCodeId

public void setInvAdjCodeId(java.lang.Long newValue)

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:
newValue - java.lang.Long
Returns:
void

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