|
Liferay 6.1.0-ce-rc1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.service.persistence.impl.BasePersistenceImpl<ShoppingItemPrice>
com.liferay.portlet.shopping.service.persistence.ShoppingItemPricePersistenceImpl
public class ShoppingItemPricePersistenceImpl
The persistence implementation for the shopping item price service.
Caching information and settings can be found in portal.properties
ShoppingItemPricePersistence,
ShoppingItemPriceUtil| Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
|---|
COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, listeners, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR |
| Constructor Summary | |
|---|---|
ShoppingItemPricePersistenceImpl()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
Initializes the shopping item price persistence. |
void |
cacheResult(List<ShoppingItemPrice> shoppingItemPrices)
Caches the shopping item prices in the entity cache if it is enabled. |
void |
cacheResult(ShoppingItemPrice shoppingItemPrice)
Caches the shopping item price in the entity cache if it is enabled. |
void |
clearCache()
Clears the cache for all shopping item prices. |
void |
clearCache(List<ShoppingItemPrice> shoppingItemPrices)
Clears the cache for a List instances of this model. |
void |
clearCache(ShoppingItemPrice shoppingItemPrice)
Clears the cache for the shopping item price. |
int |
countAll()
Returns the number of shopping item prices. |
int |
countByItemId(long itemId)
Returns the number of shopping item prices where itemId = ?. |
ShoppingItemPrice |
create(long itemPriceId)
Creates a new shopping item price with the primary key. |
void |
destroy()
|
ShoppingItemPrice |
fetchByPrimaryKey(long itemPriceId)
Returns the shopping item price with the primary key or returns null if it could not be found. |
ShoppingItemPrice |
fetchByPrimaryKey(Serializable primaryKey)
Returns the shopping item price with the primary key or returns null if it could not be found. |
List<ShoppingItemPrice> |
findAll()
Returns all the shopping item prices. |
List<ShoppingItemPrice> |
findAll(int start,
int end)
Returns a range of all the shopping item prices. |
List<ShoppingItemPrice> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the shopping item prices. |
ShoppingItemPrice |
findByItemId_First(long itemId,
OrderByComparator orderByComparator)
Returns the first shopping item price in the ordered set where itemId = ?. |
ShoppingItemPrice |
findByItemId_Last(long itemId,
OrderByComparator orderByComparator)
Returns the last shopping item price in the ordered set where itemId = ?. |
ShoppingItemPrice[] |
findByItemId_PrevAndNext(long itemPriceId,
long itemId,
OrderByComparator orderByComparator)
Returns the shopping item prices before and after the current shopping item price in the ordered set where itemId = ?. |
List<ShoppingItemPrice> |
findByItemId(long itemId)
Returns all the shopping item prices where itemId = ?. |
List<ShoppingItemPrice> |
findByItemId(long itemId,
int start,
int end)
Returns a range of all the shopping item prices where itemId = ?. |
List<ShoppingItemPrice> |
findByItemId(long itemId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the shopping item prices where itemId = ?. |
ShoppingItemPrice |
findByPrimaryKey(long itemPriceId)
Returns the shopping item price with the primary key or throws a NoSuchItemPriceException if it could not be found. |
ShoppingItemPrice |
findByPrimaryKey(Serializable primaryKey)
Returns the shopping item price with the primary key or throws a NoSuchModelException if it could not be found. |
protected ShoppingItemPrice |
getByItemId_PrevAndNext(Session session,
ShoppingItemPrice shoppingItemPrice,
long itemId,
OrderByComparator orderByComparator,
boolean previous)
|
ShoppingItemPrice |
remove(long itemPriceId)
Removes the shopping item price with the primary key from the database. |
ShoppingItemPrice |
remove(Serializable primaryKey)
Removes the shopping item price with the primary key from the database. |
void |
removeAll()
Removes all the shopping item prices from the database. |
void |
removeByItemId(long itemId)
Removes all the shopping item prices where itemId = ? from the database. |
protected ShoppingItemPrice |
removeImpl(ShoppingItemPrice shoppingItemPrice)
Removes the model instance from the database. |
protected ShoppingItemPrice |
toUnwrappedModel(ShoppingItemPrice shoppingItemPrice)
|
ShoppingItemPrice |
updateImpl(ShoppingItemPrice shoppingItemPrice,
boolean merge)
Updates the model instance in the database or adds it if it does not yet exist. |
| Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
|---|
appendOrderByComparator, closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getDB, getDialect, getListeners, openNewSession, openSession, processException, registerListener, remove, setDataSource, setSessionFactory, unregisterListener, update, update |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence |
|---|
closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update |
| Field Detail |
|---|
public static final String FINDER_CLASS_NAME_ENTITY
public static final String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
public static final String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_ITEMID
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_ITEMID
public static final FinderPath FINDER_PATH_COUNT_BY_ITEMID
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
public static final FinderPath FINDER_PATH_COUNT_ALL
@BeanReference(type=ShoppingCartPersistence.class) protected ShoppingCartPersistence shoppingCartPersistence
@BeanReference(type=ShoppingCategoryPersistence.class) protected ShoppingCategoryPersistence shoppingCategoryPersistence
@BeanReference(type=ShoppingCouponPersistence.class) protected ShoppingCouponPersistence shoppingCouponPersistence
@BeanReference(type=ShoppingItemPersistence.class) protected ShoppingItemPersistence shoppingItemPersistence
@BeanReference(type=ShoppingItemFieldPersistence.class) protected ShoppingItemFieldPersistence shoppingItemFieldPersistence
@BeanReference(type=ShoppingItemPricePersistence.class) protected ShoppingItemPricePersistence shoppingItemPricePersistence
@BeanReference(type=ShoppingOrderPersistence.class) protected ShoppingOrderPersistence shoppingOrderPersistence
@BeanReference(type=ShoppingOrderItemPersistence.class) protected ShoppingOrderItemPersistence shoppingOrderItemPersistence
@BeanReference(type=ResourcePersistence.class) protected ResourcePersistence resourcePersistence
@BeanReference(type=UserPersistence.class) protected UserPersistence userPersistence
| Constructor Detail |
|---|
public ShoppingItemPricePersistenceImpl()
| Method Detail |
|---|
public void cacheResult(ShoppingItemPrice shoppingItemPrice)
cacheResult in interface ShoppingItemPricePersistenceshoppingItemPrice - the shopping item pricepublic void cacheResult(List<ShoppingItemPrice> shoppingItemPrices)
cacheResult in interface ShoppingItemPricePersistenceshoppingItemPrices - the shopping item pricespublic void clearCache()
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface BasePersistence<ShoppingItemPrice>clearCache in class BasePersistenceImpl<ShoppingItemPrice>public void clearCache(ShoppingItemPrice shoppingItemPrice)
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface BasePersistence<ShoppingItemPrice>clearCache in class BasePersistenceImpl<ShoppingItemPrice>shoppingItemPrice - the instance of this model to clear the cache forpublic void clearCache(List<ShoppingItemPrice> shoppingItemPrices)
BasePersistence
The EntityCache and FinderCache are both cleared by this
method.
clearCache in interface BasePersistence<ShoppingItemPrice>clearCache in class BasePersistenceImpl<ShoppingItemPrice>shoppingItemPrices - the List instances of this model to clear the cache forpublic ShoppingItemPrice create(long itemPriceId)
create in interface ShoppingItemPricePersistenceitemPriceId - the primary key for the new shopping item price
public ShoppingItemPrice remove(long itemPriceId)
throws NoSuchItemPriceException,
SystemException
remove in interface ShoppingItemPricePersistenceitemPriceId - the primary key of the shopping item price
NoSuchItemPriceException - if a shopping item price with the primary key could not be found
SystemException - if a system exception occurred
public ShoppingItemPrice remove(Serializable primaryKey)
throws NoSuchItemPriceException,
SystemException
remove in interface BasePersistence<ShoppingItemPrice>remove in class BasePersistenceImpl<ShoppingItemPrice>primaryKey - the primary key of the shopping item price
NoSuchItemPriceException - if a shopping item price with the primary key could not be found
SystemException - if a system exception occurred
protected ShoppingItemPrice removeImpl(ShoppingItemPrice shoppingItemPrice)
throws SystemException
BasePersistenceImplBasePersistenceImpl.update(BaseModel,
boolean) depends on this method to implement the remove operation; it
only notifies the model listeners.
removeImpl in class BasePersistenceImpl<ShoppingItemPrice>shoppingItemPrice - the model instance to remove
SystemException - if a system exception occurred
public ShoppingItemPrice updateImpl(ShoppingItemPrice shoppingItemPrice,
boolean merge)
throws SystemException
BasePersistenceImplBasePersistenceImpl.remove(BaseModel) depends on this method to implement the
update operation; it only notifies the model listeners.
updateImpl in interface ShoppingItemPricePersistenceupdateImpl in class BasePersistenceImpl<ShoppingItemPrice>shoppingItemPrice - the model instance to updatemerge - whether to merge the model instance with the current
session. See BatchSession.update(
com.liferay.portal.kernel.dao.orm.Session, BaseModel, boolean)
for an explanation.
SystemException - if a system exception occurredprotected ShoppingItemPrice toUnwrappedModel(ShoppingItemPrice shoppingItemPrice)
public ShoppingItemPrice findByPrimaryKey(Serializable primaryKey)
throws NoSuchModelException,
SystemException
NoSuchModelException if it could not be found.
findByPrimaryKey in interface BasePersistence<ShoppingItemPrice>findByPrimaryKey in class BasePersistenceImpl<ShoppingItemPrice>primaryKey - the primary key of the shopping item price
NoSuchModelException - if a shopping item price with the primary key could not be found
SystemException - if a system exception occurred
public ShoppingItemPrice findByPrimaryKey(long itemPriceId)
throws NoSuchItemPriceException,
SystemException
NoSuchItemPriceException if it could not be found.
findByPrimaryKey in interface ShoppingItemPricePersistenceitemPriceId - the primary key of the shopping item price
NoSuchItemPriceException - if a shopping item price with the primary key could not be found
SystemException - if a system exception occurred
public ShoppingItemPrice fetchByPrimaryKey(Serializable primaryKey)
throws SystemException
null if it could not be found.
fetchByPrimaryKey in interface BasePersistence<ShoppingItemPrice>fetchByPrimaryKey in class BasePersistenceImpl<ShoppingItemPrice>primaryKey - the primary key of the shopping item price
null if a shopping item price with the primary key could not be found
SystemException - if a system exception occurred
public ShoppingItemPrice fetchByPrimaryKey(long itemPriceId)
throws SystemException
null if it could not be found.
fetchByPrimaryKey in interface ShoppingItemPricePersistenceitemPriceId - the primary key of the shopping item price
null if a shopping item price with the primary key could not be found
SystemException - if a system exception occurred
public List<ShoppingItemPrice> findByItemId(long itemId)
throws SystemException
findByItemId in interface ShoppingItemPricePersistenceitemId - the item ID
SystemException - if a system exception occurred
public List<ShoppingItemPrice> findByItemId(long itemId,
int start,
int end)
throws SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
findByItemId in interface ShoppingItemPricePersistenceitemId - the item IDstart - the lower bound of the range of shopping item pricesend - the upper bound of the range of shopping item prices (not inclusive)
SystemException - if a system exception occurred
public List<ShoppingItemPrice> findByItemId(long itemId,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
findByItemId in interface ShoppingItemPricePersistenceitemId - the item IDstart - the lower bound of the range of shopping item pricesend - the upper bound of the range of shopping item prices (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
SystemException - if a system exception occurred
public ShoppingItemPrice findByItemId_First(long itemId,
OrderByComparator orderByComparator)
throws NoSuchItemPriceException,
SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
findByItemId_First in interface ShoppingItemPricePersistenceitemId - the item IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchItemPriceException - if a matching shopping item price could not be found
SystemException - if a system exception occurred
public ShoppingItemPrice findByItemId_Last(long itemId,
OrderByComparator orderByComparator)
throws NoSuchItemPriceException,
SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
findByItemId_Last in interface ShoppingItemPricePersistenceitemId - the item IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchItemPriceException - if a matching shopping item price could not be found
SystemException - if a system exception occurred
public ShoppingItemPrice[] findByItemId_PrevAndNext(long itemPriceId,
long itemId,
OrderByComparator orderByComparator)
throws NoSuchItemPriceException,
SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
findByItemId_PrevAndNext in interface ShoppingItemPricePersistenceitemPriceId - the primary key of the current shopping item priceitemId - the item IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchItemPriceException - if a shopping item price with the primary key could not be found
SystemException - if a system exception occurred
protected ShoppingItemPrice getByItemId_PrevAndNext(Session session,
ShoppingItemPrice shoppingItemPrice,
long itemId,
OrderByComparator orderByComparator,
boolean previous)
public List<ShoppingItemPrice> findAll()
throws SystemException
findAll in interface ShoppingItemPricePersistenceSystemException - if a system exception occurred
public List<ShoppingItemPrice> findAll(int start,
int end)
throws SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
findAll in interface ShoppingItemPricePersistencestart - the lower bound of the range of shopping item pricesend - the upper bound of the range of shopping item prices (not inclusive)
SystemException - if a system exception occurred
public List<ShoppingItemPrice> findAll(int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.
findAll in interface ShoppingItemPricePersistencestart - the lower bound of the range of shopping item pricesend - the upper bound of the range of shopping item prices (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
SystemException - if a system exception occurred
public void removeByItemId(long itemId)
throws SystemException
removeByItemId in interface ShoppingItemPricePersistenceitemId - the item ID
SystemException - if a system exception occurred
public void removeAll()
throws SystemException
removeAll in interface ShoppingItemPricePersistenceSystemException - if a system exception occurred
public int countByItemId(long itemId)
throws SystemException
countByItemId in interface ShoppingItemPricePersistenceitemId - the item ID
SystemException - if a system exception occurred
public int countAll()
throws SystemException
countAll in interface ShoppingItemPricePersistenceSystemException - if a system exception occurredpublic void afterPropertiesSet()
public void destroy()
|
Liferay 6.1.0-ce-rc1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||