com.retek.component.customerorder.impl
Class GeneralAccommodationImpl

java.lang.Object
  extended bycom.retek.commons.component.impl.BusinessObjectImpl
      extended bycom.retek.commons.component.impl.DistributedObjectImpl
          extended bycom.retek.component.customerorder.impl.AccommodationImpl
              extended bycom.retek.component.customerorder.impl.GeneralAccommodationImpl
All Implemented Interfaces:
Accommodation, BusinessObject, CustomerOrderTransactionItem, DistributedObject, GeneralAccommodation

public class GeneralAccommodationImpl
extends AccommodationImpl
implements GeneralAccommodation


Nested Class Summary
 
Nested classes inherited from class com.retek.component.customerorder.impl.AccommodationImpl
AccommodationImpl.AccommodationDateComparator
 
Nested classes inherited from class com.retek.commons.component.impl.DistributedObjectImpl
DistributedObjectImpl.DtoBurgular
 
Field Summary
 
Fields inherited from class com.retek.commons.component.impl.BusinessObjectImpl
context
 
Fields inherited from interface com.retek.component.customerorder.Accommodation
ORDER, ORDER_LINE, REASON, VALUE, ZERO_SALE_LINE
 
Constructor Summary
GeneralAccommodationImpl(DistributedContext context, DistributedReference reference, AccommodationTypeEnum accommodationType, AccommodationScopeEnum accommodationScope, User user)
           
GeneralAccommodationImpl(DistributedContext context, DistributedReference reference, boolean createHollow)
           
 
Method Summary
static Money applyAccommodations(Money basePrice, java.util.Collection accommodations)
           
 void calculateAmount()
           
 Money getAccommodationAmount()
           
 Money getBaseAmount()
           
 Money getDollarOff()
           
 GeneralAccommodationDto getGeneralAccommodationDto()
           
 CustomerOrderPaymentTransactionType getPaymentTransactionType()
           
 Percent getPercentOff()
           
 AccommodationShippingSubTypeEnum getShippingSubType()
          Returns the shipping sub type of the accommodation if the accommodation type is AccommodationTypeEnum.SHIPPING_HANDLING.
 Money getTaxAmount()
           
 Money getTaxCreditAmount()
          Returns the amount of taxes that will be accommodated.
 java.lang.String getTaxCreditInvoiceId()
           
 Money getTransactionItemAmount()
           
 boolean isDollarOff()
           
 boolean isPercentOff()
           
 void setDollarOff(Money dollarOff)
           
 void setPercentOff(Percent percentOff)
           
 void setShippingSubType(AccommodationShippingSubTypeEnum shippingSubType)
          Sets the shipping sub type of the accommodation if the accommodation type is AccommodationTypeEnum.SHIPPING_HANDLING.
 void setTaxAmount(Money amount)
           
 void setTaxCreditInvoiceId(java.lang.String invoiceId)
           
 void zeroOutAccommodation()
           
 
Methods inherited from class com.retek.component.customerorder.impl.AccommodationImpl
doMarkReadyForSalesAudit, getAccommodationDto, getAccommodationScope, getAccommodationType, getCreatedByUser, getCustomerOrder, getCustomerOrderLine, getDate, getDescription, getHistoryEventDetail, getLastUpdatedByUser, getReason, getSalesAuditExportState, getSalesAuditTransactionDate, getTransactionGroup, isAppliedPreShipment, isCreditForTransactionGroupBalance, isDebitForTransactionGroupBalance, isExchangeSaleLine, isInClosedTransactionGroup, isReplacementSaleLine, isVertexTaxCreditGenerated, notifyTransactionGroupClosed, removeCustomerOrder, setAppliedPreShipment, setCustomerOrder, setCustomerOrderLine, setReason, setSalesAuditExportState, setSalesAuditTransactionDate, setTransactionGroup, setVertexTaxCreditGenerated
 
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, readLatest, refresh, toString, wrap, wrap, wrap, wrap
 
Methods inherited from class com.retek.commons.component.impl.BusinessObjectImpl
checkRelation, checkRelation, getBusinessInterface, getContext
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.retek.component.customerorder.Accommodation
getAccommodationScope, getAccommodationType, getCreatedByUser, getCustomerOrder, getCustomerOrderLine, getDate, getDescription, getHistoryEventDetail, getLastUpdatedByUser, getReason, getSalesAuditExportState, getSalesAuditTransactionDate, isAppliedPreShipment, isVertexTaxCreditGenerated, setAppliedPreShipment, setReason, setSalesAuditExportState, setSalesAuditTransactionDate, setVertexTaxCreditGenerated
 
Methods inherited from interface com.retek.commons.component.DistributedObject
debugToString, discardChanges, getContext, getId, getReference, isDeleted, isDirty, isDirtyDeep, isDirtyIgnoreFields, isPersisted, refresh
 
Methods inherited from interface com.retek.commons.component.BusinessObject
getBusinessInterface
 
Methods inherited from interface com.retek.component.customerorder.CustomerOrderTransactionItem
getTransactionGroup, isCreditForTransactionGroupBalance, isDebitForTransactionGroupBalance, isExchangeSaleLine, isInClosedTransactionGroup, isReplacementSaleLine, notifyTransactionGroupClosed, setTransactionGroup
 

