Liferay 6.0.5

com.liferay.portlet.shopping.model
Class ShoppingCouponWrapper

java.lang.Object
  extended by com.liferay.portlet.shopping.model.ShoppingCouponWrapper
All Implemented Interfaces:
BaseModel<ShoppingCoupon>, ShoppingCoupon, ShoppingCouponModel, Serializable, Cloneable, Comparable<ShoppingCoupon>

public class ShoppingCouponWrapper
extends Object
implements ShoppingCoupon

This class is a wrapper for ShoppingCoupon.

See Also:
ShoppingCoupon, Serialized Form
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Constructor Summary
ShoppingCouponWrapper(ShoppingCoupon shoppingCoupon)
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(ShoppingCoupon shoppingCoupon)
           
 boolean getActive()
          Gets the active of this shopping coupon.
 String getCode()
          Gets the code of this shopping coupon.
 long getCompanyId()
          Gets the company id of this shopping coupon.
 long getCouponId()
          Gets the coupon id of this shopping coupon.
 Date getCreateDate()
          Gets the create date of this shopping coupon.
 String getDescription()
          Gets the description of this shopping coupon.
 double getDiscount()
          Gets the discount of this shopping coupon.
 String getDiscountType()
          Gets the discount type of this shopping coupon.
 Date getEndDate()
          Gets the end date of this shopping coupon.
 ExpandoBridge getExpandoBridge()
          Gets the expando bridge for this model instance.
 long getGroupId()
          Gets the group id of this shopping coupon.
 String getLimitCategories()
          Gets the limit categories of this shopping coupon.
 String getLimitSkus()
          Gets the limit skus of this shopping coupon.
 double getMinOrder()
          Gets the min order of this shopping coupon.
 Date getModifiedDate()
          Gets the modified date of this shopping coupon.
 String getName()
          Gets the name of this shopping coupon.
 long getPrimaryKey()
          Gets the primary key of this shopping coupon.
 Serializable getPrimaryKeyObj()
          Gets the primary key of this model instance.
 Date getStartDate()
          Gets the start date of this shopping coupon.
 long getUserId()
          Gets the user id of this shopping coupon.
 String getUserName()
          Gets the user name of this shopping coupon.
 String getUserUuid()
          Gets the user uuid of this shopping coupon.
 ShoppingCoupon getWrappedShoppingCoupon()
           
 int hashCode()
           
 boolean hasValidDateRange()
           
 boolean hasValidEndDate()
           
 boolean hasValidStartDate()
           
 boolean isActive()
          Determines whether this shopping coupon is active.
 boolean isCachedModel()
          Determines if this model instance was retrieved from the entity cache.
 boolean isEscapedModel()
          Determines if this model instance is escaped.
 boolean isNew()
          Determines if this model instance does not yet exist in the database.
 void setActive(boolean active)
          Sets whether this {$entity.humanName} is active.
 void setCachedModel(boolean cachedModel)
          Sets whether this model instance was retrieved from the entity cache.
 void setCode(String code)
          Sets the code of this shopping coupon.
 void setCompanyId(long companyId)
          Sets the company id of this shopping coupon.
 void setCouponId(long couponId)
          Sets the coupon id of this shopping coupon.
 void setCreateDate(Date createDate)
          Sets the create date of this shopping coupon.
 void setDescription(String description)
          Sets the description of this shopping coupon.
 void setDiscount(double discount)
          Sets the discount of this shopping coupon.
 void setDiscountType(String discountType)
          Sets the discount type of this shopping coupon.
 void setEndDate(Date endDate)
          Sets the end date of this shopping coupon.
 void setEscapedModel(boolean escapedModel)
          Sets whether this model instance is escaped, meaning that all strings returned from getter methods are HTML safe.
 void setExpandoBridgeAttributes(ServiceContext serviceContext)
          Sets the expando bridge attributes for this model instance to the attributes stored in the service context.
 void setGroupId(long groupId)
          Sets the group id of this shopping coupon.
 void setLimitCategories(String limitCategories)
          Sets the limit categories of this shopping coupon.
 void setLimitSkus(String limitSkus)
          Sets the limit skus of this shopping coupon.
 void setMinOrder(double minOrder)
          Sets the min order of this shopping coupon.
 void setModifiedDate(Date modifiedDate)
          Sets the modified date of this shopping coupon.
 void setName(String name)
          Sets the name of this shopping coupon.
 void setNew(boolean n)
          Sets whether this model instance does not yet exist in the database.
 void setPrimaryKey(long pk)
          Sets the primary key of this shopping coupon
 void setStartDate(Date startDate)
          Sets the start date of this shopping coupon.
 void setUserId(long userId)
          Sets the user id of this shopping coupon.
 void setUserName(String userName)
          Sets the user name of this shopping coupon.
 void setUserUuid(String userUuid)
          Sets the user uuid of this shopping coupon.
 ShoppingCoupon toEscapedModel()
          Gets a copy of this shopping coupon as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.
 String toString()
           
 String toXmlString()
          Gets the XML representation of this model instance.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ShoppingCouponWrapper

