|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portal.model.impl.BaseModelImpl<ShoppingCart> com.liferay.portlet.shopping.model.impl.ShoppingCartModelImpl
public class ShoppingCartModelImpl
The base model implementation for the ShoppingCart service. Represents a row in the "ShoppingCart" database table, with each column mapped to a property of this class.
This implementation and its corresponding interface ShoppingCartModel
exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in ShoppingCartImpl
.
ShoppingCartImpl
,
ShoppingCart
,
ShoppingCartModel
,
Serialized FormField Summary | |
---|---|
static boolean |
COLUMN_BITMASK_ENABLED
|
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 |
SESSION_FACTORY
|
static Object[][] |
TABLE_COLUMNS
|
static String |
TABLE_NAME
|
static String |
TABLE_SQL_CREATE
|
static String |
TABLE_SQL_DROP
|
static String |
TX_MANAGER
|
static long |
USERID_COLUMN_BITMASK
|
Constructor Summary | |
---|---|
ShoppingCartModelImpl()
|
Method Summary | |
---|---|
Object |
clone()
Creates a shallow clone of this model instance. |
int |
compareTo(ShoppingCart shoppingCart)
|
boolean |
equals(Object obj)
|
int |
getAltShipping()
Returns the alt shipping of this shopping cart. |
long |
getCartId()
Returns the cart ID of this shopping cart. |
long |
getColumnBitmask()
|
long |
getCompanyId()
Returns the company ID of this shopping cart. |
String |
getCouponCodes()
Returns the coupon codes of this shopping cart. |
Date |
getCreateDate()
Returns the create date of this shopping cart. |
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance. |
long |
getGroupId()
Returns the group ID of this shopping cart. |
boolean |
getInsure()
Returns the insure of this shopping cart. |
String |
getItemIds()
Returns the item IDs of this shopping cart. |
Map<String,Object> |
getModelAttributes()
|
Class<?> |
getModelClass()
|
String |
getModelClassName()
|
Date |
getModifiedDate()
Returns the modified date of this shopping cart. |
long |
getOriginalGroupId()
|
long |
getOriginalUserId()
|
long |
getPrimaryKey()
Returns the primary key of this shopping cart. |
Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance. |
long |
getUserId()
Returns the user ID of this shopping cart. |
String |
getUserName()
Returns the user name of this shopping cart. |
String |
getUserUuid()
Returns the user uuid of this shopping cart. |
int |
hashCode()
|
boolean |
isInsure()
Returns true if this shopping cart is insure. |
void |
resetOriginalValues()
Reset all original fields to current values. |
void |
setAltShipping(int altShipping)
Sets the alt shipping of this shopping cart. |
void |
setCartId(long cartId)
Sets the cart ID of this shopping cart. |
void |
setCompanyId(long companyId)
Sets the company ID of this shopping cart. |
void |
setCouponCodes(String couponCodes)
Sets the coupon codes of this shopping cart. |
void |
setCreateDate(Date createDate)
Sets the create date of this shopping cart. |
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 cart. |
void |
setInsure(boolean insure)
Sets whether this shopping cart is insure. |
void |
setItemIds(String itemIds)
Sets the item IDs of this shopping cart. |
void |
setModelAttributes(Map<String,Object> attributes)
|
void |
setModifiedDate(Date modifiedDate)
Sets the modified date of this shopping cart. |
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this shopping cart. |
void |
setPrimaryKeyObj(Serializable primaryKeyObj)
Sets the primary key of this model instance. |
void |
setUserId(long userId)
Sets the user ID of this shopping cart. |
void |
setUserName(String userName)
Sets the user name of this shopping cart. |
void |
setUserUuid(String userUuid)
Sets the user uuid of this shopping cart. |
CacheModel<ShoppingCart> |
toCacheModel()
Returns a cache model object for this entity used by entity cache. |
ShoppingCart |
toEscapedModel()
Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler . |
String |
toString()
|
ShoppingCart |
toUnescapedModel()
|
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, setNew |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.liferay.portlet.shopping.model.ShoppingCartModel |
---|
isCachedModel, isEscapedModel, isNew, setCachedModel, setNew |
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 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 long GROUPID_COLUMN_BITMASK
public static long USERID_COLUMN_BITMASK
public static final long LOCK_EXPIRATION_TIME
Constructor Detail |
---|
public ShoppingCartModelImpl()
Method Detail |
---|
public long getPrimaryKey()
ShoppingCartModel
getPrimaryKey
in interface ShoppingCartModel
public void setPrimaryKey(long primaryKey)
ShoppingCartModel
setPrimaryKey
in interface ShoppingCartModel
primaryKey
- the primary key of this shopping cartpublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<ShoppingCart>
getPrimaryKeyObj
in interface ClassedModel
getPrimaryKeyObj
in interface ShoppingCartModel
public void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj
in interface BaseModel<ShoppingCart>
setPrimaryKeyObj
in interface ClassedModel
setPrimaryKeyObj
in interface ShoppingCartModel
primaryKeyObj
- the primary key of this model instancepublic Class<?> getModelClass()
getModelClass
in interface ClassedModel
public String getModelClassName()
getModelClassName
in interface ClassedModel
public Map<String,Object> getModelAttributes()
getModelAttributes
in interface BaseModel<ShoppingCart>
getModelAttributes
in class BaseModelImpl<ShoppingCart>
public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes
in interface BaseModel<ShoppingCart>
setModelAttributes
in class BaseModelImpl<ShoppingCart>
public long getCartId()
ShoppingCartModel
getCartId
in interface ShoppingCartModel
public void setCartId(long cartId)
ShoppingCartModel
setCartId
in interface ShoppingCartModel
cartId
- the cart ID of this shopping cartpublic long getGroupId()
ShoppingCartModel
getGroupId
in interface GroupedModel
getGroupId
in interface ShoppingCartModel
public void setGroupId(long groupId)
ShoppingCartModel
setGroupId
in interface GroupedModel
setGroupId
in interface ShoppingCartModel
groupId
- the group ID of this shopping cartpublic long getOriginalGroupId()
public long getCompanyId()
ShoppingCartModel
getCompanyId
in interface AuditedModel
getCompanyId
in interface ShoppingCartModel
public void setCompanyId(long companyId)
ShoppingCartModel
setCompanyId
in interface AuditedModel
setCompanyId
in interface ShoppingCartModel
companyId
- the company ID of this shopping cartpublic long getUserId()
ShoppingCartModel
getUserId
in interface AuditedModel
getUserId
in interface ShoppingCartModel
public void setUserId(long userId)
ShoppingCartModel
setUserId
in interface AuditedModel
setUserId
in interface ShoppingCartModel
userId
- the user ID of this shopping cartpublic String getUserUuid() throws SystemException
ShoppingCartModel
getUserUuid
in interface AuditedModel
getUserUuid
in interface ShoppingCartModel
SystemException
- if a system exception occurredpublic void setUserUuid(String userUuid)
ShoppingCartModel
setUserUuid
in interface AuditedModel
setUserUuid
in interface ShoppingCartModel
userUuid
- the user uuid of this shopping cartpublic long getOriginalUserId()
public String getUserName()
ShoppingCartModel
getUserName
in interface AuditedModel
getUserName
in interface ShoppingCartModel
public void setUserName(String userName)
ShoppingCartModel
setUserName
in interface AuditedModel
setUserName
in interface ShoppingCartModel
userName
- the user name of this shopping cartpublic Date getCreateDate()
ShoppingCartModel
getCreateDate
in interface AuditedModel
getCreateDate
in interface ShoppingCartModel
public void setCreateDate(Date createDate)
ShoppingCartModel
setCreateDate
in interface AuditedModel
setCreateDate
in interface ShoppingCartModel
createDate
- the create date of this shopping cartpublic Date getModifiedDate()
ShoppingCartModel
getModifiedDate
in interface AuditedModel
getModifiedDate
in interface ShoppingCartModel
public void setModifiedDate(Date modifiedDate)
ShoppingCartModel
setModifiedDate
in interface AuditedModel
setModifiedDate
in interface ShoppingCartModel
modifiedDate
- the modified date of this shopping cartpublic String getItemIds()
ShoppingCartModel
getItemIds
in interface ShoppingCartModel
public void setItemIds(String itemIds)
ShoppingCartModel
setItemIds
in interface ShoppingCartModel
itemIds
- the item IDs of this shopping cartpublic String getCouponCodes()
ShoppingCartModel
getCouponCodes
in interface ShoppingCartModel
public void setCouponCodes(String couponCodes)
ShoppingCartModel
setCouponCodes
in interface ShoppingCartModel
couponCodes
- the coupon codes of this shopping cartpublic int getAltShipping()
ShoppingCartModel
getAltShipping
in interface ShoppingCartModel
public void setAltShipping(int altShipping)
ShoppingCartModel
setAltShipping
in interface ShoppingCartModel
altShipping
- the alt shipping of this shopping cartpublic boolean getInsure()
ShoppingCartModel
getInsure
in interface ShoppingCartModel
public boolean isInsure()
ShoppingCartModel
true
if this shopping cart is insure.
isInsure
in interface ShoppingCartModel
true
if this shopping cart is insure; false
otherwisepublic void setInsure(boolean insure)
ShoppingCartModel
setInsure
in interface ShoppingCartModel
insure
- the insure of this shopping cartpublic long getColumnBitmask()
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<ShoppingCart>
getExpandoBridge
in interface ClassedModel
getExpandoBridge
in interface ShoppingCartModel
getExpandoBridge
in class BaseModelImpl<ShoppingCart>
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<ShoppingCart>
setExpandoBridgeAttributes
in interface ShoppingCartModel
setExpandoBridgeAttributes
in class BaseModelImpl<ShoppingCart>
serviceContext
- the service contextServiceContext.getExpandoBridgeAttributes(
)
public ShoppingCart toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.
toEscapedModel
in interface BaseModel<ShoppingCart>
toEscapedModel
in interface ShoppingCartModel
toEscapedModel
in class BaseModelImpl<ShoppingCart>
AutoEscapeBeanHandler
public ShoppingCart toUnescapedModel()
toUnescapedModel
in interface BaseModel<ShoppingCart>
toUnescapedModel
in interface ShoppingCartModel
toUnescapedModel
in class BaseModelImpl<ShoppingCart>
public Object clone()
BaseModel
clone
in interface BaseModel<ShoppingCart>
clone
in interface ShoppingCartModel
clone
in class BaseModelImpl<ShoppingCart>
public int compareTo(ShoppingCart shoppingCart)
compareTo
in interface ShoppingCartModel
compareTo
in interface Comparable<ShoppingCart>
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in interface ShoppingCartModel
hashCode
in class Object
public void resetOriginalValues()
BaseModel
resetOriginalValues
in interface BaseModel<ShoppingCart>
resetOriginalValues
in class BaseModelImpl<ShoppingCart>
public CacheModel<ShoppingCart> toCacheModel()
BaseModel
toCacheModel
in interface BaseModel<ShoppingCart>
toCacheModel
in interface ShoppingCartModel
toCacheModel
in class BaseModelImpl<ShoppingCart>
public String toString()
toString
in interface ShoppingCartModel
toString
in class Object
public String toXmlString()
BaseModel
toXmlString
in interface BaseModel<ShoppingCart>
toXmlString
in interface ShoppingCartModel
|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |