com.ibm.commerce.payment.objects
Class CreditLineAccessBean

java.lang.Object
  com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
      com.ibm.commerce.payment.objects.CreditLineAccessBean
All Implemented Interfaces:
CreditLineAccessBeanData

public class CreditLineAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements CreditLineAccessBeanData

Each row of this table represents a credit line the account holder (buyer organization) has with the seller organization. This credit line is associated with a specific business account. This access bean corresponds to the database table 'CREDITLINE'.

See Also:
Serialized Form

Constructor Summary
CreditLineAccessBean()
Zero argument constructor used to initialize the access bean.
CreditLineAccessBean(javax.ejb.EJBObject o)
constructor
CreditLineAccessBean(java.lang.Long newAccountId, java.lang.Integer newState, java.lang.String newCurrency, java.sql.Timestamp newTimeCreated)
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).
protected java.lang.String defaultJNDIName()
java.util.Enumeration findByAccountId(java.lang.Long accountId)
Retrieves the CreditLine objects associated with the specified Account.
java.lang.String getAccountId()
This method provides access to the CREDITLINE.ACCOUNT_ID column of DB2 type BIGINT.
java.lang.Long getAccountIdInEJBType()
This method provides access to the CREDITLINE.ACCOUNT_ID column of DB2 type BIGINT.
java.lang.String getCreditLimit()
This method provides access to the CREDITLINE.CREDITLIMIT column of DB2 type DECIMAL(20 5).
java.math.BigDecimal getCreditLimitInEJBType()
This method provides access to the CREDITLINE.CREDITLIMIT column of DB2 type DECIMAL(20 5).
java.lang.String getCreditLineId()
This method provides access to the CREDITLINE.CREDITLINE_ID column of DB2 type BIGINT NOT NULL.
java.lang.Long getCreditLineIdInEJBType()
This method provides access to the CREDITLINE.CREDITLINE_ID column of DB2 type BIGINT NOT NULL.
java.lang.String getCurrency()
This method provides access to the CREDITLINE.SETCCURR column of DB2 type CHAR(3).
java.lang.String getDecimalField1()
This method provides access to the CREDITLINE.DECIMALFIELD1 column of DB2 type DECIMAL(20 5).
java.math.BigDecimal getDecimalField1InEJBType()
This method provides access to the CREDITLINE.DECIMALFIELD1 column of DB2 type DECIMAL(20 5).
java.lang.String getDecimalField2()
This method provides access to the CREDITLINE.DECIMALFIELD2 column of DB2 type DECIMAL(20 5).
java.math.BigDecimal getDecimalField2InEJBType()
This method provides access to the CREDITLINE.DECIMALFIELD2 column of DB2 type DECIMAL(20 5).
java.lang.String getState()
This method provides access to the CREDITLINE.STATE column of DB2 type INTEGER DEFAULT 0.
java.lang.Integer getStateInEJBType()
This method provides access to the CREDITLINE.STATE column of DB2 type INTEGER DEFAULT 0.
java.lang.String getTimeCreated()
This method provides access to the CREDITLINE.TIMECREATED column of DB2 type TIMESTAMP.
java.sql.Timestamp getTimeCreatedInEJBType()
This method provides access to the CREDITLINE.TIMECREATED column of DB2 type TIMESTAMP.
java.lang.String getTimeUpdated()
This method provides access to the CREDITLINE.TIMEUPDATED column of DB2 type TIMESTAMP.
java.sql.Timestamp getTimeUpdatedInEJBType()
This method provides access to the CREDITLINE.TIMEUPDATED column of DB2 type TIMESTAMP.
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setAccountId(java.lang.Long newValue)
This method accesses a non-CMP field
void setAccountId(java.lang.String newValue)
This method accesses a non-CMP field
void setCreditLimit(java.math.BigDecimal newValue)
This method accesses a non-CMP field
void setCreditLimit(java.lang.String newValue)
This method accesses a non-CMP field
void setCreditLineId(java.lang.Long newValue)
This method accesses a non-CMP field
void setCreditLineId(java.lang.String newValue)
This method accesses a non-CMP field
void setCurrency(java.lang.String newValue)
This method accesses a non-CMP field
void setDecimalField1(java.math.BigDecimal newValue)
This method accesses a non-CMP field
void setDecimalField1(java.lang.String newValue)
This method accesses a non-CMP field
void setDecimalField2(java.math.BigDecimal newValue)
This method accesses a non-CMP field
void setDecimalField2(java.lang.String newValue)
This method accesses a non-CMP field
void setInitKey_creditLineId(java.lang.String newValue)
Set the primary key for this object
void setState(java.lang.Integer newValue)
This method accesses a non-CMP field
void setState(java.lang.String newValue)
This method accesses a non-CMP field
void setTimeCreated(java.lang.String newValue)
This method accesses a non-CMP field
void setTimeCreated(java.sql.Timestamp newValue)
This method accesses a non-CMP field
void setTimeUpdated(java.lang.String newValue)
This method accesses a non-CMP field
void setTimeUpdated(java.sql.Timestamp 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

CreditLineAccessBean

public CreditLineAccessBean()
Zero argument constructor used to initialize the access bean. This constructor corresponds to the following home interface method: public abstract com.ibm.commerce.payment.objects.CreditLine com.ibm.commerce.payment.objimpl.CreditLineHomeBase.findByPrimaryKey(com.ibm.commerce.payment.objects.CreditLineKey) 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_creditLineId( java.lang.Long )

CreditLineAccessBean

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

CreditLineAccessBean

public CreditLineAccessBean(java.lang.Long newAccountId,
                            java.lang.Integer newState,
                            java.lang.String newCurrency,
                            java.sql.Timestamp newTimeCreated)
                     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

Parameters:
newAccountId - The internal ID of the Account to which the Credit line belongs.
newState - The newState of the Credit line. The following newStates are defined. 0 = unknown 1 = active - available for ordering 2 = closed or suspended - not available for ordering
newCurrency - The newCurrency of the credit limit if specified.
newTimeCreated - The time when the Credit line was created.
Throws:
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception
Method Detail

findByAccountId

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

Retrieves the CreditLine objects associated with the specified Account.

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

SELECT * FROM CREDITLINE T1 WHERE T1.ACCOUNT_ID=?

Parameters:
accountId - The ID of the Account.
Returns:
An Enumeration of the CreditLineAccessBeans representing 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_creditLineId

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

getState

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

This method provides access to the CREDITLINE.STATE column of DB2 type INTEGER DEFAULT 0.

The following is a description of this column:

State of the CreditLine:&l

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

getStateInEJBType

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

This method provides access to the CREDITLINE.STATE column of DB2 type INTEGER DEFAULT 0.

The following is a description of this column:

State of the CreditLine:&l

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

setState

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

setState

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

getDecimalField2

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

This method provides access to the CREDITLINE.DECIMALFIELD2 column of DB2 type DECIMAL(20 5).

The following is a description of this column:

Customizable.

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

getDecimalField2InEJBType

public java.math.BigDecimal getDecimalField2InEJBType()
                                               throws java.rmi.RemoteException,
                                                      javax.ejb.CreateException,
                                                      javax.ejb.FinderException,
                                                      javax.naming.NamingException

This method provides access to the CREDITLINE.DECIMALFIELD2 column of DB2 type DECIMAL(20 5).

The following is a description of this column:

Customizable.

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

setDecimalField2

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

setDecimalField2

public void setDecimalField2(java.math.BigDecimal newValue)
This method accesses a non-CMP field

getDecimalField1

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

This method provides access to the CREDITLINE.DECIMALFIELD1 column of DB2 type DECIMAL(20 5).

The following is a description of this column:

Customizable.

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

getDecimalField1InEJBType

public java.math.BigDecimal getDecimalField1InEJBType()
                                               throws java.rmi.RemoteException,
                                                      javax.ejb.CreateException,
                                                      javax.ejb.FinderException,
                                                      javax.naming.NamingException

This method provides access to the CREDITLINE.DECIMALFIELD1 column of DB2 type DECIMAL(20 5).

The following is a description of this column:

Customizable.

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

setDecimalField1

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

setDecimalField1

public void setDecimalField1(java.math.BigDecimal newValue)
This method accesses a non-CMP field

getAccountId

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

This method provides access to the CREDITLINE.ACCOUNT_ID column of DB2 type BIGINT.

The following is a description of this column:

The ID of the business account to which the credit line belongs. Foreign key to the ACCOUNT table.

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

getAccountIdInEJBType

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

This method provides access to the CREDITLINE.ACCOUNT_ID column of DB2 type BIGINT.

The following is a description of this column:

The ID of the business account to which the credit line belongs. Foreign key to the ACCOUNT table.

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

setAccountId

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

setAccountId

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

getTimeUpdated

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

This method provides access to the CREDITLINE.TIMEUPDATED column of DB2 type TIMESTAMP.

The following is a description of this column:

Time credit line is updated.

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

getTimeUpdatedInEJBType

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

This method provides access to the CREDITLINE.TIMEUPDATED column of DB2 type TIMESTAMP.

The following is a description of this column:

Time credit line is updated.

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

setTimeUpdated

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

setTimeUpdated

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

getCurrency

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

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

The following is a description of this column:

Currency of the credit limit if specified. (This is a currency code as per ISO 4217 standards.)

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

setCurrency

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

getCreditLimit

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

This method provides access to the CREDITLINE.CREDITLIMIT column of DB2 type DECIMAL(20 5).

The following is a description of this column:

Reserved for IBM internal use.

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

getCreditLimitInEJBType

public java.math.BigDecimal getCreditLimitInEJBType()
                                             throws java.rmi.RemoteException,
                                                    javax.ejb.CreateException,
                                                    javax.ejb.FinderException,
                                                    javax.naming.NamingException

This method provides access to the CREDITLINE.CREDITLIMIT column of DB2 type DECIMAL(20 5).

The following is a description of this column:

Reserved for IBM internal use.

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

setCreditLimit

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

setCreditLimit

public void setCreditLimit(java.math.BigDecimal newValue)
This method accesses a non-CMP field

getCreditLineId

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

This method provides access to the CREDITLINE.CREDITLINE_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Generated unique key for this row.

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

getCreditLineIdInEJBType

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

This method provides access to the CREDITLINE.CREDITLINE_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Generated unique key for this row.

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

setCreditLineId

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

setCreditLineId

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

getTimeCreated

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

This method provides access to the CREDITLINE.TIMECREATED column of DB2 type TIMESTAMP.

The following is a description of this column:

Time credit line is created.

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

getTimeCreatedInEJBType

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

This method provides access to the CREDITLINE.TIMECREATED column of DB2 type TIMESTAMP.

The following is a description of this column:

Time credit line is created.

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

setTimeCreated

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

setTimeCreated

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

Feedback