public ShoppingCouponWrapper(ShoppingCoupon shoppingCoupon)
Method Detail

getPrimaryKey

public long getPrimaryKey()
Description copied from interface: ShoppingCouponModel
Gets the primary key of this shopping coupon.

Specified by:
getPrimaryKey in interface ShoppingCouponModel
Returns:
the primary key of this shopping coupon

setPrimaryKey

public void setPrimaryKey(long pk)
Description copied from interface: ShoppingCouponModel
Sets the primary key of this shopping coupon

Specified by:
setPrimaryKey in interface ShoppingCouponModel
Parameters:
pk - the primary key of this shopping coupon

getCouponId

public long getCouponId()
Description copied from interface: ShoppingCouponModel
Gets the coupon id of this shopping coupon.

Specified by:
getCouponId in interface ShoppingCouponModel
Returns:
the coupon id of this shopping coupon

setCouponId

public void setCouponId(long couponId)
Description copied from interface: ShoppingCouponModel
Sets the coupon id of this shopping coupon.

Specified by:
setCouponId in interface ShoppingCouponModel
Parameters:
couponId - the coupon id of this shopping coupon

getGroupId

public long getGroupId()
Description copied from interface: ShoppingCouponModel
Gets the group id of this shopping coupon.

Specified by:
getGroupId in interface ShoppingCouponModel
Returns:
the group id of this shopping coupon

setGroupId

public void setGroupId(long groupId)
Description copied from interface: ShoppingCouponModel
Sets the group id of this shopping coupon.

Specified by:
setGroupId in interface ShoppingCouponModel
Parameters:
groupId - the group id of this shopping coupon

getCompanyId

public long getCompanyId()
Description copied from interface: ShoppingCouponModel
Gets the company id of this shopping coupon.

Specified by:
getCompanyId in interface ShoppingCouponModel
Returns:
the company id of this shopping coupon

setCompanyId

public void setCompanyId(long companyId)
Description copied from interface: ShoppingCouponModel
Sets the company id of this shopping coupon.

Specified by:
setCompanyId in interface ShoppingCouponModel
Parameters:
companyId - the company id of this shopping coupon

getUserId

public long getUserId()
Description copied from interface: ShoppingCouponModel
Gets the user id of this shopping coupon.

Specified by:
getUserId in interface ShoppingCouponModel
Returns:
the user id of this shopping coupon

setUserId

public void setUserId(long userId)
Description copied from interface: ShoppingCouponModel
Sets the user id of this shopping coupon.

Specified by:
setUserId in interface ShoppingCouponModel
Parameters:
userId - the user id of this shopping coupon

getUserUuid

public String getUserUuid()
                   throws SystemException
Description copied from interface: ShoppingCouponModel
Gets the user uuid of this shopping coupon.

Specified by:
getUserUuid in interface ShoppingCouponModel
Returns:
the user uuid of this shopping coupon
Throws:
SystemException - if a system exception occurred

setUserUuid

public void setUserUuid(String userUuid)
Description copied from interface: ShoppingCouponModel
Sets the user uuid of this shopping coupon.

Specified by:
setUserUuid in interface ShoppingCouponModel
Parameters:
userUuid - the user uuid of this shopping coupon

getUserName

