|
Liferay 7.0-ce-m3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.model.impl.BaseModelImpl<ShoppingCoupon>
com.liferay.portlet.shopping.model.impl.ShoppingCouponModelImpl
@JSON(strict=true) @ProviderType public class ShoppingCouponModelImpl
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.
ShoppingCouponImpl,
ShoppingCoupon,
ShoppingCouponModel,
Serialized Form| Field Summary | |
|---|---|
static long |
CODE_COLUMN_BITMASK
|
static boolean |
COLUMN_BITMASK_ENABLED
|
static long |
CREATEDATE_COLUMN_BITMASK
|
static String |
DATA_SOURCE
|
static boolean |
ENTITY_CACHE_ENABLED
|
static boolean |
FINDER_CACHE_ENABLED
|
static long |
GROUPID_COLUMN_BITMASK
|
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()
Returns the active of this shopping coupon. |
String |
getCode()
Returns the code of this shopping coupon. |
long |
getColumnBitmask()
|
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. |
String |
getOriginalCode()
|
long |
getOriginalGroupId()
|
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. |
int |
hashCode()
|
boolean |
isActive()
Returns true if this shopping coupon is active. |
boolean |
isEntityCacheEnabled()
Returns true if this model's entity cache is enabled. |
boolean |
isFinderCacheEnabled()
Returns true if this model's finder cache is enabled. |
void |
resetOriginalValues()
Reset all original fields to current values. |
void |
setActive(boolean active)
Sets whether this shopping coupon 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 |
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 |
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. |
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()
Returns the XML representation of this model instance. |
| Methods inherited from class com.liferay.portal.model.impl.BaseModelImpl |
|---|
getLocale, isCachedModel, isEscapedModel, isNew, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, toUnescapedModel |
| 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, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, toUnescapedModel |
| Field Detail |
|---|
public static final String TABLE_NAME
public static final Object[][] TABLE_COLUMNS
public static final String TABLE_SQL_CREATE
public static final String TABLE_SQL_DROP
public static final String ORDER_BY_JPQL
public static final String ORDER_BY_SQL
public static final String DATA_SOURCE
public static final String SESSION_FACTORY
public static final String TX_MANAGER
public static final boolean ENTITY_CACHE_ENABLED
public static final boolean FINDER_CACHE_ENABLED
public static final boolean COLUMN_BITMASK_ENABLED
public static final long CODE_COLUMN_BITMASK
public static final long GROUPID_COLUMN_BITMASK
public static final long CREATEDATE_COLUMN_BITMASK
public static final long LOCK_EXPIRATION_TIME
| Constructor Detail |
|---|
public ShoppingCouponModelImpl()
| Method Detail |
|---|
public static ShoppingCoupon toModel(ShoppingCouponSoap soapModel)
soapModel - the soap model instance to convert
public static List<ShoppingCoupon> toModels(ShoppingCouponSoap[] soapModels)
soapModels - the soap model instances to convert
public long getPrimaryKey()
ShoppingCouponModel
getPrimaryKey in interface ShoppingCouponModelpublic void setPrimaryKey(long primaryKey)
ShoppingCouponModel
setPrimaryKey in interface ShoppingCouponModelprimaryKey - the primary key of this shopping couponpublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj in interface BaseModel<ShoppingCoupon>getPrimaryKeyObj in interface ClassedModelgetPrimaryKeyObj in interface ShoppingCouponModelpublic void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj in interface BaseModel<ShoppingCoupon>setPrimaryKeyObj in interface ClassedModelsetPrimaryKeyObj in interface ShoppingCouponModelprimaryKeyObj - the primary key of this model instancepublic Class<?> getModelClass()
getModelClass in interface ClassedModelpublic String getModelClassName()
getModelClassName in interface ClassedModelpublic Map<String,Object> getModelAttributes()
getModelAttributes in interface BaseModel<ShoppingCoupon>getModelAttributes in class BaseModelImpl<ShoppingCoupon>public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes in interface BaseModel<ShoppingCoupon>setModelAttributes in class BaseModelImpl<ShoppingCoupon>@JSON public long getCouponId()
ShoppingCouponModel
getCouponId in interface ShoppingCouponModelpublic void setCouponId(long couponId)
ShoppingCouponModel
setCouponId in interface ShoppingCouponModelcouponId - the coupon ID of this shopping coupon@JSON public long getGroupId()
ShoppingCouponModel
getGroupId in interface GroupedModelgetGroupId in interface ShoppingCouponModelpublic void setGroupId(long groupId)
ShoppingCouponModel
setGroupId in interface GroupedModelsetGroupId in interface ShoppingCouponModelgroupId - the group ID of this shopping couponpublic long getOriginalGroupId()
@JSON public long getCompanyId()
ShoppingCouponModel
getCompanyId in interface AuditedModelgetCompanyId in interface ShoppingCouponModelpublic void setCompanyId(long companyId)
ShoppingCouponModel
setCompanyId in interface AuditedModelsetCompanyId in interface ShoppingCouponModelcompanyId - the company ID of this shopping coupon@JSON public long getUserId()
ShoppingCouponModel
getUserId in interface AuditedModelgetUserId in interface ShoppingCouponModelpublic void setUserId(long userId)
ShoppingCouponModel
setUserId in interface AuditedModelsetUserId in interface ShoppingCouponModeluserId - the user ID of this shopping couponpublic String getUserUuid()
ShoppingCouponModel
getUserUuid in interface AuditedModelgetUserUuid in interface ShoppingCouponModelpublic void setUserUuid(String userUuid)
ShoppingCouponModel
setUserUuid in interface AuditedModelsetUserUuid in interface ShoppingCouponModeluserUuid - the user uuid of this shopping coupon@JSON public String getUserName()
ShoppingCouponModel
getUserName in interface AuditedModelgetUserName in interface ShoppingCouponModelpublic void setUserName(String userName)
ShoppingCouponModel
setUserName in interface AuditedModelsetUserName in interface ShoppingCouponModeluserName - the user name of this shopping coupon@JSON public Date getCreateDate()
ShoppingCouponModel
getCreateDate in interface AuditedModelgetCreateDate in interface ShoppingCouponModelpublic void setCreateDate(Date createDate)
ShoppingCouponModel
setCreateDate in interface AuditedModelsetCreateDate in interface ShoppingCouponModelcreateDate - the create date of this shopping coupon@JSON public Date getModifiedDate()
ShoppingCouponModel
getModifiedDate in interface AuditedModelgetModifiedDate in interface ShoppingCouponModelpublic void setModifiedDate(Date modifiedDate)
ShoppingCouponModel
setModifiedDate in interface AuditedModelsetModifiedDate in interface ShoppingCouponModelmodifiedDate - the modified date of this shopping coupon@JSON public String getCode()
ShoppingCouponModel
getCode in interface ShoppingCouponModelpublic void setCode(String code)
ShoppingCouponModel
setCode in interface ShoppingCouponModelcode - the code of this shopping couponpublic String getOriginalCode()
@JSON public String getName()
ShoppingCouponModel
getName in interface ShoppingCouponModelpublic void setName(String name)
ShoppingCouponModel
setName in interface ShoppingCouponModelname - the name of this shopping coupon@JSON public String getDescription()
ShoppingCouponModel
getDescription in interface ShoppingCouponModelpublic void setDescription(String description)
ShoppingCouponModel
setDescription in interface ShoppingCouponModeldescription - the description of this shopping coupon@JSON public Date getStartDate()
ShoppingCouponModel
getStartDate in interface ShoppingCouponModelpublic void setStartDate(Date startDate)
ShoppingCouponModel
setStartDate in interface ShoppingCouponModelstartDate - the start date of this shopping coupon@JSON public Date getEndDate()
ShoppingCouponModel
getEndDate in interface ShoppingCouponModelpublic void setEndDate(Date endDate)
ShoppingCouponModel
setEndDate in interface ShoppingCouponModelendDate - the end date of this shopping coupon@JSON public boolean getActive()
ShoppingCouponModel
getActive in interface ShoppingCouponModelpublic boolean isActive()
ShoppingCouponModeltrue if this shopping coupon is active.
isActive in interface ShoppingCouponModeltrue if this shopping coupon is active; false otherwisepublic void setActive(boolean active)
ShoppingCouponModel
setActive in interface ShoppingCouponModelactive - the active of this shopping coupon@JSON public String getLimitCategories()
ShoppingCouponModel
getLimitCategories in interface ShoppingCouponModelpublic void setLimitCategories(String limitCategories)
ShoppingCouponModel
setLimitCategories in interface ShoppingCouponModellimitCategories - the limit categories of this shopping coupon@JSON public String getLimitSkus()
ShoppingCouponModel
getLimitSkus in interface ShoppingCouponModelpublic void setLimitSkus(String limitSkus)
ShoppingCouponModel
setLimitSkus in interface ShoppingCouponModellimitSkus - the limit skus of this shopping coupon@JSON public double getMinOrder()
ShoppingCouponModel
getMinOrder in interface ShoppingCouponModelpublic void setMinOrder(double minOrder)
ShoppingCouponModel
setMinOrder in interface ShoppingCouponModelminOrder - the min order of this shopping coupon@JSON public double getDiscount()
ShoppingCouponModel
getDiscount in interface ShoppingCouponModelpublic void setDiscount(double discount)
ShoppingCouponModel
setDiscount in interface ShoppingCouponModeldiscount - the discount of this shopping coupon@JSON public String getDiscountType()
ShoppingCouponModel
getDiscountType in interface ShoppingCouponModelpublic void setDiscountType(String discountType)
ShoppingCouponModel
setDiscountType in interface ShoppingCouponModeldiscountType - the discount type of this shopping couponpublic long getColumnBitmask()
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge in interface BaseModel<ShoppingCoupon>getExpandoBridge in interface ClassedModelgetExpandoBridge in interface ShoppingCouponModelgetExpandoBridge in class BaseModelImpl<ShoppingCoupon>public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes in interface BaseModel<ShoppingCoupon>setExpandoBridgeAttributes in interface ShoppingCouponModelsetExpandoBridgeAttributes in class BaseModelImpl<ShoppingCoupon>serviceContext - the service context to be appliedServiceContext.getExpandoBridgeAttributes(
)public ShoppingCoupon toEscapedModel()
BaseModelAutoEscapeBeanHandler.
toEscapedModel in interface BaseModel<ShoppingCoupon>toEscapedModel in interface ShoppingCouponModeltoEscapedModel in class BaseModelImpl<ShoppingCoupon>AutoEscapeBeanHandlerpublic Object clone()
BaseModel
clone in interface BaseModel<ShoppingCoupon>clone in interface ShoppingCouponModelclone in class BaseModelImpl<ShoppingCoupon>public int compareTo(ShoppingCoupon shoppingCoupon)
compareTo in interface ShoppingCouponModelcompareTo in interface Comparable<ShoppingCoupon>public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in interface ShoppingCouponModelhashCode in class Objectpublic boolean isEntityCacheEnabled()
BaseModeltrue if this model's entity cache is enabled.
isEntityCacheEnabled in interface BaseModel<ShoppingCoupon>true if this model's entity cache is enabled;
false otherwisepublic boolean isFinderCacheEnabled()
BaseModeltrue if this model's finder cache is enabled.
isFinderCacheEnabled in interface BaseModel<ShoppingCoupon>true if this model's finder cache is enabled;
false otherwisepublic void resetOriginalValues()
BaseModel
resetOriginalValues in interface BaseModel<ShoppingCoupon>resetOriginalValues in class BaseModelImpl<ShoppingCoupon>public CacheModel<ShoppingCoupon> toCacheModel()
BaseModel
toCacheModel in interface BaseModel<ShoppingCoupon>toCacheModel in interface ShoppingCouponModeltoCacheModel in class BaseModelImpl<ShoppingCoupon>public String toString()
toString in interface ShoppingCouponModeltoString in class Objectpublic String toXmlString()
BaseModel
toXmlString in interface BaseModel<ShoppingCoupon>toXmlString in interface ShoppingCouponModel
|
Liferay 7.0-ce-m3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||