Liferay 6.1.2-ce-ga3

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

java.lang.Object
  extended by com.liferay.portal.model.impl.BaseModelImpl<ShoppingCart>
      extended by com.liferay.portlet.shopping.model.impl.ShoppingCartModelImpl
All Implemented Interfaces:
AuditedModel, BaseModel<ShoppingCart>, ClassedModel, GroupedModel, ShoppingCartModel, Serializable, Cloneable, Comparable<ShoppingCart>
Direct Known Subclasses:
ShoppingCartBaseImpl

public class ShoppingCartModelImpl
extends BaseModelImpl<ShoppingCart>
implements ShoppingCartModel

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.

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

Field 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

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

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

COLUMN_BITMASK_ENABLED

public static final boolean COLUMN_BITMASK_ENABLED

GROUPID_COLUMN_BITMASK

public static long GROUPID_COLUMN_BITMASK

USERID_COLUMN_BITMASK

public static long USERID_COLUMN_BITMASK

LOCK_EXPIRATION_TIME

public static final long LOCK_EXPIRATION_TIME
Constructor Detail

ShoppingCartModelImpl

public ShoppingCartModelImpl()
Method Detail

getPrimaryKey

public long getPrimaryKey()
Description copied from interface: ShoppingCartModel
Returns the primary key of this shopping cart.

Specified by:
getPrimaryKey in interface ShoppingCartModel
Returns:
the primary key of this shopping cart

setPrimaryKey

public void setPrimaryKey(long primaryKey)
Description copied from interface: ShoppingCartModel
Sets the primary key of this shopping cart.

Specified by:
setPrimaryKey in interface ShoppingCartModel
Parameters:
primaryKey - the primary key of this shopping cart

getPrimaryKeyObj

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

Specified by:
getPrimaryKeyObj in interface BaseModel<ShoppingCart>
Specified by:
getPrimaryKeyObj in interface ClassedModel
Specified by:
getPrimaryKeyObj in interface ShoppingCartModel
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<ShoppingCart>
Specified by:
setPrimaryKeyObj in interface ClassedModel
Specified by:
setPrimaryKeyObj in interface ShoppingCartModel
Parameters:
primaryKeyObj - the primary key of this model instance

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<ShoppingCart>
Overrides:
getModelAttributes in class BaseModelImpl<ShoppingCart>

setModelAttributes

public void setModelAttributes(Map<String,Object> attributes)
Specified by:
setModelAttributes in interface BaseModel<ShoppingCart>
Overrides:
setModelAttributes in class BaseModelImpl<ShoppingCart>

getCartId

public long getCartId()
Description copied from interface: ShoppingCartModel
Returns the cart ID of this shopping cart.

Specified by:
getCartId in interface ShoppingCartModel
Returns:
the cart ID of this shopping cart

setCartId

public void setCartId(long cartId)
Description copied from interface: ShoppingCartModel
Sets the cart ID of this shopping cart.

Specified by:
setCartId in interface ShoppingCartModel
Parameters:
cartId - the cart ID of this shopping cart

getGroupId

public long getGroupId()
Description copied from interface: ShoppingCartModel
Returns the group ID of this shopping cart.

Specified by:
getGroupId in interface GroupedModel
Specified by:
getGroupId in interface ShoppingCartModel
Returns:
the group ID of this shopping cart

setGroupId

public void setGroupId(long groupId)
Description copied from interface: ShoppingCartModel
Sets the group ID of this shopping cart.

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

getOriginalGroupId

public long getOriginalGroupId()

getCompanyId

public long getCompanyId()
Description copied from interface: ShoppingCartModel
Returns the company ID of this shopping cart.

Specified by:
getCompanyId in interface AuditedModel
Specified by:
getCompanyId in interface ShoppingCartModel
Returns:
the company ID of this shopping cart

setCompanyId

public void setCompanyId(long companyId)
Description copied from interface: ShoppingCartModel
Sets the company ID of this shopping cart.

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

getUserId

public long getUserId()
Description copied from interface: ShoppingCartModel
Returns the user ID of this shopping cart.

Specified by:
getUserId in interface AuditedModel
Specified by:
getUserId in interface ShoppingCartModel
Returns:
the user ID of this shopping cart

setUserId

public void setUserId(long userId)
Description copied from interface: ShoppingCartModel
Sets the user ID of this shopping cart.

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

getUserUuid

public String getUserUuid()
                   throws SystemException
Description copied from interface: ShoppingCartModel
Returns the user uuid of this shopping cart.

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

setUserUuid

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

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

getOriginalUserId

public long getOriginalUserId()

getUserName

public String getUserName()
Description copied from interface: ShoppingCartModel
Returns the user name of this shopping cart.

Specified by:
getUserName in interface AuditedModel
Specified by:
getUserName in interface ShoppingCartModel
Returns:
the user name of this shopping cart

setUserName

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

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

getCreateDate

public Date getCreateDate()
Description copied from interface: ShoppingCartModel
Returns the create date of this shopping cart.

Specified by:
getCreateDate in interface AuditedModel
Specified by:
getCreateDate in interface ShoppingCartModel
Returns:
the create date of this shopping cart