public String getUserName()
Description copied from interface: ShoppingCouponModel
Gets the user name of this shopping coupon.

Specified by:
getUserName in interface ShoppingCouponModel
Returns:
the user name of this shopping coupon

setUserName

public void setUserName(String userName)
Description copied from interface: ShoppingCouponModel
Sets the user name of this shopping coupon.

Specified by:
setUserName in interface ShoppingCouponModel
Parameters:
userName - the user name of this shopping coupon

getCreateDate

public Date getCreateDate()
Description copied from interface: ShoppingCouponModel
Gets the create date of this shopping coupon.

Specified by:
getCreateDate in interface ShoppingCouponModel
Returns:
the create date of this shopping coupon

setCreateDate

public void setCreateDate(Date createDate)
Description copied from interface: ShoppingCouponModel
Sets the create date of this shopping coupon.

Specified by:
setCreateDate in interface ShoppingCouponModel
Parameters:
createDate - the create date of this shopping coupon

getModifiedDate

public Date getModifiedDate()
Description copied from interface: ShoppingCouponModel
Gets the modified date of this shopping coupon.

Specified by:
getModifiedDate in interface ShoppingCouponModel
Returns:
the modified date of this shopping coupon

setModifiedDate

public void setModifiedDate(Date modifiedDate)
Description copied from interface: ShoppingCouponModel
Sets the modified date of this shopping coupon.

Specified by:
setModifiedDate in interface ShoppingCouponModel
Parameters:
modifiedDate - the modified date of this shopping coupon

getCode

public String getCode()
Description copied from interface: ShoppingCouponModel
Gets the code of this shopping coupon.

Specified by:
getCode in interface ShoppingCouponModel
Returns:
the code of this shopping coupon

setCode

public void setCode(String code)
Description copied from interface: ShoppingCouponModel
Sets the code of this shopping coupon.

Specified by:
setCode in interface ShoppingCouponModel
Parameters:
code - the code of this shopping coupon

getName

public String getName()
Description copied from interface: ShoppingCouponModel
Gets the name of this shopping coupon.

Specified by:
getName in interface ShoppingCouponModel
Returns:
the name of this shopping coupon

setName

public void setName(String name)
Description copied from interface: ShoppingCouponModel
Sets the name of this shopping coupon.

Specified by:
setName in interface ShoppingCouponModel
Parameters:
name - the name of this shopping coupon

getDescription

public String getDescription()
Description copied from interface: ShoppingCouponModel
Gets the description of this shopping coupon.

Specified by:
getDescription in interface ShoppingCouponModel
Returns:
the description of this shopping coupon

setDescription

public void setDescription(String description)
Description copied from interface: ShoppingCouponModel
Sets the description of this shopping coupon.

Specified by:
setDescription in interface ShoppingCouponModel
Parameters:
description - the description of this shopping coupon

getStartDate

public Date getStartDate()
Description copied from interface: ShoppingCouponModel
Gets the start date of this shopping coupon.

Specified by:
getStartDate in interface ShoppingCouponModel
Returns:
the start date of this shopping coupon

setStartDate

public void setStartDate(Date startDate)
Description copied from interface: ShoppingCouponModel
Sets the start date of this shopping coupon.

Specified by:
setStartDate in interface ShoppingCouponModel
Parameters:
startDate - the start date of this shopping coupon

getEndDate

public Date getEndDate()
Description copied from interface: ShoppingCouponModel
Gets the end date of this shopping coupon.

Specified by:
getEndDate in interface ShoppingCouponModel
Returns:
the end date of this shopping coupon

setEndDate

public void setEndDate(Date endDate)
Description copied from interface: ShoppingCouponModel
Sets the end date of this shopping coupon.

Specified by:
setEndDate in interface ShoppingCouponModel
Parameters:
endDate - the end date of this shopping coupon

getActive

public boolean getActive()
Description copied from interface: ShoppingCouponModel
Gets the active of this shopping coupon.

Specified by:
getActive in interface ShoppingCouponModel
Returns:
the active of this shopping coupon

isActive

public boolean isActive()
Description copied from interface: ShoppingCouponModel
Determines whether this shopping coupon is active.

Specified by:
isActive in interface ShoppingCouponModel
Returns:
whether this shopping coupon is active

