public class AccountTCHelper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.Integer |
BUYERPO_ACTIVE
The constant for buyer purchase order type "Active".
|
static java.lang.Integer |
BUYERPO_CLOSED
The constant for buyer purchase order type "Closed".
|
static java.lang.Integer |
BUYERPO_UNDEFINED
The constant for buyer purchase order type "Undefined".
|
static java.lang.Integer |
BUYERPOTYPE_BLANKETPO
The constant for the buyer purchase order type "Blanket PO".
|
static java.lang.Integer |
BUYERPOTYPE_LIMITEDPO
The constant for the buyer purchase order type "Limited PO".
|
static java.lang.Integer |
BUYERPOTYPE_MULTIPLEUSEPO
The constant for the buyer purchase order type "Multiple-use Individual PO (PO Number can be used by more than one order)".
|
static java.lang.Integer |
BUYERPOTYPE_SINGLEUSEPO
The constant for the buyer purchase order type "Single-use Individual PO ".
|
static java.lang.String |
CLASSNAME
The name of this class.
|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
static java.lang.Integer |
CREDITLINE_ACTIVE
The constant for the credit line type "active".
|
static java.lang.Integer |
CREDITLINE_SUSPENDED
The constant for the credit line type "suspended".
|
static java.lang.Integer |
CREDITLINE_UNDEFINED
The constant for the credit line type "undefined/unknown".
|
static java.lang.String |
POLICYTYPE_PAYMENT
The constant of the "Payment" type of the business policy.
|
static int |
SEARCHTYPE_EXACT_MATCH
Exact Match with keyword search type constant
|
static int |
SEARCHTYPE_IGNORE_CASE_BEGIN
Ignore case beginning with keyword search type constant
|
static int |
SEARCHTYPE_IGNORE_CASE_CONTAIN
Ignore case containing with keyword search type constant
|
static int |
SEARCHTYPE_MATCH_CASE_BEGIN
Match case beginning with keyword search type constant
|
static int |
SEARCHTYPE_MATCH_CASE_CONTAIN
Match case containing with keyword search type constant
|
static int |
SEARCHTYPE_SEARCH_ALL
Default search all search type constant
|
Constructor and Description |
---|
AccountTCHelper()
Constructor for AccountTCHelper.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Long |
create(java.lang.Object abTC)
This method will invoke the corresponding creating method based on the type of the input object.
|
java.lang.Long |
create(com.ibm.commerce.contract.objects.PaymentTCAccessBean abPaymentTC)
This method creates the credit line which is used for the specified Payment term and condition.
|
java.lang.Long |
create(com.ibm.commerce.contract.objects.POTCBlanketAccessBean abPOTC)
This method creates the buyer purchase order.
|
java.lang.Long |
create(com.ibm.commerce.contract.objects.POTCLimitedAccessBean abPOTC)
This method creates the buyer purchase order.
|
java.lang.Long |
delete(java.lang.Object abTC)
This method will invoke the corresponding deleting method based on the type of the input object.
|
java.lang.Long |
delete(com.ibm.commerce.contract.objects.PaymentTCAccessBean abPaymentTC)
This method will set the credit line which belongs to this specified payment term and condition to "suspended".
|
java.lang.Long |
delete(com.ibm.commerce.contract.objects.POTCBlanketAccessBean abPOTC)
This method will set the buyer purchase order which belongs to the specified term and condition to the state "Closed".
|
java.lang.Long |
delete(com.ibm.commerce.contract.objects.POTCLimitedAccessBean abPOTC)
This method will set the buyer purchase order which belongs to the specified term and condition to the state "Closed".
|
static AccountTCHelper |
getInstance()
Returns an instance of this class.
|
java.lang.String |
getSQLForFindBuzOrgEntityByOrgName(int searchType,
java.lang.String searchKeyword)
Construct part of an SQL query string to retrieve all business organization
entities that match to the search criteria.
|
boolean |
isSearchStringFound(int searchType,
java.lang.String searchFor,
java.lang.String searchIn)
Is a search string contained in a give string.
|
java.lang.Long |
update(java.lang.Object abTC)
This method will invoke the corresponding updating method based on the type of the input object.
|
java.lang.Long |
update(com.ibm.commerce.contract.objects.PaymentTCAccessBean abPaymentTC)
This method will update the credit line which belongs to this specified payment term and condition.
|
java.lang.Long |
update(com.ibm.commerce.contract.objects.POTCBlanketAccessBean abPOTC)
This method will update the buyer purchase order which belongs to the specified term and condition.
|
java.lang.Long |
update(com.ibm.commerce.contract.objects.POTCLimitedAccessBean abPOTC)
This method will update the buyer purchase order which belongs to the specified term and condition.
|
public static final java.lang.Integer BUYERPO_ACTIVE
public static final java.lang.Integer BUYERPO_CLOSED
public static final java.lang.Integer BUYERPO_UNDEFINED
public static final java.lang.Integer BUYERPOTYPE_BLANKETPO
public static final java.lang.Integer BUYERPOTYPE_LIMITEDPO
public static final java.lang.Integer BUYERPOTYPE_MULTIPLEUSEPO
public static final java.lang.Integer BUYERPOTYPE_SINGLEUSEPO
public static final java.lang.String CLASSNAME
public static final java.lang.String COPYRIGHT
public static final java.lang.Integer CREDITLINE_ACTIVE
public static final java.lang.Integer CREDITLINE_SUSPENDED
public static final java.lang.Integer CREDITLINE_UNDEFINED
public static final java.lang.String POLICYTYPE_PAYMENT
public static final int SEARCHTYPE_EXACT_MATCH
public static final int SEARCHTYPE_IGNORE_CASE_BEGIN
public static final int SEARCHTYPE_IGNORE_CASE_CONTAIN
public static final int SEARCHTYPE_MATCH_CASE_BEGIN
public static final int SEARCHTYPE_MATCH_CASE_CONTAIN
public static final int SEARCHTYPE_SEARCH_ALL
public java.lang.Long create(java.lang.Object abTC) throws java.lang.Exception
abTC
- a term and condition object.java.lang.Exception
create(PaymentTCAccessBean abPaymentTC)
,
create(POTCBlanketAccessBean abPOTC)
,
create(POTCLimitedAccessBean abPOTC)
public java.lang.Long create(com.ibm.commerce.contract.objects.PaymentTCAccessBean abPaymentTC) throws java.lang.Exception
abPaymentTC
- a AccessBean object for payment term and condition.java.lang.Exception
- Raised with message _ERR_ACCOUNT_PAYMENT_TC_CREDIT_POLICY_ONLY if the payment term and condition referred to
any other type of business policy instead of "Credit".public java.lang.Long create(com.ibm.commerce.contract.objects.POTCBlanketAccessBean abPOTC) throws java.lang.Exception
abPOTC
- a AccessBean object for purchase order blanket term and condition.java.lang.Exception
- Raised with message _ERR_ACCOUNT_PO_TC_INVALID_PO_NUMBER if the purchase order number is null or empty.
Raised with message _ERR_ACCOUNT_PO_TC_GENERIC_ERROR if an error occurred during creating a buyer purchase order with type "Blanket".public java.lang.Long create(com.ibm.commerce.contract.objects.POTCLimitedAccessBean abPOTC) throws java.lang.Exception
abPOTC
- a AccessBean object for purchase order limited term and condition.java.lang.Exception
- Raised with message _ERR_ACCOUNT_PO_TC_INVALID_PO_NUMBER if the purchase order number is null or empty.
Raised with message _ERR_ACCOUNT_PO_TC_GENERIC_ERROR if an error occurred during creating a buyer purchase order with type "Limited".public java.lang.Long delete(java.lang.Object abTC) throws java.lang.Exception
abTC
- a term and condition object.java.lang.Exception
delete(PaymentTCAccessBean abPaymentTC)
,
delete(POTCBlanketAccessBean abPOTC)
,
delete(POTCLimitedAccessBean abPOTC)
public java.lang.Long delete(com.ibm.commerce.contract.objects.PaymentTCAccessBean abPaymentTC) throws java.lang.Exception
abPaymentTC
- a AccessBean object for payment term and condition.java.lang.Exception
- if an error occurred.public java.lang.Long delete(com.ibm.commerce.contract.objects.POTCBlanketAccessBean abPOTC) throws java.lang.Exception
abPOTC
- a AccessBean object for purchase order blanket term and condition.java.lang.Exception
- Raised with message _ERR_ACCOUNT_PO_TC_GENERIC_ERROR if an error occurred during the process.public java.lang.Long delete(com.ibm.commerce.contract.objects.POTCLimitedAccessBean abPOTC) throws java.lang.Exception
abPOTC
- a AccessBean object for purchase order limited term and condition.java.lang.Exception
- Raised with message _ERR_ACCOUNT_PO_TC_GENERIC_ERROR if an error occurred during the process.public static AccountTCHelper getInstance()
public java.lang.String getSQLForFindBuzOrgEntityByOrgName(int searchType, java.lang.String searchKeyword)
searchType
- specify a search criteria option, the valid options are:searchKeyword
- specify a search keyword for organization namepublic boolean isSearchStringFound(int searchType, java.lang.String searchFor, java.lang.String searchIn)
searchType
- specify a search criteria option, the valid options are:searchFor
- specify a search keyword for organization namesearchIn
- specify the string to search inpublic java.lang.Long update(java.lang.Object abTC) throws java.lang.Exception
abTC
- a term and condition object.java.lang.Exception
delete(PaymentTCAccessBean abPaymentTC)
,
delete(POTCBlanketAccessBean abPOTC)
,
delete(POTCLimitedAccessBean abPOTC)
public java.lang.Long update(com.ibm.commerce.contract.objects.PaymentTCAccessBean abPaymentTC) throws java.lang.Exception
abPaymentTC
- a AccessBean object for payment term and condition.java.lang.Exception
- if an error occurred.public java.lang.Long update(com.ibm.commerce.contract.objects.POTCBlanketAccessBean abPOTC) throws java.lang.Exception
abPOTC
- a AccessBean object for purchase order blanket term and condition.java.lang.Exception
- Raised with message _ERR_ACCOUNT_PO_TC_GENERIC_ERROR if an error occurred during the process.public java.lang.Long update(com.ibm.commerce.contract.objects.POTCLimitedAccessBean abPOTC) throws java.lang.Exception
abPOTC
- a AccessBean object for purchase order limited term and condition.java.lang.Exception
- Raised with message _ERR_ACCOUNT_PO_TC_GENERIC_ERROR if an error occurred during the process.