|
Liferay 7.0-ce-m6 | |||||||||
| 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.impl.ShoppingItemPricePersistenceImpl
@ProviderType 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, NULL_SAFE_STRING_COMPARATOR, 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 |
fetchByItemId_First(long itemId,
OrderByComparator<ShoppingItemPrice> orderByComparator)
Returns the first shopping item price in the ordered set where itemId = ?. |
ShoppingItemPrice |
fetchByItemId_Last(long itemId,
OrderByComparator<ShoppingItemPrice> orderByComparator)
Returns the last shopping item price in the ordered set where itemId = ?. |
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. |
Map<Serializable,ShoppingItemPrice> |
fetchByPrimaryKeys(Set<Serializable> primaryKeys)
|
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<ShoppingItemPrice> orderByComparator)
Returns an ordered range of all the shopping item prices. |
ShoppingItemPrice |
findByItemId_First(long itemId,
OrderByComparator<ShoppingItemPrice> orderByComparator)
Returns the first shopping item price in the ordered set where itemId = ?. |
ShoppingItemPrice |
findByItemId_Last(long itemId,
OrderByComparator<ShoppingItemPrice> orderByComparator)
Returns the last shopping item price in the ordered set where itemId = ?. |
ShoppingItemPrice[] |
findByItemId_PrevAndNext(long itemPriceId,
long itemId,
OrderByComparator<ShoppingItemPrice> 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<ShoppingItemPrice> 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<ShoppingItemPrice> 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)
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, appendOrderByComparator, closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getClassLoader, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openNewSession, openSession, processException, registerListener, remove, removeConjunction, setDataSource, setModelClass, setSessionFactory, unregisterListener, update, update, update, update, updateImpl |
| 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, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update, 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_ALL
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
public static final FinderPath FINDER_PATH_COUNT_ALL
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
| Constructor Detail |
|---|
public ShoppingItemPricePersistenceImpl()
| Method Detail |
|---|
public List<ShoppingItemPrice> findByItemId(long itemId)
findByItemId in interface ShoppingItemPricePersistenceitemId - the item ID
public List<ShoppingItemPrice> findByItemId(long itemId,
int start,
int end)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from ShoppingItemPriceModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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)
public List<ShoppingItemPrice> findByItemId(long itemId,
int start,
int end,
OrderByComparator<ShoppingItemPrice> orderByComparator)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from ShoppingItemPriceModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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)
public ShoppingItemPrice findByItemId_First(long itemId,
OrderByComparator<ShoppingItemPrice> orderByComparator)
throws NoSuchItemPriceException
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
public ShoppingItemPrice fetchByItemId_First(long itemId,
OrderByComparator<ShoppingItemPrice> orderByComparator)
fetchByItemId_First in interface ShoppingItemPricePersistenceitemId - the item IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching shopping item price could not be found
public ShoppingItemPrice findByItemId_Last(long itemId,
OrderByComparator<ShoppingItemPrice> orderByComparator)
throws NoSuchItemPriceException
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
public ShoppingItemPrice fetchByItemId_Last(long itemId,
OrderByComparator<ShoppingItemPrice> orderByComparator)
fetchByItemId_Last in interface ShoppingItemPricePersistenceitemId - the item IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching shopping item price could not be found
public ShoppingItemPrice[] findByItemId_PrevAndNext(long itemPriceId,
long itemId,
OrderByComparator<ShoppingItemPrice> orderByComparator)
throws NoSuchItemPriceException
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
protected ShoppingItemPrice getByItemId_PrevAndNext(Session session,
ShoppingItemPrice shoppingItemPrice,
long itemId,
OrderByComparator<ShoppingItemPrice> orderByComparator,
boolean previous)
public void removeByItemId(long itemId)
removeByItemId in interface ShoppingItemPricePersistenceitemId - the item IDpublic int countByItemId(long itemId)
countByItemId in interface ShoppingItemPricePersistenceitemId - the item ID
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
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
public ShoppingItemPrice remove(Serializable primaryKey)
throws NoSuchItemPriceException
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 foundprotected ShoppingItemPrice removeImpl(ShoppingItemPrice shoppingItemPrice)
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
public ShoppingItemPrice updateImpl(ShoppingItemPrice shoppingItemPrice)
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 update
protected ShoppingItemPrice toUnwrappedModel(ShoppingItemPrice shoppingItemPrice)
public ShoppingItemPrice findByPrimaryKey(Serializable primaryKey)
throws NoSuchItemPriceException
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
NoSuchItemPriceException - if a shopping item price with the primary key could not be found
public ShoppingItemPrice findByPrimaryKey(long itemPriceId)
throws NoSuchItemPriceException
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 foundpublic ShoppingItemPrice fetchByPrimaryKey(Serializable primaryKey)
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 foundpublic ShoppingItemPrice fetchByPrimaryKey(long itemPriceId)
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 foundpublic Map<Serializable,ShoppingItemPrice> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
fetchByPrimaryKeys in interface BasePersistence<ShoppingItemPrice>fetchByPrimaryKeys in interface ShoppingItemPricePersistencefetchByPrimaryKeys in class BasePersistenceImpl<ShoppingItemPrice>public List<ShoppingItemPrice> findAll()
findAll in interface ShoppingItemPricePersistence
public List<ShoppingItemPrice> findAll(int start,
int end)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from ShoppingItemPriceModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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)
public List<ShoppingItemPrice> findAll(int start,
int end,
OrderByComparator<ShoppingItemPrice> orderByComparator)
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from ShoppingItemPriceModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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)
public void removeAll()
removeAll in interface ShoppingItemPricePersistencepublic int countAll()
countAll in interface ShoppingItemPricePersistencepublic void afterPropertiesSet()
public void destroy()
|
Liferay 7.0-ce-m6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||