com.ibm.commerce.order.objects
Class OfferBean

com.ibm.commerce.order.objects.OfferBean
All Implemented Interfaces:
java.io.Serializable

public class OfferBean
implements java.io.Serializable

This bean provides access to the OFFER table.

The following is a description of this table:

Each row of this table represents an Offer to sell a product identified by a CatalogEntry.

See Also:
Serialized Form

Constructor Summary
OfferBean()
           
 
Method Summary
 java.lang.Long getCatalogEntryReferenceNumber()
          This method provides access to the OFFER.CATENTRY_ID column of DB2 type BIGINT NOT NULL.
 java.sql.Timestamp getEndDate()
          This method provides access to the OFFER.ENDDATE column of DB2 type TIMESTAMP NULL.
 java.lang.String getField1()
          This method provides access to the OFFER.FIELD1 column of DB2 type CHAR(30) NULL.
 java.lang.String getField2()
          This method provides access to the OFFER.FIELD2 column of DB2 type CHAR(1) NULL.
 java.lang.Integer getFlags()
          This method provides access to the OFFER.FLAGS column of DB2 type INTEGER NOT NULL.
 java.lang.Long getIdentifier()
          This method provides access to the OFFER.IDENTIFIER column of DB2 type BIGINT NULL.
 java.sql.Timestamp getLastUpdate()
          This method provides access to the OFFER.LASTUPDATE column of DB2 type TIMESTAMP NULL.
 java.lang.Double getMaximumQuantity()
          This method provides access to the OFFER.MAXIMUMQUANTITY column of DB2 type FLOAT NULL.
 java.lang.Double getMinimumQuantity()
          This method provides access to the OFFER.MINIMUMQUANTITY column of DB2 type FLOAT NULL.
 java.lang.Long getOfferId()
          This method provides access to the OFFER.OFFER_ID column of DB2 type BIGINT NOT NULL.
 java.lang.String getOID()
          This method provides access to the OFFER.OID column of DB2 type VARCHAR(64) NULL.
 java.lang.Double getPrecedence()
          This method provides access to the OFFER.PRECEDENCE column of DB2 type FLOAT NOT NULL.
 java.lang.Integer getPublished()
          This method provides access to the OFFER.PUBLISHED column of DB2 type INTEGER NOT NULL.
 java.lang.String getQuantityUnitId()
          This method provides access to the OFFER.QTYUNIT_ID column of DB2 type CHAR(16) NULL.
 java.sql.Timestamp getStartDate()
          This method provides access to the OFFER.STARTDATE column of DB2 type TIMESTAMP NULL.
 java.lang.Long getTradePosContainerId()
          This method provides access to the OFFER.TRADEPOSCN_ID column of DB2 type BIGINT NOT NULL.
 void setCatalogEntryReferenceNumber(java.lang.Long aCatalogEntryReferenceNumber)
          This method provides access to the OFFER.CATENTRY_ID column of DB2 type BIGINT NOT NULL.
 void setEndDate(java.sql.Timestamp aEndDate)
          This method provides access to the OFFER.ENDDATE column of DB2 type TIMESTAMP NULL.
 void setField1(java.lang.String aField1)
          This method provides access to the OFFER.FIELD1 column of DB2 type CHAR(30) NULL.
 void setField2(java.lang.String aField2)
          This method provides access to the OFFER.FIELD2 column of DB2 type CHAR(1) NULL.
 void setFlags(java.lang.Integer aFlags)
          This method provides access to the OFFER.FLAGS column of DB2 type INTEGER NOT NULL.
 void setIdentifier(java.lang.Long aIdentifier)
          This method provides access to the OFFER.IDENTIFIER column of DB2 type BIGINT NULL.
 void setLastUpdate(java.sql.Timestamp aLastUpdate)
          This method provides access to the OFFER.LASTUPDATE column of DB2 type TIMESTAMP NULL.
 void setMaximumQuantity(java.lang.Double aMaximumQuantity)
          This method provides access to the OFFER.MAXIMUMQUANTITY column of DB2 type FLOAT NULL.
 void setMinimumQuantity(java.lang.Double aMinimumQuantity)
          This method provides access to the OFFER.MINIMUMQUANTITY column of DB2 type FLOAT NULL.
 void setOID(java.lang.String aOID)
          This method provides access to the OFFER.OID column of DB2 type VARCHAR(64) NULL.
 void setPrecedence(java.lang.Double aPrecedence)
          This method provides access to the OFFER.PRECEDENCE column of DB2 type FLOAT NOT NULL.
 void setPublished(java.lang.Integer aPublished)
          This method provides access to the OFFER.PUBLISHED column of DB2 type INTEGER NOT NULL.
 void setQuantityUnitId(java.lang.String aQuantityUnitId)
          This method provides access to the OFFER.QTYUNIT_ID column of DB2 type CHAR(16) NULL.
 void setStartDate(java.sql.Timestamp aStartDate)
          This method provides access to the OFFER.STARTDATE column of DB2 type TIMESTAMP NULL.
 void setTradePosContainerId(java.lang.Long aTradePosContainerId)
          This method provides access to the OFFER.TRADEPOSCN_ID column of DB2 type BIGINT NOT NULL.
 

