Liferay 6.1.2-ce-ga3

com.liferay.portlet.shopping.model
Class ShoppingCouponWrapper

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

public class ShoppingCouponWrapper
extends Object
implements ShoppingCoupon, ModelWrapper<ShoppingCoupon>

This class is a wrapper for ShoppingCoupon.

See Also:
ShoppingCoupon, Serialized Form

Constructor Summary
ShoppingCouponWrapper(ShoppingCoupon shoppingCoupon)
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(ShoppingCoupon shoppingCoupon)
           
 boolean equals(Object obj)
           
 boolean getActive()
          Returns the active of this shopping coupon.
 String getCode()
          Returns the code of this shopping coupon.
 long getCompanyId()
          Returns the company ID of this shopping coupon.
 long getCouponId()
          Returns the coupon ID of this shopping coupon.
 Date getCreateDate()
          Returns the create date of this shopping coupon.
 String getDescription()
          Returns the description of this shopping coupon.
 double getDiscount()
          Returns the discount of this shopping coupon.
 String getDiscountType()
          Returns the discount type of this shopping coupon.
 Date getEndDate()
          Returns the end date of this shopping coupon.
 ExpandoBridge getExpandoBridge()
          Returns the expando bridge for this model instance.
 long getGroupId()
          Returns the group ID of this shopping coupon.
 String getLimitCategories()
          Returns the limit categories of this shopping coupon.
 String getLimitSkus()
          Returns the limit skus of this shopping coupon.
 double getMinOrder()
          Returns the min order of this shopping coupon.
 Map<String,Object> getModelAttributes()
           
 Class<?> getModelClass()
           
 String getModelClassName()
           
 Date getModifiedDate()
          Returns the modified date of this shopping coupon.
 String getName()
          Returns the name of this shopping coupon.
 long getPrimaryKey()
          Returns the primary key of this shopping coupon.
 Serializable getPrimaryKeyObj()
          Returns the primary key of this model instance.
 Date getStartDate()
          Returns the start date of this shopping coupon.
 long getUserId()
          Returns the user ID of this shopping coupon.
 String getUserName()
          Returns the user name of this shopping coupon.
 String getUserUuid()
          Returns the user uuid of this shopping coupon.
 ShoppingCoupon getWrappedModel()
           
 ShoppingCoupon getWrappedShoppingCoupon()
          Deprecated. Renamed to getWrappedModel()
 int hashCode()
           
 boolean hasValidDateRange()
           
 boolean hasValidEndDate()
           
 boolean hasValidStartDate()
           
 boolean isActive()
          Returns true if this shopping coupon is active.
 boolean isCachedModel()
          Returns true if this model instance was retrieved from the entity cache.
 boolean isEscapedModel()
          Returns true if this model instance is escaped.
 boolean isNew()
          Returns true if this model instance does not yet exist in the database.
 void persist()
          Updates this model instance in the database or adds it if it does not yet exist.
 void resetOriginalValues()
          Reset all original fields to current values.
 void setActive(boolean active)
          Sets whether this shopping coupon 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 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 setModelAttributes(Map<String,Object> attributes)
           
 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 primaryKey)
          Sets the primary key of this shopping coupon.
 void setPrimaryKeyObj(Serializable primaryKeyObj)
          Sets the primary key of this model instance.
 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.
 CacheModel<ShoppingCoupon> toCacheModel()
          Returns a cache model object for this entity used by entity cache.
 ShoppingCoupon toEscapedModel()
          Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.
 String toString()
           
 ShoppingCoupon toUnescapedModel()
           
 String toXmlString()
          Returns the XML representation of this model instance.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ShoppingCouponWrapper

public ShoppingCouponWrapper(ShoppingCoupon shoppingCoupon)
Method Detail

getModelClass

public Class<?> getModelClass()
Specified by:
getModelClass in interface ClassedModel

getModelClassName

public String getModelClassName()
Specified by:
getModelClassName in interface ClassedModel

getModelAttributes

public Map<String,Object> getModelAttributes()
Specified by:
getModelAttributes in interface BaseModel<ShoppingCoupon>

setModelAttributes

public void setModelAttributes(Map<String,Object> attributes)
Specified by:
setModelAttributes in interface BaseModel<ShoppingCoupon>

getPrimaryKey

public long getPrimaryKey()
Returns 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 primaryKey)
Sets the primary key of this shopping coupon.

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

getCouponId

public long getCouponId()
Returns 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)
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()
Returns the group ID of this shopping coupon.

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

setGroupId

