|
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.portlet.shopping.service.persistence.ShoppingOrderItemUtil
@ProviderType public class ShoppingOrderItemUtil
The persistence utility for the shopping order item service. This utility wraps com.liferay.portlet.shopping.service.persistence.impl.ShoppingOrderItemPersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Caching information and settings can be found in portal.properties
ShoppingOrderItemPersistence,
com.liferay.portlet.shopping.service.persistence.impl.ShoppingOrderItemPersistenceImpl| Constructor Summary | |
|---|---|
ShoppingOrderItemUtil()
|
|
| Method Summary | |
|---|---|
static void |
cacheResult(List<ShoppingOrderItem> shoppingOrderItems)
Caches the shopping order items in the entity cache if it is enabled. |
static void |
cacheResult(ShoppingOrderItem shoppingOrderItem)
Caches the shopping order item in the entity cache if it is enabled. |
static void |
clearCache()
|
static void |
clearCache(ShoppingOrderItem shoppingOrderItem)
|
static int |
countAll()
Returns the number of shopping order items. |
static int |
countByOrderId(long orderId)
Returns the number of shopping order items where orderId = ?. |
static long |
countWithDynamicQuery(DynamicQuery dynamicQuery)
|
static ShoppingOrderItem |
create(long orderItemId)
Creates a new shopping order item with the primary key. |
static ShoppingOrderItem |
fetchByOrderId_First(long orderId,
OrderByComparator<ShoppingOrderItem> orderByComparator)
Returns the first shopping order item in the ordered set where orderId = ?. |
static ShoppingOrderItem |
fetchByOrderId_Last(long orderId,
OrderByComparator<ShoppingOrderItem> orderByComparator)
Returns the last shopping order item in the ordered set where orderId = ?. |
static ShoppingOrderItem |
fetchByPrimaryKey(long orderItemId)
Returns the shopping order item with the primary key or returns null if it could not be found. |
static Map<Serializable,ShoppingOrderItem> |
fetchByPrimaryKeys(Set<Serializable> primaryKeys)
|
static List<ShoppingOrderItem> |
findAll()
Returns all the shopping order items. |
static List<ShoppingOrderItem> |
findAll(int start,
int end)
Returns a range of all the shopping order items. |
static List<ShoppingOrderItem> |
findAll(int start,
int end,
OrderByComparator<ShoppingOrderItem> orderByComparator)
Returns an ordered range of all the shopping order items. |
static ShoppingOrderItem |
findByOrderId_First(long orderId,
OrderByComparator<ShoppingOrderItem> orderByComparator)
Returns the first shopping order item in the ordered set where orderId = ?. |
static ShoppingOrderItem |
findByOrderId_Last(long orderId,
OrderByComparator<ShoppingOrderItem> orderByComparator)
Returns the last shopping order item in the ordered set where orderId = ?. |
static ShoppingOrderItem[] |
findByOrderId_PrevAndNext(long orderItemId,
long orderId,
OrderByComparator<ShoppingOrderItem> orderByComparator)
Returns the shopping order items before and after the current shopping order item in the ordered set where orderId = ?. |
static List<ShoppingOrderItem> |
findByOrderId(long orderId)
Returns all the shopping order items where orderId = ?. |
static List<ShoppingOrderItem> |
findByOrderId(long orderId,
int start,
int end)
Returns a range of all the shopping order items where orderId = ?. |
static List<ShoppingOrderItem> |
findByOrderId(long orderId,
int start,
int end,
OrderByComparator<ShoppingOrderItem> orderByComparator)
Returns an ordered range of all the shopping order items where orderId = ?. |
static ShoppingOrderItem |
findByPrimaryKey(long orderItemId)
Returns the shopping order item with the primary key or throws a NoSuchOrderItemException if it could not be found. |
static List<ShoppingOrderItem> |
findWithDynamicQuery(DynamicQuery dynamicQuery)
|
static List<ShoppingOrderItem> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
|
static List<ShoppingOrderItem> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator<ShoppingOrderItem> orderByComparator)
|
static ShoppingOrderItemPersistence |
getPersistence()
|
static ShoppingOrderItem |
remove(long orderItemId)
Removes the shopping order item with the primary key from the database. |
static void |
removeAll()
Removes all the shopping order items from the database. |
static void |
removeByOrderId(long orderId)
Removes all the shopping order items where orderId = ? from the database. |
void |
setPersistence(ShoppingOrderItemPersistence persistence)
Deprecated. As of 6.2.0 |
static ShoppingOrderItem |
update(ShoppingOrderItem shoppingOrderItem)
|
static ShoppingOrderItem |
update(ShoppingOrderItem shoppingOrderItem,
ServiceContext serviceContext)
|
static ShoppingOrderItem |
updateImpl(ShoppingOrderItem shoppingOrderItem)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ShoppingOrderItemUtil()
| Method Detail |
|---|
public static void clearCache()
BasePersistence.clearCache()public static void clearCache(ShoppingOrderItem shoppingOrderItem)
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)public static List<ShoppingOrderItem> findWithDynamicQuery(DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static List<ShoppingOrderItem> findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static List<ShoppingOrderItem> findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator<ShoppingOrderItem> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)public static ShoppingOrderItem update(ShoppingOrderItem shoppingOrderItem)
BasePersistence.update(com.liferay.portal.model.BaseModel)
public static ShoppingOrderItem update(ShoppingOrderItem shoppingOrderItem,
ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.model.BaseModel, ServiceContext)public static List<ShoppingOrderItem> findByOrderId(long orderId)
orderId - the order ID
public static List<ShoppingOrderItem> findByOrderId(long orderId,
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 ShoppingOrderItemModelImpl. 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.
orderId - the order IDstart - the lower bound of the range of shopping order itemsend - the upper bound of the range of shopping order items (not inclusive)
public static List<ShoppingOrderItem> findByOrderId(long orderId,
int start,
int end,
OrderByComparator<ShoppingOrderItem> 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 ShoppingOrderItemModelImpl. 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.
orderId - the order IDstart - the lower bound of the range of shopping order itemsend - the upper bound of the range of shopping order items (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public static ShoppingOrderItem findByOrderId_First(long orderId,
OrderByComparator<ShoppingOrderItem> orderByComparator)
throws NoSuchOrderItemException
orderId - the order IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchOrderItemException - if a matching shopping order item could not be found
public static ShoppingOrderItem fetchByOrderId_First(long orderId,
OrderByComparator<ShoppingOrderItem> orderByComparator)
orderId - the order IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching shopping order item could not be found
public static ShoppingOrderItem findByOrderId_Last(long orderId,
OrderByComparator<ShoppingOrderItem> orderByComparator)
throws NoSuchOrderItemException
orderId - the order IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchOrderItemException - if a matching shopping order item could not be found
public static ShoppingOrderItem fetchByOrderId_Last(long orderId,
OrderByComparator<ShoppingOrderItem> orderByComparator)
orderId - the order IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching shopping order item could not be found
public static ShoppingOrderItem[] findByOrderId_PrevAndNext(long orderItemId,
long orderId,
OrderByComparator<ShoppingOrderItem> orderByComparator)
throws NoSuchOrderItemException
orderItemId - the primary key of the current shopping order itemorderId - the order IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchOrderItemException - if a shopping order item with the primary key could not be foundpublic static void removeByOrderId(long orderId)
orderId - the order IDpublic static int countByOrderId(long orderId)
orderId - the order ID
public static void cacheResult(ShoppingOrderItem shoppingOrderItem)
shoppingOrderItem - the shopping order itempublic static void cacheResult(List<ShoppingOrderItem> shoppingOrderItems)
shoppingOrderItems - the shopping order itemspublic static ShoppingOrderItem create(long orderItemId)
orderItemId - the primary key for the new shopping order item
public static ShoppingOrderItem remove(long orderItemId)
throws NoSuchOrderItemException
orderItemId - the primary key of the shopping order item
NoSuchOrderItemException - if a shopping order item with the primary key could not be foundpublic static ShoppingOrderItem updateImpl(ShoppingOrderItem shoppingOrderItem)
public static ShoppingOrderItem findByPrimaryKey(long orderItemId)
throws NoSuchOrderItemException
NoSuchOrderItemException if it could not be found.
orderItemId - the primary key of the shopping order item
NoSuchOrderItemException - if a shopping order item with the primary key could not be foundpublic static ShoppingOrderItem fetchByPrimaryKey(long orderItemId)
null if it could not be found.
orderItemId - the primary key of the shopping order item
null if a shopping order item with the primary key could not be foundpublic static Map<Serializable,ShoppingOrderItem> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
public static List<ShoppingOrderItem> findAll()
public static List<ShoppingOrderItem> 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 ShoppingOrderItemModelImpl. 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.
start - the lower bound of the range of shopping order itemsend - the upper bound of the range of shopping order items (not inclusive)
public static List<ShoppingOrderItem> findAll(int start,
int end,
OrderByComparator<ShoppingOrderItem> 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 ShoppingOrderItemModelImpl. 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.
start - the lower bound of the range of shopping order itemsend - the upper bound of the range of shopping order items (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public static void removeAll()
public static int countAll()
public static ShoppingOrderItemPersistence getPersistence()
@Deprecated public void setPersistence(ShoppingOrderItemPersistence persistence)
|
Liferay 7.0-ce-m6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||