public abstract class CatalogEntryCreateUpdateHelper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String | CLASS_NAME |
protected java.math.BigDecimal | idField3
The field 3 value.
|
protected java.util.Hashtable | ihashAttrValues
The hashtable of attribute values.
|
protected java.util.Hashtable | ihashCatentryShipping
The hashtable of catalog entry shipping information.
|
protected java.util.Hashtable | ihashDiscount
The hashtable of discount information.
|
protected java.util.Hashtable | ihashSalesTax
The hashtable of sales tax information.
|
protected java.util.Hashtable | ihashShippingMode
The hashtable of shipping mode information.
|
protected java.util.Hashtable | ihashShippingTax
The hashtable of shipping tax information.
|
protected java.lang.Integer | inAvailable
The available flag value.
|
protected java.lang.Integer | inBuyable
The buyable flag value.
|
protected java.lang.Long | inCatalogGroupId
The catalog group ID.
|
protected java.lang.Long | inCatalogId
The catalog ID.
|
protected java.lang.Long | inCatentryId
The catalog entry ID
|
protected java.lang.Integer | inDescLanguage
The description language ID.
|
protected java.lang.Integer | inField1
The field 1 value.
|
protected java.lang.Integer | inField2
The field 2 value.
|
protected java.lang.Integer | inMarkfordelete
The mark for delete flag value.
|
protected java.lang.Long | inMemberId
The member ID.
|
protected java.lang.Integer | inOnauction
The on auction flag value.
|
protected java.lang.Integer | inOnspecial
The on special flag value.
|
protected java.lang.Long | inProductId
The product ID.
|
protected java.lang.Integer | inPublished
The published flag value.
|
protected java.lang.String | istrAuxDescription1
The auxilary description 1 value
|
protected java.lang.String | istrAuxDescription2
The auxilary description 2 value.
|
protected java.lang.String | istrCatenttypeId
The catalog entry type ID.
|
protected java.lang.String | istrCatEntURL
The catalog entry URL.
|
protected java.lang.String | istrField4
The field 4.
|
protected java.lang.String | istrField5
The field 5.
|
protected java.lang.String | istrFullimage
The full image path.
|
protected java.lang.String | istrLongDescription
The long description.
|
protected java.lang.String | istrMfname
The manufacturer name.
|
protected java.lang.String | istrMfpartnumber
The manufacturer part number.
|
protected java.lang.String | istrName
The name.
|
protected java.lang.String | istrPartnumber
The part number.
|
protected java.lang.String | istrShortDescription
The short description.
|
protected java.lang.String | istrStoreId
The store ID.
|
protected java.lang.String | istrThumbnail
The thumbnail image path.
|
protected java.lang.String | istrXMLdetail
The XML detail value.
|
protected java.sql.Timestamp | itmAvailabilitydate
The availability date timestamp.
|
protected java.sql.Timestamp | itmAvailabilityDate
The availability date timestamp value .
|
protected java.sql.Timestamp | itmDiscontinueDate
The discontinue date timestamp value.
|
protected java.sql.Timestamp | itmEndDate
The end date timestamp value.
|
protected java.sql.Timestamp | itmEndOfServiceDate
The end of service date timestamp value.
|
protected java.sql.Timestamp | itmLastOrderDate
The last order date timestamp value.
|
protected java.sql.Timestamp | itmLastupdate
The last update timestamp value.
|
protected java.sql.Timestamp | itmStartDate
The start date timestamp value .
|
protected CommandContext | m_cmdContext |
Constructor and Description |
---|
CatalogEntryCreateUpdateHelper() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Long | findAttributeValueId(java.lang.Long nAttributeId, java.lang.Integer nLanguageId, java.lang.String strAttributeValue)
find attribute value ID from attributeId, languageId, and value.
|
static ItemAccessBean | findSKUByAttrValue(java.lang.Long nProductId, java.util.Hashtable hashtableAttributeValues)
Find SKU by its attribute values.
|
static void | flushEJB()
flush EJB.
|
java.util.Hashtable | getAttributeValues()
Get attribute values
|
java.lang.String | getAuxDescription1()
Get additional description of the Catalog Entry description
|
java.lang.String | getAuxDescription2()
Get additional description of the Catalog Entry description
|
java.sql.Timestamp | getAvailabilityDate()
Get the availability date of the Catalog Entry
|
java.lang.Integer | getAvailable()
Get the length of time to available of the Catalog Entry description
|
java.sql.Timestamp | getAvailablitydate()
Get availablility date of the Catalog Entry description
|
java.lang.Integer | getBuyable()
Get the buyable
|
java.lang.Long | getCatalogGroupId()
gets Catalog Group Id.
|
java.lang.Long | getCatalogId()
sets Catalog Id.
|
java.lang.Long | getCatentryId()
Get the Catalog Entry Id
|
java.util.Hashtable | getCatentryShippingInfo()
Get the Catalog Entry Shipping information
|
java.lang.String | getCatenttypeId()
Get the catenttype of the Catalog Entry
|
java.lang.String | getCatEntURL()
Get the URL of the Catentry Entry
|
CommandContext | getCommandContext()
get CommandContext
|
java.lang.Integer | getDescLanguage()
Get language id of the Catalog Entry description
|
java.sql.Timestamp | getDiscontinueDate()
Get the discontinue date of the Catalog Entry
|
java.util.Hashtable | getDiscount()
Get the Discount information
|
java.sql.Timestamp | getEndDate()
Get the end date of the Catalog Entry
|
java.sql.Timestamp | getEndOfServiceDate()
Get the endOfService date of the Catalog Entry
|
java.lang.Integer | getField1()
Get field1
|
java.lang.Integer | getField2()
Get field2
|
java.math.BigDecimal | getField3()
Get field3
|
java.lang.String | getField4()
Get field4
|
java.lang.String | getField5()
Get field5
|
java.lang.String | getFullimage()
Get path of the full image of the Catalog Entry description
|
java.sql.Timestamp | getLastOrderDate()
Get the lastOrder date of the Catalog Entry
|
java.sql.Timestamp | getLastupdate()
Get last update time of the Catalog Entry
|
java.lang.String | getLongDescription()
Get long description of the Catalog Entry description
|
java.lang.Integer | getMarkfordelete()
Get the value of setting Catalog Entry to mark for delete
|
java.lang.Long | getMemberId()
Get the value of setting Catalog Entry to mark for delete
|
java.lang.String | getMfname()
Get the manufacturer name of the Catalog Entry
|
java.lang.String | getMfpartnumber()
Get the manufacturer part number of the Catalog Entry
|
java.lang.String | getName()
Get name of the Catalog Entry description
|
java.lang.Integer | getOnauction()
Get the value of the Catentry Entry if it is on auction
|
java.lang.Integer | getOnspecial()
Get the value of the Catentry Entry if it is on special
|
java.lang.String | getPartnumber()
Get the part number of the Catalog Entry
|
java.lang.Long | getProductId()
Get the Catalog Entry Id of the product
|
java.lang.Integer | getPublished()
Get published of the Catalog Entry description
|
java.util.Hashtable | getSalesTax()
Get the SalesTax information
|
java.util.Hashtable | getShippingMode()
Get the Shipping Category information
|
java.util.Hashtable | getShippingTax()
Get the Shipping Tax information
|
java.lang.String | getShortDescription()
Get short description of the Catalog Entry description
|
java.sql.Timestamp | getStartDate()
Get the start date of the Catalog Entry
|
static java.lang.Integer | getStoreDefaultLanguage(java.lang.Integer nStoreId)
get the default Language of a store.
|
java.lang.String | getStoreId()
Get the Store Id
|
java.lang.String | getThumbnail()
Get thumbnail image of the Catalog Entry description
|
java.lang.String | getXMLdetail()
Get XML detail of the Catalog Entry description
|
static boolean | hasAttribute(java.lang.Long nProductId)
checks if the product has attributes defined.
|
static boolean | hasAttribute(java.lang.Long nProductId, java.lang.Integer nLanguageId)
checks if the product has attributes defined.
|
static boolean | hasChildCatentry(java.lang.Long nProductId)
checks if the product has child SKUs defined.
|
static boolean | hasPrices(java.lang.Long nCatentryId)
checks if the catentry has prices defined.
|
static boolean | hasPrices(java.lang.Long nCatentryId, java.lang.Integer nStoreId)
checks if the catentry has prices defined.
|
static boolean | isDuplicatedAttrValue(java.lang.Long nProductId, java.util.Hashtable hashtableAttributeValues)
checks if the attribute values have been assigned to a SKU.
|
static boolean | isExistingSKUCode(java.lang.String strSKUCode, java.lang.Long nMemberId)
checks if the SKU code has been assigned to a SKU.
|
static void | refreshCalcCodeRegistry()
refresh CalcCode Registry.
|
static void | refreshRegistry(java.lang.String strRegistryName)
refresh Registry.
|
void | reset()
resets all instance variables to null.
|
void | setAttributeValues(java.util.Hashtable hashAttrValues)
sets attribute values to a catentry.
|
void | setAuxdescription1(java.lang.String astrAuxDescription1)
Set additional description for the Catalog Entry Description
|
void | setAuxdescription2(java.lang.String astrAuxDescription2)
Set additional description for the Catalog Entry Description
|
void | setAvailabilitydate(java.sql.Timestamp atmAvailabilitydate)
Set availability date for the Catalog Entry Description
|
void | setAvailabilityDate(java.sql.Timestamp atmAvailabilityDate)
Sets the availability date when the Catalog Entry was updated
|
void | setAvailable(java.lang.Integer anAvailable)
Set available for the Catalog Entry Description
|
void | setBuyable(java.lang.Integer anBuyable)
Set the catalog entry to buyable 0 - Non Buyable 1 - Buyable
|
void | setCatalogGroupId(java.lang.Long nCatalogGroupId)
sets Catalog Group Id.
|
void | setCatalogId(java.lang.Long nCatalogId)
sets Catalog Id.
|
void | setCatentryId(java.lang.Long anCatentryId)
Set a Catalog Entry Id
|
void | setCatentryShipping(java.util.Hashtable hashCatentryShipping)
sets Catentry shipping information.
|
void | setCatenttypeId(java.lang.String astrCatenttypeId)
Set a Catalog Entry Type Id
|
void | setCatEntURL(java.lang.String astrCatEntURL)
Set a URL for the Catalog Entry
|
void | setCommandContext(CommandContext cmdContext)
set CommandContext
|
void | setDescLanguage(java.lang.Integer anDescLanguage)
Set language id of Catalog Entry Description
|
void | setDiscontinueDate(java.sql.Timestamp atmDiscontinueDate)
Sets the discontinue date when the Catalog Entry was updated
|
void | setDiscount(java.util.Hashtable hashDiscount)
sets Discount information.
|
void | setEndDate(java.sql.Timestamp atmEndDate)
Sets the end date when the Catalog Entry was updated
|
void | setEndOfServiceDate(java.sql.Timestamp atmEndOfServiceDate)
Sets the endOfService date when the Catalog Entry was updated
|
void | setField1(java.lang.Integer anField1)
Set Field1 of the Catalog Entry
|
void | setField2(java.lang.Integer anField2)
Set Field2 of the Catalog Entry
|
void | setField3(java.math.BigDecimal adField3)
Set Field3 of the Catalog Entry
|
void | setField4(java.lang.String astrField4)
Set Field4 of the Catalog Entry
|
void | setField5(java.lang.String astrField5)
Set Field5 of the Catalog Entry
|
void | setFullimage(java.lang.String astrFullimage)
Set path of the full image of Catalog Entry Description
|
void | setLastOrderDate(java.sql.Timestamp atmLastOrderDate)
Sets the lastOrder date when the Catalog Entry was updated
|
void | setLastupdate(java.sql.Timestamp atmLastupdate)
Sets the date and time when the Catalog Entry was updated
|
void | setLongdescription(java.lang.String astrLongDescription)
Set long description of Catalog Entry Description
|
void | setMarkfordelete(java.lang.Integer anMarkfordelete)
Set markfordelete of the Catalog Entry
|
void | setMemberId(java.lang.Long anMemberId)
Set owner of the Catalog Entry
|
void | setMfname(java.lang.String astrMfname)
Set manufacturer name of the Catalog Entry
|
void | setMfpartnumber(java.lang.String astrMfpartnumber)
Set the part number of the Catalog Entry used by the manufacturer
|
void | setName(java.lang.String astrName)
Set language dependent name of Catalog Entry Description
|
void | setOnauction(java.lang.Integer anOnauction)
Set if the Catalog Entry is on auction 0 - Not on auction 1 - on auction
|
void | setOnspecial(java.lang.Integer anOnspecial)
Set if the Catalog Entry is on special 0 - Not on special 1 - on special
|
void | setPartnumber(java.lang.String astrPartnumber)
Set the partnumber of the Catalog Entry
|
void | setProductId(java.lang.Long nProductId)
set Product Id.
|
void | setPublished(java.lang.Integer anPublished)
Set published of Catalog Entry Description
|
void | setSalesTax(java.util.Hashtable hashSalesTax)
sets Sales Tax information.
|
void | setShippingMode(java.util.Hashtable hashShippingMode)
sets Shipping category information.
|
void | setShippingTax(java.util.Hashtable hashShippingTax)
sets Shipping Tax information.
|
void | setShortdescription(java.lang.String astrShortDescription)
Set short description of Catalog Entry Description
|
void | setStartDate(java.sql.Timestamp atmStartDate)
Sets the start date when the Catalog Entry was updated
|
void | setStoreId(java.lang.String astrStoreId)
sets Store Id.
|
void | setThumbnail(java.lang.String astrThumbnail)
Set path to a thumbnail image of Catalog Entry Description
|
void | setXMLdetail(java.lang.String astrXMLdetail)
Set XML detail of Catalog Entry Description
|
protected java.lang.String | str2YN(java.lang.String str)
translate true/false to Y/N.
|
public static final java.lang.String CLASS_NAME
protected CommandContext m_cmdContext
protected java.lang.Long inCatentryId
protected java.math.BigDecimal idField3
protected java.lang.Integer inBuyable
protected java.lang.Integer inField1
protected java.lang.Integer inField2
protected java.lang.Integer inMarkfordelete
protected java.lang.Long inMemberId
protected java.lang.Integer inOnauction
protected java.lang.Integer inOnspecial
protected java.lang.String istrCatenttypeId
protected java.lang.String istrField4
protected java.lang.String istrField5
protected java.lang.String istrMfname
protected java.lang.String istrMfpartnumber
protected java.lang.String istrPartnumber
protected java.lang.String istrCatEntURL
protected java.sql.Timestamp itmLastupdate
protected java.sql.Timestamp itmEndDate
protected java.sql.Timestamp itmStartDate
protected java.sql.Timestamp itmAvailabilityDate
protected java.sql.Timestamp itmLastOrderDate
protected java.sql.Timestamp itmEndOfServiceDate
protected java.sql.Timestamp itmDiscontinueDate
protected java.lang.Integer inAvailable
protected java.lang.Integer inDescLanguage
protected java.lang.Integer inPublished
protected java.lang.String istrAuxDescription1
protected java.lang.String istrAuxDescription2
protected java.lang.String istrFullimage
protected java.lang.String istrLongDescription
protected java.lang.String istrName
protected java.lang.String istrShortDescription
protected java.lang.String istrThumbnail
protected java.lang.String istrXMLdetail
protected java.sql.Timestamp itmAvailabilitydate
protected java.util.Hashtable ihashAttrValues
protected java.lang.Long inProductId
protected java.lang.Long inCatalogId
protected java.lang.Long inCatalogGroupId
protected java.lang.String istrStoreId
protected java.util.Hashtable ihashCatentryShipping
protected java.util.Hashtable ihashShippingMode
protected java.util.Hashtable ihashShippingTax
protected java.util.Hashtable ihashSalesTax
protected java.util.Hashtable ihashDiscount
public static ItemAccessBean findSKUByAttrValue(java.lang.Long nProductId, java.util.Hashtable hashtableAttributeValues)
public java.util.Hashtable getAttributeValues()
public java.lang.String getAuxDescription1()
public java.lang.String getAuxDescription2()
public java.lang.Integer getAvailable()
public java.sql.Timestamp getAvailablitydate()
public java.lang.Integer getBuyable()
public java.lang.Long getCatentryId()
public java.util.Hashtable getCatentryShippingInfo()
public java.lang.String getCatenttypeId()
public java.lang.String getCatEntURL()
public CommandContext getCommandContext()
public java.lang.Integer getDescLanguage()
public java.util.Hashtable getDiscount()
public java.lang.Integer getField1()
public java.lang.Integer getField2()
public java.math.BigDecimal getField3()
public java.lang.String getField4()
public java.lang.String getField5()
public java.lang.String getFullimage()
public java.sql.Timestamp getLastupdate()
public java.sql.Timestamp getEndDate()
public java.sql.Timestamp getStartDate()
public java.sql.Timestamp getAvailabilityDate()
public java.sql.Timestamp getLastOrderDate()
public java.sql.Timestamp getEndOfServiceDate()
public java.sql.Timestamp getDiscontinueDate()
public java.lang.String getLongDescription()
public java.lang.Integer getMarkfordelete()
public java.lang.Long getMemberId()
public java.lang.String getMfname()
public java.lang.String getMfpartnumber()
public java.lang.String getName()
public java.lang.Integer getOnauction()
public java.lang.Integer getOnspecial()
public java.lang.String getPartnumber()
public java.lang.Long getProductId()
public java.lang.Integer getPublished()
public java.util.Hashtable getSalesTax()
public java.util.Hashtable getShippingMode()
public java.util.Hashtable getShippingTax()
public java.lang.String getShortDescription()
public java.lang.String getStoreId()
public java.lang.String getThumbnail()
public java.lang.String getXMLdetail()
public static boolean hasAttribute(java.lang.Long nProductId)
public static boolean hasAttribute(java.lang.Long nProductId, java.lang.Integer nLanguageId)
public static boolean hasChildCatentry(java.lang.Long nProductId)
public static boolean isDuplicatedAttrValue(java.lang.Long nProductId, java.util.Hashtable hashtableAttributeValues)
public static boolean isExistingSKUCode(java.lang.String strSKUCode, java.lang.Long nMemberId)
public static void refreshCalcCodeRegistry()
public static void refreshRegistry(java.lang.String strRegistryName)
public void reset()
public void setAttributeValues(java.util.Hashtable hashAttrValues)
public void setAuxdescription1(java.lang.String astrAuxDescription1)
public void setAuxdescription2(java.lang.String astrAuxDescription2)
public void setAvailabilitydate(java.sql.Timestamp atmAvailabilitydate)
public void setAvailable(java.lang.Integer anAvailable)
public void setBuyable(java.lang.Integer anBuyable)
public void setCatentryId(java.lang.Long anCatentryId)
public void setCatentryShipping(java.util.Hashtable hashCatentryShipping)
public void setCatenttypeId(java.lang.String astrCatenttypeId)
public void setCatEntURL(java.lang.String astrCatEntURL)
public void setCommandContext(CommandContext cmdContext) throws ECApplicationException
public void setDescLanguage(java.lang.Integer anDescLanguage) throws ECException
public void setDiscount(java.util.Hashtable hashDiscount)
public void setField1(java.lang.Integer anField1)
public void setField2(java.lang.Integer anField2)
public void setField3(java.math.BigDecimal adField3)
public void setField4(java.lang.String astrField4)
public void setField5(java.lang.String astrField5)
public void setFullimage(java.lang.String astrFullimage)
public void setLastupdate(java.sql.Timestamp atmLastupdate)
public void setEndDate(java.sql.Timestamp atmEndDate)
public void setStartDate(java.sql.Timestamp atmStartDate)
public void setAvailabilityDate(java.sql.Timestamp atmAvailabilityDate)
public void setLastOrderDate(java.sql.Timestamp atmLastOrderDate)
public void setEndOfServiceDate(java.sql.Timestamp atmEndOfServiceDate)
public void setDiscontinueDate(java.sql.Timestamp atmDiscontinueDate)
public void setLongdescription(java.lang.String astrLongDescription)
public void setMarkfordelete(java.lang.Integer anMarkfordelete)
public void setMemberId(java.lang.Long anMemberId)
public void setMfname(java.lang.String astrMfname)
public void setMfpartnumber(java.lang.String astrMfpartnumber)
public void setName(java.lang.String astrName)
public void setOnauction(java.lang.Integer anOnauction)
public void setOnspecial(java.lang.Integer anOnspecial)
public void setPartnumber(java.lang.String astrPartnumber)
public void setProductId(java.lang.Long nProductId)
public void setPublished(java.lang.Integer anPublished)
public void setSalesTax(java.util.Hashtable hashSalesTax)
public void setShippingMode(java.util.Hashtable hashShippingMode)
public void setShippingTax(java.util.Hashtable hashShippingTax)
public void setShortdescription(java.lang.String astrShortDescription)
public void setStoreId(java.lang.String astrStoreId)
public void setThumbnail(java.lang.String astrThumbnail)
public void setXMLdetail(java.lang.String astrXMLdetail)
protected java.lang.String str2YN(java.lang.String str)
public java.lang.Long getCatalogGroupId()
public java.lang.Long getCatalogId()
public void setCatalogGroupId(java.lang.Long nCatalogGroupId)
public void setCatalogId(java.lang.Long nCatalogId)
public static java.lang.Long findAttributeValueId(java.lang.Long nAttributeId, java.lang.Integer nLanguageId, java.lang.String strAttributeValue)
public static java.lang.Integer getStoreDefaultLanguage(java.lang.Integer nStoreId)
public static void flushEJB()
public static boolean hasPrices(java.lang.Long nCatentryId)
public static boolean hasPrices(java.lang.Long nCatentryId, java.lang.Integer nStoreId)