public void setGroupId(long groupId)
Sets the group ID of this shopping coupon.

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

getCompanyId

public long getCompanyId()
Returns the company ID of this shopping coupon.

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

setCompanyId

public void setCompanyId(long companyId)
Sets the company ID of this shopping coupon.

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

getUserId

public long getUserId()
Returns the user ID of this shopping coupon.

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

setUserId

public void setUserId(long userId)
Sets the user ID of this shopping coupon.

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

getUserUuid

public String getUserUuid()
                   throws SystemException
Returns the user uuid of this shopping coupon.

Specified by:
getUserUuid in interface AuditedModel
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)
Sets the user uuid of this shopping coupon.

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

getUserName

public String getUserName()
Returns the user name of this shopping coupon.

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

setUserName

public void setUserName(String userName)
Sets the user name of this shopping coupon.

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

getCreateDate

public Date getCreateDate()
Returns the create date of this shopping coupon.

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

setCreateDate

public void setCreateDate(Date createDate)
Sets the create date of this shopping coupon.

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

getModifiedDate

public Date getModifiedDate()
Returns the modified date of this shopping coupon.

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

setModifiedDate

public void setModifiedDate(Date modifiedDate)
Sets the modified date of this shopping coupon.

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

getCode

public String getCode()
Returns 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)
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()
Returns 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)
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()
Returns 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)
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()
Returns 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)
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()
Returns 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)
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()
Returns the active of this shopping coupon.

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

isActive

public boolean isActive()
Returns true if this shopping coupon is active.

Specified by:
isActive in interface ShoppingCouponModel
Returns:
true if this shopping coupon is active; false otherwise

setActive

public void setActive(boolean active)
Sets whether this shopping coupon is active.

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

getLimitCategories

public String getLimitCategories()
Returns 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)
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()
Returns 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)
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()
Returns 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)
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()
Returns 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)
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()
Returns 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)
Sets the discount type of this shopping coupon.

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

isNew

public boolean isNew()
Description copied from interface: BaseModel
Returns true 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
Returns true 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
Returns true 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

getPrimaryKeyObj

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

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

setPrimaryKeyObj

public void setPrimaryKeyObj(Serializable primaryKeyObj)
Description copied from interface: BaseModel
Sets the primary key of this model instance.

Specified by:
setPrimaryKeyObj in interface BaseModel<ShoppingCoupon>
Specified by:
setPrimaryKeyObj in interface ClassedModel
Specified by:
setPrimaryKeyObj in interface ShoppingCouponModel
Parameters:
primaryKeyObj - the primary key of this model instance

getExpandoBridge

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

Specified by:
getExpandoBridge in interface BaseModel<ShoppingCoupon>
Specified by:
getExpandoBridge in interface ClassedModel
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
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

toCacheModel

public CacheModel<ShoppingCoupon> toCacheModel()
Description copied from interface: BaseModel
Returns a cache model object for this entity used by entity cache.

Specified by:
toCacheModel in interface BaseModel<ShoppingCoupon>
Specified by:
toCacheModel in interface ShoppingCouponModel
Returns:
the cache model object

toEscapedModel

public ShoppingCoupon toEscapedModel()
Description copied from interface: BaseModel
Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.

Specified by:
toEscapedModel in interface BaseModel<ShoppingCoupon>
Specified by:
toEscapedModel in interface ShoppingCouponModel
Returns:
the escaped model instance
See Also:
AutoEscapeBeanHandler

toUnescapedModel

public ShoppingCoupon toUnescapedModel()
Specified by:
toUnescapedModel in interface BaseModel<ShoppingCoupon>
Specified by:
toUnescapedModel in interface ShoppingCouponModel

toString

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

toXmlString

public String toXmlString()
Description copied from interface: BaseModel
Returns 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

persist

public void persist()
             throws SystemException
Description copied from interface: PersistedModel
Updates this model instance in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

Specified by:
persist in interface PersistedModel
Throws:
SystemException - if a system exception occurred

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

equals

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

getWrappedShoppingCoupon

public ShoppingCoupon getWrappedShoppingCoupon()
Deprecated. Renamed to getWrappedModel()


getWrappedModel

public ShoppingCoupon getWrappedModel()
Specified by:
getWrappedModel in interface ModelWrapper<ShoppingCoupon>

resetOriginalValues

public void resetOriginalValues()
Description copied from interface: BaseModel
Reset all original fields to current values.

Specified by:
resetOriginalValues in interface BaseModel<ShoppingCoupon>

Liferay 6.1.2-ce-ga3