Liferay 6.0.5

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>, ShoppingItemPriceModel, Serializable, Cloneable, Comparable<ShoppingItemPrice>
Direct Known Subclasses:
ShoppingItemPriceImpl

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.

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

See Also:
ShoppingItemPriceImpl, ShoppingItemPrice, ShoppingItemPriceModel, 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 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)
           
 double getDiscount()
          Gets the discount of this shopping item price.
 ExpandoBridge getExpandoBridge()
          Gets the expando bridge for this model instance.
 long getItemId()
          Gets the item id of this shopping item price.
 long getItemPriceId()
          Gets the item price id of this shopping item price.
 int getMaxQuantity()
          Gets the max quantity of this shopping item price.
 int getMinQuantity()
          Gets the min quantity of this shopping item price.
 double getPrice()
          Gets the price of this shopping item price.
 long getPrimaryKey()
          Gets the primary key of this shopping item price.
 Serializable getPrimaryKeyObj()
          Gets the primary key of this model instance.
 double getShipping()
          Gets the shipping of this shopping item price.
 int getStatus()
          Gets the status of this shopping item price.
 boolean getTaxable()
          Gets the taxable of this shopping item price.
 boolean getUseShippingFormula()
          Gets the use shipping formula of this shopping item price.
 int hashCode()
           
 boolean isTaxable()
          Determines whether this shopping item price is taxable.
 boolean isUseShippingFormula()
          Determines whether this shopping item price is use shipping formula.
 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 setPrice(double price)
          Sets the price of this shopping item price.
 void setPrimaryKey(long pk)
          Sets the primary key of this shopping item price
 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 {$entity.humanName} is taxable.
 void setUseShippingFormula(boolean useShippingFormula)
          Sets whether this {$entity.humanName} is use shipping formula.
 ShoppingItemPrice toEscapedModel()
          Gets a copy of this shopping item price 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.ShoppingItemPriceModel
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

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

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
Gets 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 pk)
Description copied from interface: ShoppingItemPriceModel
Sets the primary key of this shopping item price

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

getPrimaryKeyObj

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

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

getItemPriceId

public long getItemPriceId()
Description copied from interface: ShoppingItemPriceModel
Gets 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
Gets 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

getMinQuantity

public int getMinQuantity()
Description copied from interface: ShoppingItemPriceModel
Gets 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
Gets 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
Gets 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
Gets 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
Gets 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
Determines whether this shopping item price is taxable.

Specified by:
isTaxable in interface ShoppingItemPriceModel
Returns:
whether this shopping item price is taxable

setTaxable

public void setTaxable(boolean taxable)
Description copied from interface: ShoppingItemPriceModel
Sets whether this {$entity.humanName} 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
Gets 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
Gets 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
Determines whether this shopping item price is use shipping formula.

Specified by:
isUseShippingFormula in interface ShoppingItemPriceModel
Returns:
whether this shopping item price is use shipping formula

setUseShippingFormula

public void setUseShippingFormula(boolean useShippingFormula)
Description copied from interface: ShoppingItemPriceModel
Sets whether this {$entity.humanName} 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
Gets 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

toEscapedModel

public ShoppingItemPrice toEscapedModel()
Description copied from interface: ShoppingItemPriceModel
Gets a copy of this shopping item price as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.

Specified by:
toEscapedModel in interface ShoppingItemPriceModel
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<ShoppingItemPrice>
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 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<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

toString

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

Liferay 6.0.5