Liferay 6.1.2-ce-ga3

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

java.lang.Object
  extended by com.liferay.portal.model.impl.BaseModelImpl<ShoppingItemPrice>
      extended by com.liferay.portlet.shopping.model.impl.ShoppingItemPriceModelImpl
All Implemented Interfaces:
BaseModel<ShoppingItemPrice>, ClassedModel, ShoppingItemPriceModel, Serializable, Cloneable, Comparable<ShoppingItemPrice>
Direct Known Subclasses:
ShoppingItemPriceBaseImpl

public class ShoppingItemPriceModelImpl
extends BaseModelImpl<ShoppingItemPrice>
implements ShoppingItemPriceModel

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

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

See Also:
ShoppingItemPriceImpl, ShoppingItemPrice, ShoppingItemPriceModel, 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 ITEMID_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
ShoppingItemPriceModelImpl()
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(ShoppingItemPrice shoppingItemPrice)
           
 boolean equals(Object obj)
           
 long getColumnBitmask()
           
 double getDiscount()
          Returns the discount of this shopping item price.
 ExpandoBridge getExpandoBridge()
          Returns the expando bridge for this model instance.
 long getItemId()
          Returns the item ID of this shopping item price.
 long getItemPriceId()
          Returns the item price ID of this shopping item price.
 int getMaxQuantity()
          Returns the max quantity of this shopping item price.
 int getMinQuantity()
          Returns the min quantity of this shopping item price.
 Map<String,Object> getModelAttributes()
           
 Class<?> getModelClass()
           
 String getModelClassName()
           
 long getOriginalItemId()
           
 double getPrice()
          Returns the price of this shopping item price.
 long getPrimaryKey()
          Returns the primary key of this shopping item price.
 Serializable getPrimaryKeyObj()
          Returns the primary key of this model instance.
 double getShipping()
          Returns the shipping of this shopping item price.
 int getStatus()
          Returns the status of this shopping item price.
 boolean getTaxable()
          Returns the taxable of this shopping item price.
 boolean getUseShippingFormula()
          Returns the use shipping formula of this shopping item price.
 int hashCode()
           
 boolean isTaxable()
          Returns true if this shopping item price is taxable.
 boolean isUseShippingFormula()
          Returns true if this shopping item price is use shipping formula.
 void resetOriginalValues()
          Reset all original fields to current values.
 void setDiscount(double discount)
          Sets the discount of this shopping item price.
 void setExpandoBridgeAttributes(ServiceContext serviceContext)
          Sets the expando bridge attributes for this model instance to the attributes stored in the service context.
 void setItemId(long itemId)
          Sets the item ID of this shopping item price.
 void setItemPriceId(long itemPriceId)
          Sets the item price ID of this shopping item price.
 void setMaxQuantity(int maxQuantity)
          Sets the max quantity of this shopping item price.
 void setMinQuantity(int minQuantity)
          Sets the min quantity of this shopping item price.
 void setModelAttributes(Map<String,Object> attributes)
           
 void setPrice(double price)
          Sets the price of this shopping item price.
 void setPrimaryKey(long primaryKey)
          Sets the primary key of this shopping item price.
 void setPrimaryKeyObj(Serializable primaryKeyObj)
          Sets the primary key of this model instance.
 void setShipping(double shipping)
          Sets the shipping of this shopping item price.
 void setStatus(int status)
          Sets the status of this shopping item price.
 void setTaxable(boolean taxable)
          Sets whether this shopping item price is taxable.
 void setUseShippingFormula(boolean useShippingFormula)
          Sets whether this shopping item price is use shipping formula.
 CacheModel<ShoppingItemPrice> toCacheModel()
          Returns a cache model object for this entity used by entity cache.
 ShoppingItemPrice toEscapedModel()
          Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.
 String toString()
           
 ShoppingItemPrice 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.ShoppingItemPriceModel
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

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

COLUMN_BITMASK_ENABLED

public static final boolean COLUMN_BITMASK_ENABLED

ITEMID_COLUMN_BITMASK

public static long ITEMID_COLUMN_BITMASK

