org.broadleafcommerce.core.offer.domain
Class OfferAuditImpl

java.lang.Object
  extended by org.broadleafcommerce.core.offer.domain.OfferAuditImpl
All Implemented Interfaces:
Serializable, OfferAudit

@Entity
public class OfferAuditImpl
extends Object
implements OfferAudit

See Also:
Serialized Form

Field Summary
protected  Long customerId
           
protected  Long id
           
protected static org.apache.commons.logging.Log LOG
           
protected  Long offerId
           
protected  Long orderId
           
protected  Date redeemedDate
           
static long serialVersionUID
           
 
Constructor Summary
OfferAuditImpl()
           
 
Method Summary
 boolean equals(Object o)
           
 Long getCustomerId()
          The id of the associated customer.
 Long getId()
          System generated unique id for this audit record.
 Long getOfferCodeId()
          The offer code that was used to retrieve the offer.
 Long getOfferId()
          The associated offer id.
 Long getOrderId()
          The associated order id.
 Date getRedeemedDate()
          The date the offer was applied to the order.
 int hashCode()
           
 void setCustomerId(Long customerId)
          Sets the customer id.
 void setId(Long id)
          Sets the id.
 void setOfferCodeId(Long offerCodeId)
          Sets the offer code that was used to retrieve the offer.
 void setOfferId(Long offerId)
          Sets the associated offer id.
 void setOrderId(Long orderId)
          Sets the associated order id.
 void setRedeemedDate(Date redeemedDate)
          Sets the offer redeemed date.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values

LOG

protected static final org.apache.commons.logging.Log LOG

id

protected Long id

offerId

protected Long offerId

customerId

protected Long customerId

orderId

protected Long orderId

redeemedDate

protected Date redeemedDate
Constructor Detail

OfferAuditImpl

public OfferAuditImpl()
Method Detail

getId

public Long getId()
Description copied from interface: OfferAudit
System generated unique id for this audit record.

Specified by:
getId in interface OfferAudit
Returns:

setId

public void setId(Long id)
Description copied from interface: OfferAudit
Sets the id.

Specified by:
setId in interface OfferAudit

getOfferId

public Long getOfferId()
Description copied from interface: OfferAudit
The associated offer id.

Specified by:
getOfferId in interface OfferAudit
Returns:

setOfferId

public void setOfferId(Long offerId)
Description copied from interface: OfferAudit
Sets the associated offer id.

Specified by:
setOfferId in interface OfferAudit

getOfferCodeId

public Long getOfferCodeId()
Description copied from interface: OfferAudit

The offer code that was used to retrieve the offer. This will be null if the offer was automatically applied and not obtained by an OfferCode.

For any 3.0 version starting with 3.0.6-GA and above, this has the potential to throw an UnsupportedOperationException. This column did not exist until 3.0.6-GA. Rather than prevent a drop-in release of 3.0.6-GA, by making this database modification, OfferAuditWeaveImpl should instead be weaved into this class to obtain the column definition along with correct implementation of this method.

Specified by:
getOfferCodeId in interface OfferAudit
See Also:
OfferAuditWeaveImpl}

setOfferCodeId

public void setOfferCodeId(Long offerCodeId)
Description copied from interface: OfferAudit

Sets the offer code that was used to retrieve the offer. This should be null if the offer was automatically applied and not obtained by an OfferCode.

For any 3.0 version starting with 3.0.6-GA and above, this has the potential to throw an UnsupportedOperationException. This column did not exist until 3.0.6-GA. Rather than prevent a drop-in release of 3.0.6-GA, by making this database modification, OfferAuditWeaveImpl should instead be weaved into this class to obtain the column definition along with correct implementation of this method.

Specified by:
setOfferCodeId in interface OfferAudit
See Also:
OfferAuditWeaveImpl}

getCustomerId

public Long getCustomerId()
Description copied from interface: OfferAudit
The id of the associated customer.

Specified by:
getCustomerId in interface OfferAudit
Returns:

setCustomerId

public void setCustomerId(Long customerId)
Description copied from interface: OfferAudit
Sets the customer id.

Specified by:
setCustomerId in interface OfferAudit

getOrderId

public Long getOrderId()
Description copied from interface: OfferAudit
The associated order id.

Specified by:
getOrderId in interface OfferAudit
Returns:

setOrderId

public void setOrderId(Long orderId)
Description copied from interface: OfferAudit
Sets the associated order id.

Specified by:
setOrderId in interface OfferAudit

getRedeemedDate

public Date getRedeemedDate()
Description copied from interface: OfferAudit
The date the offer was applied to the order.

Specified by:
getRedeemedDate in interface OfferAudit
Returns:

setRedeemedDate

public void setRedeemedDate(Date redeemedDate)
Description copied from interface: OfferAudit
Sets the offer redeemed date.

Specified by:
setRedeemedDate in interface OfferAudit

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object


Copyright © 2013. All Rights Reserved.