|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.ivj.ejb.runtime.AbstractAccessBean | +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean | +--com.ibm.commerce.payment.objects.BuyerPurchaseOrderAccessBean
This bean provides access to the BUYERPO table.
The following is a description of this table:
Each row of this table represents a Purchase Order Number that the Buyer organization of the Account has defined or used for Trading with the Seller organization. The number is only unique within the Account.
Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean |
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef |
Constructor Summary | |
BuyerPurchaseOrderAccessBean()
Default constructor. |
|
BuyerPurchaseOrderAccessBean(javax.ejb.EJBObject object)
Creates an access bean for the specified EJB |
|
BuyerPurchaseOrderAccessBean(java.lang.Long accountId,
java.lang.String aPONumber,
java.lang.Integer buyerPOType)
Maps to a corresponding ejbCreate method in the home interface of the EJB |
|
BuyerPurchaseOrderAccessBean(java.lang.Long accountId,
java.lang.String aPONumber,
java.lang.Integer buyerPOType,
java.lang.Integer state,
java.math.BigDecimal amount,
java.lang.String currency)
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). |
BuyerPurchaseOrderAccessBean |
findByAccountIdAndPurchaseOrderNumber(java.lang.Long accountId,
java.lang.String aPONumber)
Retrieves the BuyerPurchaseOrder AccessBean with the specified Purchase Order Number that has been registered with the Account. |
java.lang.String |
getAccountId()
This method provides access to the BUYERPO.ACCOUNT_ID column of DB2 type BIGINT NULL. |
java.lang.Long |
getAccountIdInEJBType()
This method provides access to the BUYERPO.ACCOUNT_ID column of DB2 type BIGINT NULL. |
java.lang.String |
getAmount()
This method provides access to the BUYERPO.AMOUNT column of DB2 type DECIMAL(20,5) NULL. |
java.math.BigDecimal |
getAmountInEJBType()
This method provides access to the BUYERPO.AMOUNT column of DB2 type DECIMAL(20,5) NULL. |
java.lang.String |
getBuyerPurchaseOrderId()
This method provides access to the BUYERPO.BUYERPO_ID column of DB2 type BIGINT NOT NULL. |
java.lang.Long |
getBuyerPurchaseOrderIdInEJBType()
This method provides access to the BUYERPO.BUYERPO_ID column of DB2 type BIGINT NOT NULL. |
java.lang.String |
getBuyerPurchaseOrderTypeId()
This method provides access to the BUYERPO.BUYERPOTYP_ID column of DB2 type INTEGER NOT NULL. |
java.lang.Integer |
getBuyerPurchaseOrderTypeIdInEJBType()
This method provides access to the BUYERPO.BUYERPOTYP_ID column of DB2 type INTEGER NOT NULL. |
java.lang.String |
getCurrency()
This method provides access to the BUYERPO.SETCCURR column of DB2 type CHAR(3) NULL. |
java.lang.String |
getPurchaseOrderNumber()
This method provides access to the BUYERPO.PONUMBER column of DB2 type VARCHAR(128) NOT NULL. |
java.lang.String |
getState()
This method provides access to the BUYERPO.STATE column of DB2 type INTEGER NULL. |
java.lang.Integer |
getStateInEJBType()
This method provides access to the BUYERPO.STATE column of DB2 type INTEGER NULL. |
void |
refreshCopyHelper()
Load data from the EJBObject. |
void |
setAccountId(java.lang.Long aAccountId)
This method provides access to the BUYERPO.ACCOUNT_ID column of DB2 type BIGINT NULL. |
void |
setAccountId(java.lang.String aAccountId)
This method provides access to the BUYERPO.ACCOUNT_ID column of DB2 type BIGINT NULL. |
void |
setAmount(java.math.BigDecimal aAmount)
This method provides access to the BUYERPO.AMOUNT column of DB2 type DECIMAL(20,5) NULL. |
void |
setAmount(java.lang.String aAmount)
This method provides access to the BUYERPO.AMOUNT column of DB2 type DECIMAL(20,5) NULL. |
void |
setBuyerPurchaseOrderId(java.lang.Long aBuyerPurchaseOrderId)
This method provides access to the BUYERPO.BUYERPO_ID column of DB2 type BIGINT NOT NULL. |
void |
setBuyerPurchaseOrderId(java.lang.String aBuyerPurchaseOrderId)
This method provides access to the BUYERPO.BUYERPO_ID column of DB2 type BIGINT NOT NULL. |
void |
setBuyerPurchaseOrderTypeId(java.lang.Integer aBuyerPurchaseOrderTypeId)
This method provides access to the BUYERPO.BUYERPOTYP_ID column of DB2 type INTEGER NOT NULL. |
void |
setBuyerPurchaseOrderTypeId(java.lang.String aBuyerPurchaseOrderTypeId)
This method provides access to the BUYERPO.BUYERPOTYP_ID column of DB2 type INTEGER NOT NULL. |
void |
setCurrency(java.lang.String aCurrency)
This method provides access to the BUYERPO.SETCCURR column of DB2 type CHAR(3) NULL. |
void |
setInitKey_buyerPurchaseOrderId(java.lang.String aInitKey_buyerPurchaseOrderId)
Set the primary key for this object |
void |
setPurchaseOrderNumber(java.lang.String aPurchaseOrderNumber)
This method provides access to the BUYERPO.PONUMBER column of DB2 type VARCHAR(128) NOT NULL. |
void |
setState(java.lang.Integer aState)
This method provides access to the BUYERPO.STATE column of DB2 type INTEGER NULL. |
void |
setState(java.lang.String aState)
This method provides access to the BUYERPO.STATE column of DB2 type INTEGER 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 |
public BuyerPurchaseOrderAccessBean()
Default constructor. Maps to findByPrimaryKey.
public BuyerPurchaseOrderAccessBean(javax.ejb.EJBObject object) throws java.rmi.RemoteException
Creates an access bean for the specified EJB
object
- The EJB Object used for the access bean construction.java.rmi.RemoteException
- The java.rmi.RemoteException exceptionpublic BuyerPurchaseOrderAccessBean(java.lang.Long accountId, java.lang.String aPONumber, java.lang.Integer buyerPOType) throws javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException, java.rmi.RemoteException
Maps to a corresponding ejbCreate method in the home interface of the EJB
accountId
- The ID of the Account.aPONumber
- The Purchase Order Number.buyerPOType
- An integer representing the type of BuyerPO to be created and registered to the Account.javax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionjava.rmi.RemoteException
- The java.rmi.RemoteException exceptionpublic BuyerPurchaseOrderAccessBean(java.lang.Long accountId, java.lang.String aPONumber, java.lang.Integer buyerPOType, java.lang.Integer state, java.math.BigDecimal amount, java.lang.String currency) throws javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException, java.rmi.RemoteException
Maps to a corresponding ejbCreate method in the home interface of the EJB
accountId
- The ID of the Account.aPONumber
- The Purchase Order Number.buyerPOType
- An integer representing the type of BuyerPO to be created and registered to the Account.state
- The state of the BuyerPO to be created.amount
- The maximum amount that can be purchased with this purchase order.currency
- The amount currency.javax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionjava.rmi.RemoteException
- The java.rmi.RemoteException exceptionMethod Detail |
public void commitCopyHelper() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
Update(flush) data to the EJBObject (persistent storage).
commitCopyHelper
in class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic BuyerPurchaseOrderAccessBean findByAccountIdAndPurchaseOrderNumber(java.lang.Long accountId, java.lang.String aPONumber) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException
Retrieves the BuyerPurchaseOrder AccessBean with the specified Purchase Order Number that has been registered with the Account.
The SQL query used to fetch the requested row from the BUYERPO table is:
SELECT * FROM BUYERPO T1 WHERE T1.ACCOUNT_ID=? AND T1.PONUMBER=?
accountId
- The ID of the account.aPONumber
- The purchase order number.java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic java.lang.String getAccountId() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
This method provides access to the BUYERPO.ACCOUNT_ID column of DB2 type BIGINT NULL.
The following is a description of this column:
The ID of the business account to which the Buyer Purchase Order Number belongs. Foreign key to the ACCOUNT table.
getAccountId
in interface BuyerPurchaseOrderAccessBeanData
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic java.lang.Long getAccountIdInEJBType() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
This method provides access to the BUYERPO.ACCOUNT_ID column of DB2 type BIGINT NULL.
The following is a description of this column:
The ID of the business account to which the Buyer Purchase Order Number belongs. Foreign key to the ACCOUNT table.
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic java.lang.String getAmount() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
This method provides access to the BUYERPO.AMOUNT column of DB2 type DECIMAL(20,5) NULL.
The following is a description of this column:
Amount for Limited Purchase Order.
getAmount
in interface BuyerPurchaseOrderAccessBeanData
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic java.math.BigDecimal getAmountInEJBType() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
This method provides access to the BUYERPO.AMOUNT column of DB2 type DECIMAL(20,5) NULL.
The following is a description of this column:
Amount for Limited Purchase Order.
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic java.lang.String getBuyerPurchaseOrderId() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
This method provides access to the BUYERPO.BUYERPO_ID column of DB2 type BIGINT NOT NULL.
The following is a description of this column:
Generated unique key for this row.
getBuyerPurchaseOrderId
in interface BuyerPurchaseOrderAccessBeanData
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic java.lang.Long getBuyerPurchaseOrderIdInEJBType() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
This method provides access to the BUYERPO.BUYERPO_ID column of DB2 type BIGINT NOT NULL.
The following is a description of this column:
Generated unique key for this row.
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic java.lang.String getBuyerPurchaseOrderTypeId() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
This method provides access to the BUYERPO.BUYERPOTYP_ID column of DB2 type INTEGER NOT NULL.
The following is a description of this column:
Type of the Buyer Purchase Order Number. The types are defined in the BUYERPOTYP table.
getBuyerPurchaseOrderTypeId
in interface BuyerPurchaseOrderAccessBeanData
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic java.lang.Integer getBuyerPurchaseOrderTypeIdInEJBType() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
This method provides access to the BUYERPO.BUYERPOTYP_ID column of DB2 type INTEGER NOT NULL.
The following is a description of this column:
Type of the Buyer Purchase Order Number. The types are defined in the BUYERPOTYP table.
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic java.lang.String getCurrency() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
This method provides access to the BUYERPO.SETCCURR column of DB2 type CHAR(3) NULL.
The following is a description of this column:
Currency of the Amount field. Alphabetic currency code as per ISO 4217.
getCurrency
in interface BuyerPurchaseOrderAccessBeanData
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic java.lang.String getPurchaseOrderNumber() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
This method provides access to the BUYERPO.PONUMBER column of DB2 type VARCHAR(128) NOT NULL.
The following is a description of this column:
The Buyer Purchase Order Number.
getPurchaseOrderNumber
in interface BuyerPurchaseOrderAccessBeanData
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic java.lang.String getState() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
This method provides access to the BUYERPO.STATE column of DB2 type INTEGER NULL.
The following is a description of this column:
State of the Purchase Order Number: 0=Undefined, 1=Active, available for Order, 2=Closed, cannot be used for Order.
getState
in interface BuyerPurchaseOrderAccessBeanData
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic java.lang.Integer getStateInEJBType() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
This method provides access to the BUYERPO.STATE column of DB2 type INTEGER NULL.
The following is a description of this column:
State of the Purchase Order Number: 0=Undefined, 1=Active, available for Order, 2=Closed, cannot be used for Order.
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic void refreshCopyHelper() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
Load data from the EJBObject.
refreshCopyHelper
in class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic void setAccountId(java.lang.Long aAccountId)
This method provides access to the BUYERPO.ACCOUNT_ID column of DB2 type BIGINT NULL.
The following is a description of this column:
The ID of the business account to which the Buyer Purchase Order Number belongs. Foreign key to the ACCOUNT table.
aAccountId
- java.lang.Longpublic void setAccountId(java.lang.String aAccountId)
This method provides access to the BUYERPO.ACCOUNT_ID column of DB2 type BIGINT NULL.
The following is a description of this column:
The ID of the business account to which the Buyer Purchase Order Number belongs. Foreign key to the ACCOUNT table.
setAccountId
in interface BuyerPurchaseOrderAccessBeanData
aAccountId
- java.lang.Stringpublic void setAmount(java.math.BigDecimal aAmount)
This method provides access to the BUYERPO.AMOUNT column of DB2 type DECIMAL(20,5) NULL.
The following is a description of this column:
Amount for Limited Purchase Order.
aAmount
- java.math.BigDecimalpublic void setAmount(java.lang.String aAmount)
This method provides access to the BUYERPO.AMOUNT column of DB2 type DECIMAL(20,5) NULL.
The following is a description of this column:
Amount for Limited Purchase Order.
setAmount
in interface BuyerPurchaseOrderAccessBeanData
aAmount
- java.lang.Stringpublic void setBuyerPurchaseOrderId(java.lang.Long aBuyerPurchaseOrderId)
This method provides access to the BUYERPO.BUYERPO_ID column of DB2 type BIGINT NOT NULL.
The following is a description of this column:
Generated unique key for this row.
aBuyerPurchaseOrderId
- java.lang.Longpublic void setBuyerPurchaseOrderId(java.lang.String aBuyerPurchaseOrderId)
This method provides access to the BUYERPO.BUYERPO_ID column of DB2 type BIGINT NOT NULL.
The following is a description of this column:
Generated unique key for this row.
setBuyerPurchaseOrderId
in interface BuyerPurchaseOrderAccessBeanData
aBuyerPurchaseOrderId
- java.lang.Stringpublic void setBuyerPurchaseOrderTypeId(java.lang.Integer aBuyerPurchaseOrderTypeId)
This method provides access to the BUYERPO.BUYERPOTYP_ID column of DB2 type INTEGER NOT NULL.
The following is a description of this column:
Type of the Buyer Purchase Order Number. The types are defined in the BUYERPOTYP table.
aBuyerPurchaseOrderTypeId
- java.lang.Integerpublic void setBuyerPurchaseOrderTypeId(java.lang.String aBuyerPurchaseOrderTypeId)
This method provides access to the BUYERPO.BUYERPOTYP_ID column of DB2 type INTEGER NOT NULL.
The following is a description of this column:
Type of the Buyer Purchase Order Number. The types are defined in the BUYERPOTYP table.
setBuyerPurchaseOrderTypeId
in interface BuyerPurchaseOrderAccessBeanData
aBuyerPurchaseOrderTypeId
- java.lang.Stringpublic void setCurrency(java.lang.String aCurrency)
This method provides access to the BUYERPO.SETCCURR column of DB2 type CHAR(3) NULL.
The following is a description of this column:
Currency of the Amount field. Alphabetic currency code as per ISO 4217.
setCurrency
in interface BuyerPurchaseOrderAccessBeanData
aCurrency
- java.lang.Stringpublic void setInitKey_buyerPurchaseOrderId(java.lang.String aInitKey_buyerPurchaseOrderId)
Set the primary key for this object
aInitKey_buyerPurchaseOrderId
- java.lang.Stringpublic void setPurchaseOrderNumber(java.lang.String aPurchaseOrderNumber)
This method provides access to the BUYERPO.PONUMBER column of DB2 type VARCHAR(128) NOT NULL.
The following is a description of this column:
The Buyer Purchase Order Number.
setPurchaseOrderNumber
in interface BuyerPurchaseOrderAccessBeanData
aPurchaseOrderNumber
- java.lang.Stringpublic void setState(java.lang.Integer aState)
This method provides access to the BUYERPO.STATE column of DB2 type INTEGER NULL.
The following is a description of this column:
State of the Purchase Order Number: 0=Undefined, 1=Active, available for Order, 2=Closed, cannot be used for Order.
aState
- java.lang.Integerpublic void setState(java.lang.String aState)
This method provides access to the BUYERPO.STATE column of DB2 type INTEGER NULL.
The following is a description of this column:
State of the Purchase Order Number: 0=Undefined, 1=Active, available for Order, 2=Closed, cannot be used for Order.
setState
in interface BuyerPurchaseOrderAccessBeanData
aState
- java.lang.String
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |