@ProviderType public interface CommerceShipmentItemPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<CommerceShipmentItem>
Caching information and settings can be found in portal.properties
com.liferay.commerce.service.persistence.impl.CommerceShipmentItemPersistenceImpl,
CommerceShipmentItemUtil| Modifier and Type | Method and Description |
|---|---|
void |
cacheResult(CommerceShipmentItem commerceShipmentItem)
Caches the commerce shipment item in the entity cache if it is enabled.
|
void |
cacheResult(java.util.List<CommerceShipmentItem> commerceShipmentItems)
Caches the commerce shipment items in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of commerce shipment items.
|
int |
countByCommerceShipment(long commerceShipmentId)
Returns the number of commerce shipment items where commerceShipmentId = ?.
|
int |
countByGroupId(long groupId)
Returns the number of commerce shipment items where groupId = ?.
|
CommerceShipmentItem |
create(long commerceShipmentItemId)
Creates a new commerce shipment item with the primary key.
|
CommerceShipmentItem |
fetchByCommerceShipment_First(long commerceShipmentId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator)
Returns the first commerce shipment item in the ordered set where commerceShipmentId = ?.
|
CommerceShipmentItem |
fetchByCommerceShipment_Last(long commerceShipmentId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator)
Returns the last commerce shipment item in the ordered set where commerceShipmentId = ?.
|
CommerceShipmentItem |
fetchByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator)
Returns the first commerce shipment item in the ordered set where groupId = ?.
|
CommerceShipmentItem |
fetchByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator)
Returns the last commerce shipment item in the ordered set where groupId = ?.
|
CommerceShipmentItem |
fetchByPrimaryKey(long commerceShipmentItemId)
Returns the commerce shipment item with the primary key or returns
null if it could not be found. |
java.util.Map<java.io.Serializable,CommerceShipmentItem> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
java.util.List<CommerceShipmentItem> |
findAll()
Returns all the commerce shipment items.
|
java.util.List<CommerceShipmentItem> |
findAll(int start,
int end)
Returns a range of all the commerce shipment items.
|
java.util.List<CommerceShipmentItem> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator)
Returns an ordered range of all the commerce shipment items.
|
java.util.List<CommerceShipmentItem> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the commerce shipment items.
|
CommerceShipmentItem |
findByCommerceShipment_First(long commerceShipmentId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator)
Returns the first commerce shipment item in the ordered set where commerceShipmentId = ?.
|
CommerceShipmentItem |
findByCommerceShipment_Last(long commerceShipmentId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator)
Returns the last commerce shipment item in the ordered set where commerceShipmentId = ?.
|
CommerceShipmentItem[] |
findByCommerceShipment_PrevAndNext(long commerceShipmentItemId,
long commerceShipmentId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator)
Returns the commerce shipment items before and after the current commerce shipment item in the ordered set where commerceShipmentId = ?.
|
java.util.List<CommerceShipmentItem> |
findByCommerceShipment(long commerceShipmentId)
Returns all the commerce shipment items where commerceShipmentId = ?.
|
java.util.List<CommerceShipmentItem> |
findByCommerceShipment(long commerceShipmentId,
int start,
int end)
Returns a range of all the commerce shipment items where commerceShipmentId = ?.
|
java.util.List<CommerceShipmentItem> |
findByCommerceShipment(long commerceShipmentId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator)
Returns an ordered range of all the commerce shipment items where commerceShipmentId = ?.
|
java.util.List<CommerceShipmentItem> |
findByCommerceShipment(long commerceShipmentId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the commerce shipment items where commerceShipmentId = ?.
|
CommerceShipmentItem |
findByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator)
Returns the first commerce shipment item in the ordered set where groupId = ?.
|
CommerceShipmentItem |
findByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator)
Returns the last commerce shipment item in the ordered set where groupId = ?.
|
CommerceShipmentItem[] |
findByGroupId_PrevAndNext(long commerceShipmentItemId,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator)
Returns the commerce shipment items before and after the current commerce shipment item in the ordered set where groupId = ?.
|
java.util.List<CommerceShipmentItem> |
findByGroupId(long groupId)
Returns all the commerce shipment items where groupId = ?.
|
java.util.List<CommerceShipmentItem> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the commerce shipment items where groupId = ?.
|
java.util.List<CommerceShipmentItem> |
findByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator)
Returns an ordered range of all the commerce shipment items where groupId = ?.
|
java.util.List<CommerceShipmentItem> |
findByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the commerce shipment items where groupId = ?.
|
CommerceShipmentItem |
findByPrimaryKey(long commerceShipmentItemId)
Returns the commerce shipment item with the primary key or throws a
NoSuchShipmentItemException if it could not be found. |
CommerceShipmentItem |
remove(long commerceShipmentItemId)
Removes the commerce shipment item with the primary key from the database.
|
void |
removeAll()
Removes all the commerce shipment items from the database.
|
void |
removeByCommerceShipment(long commerceShipmentId)
Removes all the commerce shipment items where commerceShipmentId = ? from the database.
|
void |
removeByGroupId(long groupId)
Removes all the commerce shipment items where groupId = ? from the database.
|
CommerceShipmentItem |
updateImpl(CommerceShipmentItem commerceShipmentItem) |
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, updatejava.util.List<CommerceShipmentItem> findByGroupId(long groupId)
groupId - the group IDjava.util.List<CommerceShipmentItem> findByGroupId(long groupId, 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 CommerceShipmentItemModelImpl. 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.
groupId - the group IDstart - the lower bound of the range of commerce shipment itemsend - the upper bound of the range of commerce shipment items (not inclusive)java.util.List<CommerceShipmentItem> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> 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 CommerceShipmentItemModelImpl. 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.
groupId - the group IDstart - the lower bound of the range of commerce shipment itemsend - the upper bound of the range of commerce shipment items (not inclusive)orderByComparator - the comparator to order the results by (optionally null)java.util.List<CommerceShipmentItem> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator, boolean retrieveFromCache)
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 CommerceShipmentItemModelImpl. 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.
groupId - the group IDstart - the lower bound of the range of commerce shipment itemsend - the upper bound of the range of commerce shipment items (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cacheCommerceShipmentItem findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator) throws NoSuchShipmentItemException
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)NoSuchShipmentItemException - if a matching commerce shipment item could not be foundCommerceShipmentItem fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator)
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce shipment item could not be foundCommerceShipmentItem findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator) throws NoSuchShipmentItemException
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)NoSuchShipmentItemException - if a matching commerce shipment item could not be foundCommerceShipmentItem fetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator)
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce shipment item could not be foundCommerceShipmentItem[] findByGroupId_PrevAndNext(long commerceShipmentItemId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator) throws NoSuchShipmentItemException
commerceShipmentItemId - the primary key of the current commerce shipment itemgroupId - the group IDorderByComparator - the comparator to order the set by (optionally null)NoSuchShipmentItemException - if a commerce shipment item with the primary key could not be foundvoid removeByGroupId(long groupId)
groupId - the group IDint countByGroupId(long groupId)
groupId - the group IDjava.util.List<CommerceShipmentItem> findByCommerceShipment(long commerceShipmentId)
commerceShipmentId - the commerce shipment IDjava.util.List<CommerceShipmentItem> findByCommerceShipment(long commerceShipmentId, 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 CommerceShipmentItemModelImpl. 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.
commerceShipmentId - the commerce shipment IDstart - the lower bound of the range of commerce shipment itemsend - the upper bound of the range of commerce shipment items (not inclusive)java.util.List<CommerceShipmentItem> findByCommerceShipment(long commerceShipmentId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> 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 CommerceShipmentItemModelImpl. 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.
commerceShipmentId - the commerce shipment IDstart - the lower bound of the range of commerce shipment itemsend - the upper bound of the range of commerce shipment items (not inclusive)orderByComparator - the comparator to order the results by (optionally null)java.util.List<CommerceShipmentItem> findByCommerceShipment(long commerceShipmentId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator, boolean retrieveFromCache)
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 CommerceShipmentItemModelImpl. 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.
commerceShipmentId - the commerce shipment IDstart - the lower bound of the range of commerce shipment itemsend - the upper bound of the range of commerce shipment items (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cacheCommerceShipmentItem findByCommerceShipment_First(long commerceShipmentId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator) throws NoSuchShipmentItemException
commerceShipmentId - the commerce shipment IDorderByComparator - the comparator to order the set by (optionally null)NoSuchShipmentItemException - if a matching commerce shipment item could not be foundCommerceShipmentItem fetchByCommerceShipment_First(long commerceShipmentId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator)
commerceShipmentId - the commerce shipment IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce shipment item could not be foundCommerceShipmentItem findByCommerceShipment_Last(long commerceShipmentId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator) throws NoSuchShipmentItemException
commerceShipmentId - the commerce shipment IDorderByComparator - the comparator to order the set by (optionally null)NoSuchShipmentItemException - if a matching commerce shipment item could not be foundCommerceShipmentItem fetchByCommerceShipment_Last(long commerceShipmentId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator)
commerceShipmentId - the commerce shipment IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce shipment item could not be foundCommerceShipmentItem[] findByCommerceShipment_PrevAndNext(long commerceShipmentItemId, long commerceShipmentId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator) throws NoSuchShipmentItemException
commerceShipmentItemId - the primary key of the current commerce shipment itemcommerceShipmentId - the commerce shipment IDorderByComparator - the comparator to order the set by (optionally null)NoSuchShipmentItemException - if a commerce shipment item with the primary key could not be foundvoid removeByCommerceShipment(long commerceShipmentId)
commerceShipmentId - the commerce shipment IDint countByCommerceShipment(long commerceShipmentId)
commerceShipmentId - the commerce shipment IDvoid cacheResult(CommerceShipmentItem commerceShipmentItem)
commerceShipmentItem - the commerce shipment itemvoid cacheResult(java.util.List<CommerceShipmentItem> commerceShipmentItems)
commerceShipmentItems - the commerce shipment itemsCommerceShipmentItem create(long commerceShipmentItemId)
commerceShipmentItemId - the primary key for the new commerce shipment itemCommerceShipmentItem remove(long commerceShipmentItemId) throws NoSuchShipmentItemException
commerceShipmentItemId - the primary key of the commerce shipment itemNoSuchShipmentItemException - if a commerce shipment item with the primary key could not be foundCommerceShipmentItem updateImpl(CommerceShipmentItem commerceShipmentItem)
CommerceShipmentItem findByPrimaryKey(long commerceShipmentItemId) throws NoSuchShipmentItemException
NoSuchShipmentItemException if it could not be found.commerceShipmentItemId - the primary key of the commerce shipment itemNoSuchShipmentItemException - if a commerce shipment item with the primary key could not be foundCommerceShipmentItem fetchByPrimaryKey(long commerceShipmentItemId)
null if it could not be found.commerceShipmentItemId - the primary key of the commerce shipment itemnull if a commerce shipment item with the primary key could not be foundjava.util.Map<java.io.Serializable,CommerceShipmentItem> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
fetchByPrimaryKeys in interface com.liferay.portal.kernel.service.persistence.BasePersistence<CommerceShipmentItem>java.util.List<CommerceShipmentItem> findAll()
java.util.List<CommerceShipmentItem> 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 CommerceShipmentItemModelImpl. 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 commerce shipment itemsend - the upper bound of the range of commerce shipment items (not inclusive)java.util.List<CommerceShipmentItem> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> 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 CommerceShipmentItemModelImpl. 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 commerce shipment itemsend - the upper bound of the range of commerce shipment items (not inclusive)orderByComparator - the comparator to order the results by (optionally null)java.util.List<CommerceShipmentItem> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator, boolean retrieveFromCache)
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 CommerceShipmentItemModelImpl. 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 commerce shipment itemsend - the upper bound of the range of commerce shipment items (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cachevoid removeAll()
int countAll()