setActive

public void setActive(boolean active)
Description copied from interface: ShoppingCouponModel
Sets whether this {$entity.humanName} is active.

Specified by:
setActive in interface ShoppingCouponModel
Parameters:
active - the active of this shopping coupon

getLimitCategories

public String getLimitCategories()
Description copied from interface: ShoppingCouponModel
Gets the limit categories of this shopping coupon.

Specified by:
getLimitCategories in interface ShoppingCouponModel
Returns:
the limit categories of this shopping coupon

setLimitCategories

public void setLimitCategories(String limitCategories)
Description copied from interface: ShoppingCouponModel
Sets the limit categories of this shopping coupon.

Specified by:
setLimitCategories in interface ShoppingCouponModel
Parameters:
limitCategories - the limit categories of this shopping coupon

getLimitSkus

public String getLimitSkus()
Description copied from interface: ShoppingCouponModel
Gets the limit skus of this shopping coupon.

Specified by:
getLimitSkus in interface ShoppingCouponModel
Returns:
the limit skus of this shopping coupon

setLimitSkus

public void setLimitSkus(String limitSkus)
Description copied from interface: ShoppingCouponModel
Sets the limit skus of this shopping coupon.

Specified by:
setLimitSkus in interface ShoppingCouponModel
Parameters:
limitSkus - the limit skus of this shopping coupon

getMinOrder

public double getMinOrder()
Description copied from interface: ShoppingCouponModel
Gets the min order of this shopping coupon.

Specified by:
getMinOrder in interface ShoppingCouponModel
Returns:
the min order of this shopping coupon

setMinOrder

public void setMinOrder(double minOrder)
Description copied from interface: ShoppingCouponModel
Sets the min order of this shopping coupon.

Specified by:
setMinOrder in interface ShoppingCouponModel
Parameters:
minOrder - the min order of this shopping coupon

getDiscount

public double getDiscount()
Description copied from interface: ShoppingCouponModel
Gets the discount of this shopping coupon.

Specified by:
getDiscount in interface ShoppingCouponModel
Returns:
the discount of this shopping coupon

setDiscount

public void setDiscount(double discount)
Description copied from interface: ShoppingCouponModel
Sets the discount of this shopping coupon.

Specified by:
setDiscount in interface ShoppingCouponModel
Parameters:
discount - the discount of this shopping coupon

getDiscountType

public String getDiscountType()
Description copied from interface: ShoppingCouponModel
Gets the discount type of this shopping coupon.

Specified by:
getDiscountType in interface ShoppingCouponModel
Returns:
the discount type of this shopping coupon

setDiscountType

public void setDiscountType(String discountType)
Description copied from interface: ShoppingCouponModel
Sets the discount type of this shopping coupon.

Specified by:
setDiscountType in interface ShoppingCouponModel
Parameters:
discountType - the discount type of this shopping coupon

toEscapedModel

public ShoppingCoupon toEscapedModel()
Description copied from interface: ShoppingCouponModel
Gets a copy of this shopping coupon as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.

Specified by:
toEscapedModel in interface ShoppingCouponModel
Returns:
the escaped model instance
See Also:
AutoEscapeBeanHandler

isNew

public boolean isNew()
Description copied from interface: BaseModel
Determines if this model instance does not yet exist in the database.

Specified by:
isNew in interface BaseModel<ShoppingCoupon>
Specified by:
isNew in interface ShoppingCouponModel
Returns:
true if this model instance does not yet exist in the database; false otherwise

setNew

public void setNew(boolean n)
Description copied from interface: BaseModel
Sets whether this model instance does not yet exist in the database.

Specified by:
setNew in interface BaseModel<ShoppingCoupon>
Specified by:
setNew in interface ShoppingCouponModel
Parameters:
n - whether this model instance does not yet exist in the database

isCachedModel

public boolean isCachedModel()
Description copied from interface: BaseModel
Determines if this model instance was retrieved from the entity cache.

Specified by:
isCachedModel in interface BaseModel<ShoppingCoupon>
Specified by:
isCachedModel in interface ShoppingCouponModel
Returns:
true if this model instance was retrieved from the entity cache; false otherwise
See Also:
BaseModel.setCachedModel(boolean)