Constructor Detail

OfferBean

public OfferBean()
Method Detail

getCatalogEntryReferenceNumber

public java.lang.Long getCatalogEntryReferenceNumber()

This method provides access to the OFFER.CATENTRY_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The CatalogEntry offered for sale.

Returns:
java.lang.Long

getEndDate

public java.sql.Timestamp getEndDate()

This method provides access to the OFFER.ENDDATE column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

The end of the time range during which this Offer is effective.

Returns:
java.sql.Timestamp

getField1

public java.lang.String getField1()

This method provides access to the OFFER.FIELD1 column of DB2 type CHAR(30) NULL.

The following is a description of this column:

Customizable.

Returns:
java.lang.String

getField2

public java.lang.String getField2()

This method provides access to the OFFER.FIELD2 column of DB2 type CHAR(1) NULL.

The following is a description of this column:

Customizable.

Returns:
java.lang.String

getFlags

public java.lang.Integer getFlags()

This method provides access to the OFFER.FLAGS column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Contains the following bit flag value:
1 = shiptoAddressRequired - if 1, OrderPrepare will return an error if an OrderItem references this Offer but does not have a shipping address.

Returns:
java.lang.Integer

getIdentifier

public java.lang.Long getIdentifier()

This method provides access to the OFFER.IDENTIFIER column of DB2 type BIGINT NULL.

The following is a description of this column:

A number that uniquely identifies this Offer along with its specified CatalogEntry and TradingPositionContainer.

Returns:
java.lang.Long

getLastUpdate

public java.sql.Timestamp getLastUpdate()

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

The following is a description of this column:

The last time this Offer was updated.

Returns:
java.sql.Timestamp

getMaximumQuantity

public java.lang.Double getMaximumQuantity()

This method provides access to the OFFER.MAXIMUMQUANTITY column of DB2 type FLOAT NULL.

The following is a description of this column:

The maximum quantity that can be purchased in a single Order under this Offer.

Returns:
java.lang.Double

getMinimumQuantity

public java.lang.Double getMinimumQuantity()

This method provides access to the OFFER.MINIMUMQUANTITY column of DB2 type FLOAT NULL.

The following is a description of this column:

The minimum quantity that can be purchased in a single Order under this Offer.

Returns:
java.lang.Double

getOfferId

public java.lang.Long getOfferId()

This method provides access to the OFFER.OFFER_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Generated unique key.

Returns:
java.lang.Long

getOID

public java.lang.String getOID()

This method provides access to the OFFER.OID column of DB2 type VARCHAR(64) NULL.

The following is a description of this column:

Reserved for IBM internal use.

Returns:
java.lang.String

getPrecedence

public java.lang.Double getPrecedence()

This method provides access to the OFFER.PRECEDENCE column of DB2 type FLOAT NOT NULL.

The following is a description of this column:

When more than one Offer is effective at a particular time, the one with the highest PRECEDENCE is used.

Returns:
java.lang.Double

getPublished

public java.lang.Integer getPublished()

This method provides access to the OFFER.PUBLISHED column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Describes whether or not the offer has been published as follows:
0 = not published (temporarily disabled).
1 = published.
2 = marked for deletion (and not published).

Returns:
java.lang.Integer

getQuantityUnitId

public java.lang.String getQuantityUnitId()

This method provides access to the OFFER.QTYUNIT_ID column of DB2 type CHAR(16) NULL.

The following is a description of this column:

The unit of measure for MINIMUMQUANTITY and MAXIMUMQUANTITY. If this is NULL, then MINIMUMQUANTITY and MAXIMUMQUANTITY are multiplied by CATENTSHIP.NOMINALQUANTITY and the unit of measure of the results is CATENTSHIP.QUANTITYMEASURE.

