|
Liferay 6.0.4 | |||||||||
| 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 for the shopping item price service.
Never modify this class directly. Modify service.xml and rerun ServiceBuilder to regnerate this class.
Caching information and settings can be found in portal.properties
ShoppingItemPricePersistence,
ShoppingItemPriceUtil| Field Summary | |
|---|---|
static String |
FINDER_CLASS_NAME_ENTITY
|
static String |
FINDER_CLASS_NAME_LIST
|
static FinderPath |
FINDER_PATH_COUNT_ALL
|
static FinderPath |
FINDER_PATH_COUNT_BY_ITEMID
|
static FinderPath |
FINDER_PATH_FIND_ALL
|
static FinderPath |
FINDER_PATH_FIND_BY_ITEMID
|
protected ResourcePersistence |
resourcePersistence
|
protected ShoppingCartPersistence |
shoppingCartPersistence
|
protected ShoppingCategoryPersistence |
shoppingCategoryPersistence
|
protected ShoppingCouponPersistence |
shoppingCouponPersistence
|
protected ShoppingItemFieldPersistence |
shoppingItemFieldPersistence
|
protected ShoppingItemPersistence |
shoppingItemPersistence
|
protected ShoppingItemPricePersistence |
shoppingItemPricePersistence
|
protected ShoppingOrderItemPersistence |
shoppingOrderItemPersistence
|
protected ShoppingOrderPersistence |
shoppingOrderPersistence
|
protected UserPersistence |
userPersistence
|
| Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
|---|
COUNT_COLUMN_NAME, 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(ShoppingItemPrice shoppingItemPrice)
Clears the cache for the shopping item price. |
int |
countAll()
Counts all the shopping item prices. |
int |
countByItemId(long itemId)
Counts all the shopping item prices where itemId = ?. |
ShoppingItemPrice |
create(long itemPriceId)
Creates a new shopping item price with the primary key. |
ShoppingItemPrice |
fetchByPrimaryKey(long itemPriceId)
Finds the shopping item price with the primary key or returns null if it could not be found. |
ShoppingItemPrice |
fetchByPrimaryKey(Serializable primaryKey)
Finds the shopping item price with the primary key or returns null if it could not be found. |
List<ShoppingItemPrice> |
findAll()
Finds all the shopping item prices. |
List<ShoppingItemPrice> |
findAll(int start,
int end)
Finds a range of all the shopping item prices. |
List<ShoppingItemPrice> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the shopping item prices. |
ShoppingItemPrice |
findByItemId_First(long itemId,
OrderByComparator orderByComparator)
Finds the first shopping item price in the ordered set where itemId = ?. |
ShoppingItemPrice |
findByItemId_Last(long itemId,
OrderByComparator orderByComparator)
Finds the last shopping item price in the ordered set where itemId = ?. |
ShoppingItemPrice[] |
findByItemId_PrevAndNext(long itemPriceId,
long itemId,
OrderByComparator orderByComparator)
Finds the shopping item prices before and after the current shopping item price in the ordered set where itemId = ?. |
List<ShoppingItemPrice> |
findByItemId(long itemId)
Finds all the shopping item prices where itemId = ?. |
List<ShoppingItemPrice> |
findByItemId(long itemId,
int start,
int end)
Finds a range of all the shopping item prices where itemId = ?. |
List<ShoppingItemPrice> |
findByItemId(long itemId,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the shopping item prices where itemId = ?. |
ShoppingItemPrice |
findByPrimaryKey(long itemPriceId)
Finds the shopping item price with the primary key or throws a NoSuchItemPriceException if it could not be found. |
ShoppingItemPrice |
findByPrimaryKey(Serializable primaryKey)
Finds 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, 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 |
|---|
countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, registerListener, remove, setDataSource, unregisterListener, update, update |
| Field Detail |
|---|
public static final String FINDER_CLASS_NAME_ENTITY
public static final String FINDER_CLASS_NAME_LIST
public static final FinderPath FINDER_PATH_FIND_BY_ITEMID
public static final FinderPath FINDER_PATH_COUNT_BY_ITEMID
public static final FinderPath FINDER_PATH_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 price to cachepublic void cacheResult(List<ShoppingItemPrice> shoppingItemPrices)
cacheResult in interface ShoppingItemPricePersistenceshoppingItemPrices - the shopping item prices to cachepublic 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 ShoppingItemPrice create(long itemPriceId)
create in interface ShoppingItemPricePersistenceitemPriceId - the primary key for the new shopping item price
public ShoppingItemPrice remove(Serializable primaryKey)
throws NoSuchModelException,
SystemException
remove in interface BasePersistence<ShoppingItemPrice>remove in class BasePersistenceImpl<ShoppingItemPrice>primaryKey - the primary key of the shopping item price to remove
NoSuchModelException - if a shopping item price with the primary key could not be found
SystemException - if a system exception occurred
public ShoppingItemPrice remove(long itemPriceId)
throws NoSuchItemPriceException,
SystemException
remove in interface ShoppingItemPricePersistenceitemPriceId - the primary key of the shopping item price to remove
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 to find
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 to find
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 to find
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 to find
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 to search with
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 id to search withstart - the lower bound of the range of shopping item prices to returnend - the upper bound of the range of shopping item prices to return (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 id to search withstart - the lower bound of the range of shopping item prices to returnend - the upper bound of the range of shopping item prices to return (not inclusive)orderByComparator - the comparator to order the results by
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 id to search withorderByComparator - the comparator to order the set by
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 id to search withorderByComparator - the comparator to order the set by
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 id to search withorderByComparator - the comparator to order the set by
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 prices to returnend - the upper bound of the range of shopping item prices to return (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 prices to returnend - the upper bound of the range of shopping item prices to return (not inclusive)orderByComparator - the comparator to order the results by
SystemException - if a system exception occurred
public void removeByItemId(long itemId)
throws SystemException
removeByItemId in interface ShoppingItemPricePersistenceitemId - the item id to search with
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 to search with
SystemException - if a system exception occurred
public int countAll()
throws SystemException
countAll in interface ShoppingItemPricePersistenceSystemException - if a system exception occurredpublic void afterPropertiesSet()
|
Liferay 6.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||