org.broadleafcommerce.catalog.domain
Class BasePriceImpl

java.lang.Object
  extended by org.broadleafcommerce.catalog.domain.BasePriceImpl
All Implemented Interfaces:
java.io.Serializable, BasePrice

public class BasePriceImpl
extends java.lang.Object
implements BasePrice

The Class BasePriceImpl.

See Also:
Serialized Form

Field Summary
protected  java.math.BigDecimal amount
          The amount.
protected  Auditable auditable
          The auditable.
protected  java.util.Date endDate
          The end date.
protected  java.lang.Long id
          The id.
protected  Sku sku
          The sku.
protected  java.util.Date startDate
          The start date.
 
Constructor Summary
BasePriceImpl()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 Money getAmount()
          Gets the amount.
 Auditable getAuditable()
          Gets the auditable.
 java.util.Date getEndDate()
          Gets the end date.
 java.lang.Long getId()
          Gets the id.
 Sku getSku()
          Gets the sku.
 java.util.Date getStartDate()
          Gets the start date.
 int hashCode()
           
 void setAmount(Money amount)
          Sets the amount.
 void setAuditable(Auditable auditable)
          Sets the auditable.
 void setEndDate(java.util.Date endDate)
          Sets the end date.
 void setId(java.lang.Long id)
          Sets the id.
 void setSku(Sku sku)
          Sets the sku.
 void setStartDate(java.util.Date startDate)
          Sets the start date.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected java.lang.Long id
The id.


auditable

protected Auditable auditable
The auditable.


sku

protected Sku sku
The sku.


amount

protected java.math.BigDecimal amount
The amount.


startDate

protected java.util.Date startDate
The start date.


endDate

protected java.util.Date endDate
The end date.

Constructor Detail

BasePriceImpl

public BasePriceImpl()
Method Detail

getId

public java.lang.Long getId()
Description copied from interface: BasePrice
Gets the id.

Specified by:
getId in interface BasePrice
Returns:
the id

setId

public void setId(java.lang.Long id)
Description copied from interface: BasePrice
Sets the id.

Specified by:
setId in interface BasePrice
Parameters:
id - the new id

getAmount

public Money getAmount()
Description copied from interface: BasePrice
Gets the amount.

Specified by:
getAmount in interface BasePrice
Returns:
the amount

setAmount

public void setAmount(Money amount)
Description copied from interface: BasePrice
Sets the amount.

Specified by:
setAmount in interface BasePrice
Parameters:
amount - the new amount

getStartDate

public java.util.Date getStartDate()
Description copied from interface: BasePrice
Gets the start date.

Specified by:
getStartDate in interface BasePrice
Returns:
the start date

setStartDate

public void setStartDate(java.util.Date startDate)
Description copied from interface: BasePrice
Sets the start date.

Specified by:
setStartDate in interface BasePrice
Parameters:
startDate - the new start date

getEndDate

public java.util.Date getEndDate()
Description copied from interface: BasePrice
Gets the end date.

Specified by:
getEndDate in interface BasePrice
Returns:
the end date

setEndDate

public void setEndDate(java.util.Date endDate)
Description copied from interface: BasePrice
Sets the end date.

Specified by:
setEndDate in interface BasePrice
Parameters:
endDate - the new end date

getSku

public Sku getSku()
Description copied from interface: BasePrice
Gets the sku.

Specified by:
getSku in interface BasePrice
Returns:
the sku

setSku

public void setSku(Sku sku)
Description copied from interface: BasePrice
Sets the sku.

Specified by:
setSku in interface BasePrice
Parameters:
sku - the new sku

getAuditable

public Auditable getAuditable()
Description copied from interface: BasePrice
Gets the auditable.

Specified by:
getAuditable in interface BasePrice
Returns:
the auditable

setAuditable

public void setAuditable(Auditable auditable)
Description copied from interface: BasePrice
Sets the auditable.

Specified by:
setAuditable in interface BasePrice
Parameters:
auditable - the new auditable

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010. All Rights Reserved.