Returns:
java.lang.String

getStartDate

public java.sql.Timestamp getStartDate()

This method provides access to the OFFER.STARTDATE column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

The start of the time range during which this Offer is effective.

Returns:
java.sql.Timestamp

getTradePosContainerId

public java.lang.Long getTradePosContainerId()

This method provides access to the OFFER.TRADEPOSCN_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The TradingPositionContainer this Offer is part of.

Returns:
java.lang.Long

setCatalogEntryReferenceNumber

public void setCatalogEntryReferenceNumber(java.lang.Long aCatalogEntryReferenceNumber)

This method provides access to the OFFER.CATENTRY_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The CatalogEntry offered for sale.

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

setEndDate

public void setEndDate(java.sql.Timestamp aEndDate)

This method provides access to the OFFER.ENDDATE column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

The end of the time range during which this Offer is effective.

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

setField1

public void setField1(java.lang.String aField1)

This method provides access to the OFFER.FIELD1 column of DB2 type CHAR(30) NULL.

The following is a description of this column:

Customizable.

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

setField2

public void setField2(java.lang.String aField2)

This method provides access to the OFFER.FIELD2 column of DB2 type CHAR(1) NULL.

The following is a description of this column:

Customizable.

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

setFlags

public void setFlags(java.lang.Integer aFlags)

This method provides access to the OFFER.FLAGS column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Contains the following bit flag value:
1 = shiptoAddressRequired - if 1, OrderPrepare will return an error if an OrderItem references this Offer but does not have a shipping address.

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

setIdentifier

public void setIdentifier(java.lang.Long aIdentifier)

This method provides access to the OFFER.IDENTIFIER column of DB2 type BIGINT NULL.

The following is a description of this column:

A number that uniquely identifies this Offer along with its specified CatalogEntry and TradingPositionContainer.

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

setLastUpdate

public void setLastUpdate(java.sql.Timestamp aLastUpdate)

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

The following is a description of this column:

The last time this Offer was updated.

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

setMaximumQuantity

public void setMaximumQuantity(java.lang.Double aMaximumQuantity)

This method provides access to the OFFER.MAXIMUMQUANTITY column of DB2 type FLOAT NULL.

The following is a description of this column:

The maximum quantity that can be purchased in a single Order under this Offer.

Parameters:
aMaximumQuantity - java.lang.Double
Returns:
void

setMinimumQuantity

public void setMinimumQuantity(java.lang.Double aMinimumQuantity)

This method provides access to the OFFER.MINIMUMQUANTITY column of DB2 type FLOAT NULL.

The following is a description of this column:

The minimum quantity that can be purchased in a single Order under this Offer.

Parameters:
aMinimumQuantity - java.lang.Double
Returns:
void

setOID

public void setOID(java.lang.String aOID)

This method provides access to the OFFER.OID column of DB2 type VARCHAR(64) NULL.

The following is a description of this column:

Reserved for IBM internal use.

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

setPrecedence

public void setPrecedence(java.lang.Double aPrecedence)

This method provides access to the OFFER.PRECEDENCE column of DB2 type FLOAT NOT NULL.

The following is a description of this column:

When more than one Offer is effective at a particular time, the one with the highest PRECEDENCE is used.

Parameters:
aPrecedence - java.lang.Double
Returns:
void

setPublished

public void setPublished(java.lang.Integer aPublished)

This method provides access to the OFFER.PUBLISHED column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Describes whether or not the offer has been published as follows:
0 = not published (temporarily disabled).
1 = published.
2 = marked for deletion (and not published).

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

setQuantityUnitId

public void setQuantityUnitId(java.lang.String aQuantityUnitId)

This method provides access to the OFFER.QTYUNIT_ID column of DB2 type CHAR(16) NULL.

The following is a description of this column:

The unit of measure for MINIMUMQUANTITY and MAXIMUMQUANTITY. If this is NULL, then MINIMUMQUANTITY and MAXIMUMQUANTITY are multiplied by CATENTSHIP.NOMINALQUANTITY and the unit of measure of the results is CATENTSHIP.QUANTITYMEASURE.

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

setStartDate

public void setStartDate(java.sql.Timestamp aStartDate)

This method provides access to the OFFER.STARTDATE column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

The start of the time range during which this Offer is effective.

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

setTradePosContainerId

public void setTradePosContainerId(java.lang.Long aTradePosContainerId)

This method provides access to the OFFER.TRADEPOSCN_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

The TradingPositionContainer this Offer is part of.

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