com.liferay.portlet.shopping.service.persistence
Class ShoppingOrderItemUtil
java.lang.Object
com.liferay.portlet.shopping.service.persistence.ShoppingOrderItemUtil
public class ShoppingOrderItemUtil
- extends java.lang.Object
View Source
- Author:
- Brian Wing Shun Chan
Method Summary |
static int |
countAll()
|
static int |
countByOrderId(long orderId)
|
static ShoppingOrderItem |
create(long orderItemId)
|
static ShoppingOrderItem |
fetchByPrimaryKey(long orderItemId)
|
static java.util.List<ShoppingOrderItem> |
findAll()
|
static java.util.List<ShoppingOrderItem> |
findAll(int start,
int end)
|
static java.util.List<ShoppingOrderItem> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static ShoppingOrderItem |
findByOrderId_First(long orderId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static ShoppingOrderItem |
findByOrderId_Last(long orderId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static ShoppingOrderItem[] |
findByOrderId_PrevAndNext(long orderItemId,
long orderId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<ShoppingOrderItem> |
findByOrderId(long orderId)
|
static java.util.List<ShoppingOrderItem> |
findByOrderId(long orderId,
int start,
int end)
|
static java.util.List<ShoppingOrderItem> |
findByOrderId(long orderId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static ShoppingOrderItem |
findByPrimaryKey(long orderItemId)
|
static java.util.List<java.lang.Object> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
|
static java.util.List<java.lang.Object> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
|
static ShoppingOrderItemPersistence |
getPersistence()
|
static ShoppingOrderItem |
remove(long orderItemId)
|
static ShoppingOrderItem |
remove(ShoppingOrderItem shoppingOrderItem)
|
static void |
removeAll()
|
static void |
removeByOrderId(long orderId)
|
void |
setPersistence(ShoppingOrderItemPersistence persistence)
|
static ShoppingOrderItem |
update(ShoppingOrderItem shoppingOrderItem)
Deprecated. Use update(ShoppingOrderItem shoppingOrderItem, boolean merge) . |
static ShoppingOrderItem |
update(ShoppingOrderItem shoppingOrderItem,
boolean merge)
Add, update, or merge, the entity. |
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 |
ShoppingOrderItemUtil
public ShoppingOrderItemUtil()
create
public static ShoppingOrderItem create(long orderItemId)
remove
public static ShoppingOrderItem remove(long orderItemId)
throws com.liferay.portal.SystemException,
NoSuchOrderItemException
- Throws:
com.liferay.portal.SystemException
NoSuchOrderItemException
remove
public static ShoppingOrderItem remove(ShoppingOrderItem shoppingOrderItem)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
update
public static ShoppingOrderItem update(ShoppingOrderItem shoppingOrderItem)
throws com.liferay.portal.SystemException
- Deprecated. Use
update(ShoppingOrderItem shoppingOrderItem, boolean merge)
.
- Throws:
com.liferay.portal.SystemException
update
public static ShoppingOrderItem update(ShoppingOrderItem shoppingOrderItem,
boolean merge)
throws com.liferay.portal.SystemException
- Add, update, or merge, the entity. This method also calls the model
listeners to trigger the proper events associated with adding, deleting,
or updating an entity.
- Parameters:
shoppingOrderItem
- the entity to add, update, or mergemerge
- boolean value for whether to merge the entity. The
default value is false. Setting merge to true is more
expensive and should only be true when shoppingOrderItem is
transient. See LEP-5473 for a detailed discussion of this
method.
- Returns:
- true if the portlet can be displayed via Ajax
- Throws:
com.liferay.portal.SystemException
updateImpl
public static ShoppingOrderItem updateImpl(ShoppingOrderItem shoppingOrderItem,
boolean merge)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByPrimaryKey
public static ShoppingOrderItem findByPrimaryKey(long orderItemId)
throws com.liferay.portal.SystemException,
NoSuchOrderItemException
- Throws:
com.liferay.portal.SystemException
NoSuchOrderItemException
fetchByPrimaryKey
public static ShoppingOrderItem fetchByPrimaryKey(long orderItemId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByOrderId
public static java.util.List<ShoppingOrderItem> findByOrderId(long orderId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByOrderId
public static java.util.List<ShoppingOrderItem> findByOrderId(long orderId,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByOrderId
public static java.util.List<ShoppingOrderItem> findByOrderId(long orderId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByOrderId_First
public static ShoppingOrderItem findByOrderId_First(long orderId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchOrderItemException
- Throws:
com.liferay.portal.SystemException
NoSuchOrderItemException
findByOrderId_Last
public static ShoppingOrderItem findByOrderId_Last(long orderId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchOrderItemException
- Throws:
com.liferay.portal.SystemException
NoSuchOrderItemException
findByOrderId_PrevAndNext
public static ShoppingOrderItem[] findByOrderId_PrevAndNext(long orderItemId,
long orderId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchOrderItemException
- Throws:
com.liferay.portal.SystemException
NoSuchOrderItemException
findWithDynamicQuery
public static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findWithDynamicQuery
public static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List<ShoppingOrderItem> findAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List<ShoppingOrderItem> findAll(int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List<ShoppingOrderItem> findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByOrderId
public static void removeByOrderId(long orderId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeAll
public static void removeAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByOrderId
public static int countByOrderId(long orderId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countAll
public static int countAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getPersistence
public static ShoppingOrderItemPersistence getPersistence()
setPersistence
public void setPersistence(ShoppingOrderItemPersistence persistence)