public class Helper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
Helper()
Helper constructor comment.
|
Modifier and Type | Method and Description |
---|---|
static com.ibm.commerce.negotiation.objimpl.BidDataLight |
convertToBidDataLight(AutoBidAccessBean abAutoBid,
BidAccessBean abBid)
Returns a biddatalight object that has the contain of the given bid access bean
|
static com.ibm.commerce.negotiation.objimpl.BidDataLight |
convertToBidDataLight(BidAccessBean param)
Returns a biddatalight object that has the contain of the given bid access bean
|
static java.lang.String |
getCatalogEntryType(java.lang.String catEntryId)
Gets catalog entry type
|
static java.lang.Integer |
getStoreIdForAuction(java.lang.Long auctid)
Gets store ID in which the auction is created.
|
static java.sql.Timestamp |
getTimestampByYearMonth(java.lang.String year,
java.lang.String month)
Returns a timestamp object has the specified year and month, null if anything wrong.
|
static boolean |
isDigit(java.lang.String s)
Determines if the input string represents a numeric value
containing only characters 0 thru 9.
|
static boolean |
isSupportedLanguage(StoreAccessBean store,
java.lang.Integer langid)
To check if the specified language is supported by the store.
|
static java.lang.String |
parseNumeric(java.lang.String alphaNumStr)
Parse the input string and remove all non-numeric characters.
|
static java.util.Hashtable |
parseNVPairs(java.lang.String str,
java.lang.String del)
Parse up a string that contains name/value pair
|
public static final java.lang.String COPYRIGHT
public static com.ibm.commerce.negotiation.objimpl.BidDataLight convertToBidDataLight(BidAccessBean param)
param
- com.ibm.commerce.negotiation.objects.BidAccessBeanpublic static com.ibm.commerce.negotiation.objimpl.BidDataLight convertToBidDataLight(AutoBidAccessBean abAutoBid, BidAccessBean abBid)
abAutoBid
- com.ibm.commerce.negotiation.objects.AutoBidAccessBean - optionalabBid
- com.ibm.commerce.negotiation.objects.BidAccessBean - required,public static java.lang.String getCatalogEntryType(java.lang.String catEntryId)
catEntryId
- java.lang.Stringpublic static java.lang.Integer getStoreIdForAuction(java.lang.Long auctid)
auctid
- java.lang.Longpublic static java.sql.Timestamp getTimestampByYearMonth(java.lang.String year, java.lang.String month)
year
- String year 2001 is "2001"month
- String January is "01" or "1"public static boolean isDigit(java.lang.String s)
s
- java.lang.Stringpublic static boolean isSupportedLanguage(StoreAccessBean store, java.lang.Integer langid)
store
- com.ibm.commerce.common.objects.StoreAccessBeanlangid
- java.lang.Integerpublic static java.lang.String parseNumeric(java.lang.String alphaNumStr)
alphaNumStr
- String - AlphaNumeric string to be stripped of alpha characters.public static java.util.Hashtable parseNVPairs(java.lang.String str, java.lang.String del)
str
- java.lang.Stringdel
- java.lang.String : the delimiter , default is semicolon