com.ibm.commerce.contract.objects
Class ContractBean

com.ibm.commerce.contract.objects.ContractBean

public class ContractBean

This bean provides access to the CONTRACT table.

The following is a description of this table:

Each row of this table represents a Contract. A Contract is part of a Store, and represents terms and conditions that may be associated with OrderItems, such as prices, minimum quantities, and who can use the Contract.


Constructor Summary
ContractBean()
           
 
Method Summary
 java.lang.Integer getMajorVersion()
          This method provides access to the CONTRACT.MAJORVERSION column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getMarkForDelete()
          This method provides access to the CONTRACT.MARKFORDELETE column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getMinorVersion()
          This method provides access to the CONTRACT.MINORVERSION column of DB2 type INTEGER NOT NULL.
 java.lang.String getName()
          This method provides access to the CONTRACT.NAME column of DB2 type VARCHAR(200) NOT NULL.
 java.lang.Integer getOrigin()
          This method provides access to the CONTRACT.ORIGIN column of DB2 type INTEGER NOT NULL.
 java.lang.Long getOwnerReferenceNumber()
          This method provides access to the CONTRACT.MEMBER_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Long getReferenceNumber()
          This method provides access to the CONTRACT.MEMBER_ID column of DB2 type BIGINT NOT NULL.
 java.lang.Integer getState()
          This method provides access to the CONTRACT.STATE column of DB2 type INTEGER NOT NULL.
 java.sql.Timestamp getTimeActivated()
          This method provides access to the CONTRACT.TIMEACTIVATED column of DB2 type TIMESTAMP NULL.
 java.sql.Timestamp getTimeApproved()
          This method provides access to the CONTRACT.TIMEAPPROVED column of DB2 type TIMESTAMP NULL.
 java.sql.Timestamp getTimeCreated()
          This method provides access to the CONTRACT.TIMECREATED column of DB2 type TIMESTAMP NULL.
 java.sql.Timestamp getTimeDeployed()
          This method provides access to the CONTRACT.TIMEDEPLOYED column of DB2 type TIMESTAMP NULL.
 java.sql.Timestamp getTimeUpdated()
          This method provides access to the CONTRACT.TIMEUPDATED column of DB2 type TIMESTAMP NULL.
 java.lang.Integer getUsage()
          This method provides access to the CONTRACT.USAGE column of DB2 type INTEGER NOT NULL.
 void setMajorVersion(java.lang.Integer aMajorVersion)
          This method provides access to the CONTRACT.MAJORVERSION column of DB2 type INTEGER NOT NULL.
 void setMarkForDelete(java.lang.Integer aMarkForDelete)
          This method provides access to the CONTRACT.MARKFORDELETE column of DB2 type INTEGER NOT NULL.
 void setMinorVersion(java.lang.Integer aMinorVersion)
          This method provides access to the CONTRACT.MINORVERSION column of DB2 type INTEGER NOT NULL.
 void setName(java.lang.String aName)
          This method provides access to the CONTRACT.NAME column of DB2 type VARCHAR(200) NOT NULL.
 void setOrigin(java.lang.Integer aOrigin)
          This method provides access to the CONTRACT.ORIGIN column of DB2 type INTEGER NOT NULL.
 void setOwnerReferenceNumber(java.lang.Long aOwnerReferenceNumber)
          This method provides access to the CONTRACT.MEMBER_ID column of DB2 type BIGINT NOT NULL.
 void setReferenceNumber(java.lang.Long aReferenceNumber)
          This method provides access to the CONTRACT.MEMBER_ID column of DB2 type BIGINT NOT NULL.
 void setState(java.lang.Integer aState)
          This method provides access to the CONTRACT.STATE column of DB2 type INTEGER NOT NULL.
 void setTimeActivated(java.sql.Timestamp aTimeActivated)
          This method provides access to the CONTRACT.TIMEACTIVATED column of DB2 type TIMESTAMP NULL.
 void setTimeApproved(java.sql.Timestamp aTimeApproved)
          This method provides access to the CONTRACT.TIMEAPPROVED column of DB2 type TIMESTAMP NULL.
 void setTimeCreated(java.sql.Timestamp aTimeCreated)
          This method provides access to the CONTRACT.TIMECREATED column of DB2 type TIMESTAMP NULL.
 void setTimeDeployed(java.sql.Timestamp aTimeDeployed)
          This method provides access to the CONTRACT.TIMEDEPLOYED column of DB2 type TIMESTAMP NULL.
 void setTimeUpdated(java.sql.Timestamp aTimeUpdated)
          This method provides access to the CONTRACT.TIMEUPDATED column of DB2 type TIMESTAMP NULL.
 void setUsage(java.lang.Integer aUsage)
          This method provides access to the CONTRACT.USAGE column of DB2 type INTEGER NOT NULL.
 

Constructor Detail

ContractBean

public ContractBean()
Method Detail

getMajorVersion

public java.lang.Integer getMajorVersion()

This method provides access to the CONTRACT.MAJORVERSION column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Major version number of the Contract.

Returns:
java.lang.Integer

getMarkForDelete

public java.lang.Integer getMarkForDelete()

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

The following is a description of this column:

Indicates if this Contract has been marked for deletion:
0 = No.
1 = Yes, this Contract has been marked for deletion.

Returns:
java.lang.Integer

getMinorVersion

public java.lang.Integer getMinorVersion()

This method provides access to the CONTRACT.MINORVERSION column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Minor version number of the Contract.

Returns:
java.lang.Integer

getName

public java.lang.String getName()

This method provides access to the CONTRACT.NAME column of DB2 type VARCHAR(200) NOT NULL.

