Liferay 6.0.5

com.liferay.portlet.shopping.model.impl
Class ShoppingCouponModelImpl

java.lang.Object
  extended by com.liferay.portal.model.impl.BaseModelImpl<ShoppingCoupon>
      extended by com.liferay.portlet.shopping.model.impl.ShoppingCouponModelImpl
All Implemented Interfaces:
BaseModel<ShoppingCoupon>, ShoppingCouponModel, Serializable, Cloneable, Comparable<ShoppingCoupon>
Direct Known Subclasses:
ShoppingCouponImpl

public class ShoppingCouponModelImpl
extends BaseModelImpl<ShoppingCoupon>
implements ShoppingCouponModel

The base model implementation for the ShoppingCoupon service. Represents a row in the "ShoppingCoupon" database table, with each column mapped to a property of this class.

This implementation and its corresponding interface ShoppingCouponModel exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in ShoppingCouponImpl.

Never modify or reference this class directly. All methods that expect a shopping coupon model instance should use the ShoppingCoupon interface instead.

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

Field Summary
static String DATA_SOURCE
           
static boolean ENTITY_CACHE_ENABLED
           
static boolean FINDER_CACHE_ENABLED
           
static long LOCK_EXPIRATION_TIME
           
static String ORDER_BY_JPQL
           
static String ORDER_BY_SQL
           
static String SESSION_FACTORY
           
static Object[][] TABLE_COLUMNS
           
static String TABLE_NAME
           
static String TABLE_SQL_CREATE
           
static String TABLE_SQL_DROP
           
static String TX_MANAGER
           
 
Constructor Summary
ShoppingCouponModelImpl()
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(ShoppingCoupon shoppingCoupon)
           
 boolean equals(Object obj)
           
 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.
 String getOriginalCode()
           
 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.
 int hashCode()
           
 boolean isActive()
          Determines whether this shopping coupon is active.
 void setActive(boolean active)
          Sets whether this {$entity.humanName} is active.
 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 setModifiedDate(Date modifiedDate)
          Sets the modified date of this shopping coupon.
 void setName(String name)
          Sets the name of this shopping coupon.
 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.
static ShoppingCoupon toModel(ShoppingCouponSoap soapModel)
          Converts the soap model instance into a normal model instance.
static List<ShoppingCoupon> toModels(ShoppingCouponSoap[] soapModels)
          Converts the soap model instances into normal model instances.
 String toString()
           
 String toXmlString()
          Gets the XML representation of this model instance.
 
Methods inherited from class com.liferay.portal.model.impl.BaseModelImpl
isCachedModel, isEscapedModel, isNew, setCachedModel, setEscapedModel, setNew
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.liferay.portlet.shopping.model.ShoppingCouponModel
isCachedModel, isEscapedModel, isNew, setCachedModel, setEscapedModel, setNew
 

Field Detail

TABLE_NAME

public static final String TABLE_NAME
See Also:
Constant Field Values

TABLE_COLUMNS

public static final Object[][] TABLE_COLUMNS

TABLE_SQL_CREATE

public static final String TABLE_SQL_CREATE
See Also:
Constant Field Values

TABLE_SQL_DROP

public static final String TABLE_SQL_DROP
See Also:
Constant Field Values

ORDER_BY_JPQL

public static final String ORDER_BY_JPQL
See Also:
Constant Field Values

ORDER_BY_SQL

public static final String ORDER_BY_SQL
See Also:
Constant Field Values

DATA_SOURCE

public static final String DATA_SOURCE
See Also:
Constant Field Values

SESSION_FACTORY

public static final String SESSION_FACTORY
See Also:
Constant Field Values

TX_MANAGER

public static final String TX_MANAGER
See Also:
Constant Field Values

ENTITY_CACHE_ENABLED

public static final boolean ENTITY_CACHE_ENABLED

FINDER_CACHE_ENABLED

public static final boolean FINDER_CACHE_ENABLED

LOCK_EXPIRATION_TIME

public static final long LOCK_EXPIRATION_TIME
Constructor Detail

ShoppingCouponModelImpl

public ShoppingCouponModelImpl()
Method Detail

toModel

public static ShoppingCoupon toModel(ShoppingCouponSoap soapModel)
Converts the soap model instance into a normal model instance.

Parameters:
soapModel - the soap model instance to convert
Returns:
the normal model instance

toModels

public static List<ShoppingCoupon> toModels(ShoppingCouponSoap[] soapModels)
Converts the soap model instances into normal model instances.

Parameters:
soapModels - the soap model instances to convert
Returns:
the normal model instances

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

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

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

getOriginalCode

public String getOriginalCode()

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

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
Overrides:
getExpandoBridge in class BaseModelImpl<ShoppingCoupon>
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
Overrides:
setExpandoBridgeAttributes in class BaseModelImpl<ShoppingCoupon>
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
Specified by:
clone in class BaseModelImpl<ShoppingCoupon>
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>

equals

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

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

Liferay 6.0.5