Constructor Detail

GeneralAccommodationImpl

public GeneralAccommodationImpl(DistributedContext context,
                                DistributedReference reference,
                                boolean createHollow)
                         throws SystemException

GeneralAccommodationImpl

public GeneralAccommodationImpl(DistributedContext context,
                                DistributedReference reference,
                                AccommodationTypeEnum accommodationType,
                                AccommodationScopeEnum accommodationScope,
                                User user)
                         throws SystemException
Method Detail

getGeneralAccommodationDto

public GeneralAccommodationDto getGeneralAccommodationDto()
                                                   throws SystemException
Throws:
SystemException

getAccommodationAmount

public Money getAccommodationAmount()
                             throws SystemException
Specified by:
getAccommodationAmount in interface Accommodation
Throws:
SystemException

getTaxCreditAmount

public Money getTaxCreditAmount()
                         throws SystemException
Description copied from interface: GeneralAccommodation
Returns the amount of taxes that will be accommodated. On a TaxAccommodation this IS the ammount of the accommodation On other types of accommodations that require taxes being refunded due overall value decrease this is that amount.

Specified by:
getTaxCreditAmount in interface GeneralAccommodation
Returns:
The amount of taxes accommodated.
Throws:
SystemException

setTaxAmount

public void setTaxAmount(Money amount)
                  throws SystemException
Throws:
SystemException

getTransactionItemAmount

public Money getTransactionItemAmount()
                               throws SystemException,
                                      BusinessException
Specified by:
getTransactionItemAmount in interface CustomerOrderTransactionItem
Throws:
SystemException
BusinessException

getPaymentTransactionType

public final CustomerOrderPaymentTransactionType getPaymentTransactionType()
                                                                    throws SystemException
Specified by:
getPaymentTransactionType in interface Accommodation
Specified by:
getPaymentTransactionType in class AccommodationImpl
Throws:
SystemException

calculateAmount

public void calculateAmount()
                     throws SystemException,
                            BusinessException
Specified by:
calculateAmount in interface Accommodation
Throws:
SystemException
BusinessException

isDollarOff

public boolean isDollarOff()
                    throws SystemException
Specified by:
isDollarOff in interface GeneralAccommodation
Throws:
SystemException

isPercentOff

public boolean isPercentOff()
                     throws SystemException
Specified by:
isPercentOff in interface GeneralAccommodation
Throws:
SystemException

getDollarOff

public Money getDollarOff()
                   throws SystemException
Specified by:
getDollarOff in interface GeneralAccommodation
Throws:
SystemException

getPercentOff

public Percent getPercentOff()
                      throws SystemException
Specified by:
getPercentOff in interface GeneralAccommodation
Throws:
SystemException

setDollarOff

public void setDollarOff(Money dollarOff)
                  throws SystemException
Specified by:
setDollarOff in interface GeneralAccommodation
Throws:
SystemException

setPercentOff

public void setPercentOff(Percent percentOff)
                   throws SystemException
Specified by:
setPercentOff in interface GeneralAccommodation
Throws:
SystemException

getTaxCreditInvoiceId

public java.lang.String getTaxCreditInvoiceId()
                                       throws SystemException
Specified by:
getTaxCreditInvoiceId in interface GeneralAccommodation
Throws:
SystemException

setTaxCreditInvoiceId

public void setTaxCreditInvoiceId(java.lang.String invoiceId)
                           throws SystemException
Throws:
SystemException

getTaxAmount

public Money getTaxAmount()
                   throws SystemException
Specified by:
getTaxAmount in interface Accommodation
Throws:
SystemException

setShippingSubType

public void setShippingSubType(AccommodationShippingSubTypeEnum shippingSubType)
                        throws SystemException
Description copied from interface: GeneralAccommodation
Sets the shipping sub type of the accommodation if the accommodation type is AccommodationTypeEnum.SHIPPING_HANDLING. The subType represents if the accommodation is for standard , rush or additional shipping.

Specified by:
setShippingSubType in interface GeneralAccommodation
Throws:
SystemException

getShippingSubType

public AccommodationShippingSubTypeEnum getShippingSubType()
                                                    throws SystemException
Description copied from interface: GeneralAccommodation
Returns the shipping sub type of the accommodation if the accommodation type is AccommodationTypeEnum.SHIPPING_HANDLING. The subType represents if the accommodation is for standard , rush or additional shipping.

Specified by:
getShippingSubType in interface GeneralAccommodation
Returns:
shipping sub type.
Throws:
SystemException

getBaseAmount

public Money getBaseAmount()
                    throws SystemException
Specified by:
getBaseAmount in interface GeneralAccommodation
Throws:
SystemException

zeroOutAccommodation

public void zeroOutAccommodation()
                          throws SystemException
Throws:
SystemException

applyAccommodations

public static Money applyAccommodations(Money basePrice,
                                        java.util.Collection accommodations)
                                 throws SystemException
Throws:
SystemException


Copyright © 2004 Retek Inc. All Rights Reserved. - Generated at Fri, 10/22/2004 07:28