setCreateDate

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

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

getModifiedDate

public Date getModifiedDate()
Description copied from interface: ShoppingCartModel
Returns the modified date of this shopping cart.

Specified by:
getModifiedDate in interface AuditedModel
Specified by:
getModifiedDate in interface ShoppingCartModel
Returns:
the modified date of this shopping cart

setModifiedDate

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

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

getItemIds

public String getItemIds()
Description copied from interface: ShoppingCartModel
Returns the item IDs of this shopping cart.

Specified by:
getItemIds in interface ShoppingCartModel
Returns:
the item IDs of this shopping cart

setItemIds

public void setItemIds(String itemIds)
Description copied from interface: ShoppingCartModel
Sets the item IDs of this shopping cart.

Specified by:
setItemIds in interface ShoppingCartModel
Parameters:
itemIds - the item IDs of this shopping cart

getCouponCodes

public String getCouponCodes()
Description copied from interface: ShoppingCartModel
Returns the coupon codes of this shopping cart.

Specified by:
getCouponCodes in interface ShoppingCartModel
Returns:
the coupon codes of this shopping cart

setCouponCodes

public void setCouponCodes(String couponCodes)
Description copied from interface: ShoppingCartModel
Sets the coupon codes of this shopping cart.

Specified by:
setCouponCodes in interface ShoppingCartModel
Parameters:
couponCodes - the coupon codes of this shopping cart

getAltShipping

public int getAltShipping()
Description copied from interface: ShoppingCartModel
Returns the alt shipping of this shopping cart.

Specified by:
getAltShipping in interface ShoppingCartModel
Returns:
the alt shipping of this shopping cart

setAltShipping

public void setAltShipping(int altShipping)
Description copied from interface: ShoppingCartModel
Sets the alt shipping of this shopping cart.

Specified by:
setAltShipping in interface ShoppingCartModel
Parameters:
altShipping - the alt shipping of this shopping cart

getInsure

public boolean getInsure()
Description copied from interface: ShoppingCartModel
Returns the insure of this shopping cart.

Specified by:
getInsure in interface ShoppingCartModel
Returns:
the insure of this shopping cart

isInsure

public boolean isInsure()
Description copied from interface: ShoppingCartModel
Returns true if this shopping cart is insure.

Specified by:
isInsure in interface ShoppingCartModel
Returns:
true if this shopping cart is insure; false otherwise

setInsure

public void setInsure(boolean insure)
Description copied from interface: ShoppingCartModel
Sets whether this shopping cart is insure.

Specified by:
setInsure in interface ShoppingCartModel
Parameters:
insure - the insure of this shopping cart

getColumnBitmask

public long getColumnBitmask()

getExpandoBridge

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

Specified by:
getExpandoBridge in interface BaseModel<ShoppingCart>
Specified by:
getExpandoBridge in interface ClassedModel
Specified by:
getExpandoBridge in interface ShoppingCartModel
Overrides:
getExpandoBridge in class BaseModelImpl<ShoppingCart>
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<ShoppingCart>
Specified by:
setExpandoBridgeAttributes in interface ShoppingCartModel
Overrides:
setExpandoBridgeAttributes in class BaseModelImpl<ShoppingCart>
Parameters:
serviceContext - the service context
See Also:
ServiceContext.getExpandoBridgeAttributes( )

toEscapedModel

public ShoppingCart 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<ShoppingCart>
Specified by:
toEscapedModel in interface ShoppingCartModel
Overrides:
toEscapedModel in class BaseModelImpl<ShoppingCart>
Returns:
the escaped model instance
See Also:
AutoEscapeBeanHandler

toUnescapedModel

public ShoppingCart toUnescapedModel()
Specified by:
toUnescapedModel in interface BaseModel<ShoppingCart>
Specified by:
toUnescapedModel in interface ShoppingCartModel
Overrides:
toUnescapedModel in class BaseModelImpl<ShoppingCart>

clone

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

Specified by:
clone in interface BaseModel<ShoppingCart>
Specified by:
clone in interface ShoppingCartModel
Specified by:
clone in class BaseModelImpl<ShoppingCart>
Returns:
the shallow clone of this model instance

compareTo

public int compareTo(ShoppingCart shoppingCart)
Specified by:
compareTo in interface ShoppingCartModel
Specified by:
compareTo in interface Comparable<ShoppingCart>

equals

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

hashCode

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

resetOriginalValues

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

Specified by:
resetOriginalValues in interface BaseModel<ShoppingCart>
Overrides:
resetOriginalValues in class BaseModelImpl<ShoppingCart>

toCacheModel

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

Specified by:
toCacheModel in interface BaseModel<ShoppingCart>
Specified by:
toCacheModel in interface ShoppingCartModel
Overrides:
toCacheModel in class BaseModelImpl<ShoppingCart>
Returns:
the cache model object

toString

public String toString()
Specified by:
toString in interface ShoppingCartModel
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<ShoppingCart>
Specified by:
toXmlString in interface ShoppingCartModel
Returns:
the XML representation of this model instance

Liferay 6.1.2-ce-ga3