Class CommerceShipmentUtil
com.liferay.commerce.service.persistence.impl.CommerceShipmentPersistenceImpl
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
- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
cacheResult
(CommerceShipment commerceShipment) Caches the commerce shipment in the entity cache if it is enabled.static void
cacheResult
(List<CommerceShipment> commerceShipments) Caches the commerce shipments in the entity cache if it is enabled.static void
static void
clearCache
(CommerceShipment commerceShipment) static int
countAll()
Returns the number of commerce shipments.static int
countByERC_C
(String externalReferenceCode, long companyId) Returns the number of commerce shipments where externalReferenceCode = ? and companyId = ?.static int
countByG_C
(long[] groupIds, long commerceAddressId) Returns the number of commerce shipments where groupId = any ? and commerceAddressId = ?.static int
countByG_C
(long groupId, long commerceAddressId) Returns the number of commerce shipments where groupId = ? and commerceAddressId = ?.static int
countByG_S
(long[] groupIds, int status) Returns the number of commerce shipments where groupId = any ? and status = ?.static int
countByG_S
(long groupId, int status) Returns the number of commerce shipments where groupId = ? and status = ?.static int
countByGroupId
(long groupId) Returns the number of commerce shipments where groupId = ?.static int
countByGroupId
(long[] groupIds) Returns the number of commerce shipments where groupId = any ?.static int
countByUuid
(String uuid) Returns the number of commerce shipments where uuid = ?.static int
countByUuid_C
(String uuid, long companyId) Returns the number of commerce shipments where uuid = ? and companyId = ?.static int
countByUUID_G
(String uuid, long groupId) Returns the number of commerce shipments where uuid = ? and groupId = ?.static long
countWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static CommerceShipment
create
(long commerceShipmentId) Creates a new commerce shipment with the primary key.static CommerceShipment
fetchByERC_C
(String externalReferenceCode, long companyId) Returns the commerce shipment where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found.static CommerceShipment
fetchByERC_C
(String externalReferenceCode, long companyId, boolean useFinderCache) Returns the commerce shipment where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found, optionally using the finder cache.static CommerceShipment
fetchByG_C_First
(long groupId, long commerceAddressId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) Returns the first commerce shipment in the ordered set where groupId = ? and commerceAddressId = ?.static CommerceShipment
fetchByG_C_Last
(long groupId, long commerceAddressId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) Returns the last commerce shipment in the ordered set where groupId = ? and commerceAddressId = ?.static CommerceShipment
fetchByG_S_First
(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) Returns the first commerce shipment in the ordered set where groupId = ? and status = ?.static CommerceShipment
fetchByG_S_Last
(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) Returns the last commerce shipment in the ordered set where groupId = ? and status = ?.static CommerceShipment
fetchByGroupId_First
(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) Returns the first commerce shipment in the ordered set where groupId = ?.static CommerceShipment
fetchByGroupId_Last
(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) Returns the last commerce shipment in the ordered set where groupId = ?.static CommerceShipment
fetchByPrimaryKey
(long commerceShipmentId) Returns the commerce shipment with the primary key or returnsnull
if it could not be found.static Map<Serializable,
CommerceShipment> fetchByPrimaryKeys
(Set<Serializable> primaryKeys) static CommerceShipment
fetchByUuid_C_First
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) Returns the first commerce shipment in the ordered set where uuid = ? and companyId = ?.static CommerceShipment
fetchByUuid_C_Last
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) Returns the last commerce shipment in the ordered set where uuid = ? and companyId = ?.static CommerceShipment
fetchByUuid_First
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) Returns the first commerce shipment in the ordered set where uuid = ?.static CommerceShipment
fetchByUUID_G
(String uuid, long groupId) Returns the commerce shipment where uuid = ? and groupId = ? or returnsnull
if it could not be found.static CommerceShipment
fetchByUUID_G
(String uuid, long groupId, boolean useFinderCache) Returns the commerce shipment where uuid = ? and groupId = ? or returnsnull
if it could not be found, optionally using the finder cache.static CommerceShipment
fetchByUuid_Last
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) Returns the last commerce shipment in the ordered set where uuid = ?.static List<CommerceShipment>
findAll()
Returns all the commerce shipments.static List<CommerceShipment>
findAll
(int start, int end) Returns a range of all the commerce shipments.static List<CommerceShipment>
findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) Returns an ordered range of all the commerce shipments.static List<CommerceShipment>
findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce shipments.static CommerceShipment
findByERC_C
(String externalReferenceCode, long companyId) Returns the commerce shipment where externalReferenceCode = ? and companyId = ? or throws aNoSuchShipmentException
if it could not be found.static List<CommerceShipment>
findByG_C
(long[] groupIds, long commerceAddressId) Returns all the commerce shipments where groupId = any ? and commerceAddressId = ?.static List<CommerceShipment>
findByG_C
(long[] groupIds, long commerceAddressId, int start, int end) Returns a range of all the commerce shipments where groupId = any ? and commerceAddressId = ?.static List<CommerceShipment>
findByG_C
(long[] groupIds, long commerceAddressId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) Returns an ordered range of all the commerce shipments where groupId = any ? and commerceAddressId = ?.static List<CommerceShipment>
findByG_C
(long[] groupIds, long commerceAddressId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce shipments where groupId = ? and commerceAddressId = ?, optionally using the finder cache.static List<CommerceShipment>
findByG_C
(long groupId, long commerceAddressId) Returns all the commerce shipments where groupId = ? and commerceAddressId = ?.static List<CommerceShipment>
findByG_C
(long groupId, long commerceAddressId, int start, int end) Returns a range of all the commerce shipments where groupId = ? and commerceAddressId = ?.static List<CommerceShipment>
findByG_C
(long groupId, long commerceAddressId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) Returns an ordered range of all the commerce shipments where groupId = ? and commerceAddressId = ?.static List<CommerceShipment>
findByG_C
(long groupId, long commerceAddressId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce shipments where groupId = ? and commerceAddressId = ?.static CommerceShipment
findByG_C_First
(long groupId, long commerceAddressId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) Returns the first commerce shipment in the ordered set where groupId = ? and commerceAddressId = ?.static CommerceShipment
findByG_C_Last
(long groupId, long commerceAddressId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) Returns the last commerce shipment in the ordered set where groupId = ? and commerceAddressId = ?.static CommerceShipment[]
findByG_C_PrevAndNext
(long commerceShipmentId, long groupId, long commerceAddressId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) Returns the commerce shipments before and after the current commerce shipment in the ordered set where groupId = ? and commerceAddressId = ?.static List<CommerceShipment>
findByG_S
(long[] groupIds, int status) Returns all the commerce shipments where groupId = any ? and status = ?.static List<CommerceShipment>
findByG_S
(long[] groupIds, int status, int start, int end) Returns a range of all the commerce shipments where groupId = any ? and status = ?.static List<CommerceShipment>
findByG_S
(long[] groupIds, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) Returns an ordered range of all the commerce shipments where groupId = any ? and status = ?.static List<CommerceShipment>
findByG_S
(long[] groupIds, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce shipments where groupId = ? and status = ?, optionally using the finder cache.static List<CommerceShipment>
findByG_S
(long groupId, int status) Returns all the commerce shipments where groupId = ? and status = ?.static List<CommerceShipment>
findByG_S
(long groupId, int status, int start, int end) Returns a range of all the commerce shipments where groupId = ? and status = ?.static List<CommerceShipment>
findByG_S
(long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) Returns an ordered range of all the commerce shipments where groupId = ? and status = ?.static List<CommerceShipment>
findByG_S
(long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce shipments where groupId = ? and status = ?.static CommerceShipment
findByG_S_First
(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) Returns the first commerce shipment in the ordered set where groupId = ? and status = ?.static CommerceShipment
findByG_S_Last
(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) Returns the last commerce shipment in the ordered set where groupId = ? and status = ?.static CommerceShipment[]
findByG_S_PrevAndNext
(long commerceShipmentId, long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) Returns the commerce shipments before and after the current commerce shipment in the ordered set where groupId = ? and status = ?.static List<CommerceShipment>
findByGroupId
(long groupId) Returns all the commerce shipments where groupId = ?.static List<CommerceShipment>
findByGroupId
(long[] groupIds) Returns all the commerce shipments where groupId = any ?.static List<CommerceShipment>
findByGroupId
(long[] groupIds, int start, int end) Returns a range of all the commerce shipments where groupId = any ?.static List<CommerceShipment>
findByGroupId
(long[] groupIds, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) Returns an ordered range of all the commerce shipments where groupId = any ?.static List<CommerceShipment>
findByGroupId
(long[] groupIds, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce shipments where groupId = ?, optionally using the finder cache.static List<CommerceShipment>
findByGroupId
(long groupId, int start, int end) Returns a range of all the commerce shipments where groupId = ?.static List<CommerceShipment>
findByGroupId
(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) Returns an ordered range of all the commerce shipments where groupId = ?.static List<CommerceShipment>
findByGroupId
(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce shipments where groupId = ?.static CommerceShipment
findByGroupId_First
(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) Returns the first commerce shipment in the ordered set where groupId = ?.static CommerceShipment
findByGroupId_Last
(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) Returns the last commerce shipment in the ordered set where groupId = ?.static CommerceShipment[]
findByGroupId_PrevAndNext
(long commerceShipmentId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) Returns the commerce shipments before and after the current commerce shipment in the ordered set where groupId = ?.static CommerceShipment
findByPrimaryKey
(long commerceShipmentId) Returns the commerce shipment with the primary key or throws aNoSuchShipmentException
if it could not be found.static List<CommerceShipment>
findByUuid
(String uuid) Returns all the commerce shipments where uuid = ?.static List<CommerceShipment>
findByUuid
(String uuid, int start, int end) Returns a range of all the commerce shipments where uuid = ?.static List<CommerceShipment>
findByUuid
(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) Returns an ordered range of all the commerce shipments where uuid = ?.static List<CommerceShipment>
findByUuid
(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce shipments where uuid = ?.static List<CommerceShipment>
findByUuid_C
(String uuid, long companyId) Returns all the commerce shipments where uuid = ? and companyId = ?.static List<CommerceShipment>
findByUuid_C
(String uuid, long companyId, int start, int end) Returns a range of all the commerce shipments where uuid = ? and companyId = ?.static List<CommerceShipment>
findByUuid_C
(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) Returns an ordered range of all the commerce shipments where uuid = ? and companyId = ?.static List<CommerceShipment>
findByUuid_C
(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce shipments where uuid = ? and companyId = ?.static CommerceShipment
findByUuid_C_First
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) Returns the first commerce shipment in the ordered set where uuid = ? and companyId = ?.static CommerceShipment
findByUuid_C_Last
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) Returns the last commerce shipment in the ordered set where uuid = ? and companyId = ?.static CommerceShipment[]
findByUuid_C_PrevAndNext
(long commerceShipmentId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) Returns the commerce shipments before and after the current commerce shipment in the ordered set where uuid = ? and companyId = ?.static CommerceShipment
findByUuid_First
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) Returns the first commerce shipment in the ordered set where uuid = ?.static CommerceShipment
findByUUID_G
(String uuid, long groupId) Returns the commerce shipment where uuid = ? and groupId = ? or throws aNoSuchShipmentException
if it could not be found.static CommerceShipment
findByUuid_Last
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) Returns the last commerce shipment in the ordered set where uuid = ?.static CommerceShipment[]
findByUuid_PrevAndNext
(long commerceShipmentId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) Returns the commerce shipments before and after the current commerce shipment in the ordered set where uuid = ?.static List<CommerceShipment>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<CommerceShipment>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<CommerceShipment>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) static CommerceShipmentPersistence
static CommerceShipment
remove
(long commerceShipmentId) Removes the commerce shipment with the primary key from the database.static void
Removes all the commerce shipments from the database.static CommerceShipment
removeByERC_C
(String externalReferenceCode, long companyId) Removes the commerce shipment where externalReferenceCode = ? and companyId = ? from the database.static void
removeByG_C
(long groupId, long commerceAddressId) Removes all the commerce shipments where groupId = ? and commerceAddressId = ? from the database.static void
removeByG_S
(long groupId, int status) Removes all the commerce shipments where groupId = ? and status = ? from the database.static void
removeByGroupId
(long groupId) Removes all the commerce shipments where groupId = ? from the database.static void
removeByUuid
(String uuid) Removes all the commerce shipments where uuid = ? from the database.static void
removeByUuid_C
(String uuid, long companyId) Removes all the commerce shipments where uuid = ? and companyId = ? from the database.static CommerceShipment
removeByUUID_G
(String uuid, long groupId) Removes the commerce shipment where uuid = ? and groupId = ? from the database.static void
setPersistence
(CommerceShipmentPersistence persistence) static CommerceShipment
update
(CommerceShipment commerceShipment) static CommerceShipment
update
(CommerceShipment commerceShipment, com.liferay.portal.kernel.service.ServiceContext serviceContext) static CommerceShipment
updateImpl
(CommerceShipment commerceShipment)
-
Constructor Details
-
CommerceShipmentUtil
public CommerceShipmentUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
BasePersistence.clearCache()
-
clearCache
- See Also:
-
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.countWithDynamicQuery(DynamicQuery)
-
fetchByPrimaryKeys
- See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<CommerceShipment> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<CommerceShipment> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<CommerceShipment> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
- See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static CommerceShipment update(CommerceShipment commerceShipment, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
findByUuid
Returns all the commerce shipments where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the matching commerce shipments
-
findByUuid
Returns a range of all the commerce shipments where uuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceShipmentModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of commerce shipmentsend
- the upper bound of the range of commerce shipments (not inclusive)- Returns:
- the range of matching commerce shipments
-
findByUuid
public static List<CommerceShipment> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) Returns an ordered range of all the commerce shipments where uuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceShipmentModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of commerce shipmentsend
- the upper bound of the range of commerce shipments (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching commerce shipments
-
findByUuid
public static List<CommerceShipment> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce shipments where uuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceShipmentModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of commerce shipmentsend
- the upper bound of the range of commerce shipments (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce shipments
-
findByUuid_First
public static CommerceShipment findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) throws NoSuchShipmentException Returns the first commerce shipment in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce shipment
- Throws:
NoSuchShipmentException
- if a matching commerce shipment could not be foundNoSuchShipmentException
-
fetchByUuid_First
public static CommerceShipment fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) Returns the first commerce shipment in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce shipment, or
null
if a matching commerce shipment could not be found
-
findByUuid_Last
public static CommerceShipment findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) throws NoSuchShipmentException Returns the last commerce shipment in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce shipment
- Throws:
NoSuchShipmentException
- if a matching commerce shipment could not be foundNoSuchShipmentException
-
fetchByUuid_Last
public static CommerceShipment fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) Returns the last commerce shipment in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce shipment, or
null
if a matching commerce shipment could not be found
-
findByUuid_PrevAndNext
public static CommerceShipment[] findByUuid_PrevAndNext(long commerceShipmentId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) throws NoSuchShipmentException Returns the commerce shipments before and after the current commerce shipment in the ordered set where uuid = ?.- Parameters:
commerceShipmentId
- the primary key of the current commerce shipmentuuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce shipment
- Throws:
NoSuchShipmentException
- if a commerce shipment with the primary key could not be foundNoSuchShipmentException
-
removeByUuid
Removes all the commerce shipments where uuid = ? from the database.- Parameters:
uuid
- the uuid
-
countByUuid
Returns the number of commerce shipments where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the number of matching commerce shipments
-
findByUUID_G
public static CommerceShipment findByUUID_G(String uuid, long groupId) throws NoSuchShipmentException Returns the commerce shipment where uuid = ? and groupId = ? or throws aNoSuchShipmentException
if it could not be found.- Parameters:
uuid
- the uuidgroupId
- the group ID- Returns:
- the matching commerce shipment
- Throws:
NoSuchShipmentException
- if a matching commerce shipment could not be foundNoSuchShipmentException
-
fetchByUUID_G
Returns the commerce shipment where uuid = ? and groupId = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
uuid
- the uuidgroupId
- the group ID- Returns:
- the matching commerce shipment, or
null
if a matching commerce shipment could not be found
-
fetchByUUID_G
Returns the commerce shipment where uuid = ? and groupId = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
uuid
- the uuidgroupId
- the group IDuseFinderCache
- whether to use the finder cache- Returns:
- the matching commerce shipment, or
null
if a matching commerce shipment could not be found
-
removeByUUID_G
public static CommerceShipment removeByUUID_G(String uuid, long groupId) throws NoSuchShipmentException Removes the commerce shipment where uuid = ? and groupId = ? from the database.- Parameters:
uuid
- the uuidgroupId
- the group ID- Returns:
- the commerce shipment that was removed
- Throws:
NoSuchShipmentException
-
countByUUID_G
Returns the number of commerce shipments where uuid = ? and groupId = ?.- Parameters:
uuid
- the uuidgroupId
- the group ID- Returns:
- the number of matching commerce shipments
-
findByUuid_C
Returns all the commerce shipments where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the matching commerce shipments
-
findByUuid_C
Returns a range of all the commerce shipments where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceShipmentModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of commerce shipmentsend
- the upper bound of the range of commerce shipments (not inclusive)- Returns:
- the range of matching commerce shipments
-
findByUuid_C
public static List<CommerceShipment> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) Returns an ordered range of all the commerce shipments where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceShipmentModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of commerce shipmentsend
- the upper bound of the range of commerce shipments (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching commerce shipments
-
findByUuid_C
public static List<CommerceShipment> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce shipments where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceShipmentModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of commerce shipmentsend
- the upper bound of the range of commerce shipments (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce shipments
-
findByUuid_C_First
public static CommerceShipment findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) throws NoSuchShipmentException Returns the first commerce shipment in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce shipment
- Throws:
NoSuchShipmentException
- if a matching commerce shipment could not be foundNoSuchShipmentException
-
fetchByUuid_C_First
public static CommerceShipment fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) Returns the first commerce shipment in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce shipment, or
null
if a matching commerce shipment could not be found
-
findByUuid_C_Last
public static CommerceShipment findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) throws NoSuchShipmentException Returns the last commerce shipment in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce shipment
- Throws:
NoSuchShipmentException
- if a matching commerce shipment could not be foundNoSuchShipmentException
-
fetchByUuid_C_Last
public static CommerceShipment fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) Returns the last commerce shipment in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce shipment, or
null
if a matching commerce shipment could not be found
-
findByUuid_C_PrevAndNext
public static CommerceShipment[] findByUuid_C_PrevAndNext(long commerceShipmentId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) throws NoSuchShipmentException Returns the commerce shipments before and after the current commerce shipment in the ordered set where uuid = ? and companyId = ?.- Parameters:
commerceShipmentId
- the primary key of the current commerce shipmentuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce shipment
- Throws:
NoSuchShipmentException
- if a commerce shipment with the primary key could not be foundNoSuchShipmentException
-
removeByUuid_C
Removes all the commerce shipments where uuid = ? and companyId = ? from the database.- Parameters:
uuid
- the uuidcompanyId
- the company ID
-
countByUuid_C
Returns the number of commerce shipments where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the number of matching commerce shipments
-
findByGroupId
Returns all the commerce shipments where groupId = ?.- Parameters:
groupId
- the group ID- Returns:
- the matching commerce shipments
-
findByGroupId
Returns a range of all the commerce shipments where groupId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceShipmentModelImpl
.- Parameters:
groupId
- the group IDstart
- the lower bound of the range of commerce shipmentsend
- the upper bound of the range of commerce shipments (not inclusive)- Returns:
- the range of matching commerce shipments
-
findByGroupId
public static List<CommerceShipment> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) Returns an ordered range of all the commerce shipments where groupId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceShipmentModelImpl
.- Parameters:
groupId
- the group IDstart
- the lower bound of the range of commerce shipmentsend
- the upper bound of the range of commerce shipments (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching commerce shipments
-
findByGroupId
public static List<CommerceShipment> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce shipments where groupId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceShipmentModelImpl
.- Parameters:
groupId
- the group IDstart
- the lower bound of the range of commerce shipmentsend
- the upper bound of the range of commerce shipments (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce shipments
-
findByGroupId_First
public static CommerceShipment findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) throws NoSuchShipmentException Returns the first commerce shipment in the ordered set where groupId = ?.- Parameters:
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce shipment
- Throws:
NoSuchShipmentException
- if a matching commerce shipment could not be foundNoSuchShipmentException
-
fetchByGroupId_First
public static CommerceShipment fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) Returns the first commerce shipment in the ordered set where groupId = ?.- Parameters:
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce shipment, or
null
if a matching commerce shipment could not be found
-
findByGroupId_Last
public static CommerceShipment findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) throws NoSuchShipmentException Returns the last commerce shipment in the ordered set where groupId = ?.- Parameters:
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce shipment
- Throws:
NoSuchShipmentException
- if a matching commerce shipment could not be foundNoSuchShipmentException
-
fetchByGroupId_Last
public static CommerceShipment fetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) Returns the last commerce shipment in the ordered set where groupId = ?.- Parameters:
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce shipment, or
null
if a matching commerce shipment could not be found
-
findByGroupId_PrevAndNext
public static CommerceShipment[] findByGroupId_PrevAndNext(long commerceShipmentId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) throws NoSuchShipmentException Returns the commerce shipments before and after the current commerce shipment in the ordered set where groupId = ?.- Parameters:
commerceShipmentId
- the primary key of the current commerce shipmentgroupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce shipment
- Throws:
NoSuchShipmentException
- if a commerce shipment with the primary key could not be foundNoSuchShipmentException
-
findByGroupId
Returns all the commerce shipments where groupId = any ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceShipmentModelImpl
.- Parameters:
groupIds
- the group IDs- Returns:
- the matching commerce shipments
-
findByGroupId
Returns a range of all the commerce shipments where groupId = any ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceShipmentModelImpl
.- Parameters:
groupIds
- the group IDsstart
- the lower bound of the range of commerce shipmentsend
- the upper bound of the range of commerce shipments (not inclusive)- Returns:
- the range of matching commerce shipments
-
findByGroupId
public static List<CommerceShipment> findByGroupId(long[] groupIds, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) Returns an ordered range of all the commerce shipments where groupId = any ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceShipmentModelImpl
.- Parameters:
groupIds
- the group IDsstart
- the lower bound of the range of commerce shipmentsend
- the upper bound of the range of commerce shipments (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching commerce shipments
-
findByGroupId
public static List<CommerceShipment> findByGroupId(long[] groupIds, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce shipments where groupId = ?, optionally using the finder cache.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceShipmentModelImpl
.- Parameters:
groupIds
- the group IDsstart
- the lower bound of the range of commerce shipmentsend
- the upper bound of the range of commerce shipments (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce shipments
-
removeByGroupId
public static void removeByGroupId(long groupId) Removes all the commerce shipments where groupId = ? from the database.- Parameters:
groupId
- the group ID
-
countByGroupId
public static int countByGroupId(long groupId) Returns the number of commerce shipments where groupId = ?.- Parameters:
groupId
- the group ID- Returns:
- the number of matching commerce shipments
-
countByGroupId
public static int countByGroupId(long[] groupIds) Returns the number of commerce shipments where groupId = any ?.- Parameters:
groupIds
- the group IDs- Returns:
- the number of matching commerce shipments
-
findByG_C
Returns all the commerce shipments where groupId = ? and commerceAddressId = ?.- Parameters:
groupId
- the group IDcommerceAddressId
- the commerce address ID- Returns:
- the matching commerce shipments
-
findByG_C
public static List<CommerceShipment> findByG_C(long groupId, long commerceAddressId, int start, int end) Returns a range of all the commerce shipments where groupId = ? and commerceAddressId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceShipmentModelImpl
.- Parameters:
groupId
- the group IDcommerceAddressId
- the commerce address IDstart
- the lower bound of the range of commerce shipmentsend
- the upper bound of the range of commerce shipments (not inclusive)- Returns:
- the range of matching commerce shipments
-
findByG_C
public static List<CommerceShipment> findByG_C(long groupId, long commerceAddressId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) Returns an ordered range of all the commerce shipments where groupId = ? and commerceAddressId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceShipmentModelImpl
.- Parameters:
groupId
- the group IDcommerceAddressId
- the commerce address IDstart
- the lower bound of the range of commerce shipmentsend
- the upper bound of the range of commerce shipments (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching commerce shipments
-
findByG_C
public static List<CommerceShipment> findByG_C(long groupId, long commerceAddressId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce shipments where groupId = ? and commerceAddressId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceShipmentModelImpl
.- Parameters:
groupId
- the group IDcommerceAddressId
- the commerce address IDstart
- the lower bound of the range of commerce shipmentsend
- the upper bound of the range of commerce shipments (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce shipments
-
findByG_C_First
public static CommerceShipment findByG_C_First(long groupId, long commerceAddressId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) throws NoSuchShipmentException Returns the first commerce shipment in the ordered set where groupId = ? and commerceAddressId = ?.- Parameters:
groupId
- the group IDcommerceAddressId
- the commerce address IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce shipment
- Throws:
NoSuchShipmentException
- if a matching commerce shipment could not be foundNoSuchShipmentException
-
fetchByG_C_First
public static CommerceShipment fetchByG_C_First(long groupId, long commerceAddressId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) Returns the first commerce shipment in the ordered set where groupId = ? and commerceAddressId = ?.- Parameters:
groupId
- the group IDcommerceAddressId
- the commerce address IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce shipment, or
null
if a matching commerce shipment could not be found
-
findByG_C_Last
public static CommerceShipment findByG_C_Last(long groupId, long commerceAddressId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) throws NoSuchShipmentException Returns the last commerce shipment in the ordered set where groupId = ? and commerceAddressId = ?.- Parameters:
groupId
- the group IDcommerceAddressId
- the commerce address IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce shipment
- Throws:
NoSuchShipmentException
- if a matching commerce shipment could not be foundNoSuchShipmentException
-
fetchByG_C_Last
public static CommerceShipment fetchByG_C_Last(long groupId, long commerceAddressId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) Returns the last commerce shipment in the ordered set where groupId = ? and commerceAddressId = ?.- Parameters:
groupId
- the group IDcommerceAddressId
- the commerce address IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce shipment, or
null
if a matching commerce shipment could not be found
-
findByG_C_PrevAndNext
public static CommerceShipment[] findByG_C_PrevAndNext(long commerceShipmentId, long groupId, long commerceAddressId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) throws NoSuchShipmentException Returns the commerce shipments before and after the current commerce shipment in the ordered set where groupId = ? and commerceAddressId = ?.- Parameters:
commerceShipmentId
- the primary key of the current commerce shipmentgroupId
- the group IDcommerceAddressId
- the commerce address IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce shipment
- Throws:
NoSuchShipmentException
- if a commerce shipment with the primary key could not be foundNoSuchShipmentException
-
findByG_C
Returns all the commerce shipments where groupId = any ? and commerceAddressId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceShipmentModelImpl
.- Parameters:
groupIds
- the group IDscommerceAddressId
- the commerce address ID- Returns:
- the matching commerce shipments
-
findByG_C
public static List<CommerceShipment> findByG_C(long[] groupIds, long commerceAddressId, int start, int end) Returns a range of all the commerce shipments where groupId = any ? and commerceAddressId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceShipmentModelImpl
.- Parameters:
groupIds
- the group IDscommerceAddressId
- the commerce address IDstart
- the lower bound of the range of commerce shipmentsend
- the upper bound of the range of commerce shipments (not inclusive)- Returns:
- the range of matching commerce shipments
-
findByG_C
public static List<CommerceShipment> findByG_C(long[] groupIds, long commerceAddressId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) Returns an ordered range of all the commerce shipments where groupId = any ? and commerceAddressId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceShipmentModelImpl
.- Parameters:
groupIds
- the group IDscommerceAddressId
- the commerce address IDstart
- the lower bound of the range of commerce shipmentsend
- the upper bound of the range of commerce shipments (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching commerce shipments
-
findByG_C
public static List<CommerceShipment> findByG_C(long[] groupIds, long commerceAddressId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce shipments where groupId = ? and commerceAddressId = ?, optionally using the finder cache.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceShipmentModelImpl
.- Parameters:
groupIds
- the group IDscommerceAddressId
- the commerce address IDstart
- the lower bound of the range of commerce shipmentsend
- the upper bound of the range of commerce shipments (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce shipments
-
removeByG_C
public static void removeByG_C(long groupId, long commerceAddressId) Removes all the commerce shipments where groupId = ? and commerceAddressId = ? from the database.- Parameters:
groupId
- the group IDcommerceAddressId
- the commerce address ID
-
countByG_C
public static int countByG_C(long groupId, long commerceAddressId) Returns the number of commerce shipments where groupId = ? and commerceAddressId = ?.- Parameters:
groupId
- the group IDcommerceAddressId
- the commerce address ID- Returns:
- the number of matching commerce shipments
-
countByG_C
public static int countByG_C(long[] groupIds, long commerceAddressId) Returns the number of commerce shipments where groupId = any ? and commerceAddressId = ?.- Parameters:
groupIds
- the group IDscommerceAddressId
- the commerce address ID- Returns:
- the number of matching commerce shipments
-
findByG_S
Returns all the commerce shipments where groupId = ? and status = ?.- Parameters:
groupId
- the group IDstatus
- the status- Returns:
- the matching commerce shipments
-
findByG_S
Returns a range of all the commerce shipments where groupId = ? and status = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceShipmentModelImpl
.- Parameters:
groupId
- the group IDstatus
- the statusstart
- the lower bound of the range of commerce shipmentsend
- the upper bound of the range of commerce shipments (not inclusive)- Returns:
- the range of matching commerce shipments
-
findByG_S
public static List<CommerceShipment> findByG_S(long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) Returns an ordered range of all the commerce shipments where groupId = ? and status = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceShipmentModelImpl
.- Parameters:
groupId
- the group IDstatus
- the statusstart
- the lower bound of the range of commerce shipmentsend
- the upper bound of the range of commerce shipments (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching commerce shipments
-
findByG_S
public static List<CommerceShipment> findByG_S(long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce shipments where groupId = ? and status = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceShipmentModelImpl
.- Parameters:
groupId
- the group IDstatus
- the statusstart
- the lower bound of the range of commerce shipmentsend
- the upper bound of the range of commerce shipments (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce shipments
-
findByG_S_First
public static CommerceShipment findByG_S_First(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) throws NoSuchShipmentException Returns the first commerce shipment in the ordered set where groupId = ? and status = ?.- Parameters:
groupId
- the group IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce shipment
- Throws:
NoSuchShipmentException
- if a matching commerce shipment could not be foundNoSuchShipmentException
-
fetchByG_S_First
public static CommerceShipment fetchByG_S_First(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) Returns the first commerce shipment in the ordered set where groupId = ? and status = ?.- Parameters:
groupId
- the group IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce shipment, or
null
if a matching commerce shipment could not be found
-
findByG_S_Last
public static CommerceShipment findByG_S_Last(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) throws NoSuchShipmentException Returns the last commerce shipment in the ordered set where groupId = ? and status = ?.- Parameters:
groupId
- the group IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce shipment
- Throws:
NoSuchShipmentException
- if a matching commerce shipment could not be foundNoSuchShipmentException
-
fetchByG_S_Last
public static CommerceShipment fetchByG_S_Last(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) Returns the last commerce shipment in the ordered set where groupId = ? and status = ?.- Parameters:
groupId
- the group IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce shipment, or
null
if a matching commerce shipment could not be found
-
findByG_S_PrevAndNext
public static CommerceShipment[] findByG_S_PrevAndNext(long commerceShipmentId, long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) throws NoSuchShipmentException Returns the commerce shipments before and after the current commerce shipment in the ordered set where groupId = ? and status = ?.- Parameters:
commerceShipmentId
- the primary key of the current commerce shipmentgroupId
- the group IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce shipment
- Throws:
NoSuchShipmentException
- if a commerce shipment with the primary key could not be foundNoSuchShipmentException
-
findByG_S
Returns all the commerce shipments where groupId = any ? and status = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceShipmentModelImpl
.- Parameters:
groupIds
- the group IDsstatus
- the status- Returns:
- the matching commerce shipments
-
findByG_S
Returns a range of all the commerce shipments where groupId = any ? and status = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceShipmentModelImpl
.- Parameters:
groupIds
- the group IDsstatus
- the statusstart
- the lower bound of the range of commerce shipmentsend
- the upper bound of the range of commerce shipments (not inclusive)- Returns:
- the range of matching commerce shipments
-
findByG_S
public static List<CommerceShipment> findByG_S(long[] groupIds, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) Returns an ordered range of all the commerce shipments where groupId = any ? and status = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceShipmentModelImpl
.- Parameters:
groupIds
- the group IDsstatus
- the statusstart
- the lower bound of the range of commerce shipmentsend
- the upper bound of the range of commerce shipments (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching commerce shipments
-
findByG_S
public static List<CommerceShipment> findByG_S(long[] groupIds, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce shipments where groupId = ? and status = ?, optionally using the finder cache.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceShipmentModelImpl
.- Parameters:
groupIds
- the group IDsstatus
- the statusstart
- the lower bound of the range of commerce shipmentsend
- the upper bound of the range of commerce shipments (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce shipments
-
removeByG_S
public static void removeByG_S(long groupId, int status) Removes all the commerce shipments where groupId = ? and status = ? from the database.- Parameters:
groupId
- the group IDstatus
- the status
-
countByG_S
public static int countByG_S(long groupId, int status) Returns the number of commerce shipments where groupId = ? and status = ?.- Parameters:
groupId
- the group IDstatus
- the status- Returns:
- the number of matching commerce shipments
-
countByG_S
public static int countByG_S(long[] groupIds, int status) Returns the number of commerce shipments where groupId = any ? and status = ?.- Parameters:
groupIds
- the group IDsstatus
- the status- Returns:
- the number of matching commerce shipments
-
findByERC_C
public static CommerceShipment findByERC_C(String externalReferenceCode, long companyId) throws NoSuchShipmentException Returns the commerce shipment where externalReferenceCode = ? and companyId = ? or throws aNoSuchShipmentException
if it could not be found.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the matching commerce shipment
- Throws:
NoSuchShipmentException
- if a matching commerce shipment could not be foundNoSuchShipmentException
-
fetchByERC_C
Returns the commerce shipment where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the matching commerce shipment, or
null
if a matching commerce shipment could not be found
-
fetchByERC_C
public static CommerceShipment fetchByERC_C(String externalReferenceCode, long companyId, boolean useFinderCache) Returns the commerce shipment where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company IDuseFinderCache
- whether to use the finder cache- Returns:
- the matching commerce shipment, or
null
if a matching commerce shipment could not be found
-
removeByERC_C
public static CommerceShipment removeByERC_C(String externalReferenceCode, long companyId) throws NoSuchShipmentException Removes the commerce shipment where externalReferenceCode = ? and companyId = ? from the database.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the commerce shipment that was removed
- Throws:
NoSuchShipmentException
-
countByERC_C
Returns the number of commerce shipments where externalReferenceCode = ? and companyId = ?.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the number of matching commerce shipments
-
cacheResult
Caches the commerce shipment in the entity cache if it is enabled.- Parameters:
commerceShipment
- the commerce shipment
-
cacheResult
Caches the commerce shipments in the entity cache if it is enabled.- Parameters:
commerceShipments
- the commerce shipments
-
create
Creates a new commerce shipment with the primary key. Does not add the commerce shipment to the database.- Parameters:
commerceShipmentId
- the primary key for the new commerce shipment- Returns:
- the new commerce shipment
-
remove
Removes the commerce shipment with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
commerceShipmentId
- the primary key of the commerce shipment- Returns:
- the commerce shipment that was removed
- Throws:
NoSuchShipmentException
- if a commerce shipment with the primary key could not be foundNoSuchShipmentException
-
updateImpl
-
findByPrimaryKey
public static CommerceShipment findByPrimaryKey(long commerceShipmentId) throws NoSuchShipmentException Returns the commerce shipment with the primary key or throws aNoSuchShipmentException
if it could not be found.- Parameters:
commerceShipmentId
- the primary key of the commerce shipment- Returns:
- the commerce shipment
- Throws:
NoSuchShipmentException
- if a commerce shipment with the primary key could not be foundNoSuchShipmentException
-
fetchByPrimaryKey
Returns the commerce shipment with the primary key or returnsnull
if it could not be found.- Parameters:
commerceShipmentId
- the primary key of the commerce shipment- Returns:
- the commerce shipment, or
null
if a commerce shipment with the primary key could not be found
-
findAll
Returns all the commerce shipments.- Returns:
- the commerce shipments
-
findAll
Returns a range of all the commerce shipments.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceShipmentModelImpl
.- Parameters:
start
- the lower bound of the range of commerce shipmentsend
- the upper bound of the range of commerce shipments (not inclusive)- Returns:
- the range of commerce shipments
-
findAll
public static List<CommerceShipment> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator) Returns an ordered range of all the commerce shipments.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceShipmentModelImpl
.- Parameters:
start
- the lower bound of the range of commerce shipmentsend
- the upper bound of the range of commerce shipments (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of commerce shipments
-
findAll
public static List<CommerceShipment> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipment> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce shipments.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceShipmentModelImpl
.- Parameters:
start
- the lower bound of the range of commerce shipmentsend
- the upper bound of the range of commerce shipments (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of commerce shipments
-
removeAll
public static void removeAll()Removes all the commerce shipments from the database. -
countAll
public static int countAll()Returns the number of commerce shipments.- Returns:
- the number of commerce shipments
-
getPersistence
-
setPersistence
-