Class CommerceOrderAttachmentUtil
com.liferay.commerce.service.persistence.impl.CommerceOrderAttachmentPersistenceImpl 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 voidcacheResult(CommerceOrderAttachment commerceOrderAttachment) Caches the commerce order attachment in the entity cache if it is enabled.static voidcacheResult(List<CommerceOrderAttachment> commerceOrderAttachments) Caches the commerce order attachments in the entity cache if it is enabled.static voidstatic voidclearCache(CommerceOrderAttachment commerceOrderAttachment) static intcountAll()Returns the number of commerce order attachments.static intcountByC_R(long commerceOrderId, boolean restricted) Returns the number of commerce order attachments where commerceOrderId = ? and restricted = ?.static intcountByCommerceOrderId(long commerceOrderId) Returns the number of commerce order attachments where commerceOrderId = ?.static intcountByERC_C(String externalReferenceCode, long companyId) Returns the number of commerce order attachments where externalReferenceCode = ? and companyId = ?.static intcountByUuid(String uuid) Returns the number of commerce order attachments where uuid = ?.static intcountByUuid_C(String uuid, long companyId) Returns the number of commerce order attachments where uuid = ? and companyId = ?.static intcountByUUID_G(String uuid, long groupId) Returns the number of commerce order attachments where uuid = ? and groupId = ?.static longcountWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static CommerceOrderAttachmentcreate(long commerceOrderAttachmentId) Creates a new commerce order attachment with the primary key.static CommerceOrderAttachmentfetchByC_R_First(long commerceOrderId, boolean restricted, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderAttachment> orderByComparator) Returns the first commerce order attachment in the ordered set where commerceOrderId = ? and restricted = ?.static CommerceOrderAttachmentfetchByCommerceOrderId_First(long commerceOrderId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderAttachment> orderByComparator) Returns the first commerce order attachment in the ordered set where commerceOrderId = ?.static CommerceOrderAttachmentfetchByERC_C(String externalReferenceCode, long companyId) Returns the commerce order attachment where externalReferenceCode = ? and companyId = ? or returnsnullif it could not be found.static CommerceOrderAttachmentfetchByERC_C(String externalReferenceCode, long companyId, boolean useFinderCache) Returns the commerce order attachment where externalReferenceCode = ? and companyId = ? or returnsnullif it could not be found, optionally using the finder cache.static CommerceOrderAttachmentfetchByPrimaryKey(long commerceOrderAttachmentId) Returns the commerce order attachment with the primary key or returnsnullif it could not be found.static Map<Serializable, CommerceOrderAttachment> fetchByPrimaryKeys(Set<Serializable> primaryKeys) static CommerceOrderAttachmentfetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderAttachment> orderByComparator) Returns the first commerce order attachment in the ordered set where uuid = ? and companyId = ?.static CommerceOrderAttachmentfetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderAttachment> orderByComparator) Returns the first commerce order attachment in the ordered set where uuid = ?.static CommerceOrderAttachmentfetchByUUID_G(String uuid, long groupId) Returns the commerce order attachment where uuid = ? and groupId = ? or returnsnullif it could not be found.static CommerceOrderAttachmentfetchByUUID_G(String uuid, long groupId, boolean useFinderCache) Returns the commerce order attachment where uuid = ? and groupId = ? or returnsnullif it could not be found, optionally using the finder cache.static List<CommerceOrderAttachment> findAll()Returns all the commerce order attachments.static List<CommerceOrderAttachment> findAll(int start, int end) Returns a range of all the commerce order attachments.static List<CommerceOrderAttachment> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderAttachment> orderByComparator) Returns an ordered range of all the commerce order attachments.static List<CommerceOrderAttachment> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderAttachment> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce order attachments.static List<CommerceOrderAttachment> findByC_R(long commerceOrderId, boolean restricted) Returns all the commerce order attachments where commerceOrderId = ? and restricted = ?.static List<CommerceOrderAttachment> findByC_R(long commerceOrderId, boolean restricted, int start, int end) Returns a range of all the commerce order attachments where commerceOrderId = ? and restricted = ?.static List<CommerceOrderAttachment> findByC_R(long commerceOrderId, boolean restricted, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderAttachment> orderByComparator) Returns an ordered range of all the commerce order attachments where commerceOrderId = ? and restricted = ?.static List<CommerceOrderAttachment> findByC_R(long commerceOrderId, boolean restricted, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderAttachment> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce order attachments where commerceOrderId = ? and restricted = ?.static CommerceOrderAttachmentfindByC_R_First(long commerceOrderId, boolean restricted, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderAttachment> orderByComparator) Returns the first commerce order attachment in the ordered set where commerceOrderId = ? and restricted = ?.static List<CommerceOrderAttachment> findByCommerceOrderId(long commerceOrderId) Returns all the commerce order attachments where commerceOrderId = ?.static List<CommerceOrderAttachment> findByCommerceOrderId(long commerceOrderId, int start, int end) Returns a range of all the commerce order attachments where commerceOrderId = ?.static List<CommerceOrderAttachment> findByCommerceOrderId(long commerceOrderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderAttachment> orderByComparator) Returns an ordered range of all the commerce order attachments where commerceOrderId = ?.static List<CommerceOrderAttachment> findByCommerceOrderId(long commerceOrderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderAttachment> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce order attachments where commerceOrderId = ?.static CommerceOrderAttachmentfindByCommerceOrderId_First(long commerceOrderId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderAttachment> orderByComparator) Returns the first commerce order attachment in the ordered set where commerceOrderId = ?.static CommerceOrderAttachmentfindByERC_C(String externalReferenceCode, long companyId) Returns the commerce order attachment where externalReferenceCode = ? and companyId = ? or throws aNoSuchOrderAttachmentExceptionif it could not be found.static CommerceOrderAttachmentfindByPrimaryKey(long commerceOrderAttachmentId) Returns the commerce order attachment with the primary key or throws aNoSuchOrderAttachmentExceptionif it could not be found.static List<CommerceOrderAttachment> findByUuid(String uuid) Returns all the commerce order attachments where uuid = ?.static List<CommerceOrderAttachment> findByUuid(String uuid, int start, int end) Returns a range of all the commerce order attachments where uuid = ?.static List<CommerceOrderAttachment> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderAttachment> orderByComparator) Returns an ordered range of all the commerce order attachments where uuid = ?.static List<CommerceOrderAttachment> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderAttachment> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce order attachments where uuid = ?.static List<CommerceOrderAttachment> findByUuid_C(String uuid, long companyId) Returns all the commerce order attachments where uuid = ? and companyId = ?.static List<CommerceOrderAttachment> findByUuid_C(String uuid, long companyId, int start, int end) Returns a range of all the commerce order attachments where uuid = ? and companyId = ?.static List<CommerceOrderAttachment> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderAttachment> orderByComparator) Returns an ordered range of all the commerce order attachments where uuid = ? and companyId = ?.static List<CommerceOrderAttachment> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderAttachment> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce order attachments where uuid = ? and companyId = ?.static CommerceOrderAttachmentfindByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderAttachment> orderByComparator) Returns the first commerce order attachment in the ordered set where uuid = ? and companyId = ?.static CommerceOrderAttachmentfindByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderAttachment> orderByComparator) Returns the first commerce order attachment in the ordered set where uuid = ?.static CommerceOrderAttachmentfindByUUID_G(String uuid, long groupId) Returns the commerce order attachment where uuid = ? and groupId = ? or throws aNoSuchOrderAttachmentExceptionif it could not be found.static List<CommerceOrderAttachment> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<CommerceOrderAttachment> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<CommerceOrderAttachment> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderAttachment> orderByComparator) static CommerceOrderAttachmentremove(long commerceOrderAttachmentId) Removes the commerce order attachment with the primary key from the database.static voidRemoves all the commerce order attachments from the database.static voidremoveByC_R(long commerceOrderId, boolean restricted) Removes all the commerce order attachments where commerceOrderId = ? and restricted = ? from the database.static voidremoveByCommerceOrderId(long commerceOrderId) Removes all the commerce order attachments where commerceOrderId = ? from the database.static CommerceOrderAttachmentremoveByERC_C(String externalReferenceCode, long companyId) Removes the commerce order attachment where externalReferenceCode = ? and companyId = ? from the database.static voidremoveByUuid(String uuid) Removes all the commerce order attachments where uuid = ? from the database.static voidremoveByUuid_C(String uuid, long companyId) Removes all the commerce order attachments where uuid = ? and companyId = ? from the database.static CommerceOrderAttachmentremoveByUUID_G(String uuid, long groupId) Removes the commerce order attachment where uuid = ? and groupId = ? from the database.static voidsetPersistence(CommerceOrderAttachmentPersistence persistence) static CommerceOrderAttachmentupdate(CommerceOrderAttachment commerceOrderAttachment) static CommerceOrderAttachmentupdate(CommerceOrderAttachment commerceOrderAttachment, com.liferay.portal.kernel.service.ServiceContext serviceContext) static CommerceOrderAttachmentupdateImpl(CommerceOrderAttachment commerceOrderAttachment)
-
Constructor Details
-
CommerceOrderAttachmentUtil
public CommerceOrderAttachmentUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
clearCache
- See Also:
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
fetchByPrimaryKeys
public static Map<Serializable,CommerceOrderAttachment> fetchByPrimaryKeys(Set<Serializable> primaryKeys) - See Also:
-
findWithDynamicQuery
public static List<CommerceOrderAttachment> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
findWithDynamicQuery
public static List<CommerceOrderAttachment> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
findWithDynamicQuery
public static List<CommerceOrderAttachment> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderAttachment> orderByComparator) - See Also:
-
update
- See Also:
-
update
public static CommerceOrderAttachment update(CommerceOrderAttachment commerceOrderAttachment, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
findByUuid
Returns all the commerce order attachments where uuid = ?.- Parameters:
uuid- the uuid- Returns:
- the matching commerce order attachments
-
findByUuid
Returns a range of all the commerce order attachments where uuid = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.model.impl.CommerceOrderAttachmentModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of commerce order attachmentsend- the upper bound of the range of commerce order attachments (not inclusive)- Returns:
- the range of matching commerce order attachments
-
findByUuid
public static List<CommerceOrderAttachment> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderAttachment> orderByComparator) Returns an ordered range of all the commerce order attachments where uuid = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.model.impl.CommerceOrderAttachmentModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of commerce order attachmentsend- the upper bound of the range of commerce order attachments (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching commerce order attachments
-
findByUuid
public static List<CommerceOrderAttachment> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderAttachment> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce order attachments where uuid = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.model.impl.CommerceOrderAttachmentModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of commerce order attachmentsend- the upper bound of the range of commerce order attachments (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 order attachments
-
findByUuid_First
public static CommerceOrderAttachment findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderAttachment> orderByComparator) throws NoSuchOrderAttachmentException Returns the first commerce order attachment in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching commerce order attachment
-
fetchByUuid_First
public static CommerceOrderAttachment fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderAttachment> orderByComparator) Returns the first commerce order attachment in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching commerce order attachment, or
nullif a matching commerce order attachment could not be found
-
removeByUuid
Removes all the commerce order attachments where uuid = ? from the database.- Parameters:
uuid- the uuid
-
countByUuid
Returns the number of commerce order attachments where uuid = ?.- Parameters:
uuid- the uuid- Returns:
- the number of matching commerce order attachments
-
findByUUID_G
public static CommerceOrderAttachment findByUUID_G(String uuid, long groupId) throws NoSuchOrderAttachmentException Returns the commerce order attachment where uuid = ? and groupId = ? or throws aNoSuchOrderAttachmentExceptionif it could not be found.- Parameters:
uuid- the uuidgroupId- the group ID- Returns:
- the matching commerce order attachment
-
fetchByUUID_G
Returns the commerce order attachment where uuid = ? and groupId = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
uuid- the uuidgroupId- the group ID- Returns:
- the matching commerce order attachment, or
nullif a matching commerce order attachment could not be found
-
fetchByUUID_G
public static CommerceOrderAttachment fetchByUUID_G(String uuid, long groupId, boolean useFinderCache) Returns the commerce order attachment where uuid = ? and groupId = ? or returnsnullif 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 order attachment, or
nullif a matching commerce order attachment could not be found
-
removeByUUID_G
public static CommerceOrderAttachment removeByUUID_G(String uuid, long groupId) throws NoSuchOrderAttachmentException Removes the commerce order attachment where uuid = ? and groupId = ? from the database.- Parameters:
uuid- the uuidgroupId- the group ID- Returns:
- the commerce order attachment that was removed
- Throws:
NoSuchOrderAttachmentException
-
countByUUID_G
Returns the number of commerce order attachments where uuid = ? and groupId = ?.- Parameters:
uuid- the uuidgroupId- the group ID- Returns:
- the number of matching commerce order attachments
-
findByUuid_C
Returns all the commerce order attachments where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the matching commerce order attachments
-
findByUuid_C
public static List<CommerceOrderAttachment> findByUuid_C(String uuid, long companyId, int start, int end) Returns a range of all the commerce order attachments where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.model.impl.CommerceOrderAttachmentModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of commerce order attachmentsend- the upper bound of the range of commerce order attachments (not inclusive)- Returns:
- the range of matching commerce order attachments
-
findByUuid_C
public static List<CommerceOrderAttachment> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderAttachment> orderByComparator) Returns an ordered range of all the commerce order attachments where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.model.impl.CommerceOrderAttachmentModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of commerce order attachmentsend- the upper bound of the range of commerce order attachments (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching commerce order attachments
-
findByUuid_C
public static List<CommerceOrderAttachment> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderAttachment> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce order attachments where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.model.impl.CommerceOrderAttachmentModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of commerce order attachmentsend- the upper bound of the range of commerce order attachments (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 order attachments
-
findByUuid_C_First
public static CommerceOrderAttachment findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderAttachment> orderByComparator) throws NoSuchOrderAttachmentException Returns the first commerce order attachment 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 order attachment
-
fetchByUuid_C_First
public static CommerceOrderAttachment fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderAttachment> orderByComparator) Returns the first commerce order attachment 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 order attachment, or
nullif a matching commerce order attachment could not be found
-
removeByUuid_C
Removes all the commerce order attachments where uuid = ? and companyId = ? from the database.- Parameters:
uuid- the uuidcompanyId- the company ID
-
countByUuid_C
Returns the number of commerce order attachments where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the number of matching commerce order attachments
-
findByCommerceOrderId
Returns all the commerce order attachments where commerceOrderId = ?.- Parameters:
commerceOrderId- the commerce order ID- Returns:
- the matching commerce order attachments
-
findByCommerceOrderId
public static List<CommerceOrderAttachment> findByCommerceOrderId(long commerceOrderId, int start, int end) Returns a range of all the commerce order attachments where commerceOrderId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.model.impl.CommerceOrderAttachmentModelImpl.- Parameters:
commerceOrderId- the commerce order IDstart- the lower bound of the range of commerce order attachmentsend- the upper bound of the range of commerce order attachments (not inclusive)- Returns:
- the range of matching commerce order attachments
-
findByCommerceOrderId
public static List<CommerceOrderAttachment> findByCommerceOrderId(long commerceOrderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderAttachment> orderByComparator) Returns an ordered range of all the commerce order attachments where commerceOrderId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.model.impl.CommerceOrderAttachmentModelImpl.- Parameters:
commerceOrderId- the commerce order IDstart- the lower bound of the range of commerce order attachmentsend- the upper bound of the range of commerce order attachments (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching commerce order attachments
-
findByCommerceOrderId
public static List<CommerceOrderAttachment> findByCommerceOrderId(long commerceOrderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderAttachment> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce order attachments where commerceOrderId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.model.impl.CommerceOrderAttachmentModelImpl.- Parameters:
commerceOrderId- the commerce order IDstart- the lower bound of the range of commerce order attachmentsend- the upper bound of the range of commerce order attachments (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 order attachments
-
findByCommerceOrderId_First
public static CommerceOrderAttachment findByCommerceOrderId_First(long commerceOrderId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderAttachment> orderByComparator) throws NoSuchOrderAttachmentException Returns the first commerce order attachment in the ordered set where commerceOrderId = ?.- Parameters:
commerceOrderId- the commerce order IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching commerce order attachment
-
fetchByCommerceOrderId_First
public static CommerceOrderAttachment fetchByCommerceOrderId_First(long commerceOrderId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderAttachment> orderByComparator) Returns the first commerce order attachment in the ordered set where commerceOrderId = ?.- Parameters:
commerceOrderId- the commerce order IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching commerce order attachment, or
nullif a matching commerce order attachment could not be found
-
removeByCommerceOrderId
public static void removeByCommerceOrderId(long commerceOrderId) Removes all the commerce order attachments where commerceOrderId = ? from the database.- Parameters:
commerceOrderId- the commerce order ID
-
countByCommerceOrderId
public static int countByCommerceOrderId(long commerceOrderId) Returns the number of commerce order attachments where commerceOrderId = ?.- Parameters:
commerceOrderId- the commerce order ID- Returns:
- the number of matching commerce order attachments
-
findByC_R
Returns all the commerce order attachments where commerceOrderId = ? and restricted = ?.- Parameters:
commerceOrderId- the commerce order IDrestricted- the restricted- Returns:
- the matching commerce order attachments
-
findByC_R
public static List<CommerceOrderAttachment> findByC_R(long commerceOrderId, boolean restricted, int start, int end) Returns a range of all the commerce order attachments where commerceOrderId = ? and restricted = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.model.impl.CommerceOrderAttachmentModelImpl.- Parameters:
commerceOrderId- the commerce order IDrestricted- the restrictedstart- the lower bound of the range of commerce order attachmentsend- the upper bound of the range of commerce order attachments (not inclusive)- Returns:
- the range of matching commerce order attachments
-
findByC_R
public static List<CommerceOrderAttachment> findByC_R(long commerceOrderId, boolean restricted, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderAttachment> orderByComparator) Returns an ordered range of all the commerce order attachments where commerceOrderId = ? and restricted = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.model.impl.CommerceOrderAttachmentModelImpl.- Parameters:
commerceOrderId- the commerce order IDrestricted- the restrictedstart- the lower bound of the range of commerce order attachmentsend- the upper bound of the range of commerce order attachments (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching commerce order attachments
-
findByC_R
public static List<CommerceOrderAttachment> findByC_R(long commerceOrderId, boolean restricted, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderAttachment> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce order attachments where commerceOrderId = ? and restricted = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.model.impl.CommerceOrderAttachmentModelImpl.- Parameters:
commerceOrderId- the commerce order IDrestricted- the restrictedstart- the lower bound of the range of commerce order attachmentsend- the upper bound of the range of commerce order attachments (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 order attachments
-
findByC_R_First
public static CommerceOrderAttachment findByC_R_First(long commerceOrderId, boolean restricted, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderAttachment> orderByComparator) throws NoSuchOrderAttachmentException Returns the first commerce order attachment in the ordered set where commerceOrderId = ? and restricted = ?.- Parameters:
commerceOrderId- the commerce order IDrestricted- the restrictedorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching commerce order attachment
-
fetchByC_R_First
public static CommerceOrderAttachment fetchByC_R_First(long commerceOrderId, boolean restricted, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderAttachment> orderByComparator) Returns the first commerce order attachment in the ordered set where commerceOrderId = ? and restricted = ?.- Parameters:
commerceOrderId- the commerce order IDrestricted- the restrictedorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching commerce order attachment, or
nullif a matching commerce order attachment could not be found
-
removeByC_R
public static void removeByC_R(long commerceOrderId, boolean restricted) Removes all the commerce order attachments where commerceOrderId = ? and restricted = ? from the database.- Parameters:
commerceOrderId- the commerce order IDrestricted- the restricted
-
countByC_R
public static int countByC_R(long commerceOrderId, boolean restricted) Returns the number of commerce order attachments where commerceOrderId = ? and restricted = ?.- Parameters:
commerceOrderId- the commerce order IDrestricted- the restricted- Returns:
- the number of matching commerce order attachments
-
findByERC_C
public static CommerceOrderAttachment findByERC_C(String externalReferenceCode, long companyId) throws NoSuchOrderAttachmentException Returns the commerce order attachment where externalReferenceCode = ? and companyId = ? or throws aNoSuchOrderAttachmentExceptionif it could not be found.- Parameters:
externalReferenceCode- the external reference codecompanyId- the company ID- Returns:
- the matching commerce order attachment
-
fetchByERC_C
Returns the commerce order attachment where externalReferenceCode = ? and companyId = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
externalReferenceCode- the external reference codecompanyId- the company ID- Returns:
- the matching commerce order attachment, or
nullif a matching commerce order attachment could not be found
-
fetchByERC_C
public static CommerceOrderAttachment fetchByERC_C(String externalReferenceCode, long companyId, boolean useFinderCache) Returns the commerce order attachment where externalReferenceCode = ? and companyId = ? or returnsnullif 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 order attachment, or
nullif a matching commerce order attachment could not be found
-
removeByERC_C
public static CommerceOrderAttachment removeByERC_C(String externalReferenceCode, long companyId) throws NoSuchOrderAttachmentException Removes the commerce order attachment where externalReferenceCode = ? and companyId = ? from the database.- Parameters:
externalReferenceCode- the external reference codecompanyId- the company ID- Returns:
- the commerce order attachment that was removed
- Throws:
NoSuchOrderAttachmentException
-
countByERC_C
Returns the number of commerce order attachments where externalReferenceCode = ? and companyId = ?.- Parameters:
externalReferenceCode- the external reference codecompanyId- the company ID- Returns:
- the number of matching commerce order attachments
-
cacheResult
Caches the commerce order attachment in the entity cache if it is enabled.- Parameters:
commerceOrderAttachment- the commerce order attachment
-
cacheResult
Caches the commerce order attachments in the entity cache if it is enabled.- Parameters:
commerceOrderAttachments- the commerce order attachments
-
create
Creates a new commerce order attachment with the primary key. Does not add the commerce order attachment to the database.- Parameters:
commerceOrderAttachmentId- the primary key for the new commerce order attachment- Returns:
- the new commerce order attachment
-
remove
public static CommerceOrderAttachment remove(long commerceOrderAttachmentId) throws NoSuchOrderAttachmentException Removes the commerce order attachment with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
commerceOrderAttachmentId- the primary key of the commerce order attachment- Returns:
- the commerce order attachment that was removed
-
updateImpl
-
findByPrimaryKey
public static CommerceOrderAttachment findByPrimaryKey(long commerceOrderAttachmentId) throws NoSuchOrderAttachmentException Returns the commerce order attachment with the primary key or throws aNoSuchOrderAttachmentExceptionif it could not be found.- Parameters:
commerceOrderAttachmentId- the primary key of the commerce order attachment- Returns:
- the commerce order attachment
-
fetchByPrimaryKey
Returns the commerce order attachment with the primary key or returnsnullif it could not be found.- Parameters:
commerceOrderAttachmentId- the primary key of the commerce order attachment- Returns:
- the commerce order attachment, or
nullif a commerce order attachment with the primary key could not be found
-
findAll
Returns all the commerce order attachments.- Returns:
- the commerce order attachments
-
findAll
Returns a range of all the commerce order attachments.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.model.impl.CommerceOrderAttachmentModelImpl.- Parameters:
start- the lower bound of the range of commerce order attachmentsend- the upper bound of the range of commerce order attachments (not inclusive)- Returns:
- the range of commerce order attachments
-
findAll
public static List<CommerceOrderAttachment> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderAttachment> orderByComparator) Returns an ordered range of all the commerce order attachments.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.model.impl.CommerceOrderAttachmentModelImpl.- Parameters:
start- the lower bound of the range of commerce order attachmentsend- the upper bound of the range of commerce order attachments (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of commerce order attachments
-
findAll
public static List<CommerceOrderAttachment> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderAttachment> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce order attachments.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.model.impl.CommerceOrderAttachmentModelImpl.- Parameters:
start- the lower bound of the range of commerce order attachmentsend- the upper bound of the range of commerce order attachments (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of commerce order attachments
-
removeAll
public static void removeAll()Removes all the commerce order attachments from the database. -
countAll
public static int countAll()Returns the number of commerce order attachments.- Returns:
- the number of commerce order attachments
-
getPersistence
-
setPersistence
-