LOCK_EXPIRATION_TIME

public static final long LOCK_EXPIRATION_TIME
Constructor Detail

ShoppingItemPriceModelImpl

public ShoppingItemPriceModelImpl()
Method Detail

getPrimaryKey

public long getPrimaryKey()
Description copied from interface: ShoppingItemPriceModel
Returns the primary key of this shopping item price.

Specified by:
getPrimaryKey in interface ShoppingItemPriceModel
Returns:
the primary key of this shopping item price

setPrimaryKey

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

Specified by:
setPrimaryKey in interface ShoppingItemPriceModel
Parameters:
primaryKey - the primary key of this shopping item price

getPrimaryKeyObj

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

Specified by:
getPrimaryKeyObj in interface BaseModel<ShoppingItemPrice>
Specified by:
getPrimaryKeyObj in interface ClassedModel
Specified by:
getPrimaryKeyObj in interface ShoppingItemPriceModel
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<ShoppingItemPrice>
Specified by:
setPrimaryKeyObj in interface ClassedModel
Specified by:
setPrimaryKeyObj in interface ShoppingItemPriceModel
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<ShoppingItemPrice>
Overrides:
getModelAttributes in class BaseModelImpl<ShoppingItemPrice>

setModelAttributes

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

getItemPriceId

public long getItemPriceId()
Description copied from interface: ShoppingItemPriceModel
Returns the item price ID of this shopping item price.

Specified by:
getItemPriceId in interface ShoppingItemPriceModel
Returns:
the item price ID of this shopping item price

setItemPriceId

public void setItemPriceId(long itemPriceId)
Description copied from interface: ShoppingItemPriceModel
Sets the item price ID of this shopping item price.

Specified by:
setItemPriceId in interface ShoppingItemPriceModel
Parameters:
itemPriceId - the item price ID of this shopping item price

getItemId

public long getItemId()
Description copied from interface: ShoppingItemPriceModel
Returns the item ID of this shopping item price.

Specified by:
getItemId in interface ShoppingItemPriceModel
Returns:
the item ID of this shopping item price

setItemId

public void setItemId(long itemId)
Description copied from interface: ShoppingItemPriceModel
Sets the item ID of this shopping item price.

Specified by:
setItemId in interface ShoppingItemPriceModel
Parameters:
itemId - the item ID of this shopping item price

getOriginalItemId

public long getOriginalItemId()

getMinQuantity

public int getMinQuantity()
Description copied from interface: ShoppingItemPriceModel
Returns the min quantity of this shopping item price.

Specified by:
getMinQuantity in interface ShoppingItemPriceModel
Returns:
the min quantity of this shopping item price

setMinQuantity

public void setMinQuantity(int minQuantity)
Description copied from interface: ShoppingItemPriceModel
Sets the min quantity of this shopping item price.

Specified by:
setMinQuantity in interface ShoppingItemPriceModel
Parameters:
minQuantity - the min quantity of this shopping item price

getMaxQuantity

public int getMaxQuantity()
Description copied from interface: ShoppingItemPriceModel
Returns the max quantity of this shopping item price.

Specified by:
getMaxQuantity in interface ShoppingItemPriceModel
Returns:
the max quantity of this shopping item price

setMaxQuantity

public void setMaxQuantity(int maxQuantity)
Description copied from interface: ShoppingItemPriceModel
Sets the max quantity of this shopping item price.

Specified by:
setMaxQuantity in interface ShoppingItemPriceModel
Parameters:
maxQuantity - the max quantity of this shopping item price

getPrice

public double getPrice()
Description copied from interface: ShoppingItemPriceModel
Returns the price of this shopping item price.

Specified by:
getPrice in interface ShoppingItemPriceModel
Returns:
the price of this shopping item price

setPrice

public void setPrice(double price)
Description copied from interface: ShoppingItemPriceModel
Sets the price of this shopping item price.

Specified by:
setPrice in interface ShoppingItemPriceModel
Parameters:
price - the price of this shopping item price

getDiscount