setCachedModel

public void setCachedModel(boolean cachedModel)
Description copied from interface: BaseModel
Sets whether this model instance was retrieved from the entity cache.

Specified by:
setCachedModel in interface BaseModel<ShoppingCoupon>
Specified by:
setCachedModel in interface ShoppingCouponModel
Parameters:
cachedModel - whether this model instance was retrieved from the entity cache
See Also:
EntityCache

isEscapedModel

public boolean isEscapedModel()
Description copied from interface: BaseModel
Determines if this model instance is escaped.

Specified by:
isEscapedModel in interface BaseModel<ShoppingCoupon>
Specified by:
isEscapedModel in interface ShoppingCouponModel
Returns:
true if this model instance is escaped; false otherwise
See Also:
BaseModel.setEscapedModel(boolean)

setEscapedModel

public void setEscapedModel(boolean escapedModel)
Description copied from interface: BaseModel
Sets whether this model instance is escaped, meaning that all strings returned from getter methods are HTML safe.

A model instance can be made escaped by wrapping it with an HTML auto escape handler using its toEscapedModel method. For example, UserModel.toEscapedModel().

Specified by:
setEscapedModel in interface BaseModel<ShoppingCoupon>
Specified by:
setEscapedModel in interface ShoppingCouponModel
Parameters:
escapedModel - whether this model instance is escaped
See Also:
AutoEscapeBeanHandler

getPrimaryKeyObj

public Serializable getPrimaryKeyObj()
Description copied from interface: BaseModel
Gets the primary key of this model instance.

Specified by:
getPrimaryKeyObj in interface BaseModel<ShoppingCoupon>
Specified by:
getPrimaryKeyObj in interface ShoppingCouponModel
Returns:
the primary key of this model instance

getExpandoBridge

public ExpandoBridge getExpandoBridge()
Description copied from interface: BaseModel
Gets the expando bridge for this model instance.

Specified by:
getExpandoBridge in interface BaseModel<ShoppingCoupon>
Specified by:
getExpandoBridge in interface ShoppingCouponModel
Returns:
the expando bridge for this model instance

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(ServiceContext serviceContext)
Description copied from interface: BaseModel
Sets the expando bridge attributes for this model instance to the attributes stored in the service context.

Specified by:
setExpandoBridgeAttributes in interface BaseModel<ShoppingCoupon>
Specified by:
setExpandoBridgeAttributes in interface ShoppingCouponModel
Parameters:
serviceContext - the service context to retrieve the expando bridge attributes from
See Also:
ServiceContext.getExpandoBridgeAttributes( )

clone

public Object clone()
Description copied from interface: BaseModel
Creates a shallow clone of this model instance.

Specified by:
clone in interface BaseModel<ShoppingCoupon>
Specified by:
clone in interface ShoppingCouponModel
Overrides:
clone in class Object
Returns:
the shallow clone of this model instance

compareTo

public int compareTo(ShoppingCoupon shoppingCoupon)
Specified by:
compareTo in interface ShoppingCouponModel
Specified by:
compareTo in interface Comparable<ShoppingCoupon>

hashCode

public int hashCode()
Specified by:
hashCode in interface ShoppingCouponModel
Overrides:
hashCode in class Object

toString

public String toString()
Specified by:
toString in interface ShoppingCouponModel
Overrides:
toString in class Object

toXmlString

public String toXmlString()
Description copied from interface: BaseModel
Gets the XML representation of this model instance.

Specified by:
toXmlString in interface BaseModel<ShoppingCoupon>
Specified by:
toXmlString in interface ShoppingCouponModel
Returns:
the XML representation of this model instance

hasValidDateRange

public boolean hasValidDateRange()
Specified by:
hasValidDateRange in interface ShoppingCoupon

hasValidEndDate

public boolean hasValidEndDate()
Specified by:
hasValidEndDate in interface ShoppingCoupon

hasValidStartDate

public boolean hasValidStartDate()
Specified by:
hasValidStartDate in interface ShoppingCoupon

getWrappedShoppingCoupon

public ShoppingCoupon getWrappedShoppingCoupon()

Liferay 6.0.5