The following is a description of this column:

Uniquely identifies a version of a Contract of a particular Origin for a particular owner.

Returns:
java.lang.String

getOrigin

public java.lang.Integer getOrigin()

This method provides access to the CONTRACT.ORIGIN column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

How the Contract was created:
0 = manual.
1 = imported.
2 = RFQ.
3 = exchange.
4 = auction.
5 = reverse auction.
6 = 2-party negotiation.

Returns:
java.lang.Integer

getOwnerReferenceNumber

public java.lang.Long getOwnerReferenceNumber()

This method provides access to the CONTRACT.MEMBER_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Owner of the Contract.

Returns:
java.lang.Long

getReferenceNumber

public java.lang.Long getReferenceNumber()

This method provides access to the CONTRACT.MEMBER_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Owner of the Contract.

Returns:
java.lang.Long

getState

public java.lang.Integer getState()

This method provides access to the CONTRACT.STATE column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Contract state:
0 = draft.
1 = pending approval.
2 = approved.
3 = active.
4 = rejected.
5 = canceled.
6 = closed.
7 = suspended.
-1 = deployment in progress.
-2 = deployment failed.

Returns:
java.lang.Integer

getTimeActivated

public java.sql.Timestamp getTimeActivated()

This method provides access to the CONTRACT.TIMEACTIVATED column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

The time the Contract was activated.

Returns:
java.sql.Timestamp

getTimeApproved

public java.sql.Timestamp getTimeApproved()

This method provides access to the CONTRACT.TIMEAPPROVED column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

The time the Contract was approved.

Returns:
java.sql.Timestamp

getTimeCreated

public java.sql.Timestamp getTimeCreated()

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

The following is a description of this column:

The time the Contract was created.

Returns:
java.sql.Timestamp

getTimeDeployed

public java.sql.Timestamp getTimeDeployed()

This method provides access to the CONTRACT.TIMEDEPLOYED column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

The time the Contract was deployed.

Returns:
java.sql.Timestamp

getTimeUpdated

public java.sql.Timestamp getTimeUpdated()

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

The following is a description of this column:

The time the Contract was most recently updated.

Returns:
java.sql.Timestamp

getUsage

public java.lang.Integer getUsage()

This method provides access to the CONTRACT.USAGE column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Contract usage:
0 = default.
1 = reseller.
2 = organization buyer.
3 = special bid.

Returns:
java.lang.Integer

setMajorVersion

public void setMajorVersion(java.lang.Integer aMajorVersion)

This method provides access to the CONTRACT.MAJORVERSION column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Major version number of the Contract.

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

setMarkForDelete

public void setMarkForDelete(java.lang.Integer aMarkForDelete)

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

The following is a description of this column:

Indicates if this Contract has been marked for deletion:
0 = No.
1 = Yes, this Contract has been marked for deletion.

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

setMinorVersion

public void setMinorVersion(java.lang.Integer aMinorVersion)

This method provides access to the CONTRACT.MINORVERSION column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Minor version number of the Contract.

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

setName

public void setName(java.lang.String aName)

This method provides access to the CONTRACT.NAME column of DB2 type VARCHAR(200) NOT NULL.

The following is a description of this column:

Uniquely identifies a version of a Contract of a particular Origin for a particular owner.

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

setOrigin

public void setOrigin(java.lang.Integer aOrigin)

This method provides access to the CONTRACT.ORIGIN column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

How the Contract was created:
0 = manual.
1 = imported.
2 = RFQ.
3 = exchange.
4 = auction.
5 = reverse auction.
6 = 2-party negotiation.

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

setOwnerReferenceNumber

public void setOwnerReferenceNumber(java.lang.Long aOwnerReferenceNumber)

This method provides access to the CONTRACT.MEMBER_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Owner of the Contract.

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

setReferenceNumber

public void setReferenceNumber(java.lang.Long aReferenceNumber)

This method provides access to the CONTRACT.MEMBER_ID column of DB2 type BIGINT NOT NULL.

The following is a description of this column:

Owner of the Contract.

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

setState

public void setState(java.lang.Integer aState)

This method provides access to the CONTRACT.STATE column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Contract state:
0 = draft.
1 = pending approval.
2 = approved.
3 = active.
4 = rejected.
5 = canceled.
6 = closed.
7 = suspended.
-1 = deployment in progress.
-2 = deployment failed.

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

setTimeActivated

public void setTimeActivated(java.sql.Timestamp aTimeActivated)

This method provides access to the CONTRACT.TIMEACTIVATED column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

The time the Contract was activated.

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

setTimeApproved

public void setTimeApproved(java.sql.Timestamp aTimeApproved)

This method provides access to the CONTRACT.TIMEAPPROVED column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

The time the Contract was approved.

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

setTimeCreated

public void setTimeCreated(java.sql.Timestamp aTimeCreated)

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

The following is a description of this column:

The time the Contract was created.

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

setTimeDeployed

public void setTimeDeployed(java.sql.Timestamp aTimeDeployed)

This method provides access to the CONTRACT.TIMEDEPLOYED column of DB2 type TIMESTAMP NULL.

The following is a description of this column:

The time the Contract was deployed.

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

setTimeUpdated

public void setTimeUpdated(java.sql.Timestamp aTimeUpdated)

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

The following is a description of this column:

The time the Contract was most recently updated.

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

setUsage

public void setUsage(java.lang.Integer aUsage)

This method provides access to the CONTRACT.USAGE column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Contract usage:
0 = default.
1 = reseller.
2 = organization buyer.
3 = special bid.

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