@ProviderType public interface ShoppingOrderItemPersistence extends BasePersistence<ShoppingOrderItem>
Caching information and settings can be found in portal.properties
ShoppingOrderItemPersistenceImpl,
ShoppingOrderItemUtil| Modifier and Type | Method and Description |
|---|---|
void |
cacheResult(java.util.List<ShoppingOrderItem> shoppingOrderItems)
Caches the shopping order items in the entity cache if it is enabled.
|
void |
cacheResult(ShoppingOrderItem shoppingOrderItem)
Caches the shopping order item in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of shopping order items.
|
int |
countByOrderId(long orderId)
Returns the number of shopping order items where orderId = ?.
|
ShoppingOrderItem |
create(long orderItemId)
Creates a new shopping order item with the primary key.
|
ShoppingOrderItem |
fetchByOrderId_First(long orderId,
OrderByComparator orderByComparator)
Returns the first shopping order item in the ordered set where orderId = ?.
|
ShoppingOrderItem |
fetchByOrderId_Last(long orderId,
OrderByComparator orderByComparator)
Returns the last shopping order item in the ordered set where orderId = ?.
|
ShoppingOrderItem |
fetchByPrimaryKey(long orderItemId)
Returns the shopping order item with the primary key or returns
null if it could not be found. |
java.util.List<ShoppingOrderItem> |
findAll()
Returns all the shopping order items.
|
java.util.List<ShoppingOrderItem> |
findAll(int start,
int end)
Returns a range of all the shopping order items.
|
java.util.List<ShoppingOrderItem> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the shopping order items.
|
ShoppingOrderItem |
findByOrderId_First(long orderId,
OrderByComparator orderByComparator)
Returns the first shopping order item in the ordered set where orderId = ?.
|
ShoppingOrderItem |
findByOrderId_Last(long orderId,
OrderByComparator orderByComparator)
Returns the last shopping order item in the ordered set where orderId = ?.
|
ShoppingOrderItem[] |
findByOrderId_PrevAndNext(long orderItemId,
long orderId,
OrderByComparator orderByComparator)
Returns the shopping order items before and after the current shopping order item in the ordered set where orderId = ?.
|
java.util.List<ShoppingOrderItem> |
findByOrderId(long orderId)
Returns all the shopping order items where orderId = ?.
|
java.util.List<ShoppingOrderItem> |
findByOrderId(long orderId,
int start,
int end)
Returns a range of all the shopping order items where orderId = ?.
|
java.util.List<ShoppingOrderItem> |
findByOrderId(long orderId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the shopping order items where orderId = ?.
|
ShoppingOrderItem |
findByPrimaryKey(long orderItemId)
Returns the shopping order item with the primary key or throws a
NoSuchOrderItemException if it could not be found. |
ShoppingOrderItem |
remove(long orderItemId)
Removes the shopping order item with the primary key from the database.
|
void |
removeAll()
Removes all the shopping order items from the database.
|
void |
removeByOrderId(long orderId)
Removes all the shopping order items where orderId = ? from the database.
|
ShoppingOrderItem |
updateImpl(ShoppingOrderItem shoppingOrderItem) |
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update, update, updatejava.util.List<ShoppingOrderItem> findByOrderId(long orderId) throws SystemException
orderId - the order IDSystemException - if a system exception occurredjava.util.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. 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)SystemException - if a system exception occurredjava.util.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. 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)SystemException - if a system exception occurredShoppingOrderItem findByOrderId_First(long orderId, OrderByComparator orderByComparator) throws SystemException, NoSuchOrderItemException
orderId - the order IDorderByComparator - the comparator to order the set by (optionally null)NoSuchOrderItemException - if a matching shopping order item could not be foundSystemException - if a system exception occurredShoppingOrderItem fetchByOrderId_First(long orderId, OrderByComparator orderByComparator) throws SystemException
orderId - the order IDorderByComparator - the comparator to order the set by (optionally null)null if a matching shopping order item could not be foundSystemException - if a system exception occurredShoppingOrderItem findByOrderId_Last(long orderId, OrderByComparator orderByComparator) throws SystemException, NoSuchOrderItemException
orderId - the order IDorderByComparator - the comparator to order the set by (optionally null)NoSuchOrderItemException - if a matching shopping order item could not be foundSystemException - if a system exception occurredShoppingOrderItem fetchByOrderId_Last(long orderId, OrderByComparator orderByComparator) throws SystemException
orderId - the order IDorderByComparator - the comparator to order the set by (optionally null)null if a matching shopping order item could not be foundSystemException - if a system exception occurredShoppingOrderItem[] findByOrderId_PrevAndNext(long orderItemId, long orderId, OrderByComparator orderByComparator) throws SystemException, 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 foundSystemException - if a system exception occurredvoid removeByOrderId(long orderId)
throws SystemException
orderId - the order IDSystemException - if a system exception occurredint countByOrderId(long orderId)
throws SystemException
orderId - the order IDSystemException - if a system exception occurredvoid cacheResult(ShoppingOrderItem shoppingOrderItem)
shoppingOrderItem - the shopping order itemvoid cacheResult(java.util.List<ShoppingOrderItem> shoppingOrderItems)
shoppingOrderItems - the shopping order itemsShoppingOrderItem create(long orderItemId)
orderItemId - the primary key for the new shopping order itemShoppingOrderItem remove(long orderItemId) throws SystemException, NoSuchOrderItemException
orderItemId - the primary key of the shopping order itemNoSuchOrderItemException - if a shopping order item with the primary key could not be foundSystemException - if a system exception occurredShoppingOrderItem updateImpl(ShoppingOrderItem shoppingOrderItem) throws SystemException
SystemExceptionShoppingOrderItem findByPrimaryKey(long orderItemId) throws SystemException, NoSuchOrderItemException
NoSuchOrderItemException if it could not be found.orderItemId - the primary key of the shopping order itemNoSuchOrderItemException - if a shopping order item with the primary key could not be foundSystemException - if a system exception occurredShoppingOrderItem fetchByPrimaryKey(long orderItemId) throws SystemException
null if it could not be found.orderItemId - the primary key of the shopping order itemnull if a shopping order item with the primary key could not be foundSystemException - if a system exception occurredjava.util.List<ShoppingOrderItem> findAll() throws SystemException
SystemException - if a system exception occurredjava.util.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. 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)SystemException - if a system exception occurredjava.util.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. 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)SystemException - if a system exception occurredvoid removeAll()
throws SystemException
SystemException - if a system exception occurredint countAll()
throws SystemException
SystemException - if a system exception occurred