public double getDiscount()
Description copied from interface: ShoppingItemPriceModel
Returns the discount of this shopping item price.

Specified by:
getDiscount in interface ShoppingItemPriceModel
Returns:
the discount of this shopping item price

setDiscount

public void setDiscount(double discount)
Description copied from interface: ShoppingItemPriceModel
Sets the discount of this shopping item price.

Specified by:
setDiscount in interface ShoppingItemPriceModel
Parameters:
discount - the discount of this shopping item price

getTaxable

public boolean getTaxable()
Description copied from interface: ShoppingItemPriceModel
Returns the taxable of this shopping item price.

Specified by:
getTaxable in interface ShoppingItemPriceModel
Returns:
the taxable of this shopping item price

isTaxable

public boolean isTaxable()
Description copied from interface: ShoppingItemPriceModel
Returns true if this shopping item price is taxable.

Specified by:
isTaxable in interface ShoppingItemPriceModel
Returns:
true if this shopping item price is taxable; false otherwise

setTaxable

public void setTaxable(boolean taxable)
Description copied from interface: ShoppingItemPriceModel
Sets whether this shopping item price is taxable.

Specified by:
setTaxable in interface ShoppingItemPriceModel
Parameters:
taxable - the taxable of this shopping item price

getShipping

public double getShipping()
Description copied from interface: ShoppingItemPriceModel
Returns the shipping of this shopping item price.

Specified by:
getShipping in interface ShoppingItemPriceModel
Returns:
the shipping of this shopping item price

setShipping

public void setShipping(double shipping)
Description copied from interface: ShoppingItemPriceModel
Sets the shipping of this shopping item price.

Specified by:
setShipping in interface ShoppingItemPriceModel
Parameters:
shipping - the shipping of this shopping item price

getUseShippingFormula

public boolean getUseShippingFormula()
Description copied from interface: ShoppingItemPriceModel
Returns the use shipping formula of this shopping item price.

Specified by:
getUseShippingFormula in interface ShoppingItemPriceModel
Returns:
the use shipping formula of this shopping item price

isUseShippingFormula

public boolean isUseShippingFormula()
Description copied from interface: ShoppingItemPriceModel
Returns true if this shopping item price is use shipping formula.

Specified by:
isUseShippingFormula in interface ShoppingItemPriceModel
Returns:
true if this shopping item price is use shipping formula; false otherwise

setUseShippingFormula

public void setUseShippingFormula(boolean useShippingFormula)
Description copied from interface: ShoppingItemPriceModel
Sets whether this shopping item price is use shipping formula.

Specified by:
setUseShippingFormula in interface ShoppingItemPriceModel
Parameters:
useShippingFormula - the use shipping formula of this shopping item price

getStatus

public int getStatus()
Description copied from interface: ShoppingItemPriceModel
Returns the status of this shopping item price.

Specified by:
getStatus in interface ShoppingItemPriceModel
Returns:
the status of this shopping item price

setStatus

public void setStatus(int status)
Description copied from interface: ShoppingItemPriceModel
Sets the status of this shopping item price.

Specified by:
setStatus in interface ShoppingItemPriceModel
Parameters:
status - the status of this shopping item price

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

toEscapedModel

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

toUnescapedModel

public ShoppingItemPrice toUnescapedModel()
Specified by:
toUnescapedModel in interface BaseModel<ShoppingItemPrice>
Specified by:
toUnescapedModel in interface ShoppingItemPriceModel
Overrides:
toUnescapedModel in class BaseModelImpl<ShoppingItemPrice>

clone

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

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

compareTo

public int compareTo(ShoppingItemPrice shoppingItemPrice)
Specified by:
compareTo in interface ShoppingItemPriceModel
Specified by:
compareTo in interface Comparable<ShoppingItemPrice>

equals

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

hashCode

public int hashCode()
Specified by:
hashCode in interface ShoppingItemPriceModel
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<ShoppingItemPrice>
Overrides:
resetOriginalValues in class BaseModelImpl<ShoppingItemPrice>

toCacheModel

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

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

toString

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

Liferay 6.1.2-ce-ga3