|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portlet.shopping.service.persistence.ShoppingOrderItemUtil
public class ShoppingOrderItemUtil
The persistence utility for the shopping order item service. This utility wraps 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.
Never modify this class directly. Modify service.xml
and rerun ServiceBuilder to regenerate this class.
Caching information and settings can be found in portal.properties
ShoppingOrderItemPersistence
,
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()
Counts all the shopping order items. |
static int |
countByOrderId(long orderId)
Counts all the shopping order items where orderId = ?. |
long |
countWithDynamicQuery(DynamicQuery dynamicQuery)
|
static ShoppingOrderItem |
create(long orderItemId)
Creates a new shopping order item with the primary key. |
static ShoppingOrderItem |
fetchByPrimaryKey(long orderItemId)
Finds the shopping order item with the primary key or returns null if it could not be found. |
static List<ShoppingOrderItem> |
findAll()
Finds all the shopping order items. |
static List<ShoppingOrderItem> |
findAll(int start,
int end)
Finds a range of all the shopping order items. |
static List<ShoppingOrderItem> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the shopping order items. |
static ShoppingOrderItem |
findByOrderId_First(long orderId,
OrderByComparator orderByComparator)
Finds the first shopping order item in the ordered set where orderId = ?. |
static ShoppingOrderItem |
findByOrderId_Last(long orderId,
OrderByComparator orderByComparator)
Finds the last shopping order item in the ordered set where orderId = ?. |
static ShoppingOrderItem[] |
findByOrderId_PrevAndNext(long orderItemId,
long orderId,
OrderByComparator orderByComparator)
Finds the shopping order items before and after the current shopping order item in the ordered set where orderId = ?. |
static List<ShoppingOrderItem> |
findByOrderId(long orderId)
Finds all the shopping order items where orderId = ?. |
static List<ShoppingOrderItem> |
findByOrderId(long orderId,
int start,
int end)
Finds a range of all the shopping order items where orderId = ?. |
static List<ShoppingOrderItem> |
findByOrderId(long orderId,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the shopping order items where orderId = ?. |
static ShoppingOrderItem |
findByPrimaryKey(long orderItemId)
Finds 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 orderByComparator)
|
static ShoppingOrderItemPersistence |
getPersistence()
|
static ShoppingOrderItem |
remove(long orderItemId)
Removes the shopping order item with the primary key from the database. |
static ShoppingOrderItem |
remove(ShoppingOrderItem shoppingOrderItem)
|
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)
|
static ShoppingOrderItem |
update(ShoppingOrderItem shoppingOrderItem,
boolean merge)
|
static ShoppingOrderItem |
update(ShoppingOrderItem shoppingOrderItem,
boolean merge,
ServiceContext serviceContext)
|
static ShoppingOrderItem |
updateImpl(ShoppingOrderItem shoppingOrderItem,
boolean merge)
|
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 long countWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException
SystemException
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static List<ShoppingOrderItem> findWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static List<ShoppingOrderItem> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static List<ShoppingOrderItem> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static ShoppingOrderItem remove(ShoppingOrderItem shoppingOrderItem) throws SystemException
SystemException
BasePersistence.remove(com.liferay.portal.model.BaseModel)
public static ShoppingOrderItem update(ShoppingOrderItem shoppingOrderItem, boolean merge) throws SystemException
SystemException
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean)
public static ShoppingOrderItem update(ShoppingOrderItem shoppingOrderItem, boolean merge, ServiceContext serviceContext) throws SystemException
SystemException
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
public static void cacheResult(ShoppingOrderItem shoppingOrderItem)
shoppingOrderItem
- the shopping order item to cachepublic static void cacheResult(List<ShoppingOrderItem> shoppingOrderItems)
shoppingOrderItems
- the shopping order items to cachepublic static ShoppingOrderItem create(long orderItemId)
orderItemId
- the primary key for the new shopping order item
public static ShoppingOrderItem remove(long orderItemId) throws SystemException, NoSuchOrderItemException
orderItemId
- the primary key of the shopping order item to remove
NoSuchOrderItemException
- if a shopping order item with the primary key could not be found
SystemException
- if a system exception occurredpublic static ShoppingOrderItem updateImpl(ShoppingOrderItem shoppingOrderItem, boolean merge) throws SystemException
SystemException
public static ShoppingOrderItem findByPrimaryKey(long orderItemId) throws SystemException, NoSuchOrderItemException
NoSuchOrderItemException
if it could not be found.
orderItemId
- the primary key of the shopping order item to find
NoSuchOrderItemException
- if a shopping order item with the primary key could not be found
SystemException
- if a system exception occurredpublic static ShoppingOrderItem fetchByPrimaryKey(long orderItemId) throws SystemException
null
if it could not be found.
orderItemId
- the primary key of the shopping order item to find
null
if a shopping order item with the primary key could not be found
SystemException
- if a system exception occurredpublic static List<ShoppingOrderItem> findByOrderId(long orderId) throws SystemException
orderId
- the order id to search with
SystemException
- if a system exception occurredpublic static List<ShoppingOrderItem> findByOrderId(long orderId, 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.
orderId
- the order id to search withstart
- the lower bound of the range of shopping order items to returnend
- the upper bound of the range of shopping order items to return (not inclusive)
SystemException
- if a system exception occurredpublic static List<ShoppingOrderItem> findByOrderId(long orderId, 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.
orderId
- the order id to search withstart
- the lower bound of the range of shopping order items to returnend
- the upper bound of the range of shopping order items to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic static ShoppingOrderItem findByOrderId_First(long orderId, OrderByComparator orderByComparator) throws SystemException, NoSuchOrderItemException
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.
orderId
- the order id to search withorderByComparator
- the comparator to order the set by
NoSuchOrderItemException
- if a matching shopping order item could not be found
SystemException
- if a system exception occurredpublic static ShoppingOrderItem findByOrderId_Last(long orderId, OrderByComparator orderByComparator) throws SystemException, NoSuchOrderItemException
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.
orderId
- the order id to search withorderByComparator
- the comparator to order the set by
NoSuchOrderItemException
- if a matching shopping order item could not be found
SystemException
- if a system exception occurredpublic static ShoppingOrderItem[] findByOrderId_PrevAndNext(long orderItemId, long orderId, OrderByComparator orderByComparator) throws SystemException, NoSuchOrderItemException
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.
orderItemId
- the primary key of the current shopping order itemorderId
- the order id to search withorderByComparator
- the comparator to order the set by
NoSuchOrderItemException
- if a shopping order item with the primary key could not be found
SystemException
- if a system exception occurredpublic static List<ShoppingOrderItem> findAll() throws SystemException
SystemException
- if a system exception occurredpublic static List<ShoppingOrderItem> 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.
start
- the lower bound of the range of shopping order items to returnend
- the upper bound of the range of shopping order items to return (not inclusive)
SystemException
- if a system exception occurredpublic static List<ShoppingOrderItem> 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.
start
- the lower bound of the range of shopping order items to returnend
- the upper bound of the range of shopping order items to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic static void removeByOrderId(long orderId) throws SystemException
orderId
- the order id to search with
SystemException
- if a system exception occurredpublic static void removeAll() throws SystemException
SystemException
- if a system exception occurredpublic static int countByOrderId(long orderId) throws SystemException
orderId
- the order id to search with
SystemException
- if a system exception occurredpublic static int countAll() throws SystemException
SystemException
- if a system exception occurredpublic static ShoppingOrderItemPersistence getPersistence()
public void setPersistence(ShoppingOrderItemPersistence persistence)
|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |