Liferay 6.0.5

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:
BaseModel<ShoppingCart>, ShoppingCartModel, Serializable, Cloneable, Comparable<ShoppingCart>
Direct Known Subclasses:
ShoppingCartImpl

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.

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

See Also:
ShoppingCartImpl, ShoppingCart, ShoppingCartModel, 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 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
ShoppingCartModelImpl()
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(ShoppingCart shoppingCart)
           
 boolean equals(Object obj)
           
 int getAltShipping()
          Gets the alt shipping of this shopping cart.
 long getCartId()
          Gets the cart id of this shopping cart.
 long getCompanyId()
          Gets the company id of this shopping cart.
 String getCouponCodes()
          Gets the coupon codes of this shopping cart.
 Date getCreateDate()
          Gets the create date of this shopping cart.
 ExpandoBridge getExpandoBridge()
          Gets the expando bridge for this model instance.
 long getGroupId()
          Gets the group id of this shopping cart.
 boolean getInsure()
          Gets the insure of this shopping cart.
 String getItemIds()
          Gets the item ids of this shopping cart.
 Date getModifiedDate()
          Gets the modified date of this shopping cart.
 long getOriginalGroupId()
           
 long getOriginalUserId()
           
 long getPrimaryKey()
          Gets the primary key of this shopping cart.
 Serializable getPrimaryKeyObj()
          Gets the primary key of this model instance.
 long getUserId()
          Gets the user id of this shopping cart.
 String getUserName()
          Gets the user name of this shopping cart.
 String getUserUuid()
          Gets the user uuid of this shopping cart.
 int hashCode()
           
 boolean isInsure()
          Determines whether this shopping cart is insure.
 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 {$entity.humanName} is insure.
 void setItemIds(String itemIds)
          Sets the item ids of this shopping cart.
 void setModifiedDate(Date modifiedDate)
          Sets the modified date of this shopping cart.
 void setPrimaryKey(long pk)
          Sets the primary key of this shopping cart
 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.
 ShoppingCart toEscapedModel()
          Gets a copy of this shopping cart as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.
 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.ShoppingCartModel
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

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

ShoppingCartModelImpl

public ShoppingCartModelImpl()
Method Detail

getPrimaryKey

public long getPrimaryKey()
Description copied from interface: ShoppingCartModel
Gets 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 pk)
Description copied from interface: ShoppingCartModel
Sets the primary key of this shopping cart

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

getPrimaryKeyObj

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

Specified by:
getPrimaryKeyObj in interface BaseModel<ShoppingCart>
Specified by:
getPrimaryKeyObj in interface ShoppingCartModel
Returns:
the primary key of this model instance

getCartId

public long getCartId()
Description copied from interface: ShoppingCartModel
Gets 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
Gets the group id of this shopping cart.

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 ShoppingCartModel
Parameters:
groupId - the group id of this shopping cart

getOriginalGroupId

public long getOriginalGroupId()

getCompanyId

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

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 ShoppingCartModel
Parameters:
companyId - the company id of this shopping cart

getUserId

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

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 ShoppingCartModel
Parameters:
userId - the user id of this shopping cart

getUserUuid

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

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 ShoppingCartModel
Parameters:
userUuid - the user uuid of this shopping cart

getOriginalUserId

public long getOriginalUserId()

getUserName

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

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 ShoppingCartModel
Parameters:
userName - the user name of this shopping cart

getCreateDate

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

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 ShoppingCartModel
Parameters:
createDate - the create date of this shopping cart

getModifiedDate

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

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 ShoppingCartModel
Parameters:
modifiedDate - the modified date of this shopping cart

getItemIds

public String getItemIds()
Description copied from interface: ShoppingCartModel
Gets 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
Gets 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
Gets 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
Gets 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
Determines whether this shopping cart is insure.

Specified by:
isInsure in interface ShoppingCartModel
Returns:
whether this shopping cart is insure

setInsure

public void setInsure(boolean insure)
Description copied from interface: ShoppingCartModel
Sets whether this {$entity.humanName} is insure.

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

toEscapedModel

public ShoppingCart toEscapedModel()
Description copied from interface: ShoppingCartModel
Gets a copy of this shopping cart as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.

Specified by:
toEscapedModel in interface ShoppingCartModel
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<ShoppingCart>
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 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<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

toString

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

Liferay 6.0.5