com.retek.component.media.impl
Class MediaImpl
java.lang.Object
com.retek.commons.component.impl.BusinessObjectImpl
com.retek.commons.component.impl.DistributedObjectImpl
com.retek.component.media.impl.MediaImpl
- All Implemented Interfaces:
- BusinessObject, DistributedObject, Media
- public class MediaImpl
- extends DistributedObjectImpl
- implements Media
Fields inherited from interface com.retek.component.media.Media |
ACTIVE_DATE, ACTIVE_END_DATE, ACTIVE_START_DATE, ACTIVE_STATUS, AVERAGE_ORDER_SIZE, BANNER, CHANNEL, CURRENT_FORECAST, DATE, DEFAULT_SOURCE_CODE, DEFAULT_WAREHOUSE, DELETION, DESCRIPTION, DESCRIPTION_SEARCH, DROP_CODE_DATE, DROP_CODE_SOURCE_CODE_COLLECTION, EFFECTIVE_PRICE_END_DATE, EFFECTIVE_PRICE_START_DATE, ID, IN_HOME_DATE, ORIGINAL_FORECAST, PAGE_LENGTH, PAGE_SPREAD, PAGE_UOM, PAGE_WIDTH, RELEASE_DATE, RELEASED_STATUS, RESPONSE_RATE, RUSH_DELIVERY_CHARGE, RUSH_DELIVERY_CHARGE_EXCEPTION, RUSH_DELIVERY_CHARGE_GIFT_CERTIFICATE, SEASON, SELLING_ITEM_COLLECTION, SELLING_SKU, SELLING_SKU_COLLECTION, SELLING_SKU_UNIT_PRICE, SHIPPING_RATE_COLLECTION, STATUS, STD_DELIVERY_CHARGE_DOLLAR, STD_DELIVERY_CHARGE_MAX, STD_DELIVERY_CHARGE_MIN, STD_DELIVERY_CHARGE_PERCENT, TOTAL_AD_COST, TOTAL_NUMBER_OF_PAGES, TYPE, VIRTUAL_STORE, WORKSHEET_STATUS, YEAR |
Methods inherited from class com.retek.commons.component.impl.DistributedObjectImpl |
attributesToString, createEmptyDto, debugToString, discardChanges, discardChangesShallow, equals, getGenericDto, getId, getReference, getReference, getVersion, hashCode, isDeleted, isDirty, isDirtyDeep, isDirtyIgnoreFields, isHollow, isPersisted, markAllDeleted, refresh, toString, wrap, wrap, wrap, wrap |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.retek.commons.component.DistributedObject |
debugToString, discardChanges, getContext, getId, getReference, isDeleted, isDirty, isDirtyDeep, isDirtyIgnoreFields, isPersisted, refresh |
MediaImpl
public MediaImpl(DistributedContext context,
DistributedReference ref,
boolean createHollow)
throws SystemException
MediaImpl
public MediaImpl(DistributedContext context,
DistributedReference ref,
Banner banner,
java.lang.String displayCode)
throws SystemException,
BusinessException
getDto
public MediaDto getDto()
throws SystemException
- Throws:
SystemException
submit
public void submit()
throws SystemException,
BusinessException
- Specified by:
submit
in interface Media
- Throws:
SystemException
BusinessException
validateStartDate
public void validateStartDate()
throws SystemException,
BusinessException
- Specified by:
validateStartDate
in interface Media
- Throws:
SystemException
BusinessException
getBanner
public Banner getBanner()
throws SystemException
- Specified by:
getBanner
in interface Media
- Throws:
SystemException
getDisplayCode
public java.lang.String getDisplayCode()
throws SystemException
- Specified by:
getDisplayCode
in interface Media
- Throws:
SystemException
setMediaType
public void setMediaType(MediaType mediaType)
throws SystemException
- Specified by:
setMediaType
in interface Media
- Throws:
SystemException
setSubConcept
public void setSubConcept(SubConcept subConcept)
throws SystemException
- Specified by:
setSubConcept
in interface Media
- Throws:
SystemException
setSeasonCode
public void setSeasonCode(SeasonCode seasonCode)
throws SystemException
- Specified by:
setSeasonCode
in interface Media
- Throws:
SystemException
setStatus
public void setStatus(MediaStatus mediaStatus)
throws SystemException
- Specified by:
setStatus
in interface Media
- Throws:
SystemException
setYear
public void setYear(java.lang.String year)
throws SystemException
- Specified by:
setYear
in interface Media
- Throws:
SystemException
setInHomeDate
public void setInHomeDate(RDate inHomeDate)
throws SystemException
- Specified by:
setInHomeDate
in interface Media
- Throws:
SystemException
setReleaseDate
public void setReleaseDate(RDate releaseDate)
throws SystemException
- Specified by:
setReleaseDate
in interface Media
- Throws:
SystemException
setActiveDate
public void setActiveDate(RDate activeDate)
throws SystemException
- Specified by:
setActiveDate
in interface Media
- Throws:
SystemException
setPriceEffectiveStartDate
public void setPriceEffectiveStartDate(RDate priceEffStartDate)
throws SystemException
- Specified by:
setPriceEffectiveStartDate
in interface Media
- Throws:
SystemException
setPriceEffectiveEndDate
public void setPriceEffectiveEndDate(RDate priceEffEndDate)
throws SystemException
- Specified by:
setPriceEffectiveEndDate
in interface Media
- Throws:
SystemException
setPageLength
public void setPageLength(java.math.BigDecimal pageLength)
throws SystemException
- Specified by:
setPageLength
in interface Media
- Throws:
SystemException
setPageWidth
public void setPageWidth(java.math.BigDecimal pageWidth)
throws SystemException
- Specified by:
setPageWidth
in interface Media
- Throws:
SystemException
setPageUnitOfMeasure
public void setPageUnitOfMeasure(UnitOfMeasure unitOfMeasure)
throws SystemException
- Specified by:
setPageUnitOfMeasure
in interface Media
- Throws:
SystemException
setTotalAdCost
public void setTotalAdCost(Money cost)
throws SystemException
- Specified by:
setTotalAdCost
in interface Media
- Throws:
SystemException
setTotalNumPages
public void setTotalNumPages(long numPages)
throws SystemException
- Specified by:
setTotalNumPages
in interface Media
- Throws:
SystemException
setResponseRate
public void setResponseRate(java.lang.String responseRate)
throws SystemException
- Specified by:
setResponseRate
in interface Media
- Throws:
SystemException
setAvgOrderSize
public void setAvgOrderSize(java.lang.String avgOrderSize)
throws SystemException
- Specified by:
setAvgOrderSize
in interface Media
- Throws:
SystemException
setOriginalForecast
public void setOriginalForecast(java.lang.String originalForecast)
throws SystemException
- Specified by:
setOriginalForecast
in interface Media
- Throws:
SystemException
setCurrentForecast
public void setCurrentForecast(java.lang.String currentForecast)
throws SystemException
- Specified by:
setCurrentForecast
in interface Media
- Throws:
SystemException
setDefaultSourceCode
public void setDefaultSourceCode(SourceCode defaultSourceCode)
throws SystemException
- Specified by:
setDefaultSourceCode
in interface Media
- Throws:
SystemException
setDescription
public void setDescription(java.lang.String description)
throws SystemException
- Specified by:
setDescription
in interface Media
- Throws:
SystemException
getStatus
public MediaStatus getStatus()
throws SystemException
- Specified by:
getStatus
in interface Media
- Throws:
SystemException
getYear
public java.lang.String getYear()
throws SystemException
- Specified by:
getYear
in interface Media
- Throws:
SystemException
getInHomeDate
public RDate getInHomeDate()
throws SystemException
- Specified by:
getInHomeDate
in interface Media
- Throws:
SystemException
getReleaseDate
public RDate getReleaseDate()
throws SystemException
- Specified by:
getReleaseDate
in interface Media
- Throws:
SystemException
getReserveFromDate
public RDate getReserveFromDate()
throws SystemException
- Specified by:
getReserveFromDate
in interface Media
- Throws:
SystemException
getActiveDate
public RDate getActiveDate()
throws SystemException
- Specified by:
getActiveDate
in interface Media
- Throws:
SystemException
getPriceEffectiveStartDate
public RDate getPriceEffectiveStartDate()
throws SystemException
- Specified by:
getPriceEffectiveStartDate
in interface Media
- Throws:
SystemException
getPriceEffectiveEndDate
public RDate getPriceEffectiveEndDate()
throws SystemException
- Specified by:
getPriceEffectiveEndDate
in interface Media
- Throws:
SystemException
getPageLength
public java.math.BigDecimal getPageLength()
throws SystemException
- Specified by:
getPageLength
in interface Media
- Throws:
SystemException
getPageWidth
public java.math.BigDecimal getPageWidth()
throws SystemException
- Specified by:
getPageWidth
in interface Media
- Throws:
SystemException
getPageUnitOfMeasure
public UnitOfMeasure getPageUnitOfMeasure()
throws SystemException
- Specified by:
getPageUnitOfMeasure
in interface Media
- Throws:
SystemException
getTotalAdCost
public Money getTotalAdCost()
throws SystemException
- Specified by:
getTotalAdCost
in interface Media
- Throws:
SystemException
getTotalNumPages
public long getTotalNumPages()
throws SystemException
- Specified by:
getTotalNumPages
in interface Media
- Throws:
SystemException
getResponseRate
public java.lang.String getResponseRate()
throws SystemException
- Specified by:
getResponseRate
in interface Media
- Throws:
SystemException
getAvgOrderSize
public java.lang.String getAvgOrderSize()
throws SystemException
- Specified by:
getAvgOrderSize
in interface Media
- Throws:
SystemException
getOriginalForecast
public java.lang.String getOriginalForecast()
throws SystemException
- Specified by:
getOriginalForecast
in interface Media
- Throws:
SystemException
getCurrentForecast
public java.lang.String getCurrentForecast()
throws SystemException
- Specified by:
getCurrentForecast
in interface Media
- Throws:
SystemException
getDefaultSourceCode
public SourceCode getDefaultSourceCode()
throws SystemException
- Specified by:
getDefaultSourceCode
in interface Media
- Throws:
SystemException
getSourceCodes
public java.util.Collection getSourceCodes()
throws SystemException
- Specified by:
getSourceCodes
in interface Media
- Throws:
SystemException
getDropCodes
public java.util.Collection getDropCodes()
throws SystemException
- Specified by:
getDropCodes
in interface Media
- Throws:
SystemException
addDropCode
public DropCode addDropCode(DropCode dropCode)
throws SystemException,
BusinessException
- Specified by:
addDropCode
in interface Media
- Throws:
SystemException
BusinessException
validateDropCodeUpdate
public void validateDropCodeUpdate(DropCode dropCode)
throws SystemException,
BusinessException
- Specified by:
validateDropCodeUpdate
in interface Media
- Throws:
SystemException
BusinessException
validateActiveDate
public void validateActiveDate()
throws SystemException,
BusinessException
- Specified by:
validateActiveDate
in interface Media
- Throws:
SystemException
BusinessException
removeDropCode
public void removeDropCode(DropCode dropCode)
throws SystemException
- Specified by:
removeDropCode
in interface Media
- Throws:
SystemException
getMediaType
public MediaType getMediaType()
throws SystemException
- Specified by:
getMediaType
in interface Media
- Throws:
SystemException
getSubConcept
public SubConcept getSubConcept()
throws SystemException
- Specified by:
getSubConcept
in interface Media
- Throws:
SystemException
getDropCode
public DropCode getDropCode(java.lang.String code)
throws SystemException
- Specified by:
getDropCode
in interface Media
- Throws:
SystemException
getSeasonCode
public SeasonCode getSeasonCode()
throws SystemException
- Specified by:
getSeasonCode
in interface Media
- Throws:
SystemException
setVirtualStore
public void setVirtualStore(Store store)
throws SystemException
- Specified by:
setVirtualStore
in interface Media
- Throws:
SystemException
getStore
public Store getStore()
throws SystemException
- Specified by:
getStore
in interface Media
- Throws:
SystemException
getCirculation
public long getCirculation()
throws SystemException
- Specified by:
getCirculation
in interface Media
- Throws:
SystemException
getTotalArea
public java.math.BigDecimal getTotalArea()
throws SystemException
- Specified by:
getTotalArea
in interface Media
- Throws:
SystemException
getDescription
public java.lang.String getDescription()
throws SystemException
- Specified by:
getDescription
in interface Media
- Throws:
SystemException
getSellingItems
public java.util.Collection getSellingItems()
throws SystemException
- Specified by:
getSellingItems
in interface Media
- Throws:
SystemException
getSellingItem
public SellingItem getSellingItem(java.lang.String sellingItemNumber)
throws SystemException
- Specified by:
getSellingItem
in interface Media
- Throws:
SystemException
getSellingSkuCount
public int getSellingSkuCount()
throws SystemException
- Specified by:
getSellingSkuCount
in interface Media
- Throws:
SystemException
getChannelType
public ChannelType getChannelType()
throws SystemException
- Specified by:
getChannelType
in interface Media
- Throws:
SystemException
setChannelType
public void setChannelType(ChannelType channelType)
throws SystemException
- Specified by:
setChannelType
in interface Media
- Throws:
SystemException
getChannel
public Channel getChannel()
throws SystemException
- Throws:
SystemException
getShippingRateTable
public ShippingRateTable getShippingRateTable()
throws SystemException
- Description copied from interface:
Media
- Return the current (most recent shipping rate table) for the media.
- Specified by:
getShippingRateTable
in interface Media
- Returns:
- ShippingRateTable current shipping rate table
- Throws:
SystemException
getShippingRateTable
public ShippingRateTable getShippingRateTable(RDate effectiveDate)
throws SystemException
- Description copied from interface:
Media
- Return the shipping rate table for the specified effectiveDate.
- Specified by:
getShippingRateTable
in interface Media
- Returns:
- ShippingRateTable shipping rate table for effective date
- Throws:
SystemException
getAllShippingRateTables
public java.util.Collection getAllShippingRateTables()
throws SystemException
- Description copied from interface:
Media
- Return all shipping rate tables for the media.
- Specified by:
getAllShippingRateTables
in interface Media
- Returns:
- Set shipping rate tables.
- Throws:
SystemException
getOrderableStatus
public MediaOrderableStatus getOrderableStatus()
throws SystemException
- Specified by:
getOrderableStatus
in interface Media
- Throws:
SystemException
readLatest
protected Dto readLatest()
throws SystemException
- Overrides:
readLatest
in class DistributedObjectImpl
- Throws:
SystemException
addSourceCode
public void addSourceCode(DropCode dropCode,
SourceCode sourceCode)
throws SystemException,
BusinessException
- Specified by:
addSourceCode
in interface Media
- Throws:
SystemException
BusinessException
removeSourceCode
public void removeSourceCode(DropCode dropCode,
SourceCode sourceCode)
throws SystemException
- Specified by:
removeSourceCode
in interface Media
- Throws:
SystemException
isNewAdjustmentShippingRateTableAllowed
public boolean isNewAdjustmentShippingRateTableAllowed()
throws SystemException
- Description copied from interface:
Media
- Return boolean indicating if the media is allowed to have a new adjusted
shipping rate table created. If the media's current rate table can be adjusted
(ex. if the media is not yet orderable) this operation will answer false,
since the current rate table can simply be changed. If the media's current rate
table is locked down and cannot be adjusted (ex. if the media is orderable) this
operation will answer true.
- Specified by:
isNewAdjustmentShippingRateTableAllowed
in interface Media
- Returns:
- boolean true if new adjustment shipping rate table allowed for media
- Throws:
SystemException
createAdjustmentShippingRateTable
public ShippingRateTable createAdjustmentShippingRateTable()
throws SystemException,
BusinessException
- Description copied from interface:
Media
- Create a new adjustment shipping rate table for the media. The adjustment rate
table will have an effective date of tommorrow. The existing shipping
rate table for the media will be marked with an effective date of today.
This operation will throw a business exception if it is not valid to create an adjustment
rate table.
- Specified by:
createAdjustmentShippingRateTable
in interface Media
- Returns:
- ShippingRateTable new adjustment shipping rate table
- Throws:
SystemException
BusinessException
persistForDelete
public void persistForDelete(MediaDto dto)
throws SystemException,
BusinessException,
ConcurrentUpdateException
- Throws:
SystemException
BusinessException
ConcurrentUpdateException
remove
public void remove()
throws SystemException,
BusinessException
- Specified by:
remove
in interface Media
- Throws:
SystemException
BusinessException
Copyright © 2004 Retek Inc. All Rights Reserved.
- Generated at Fri, 10/22/2004 07:28