Class CommerceVirtualOrderItemUtil
com.liferay.commerce.product.type.virtual.order.service.persistence.impl.CommerceVirtualOrderItemPersistenceImpl 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(CommerceVirtualOrderItem commerceVirtualOrderItem) static voidcacheResult(List<CommerceVirtualOrderItem> commerceVirtualOrderItems) static voidstatic voidclearCache(CommerceVirtualOrderItem commerceVirtualOrderItem) static intcountByCommerceOrderItemId(long commerceOrderItemId) Returns the number of commerce virtual order items where commerceOrderItemId = ?.static intcountByUuid(String uuid) Returns the number of commerce virtual order items where uuid = ?.static intcountByUuid_C(String uuid, long companyId) Returns the number of commerce virtual order items where uuid = ? and companyId = ?.static intcountByUUID_G(String uuid, long groupId) Returns the number of commerce virtual order items where uuid = ? and groupId = ?.static longcountWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static CommerceVirtualOrderItemcreate(long commerceVirtualOrderItemId) Creates a new commerce virtual order item with the primary key.static CommerceVirtualOrderItemfetchByCommerceOrderItemId(long commerceOrderItemId) Returns the commerce virtual order item where commerceOrderItemId = ? or returnsnullif it could not be found.static CommerceVirtualOrderItemfetchByCommerceOrderItemId(long commerceOrderItemId, boolean useFinderCache) Returns the commerce virtual order item where commerceOrderItemId = ? or returnsnullif it could not be found, optionally using the finder cache.static CommerceVirtualOrderItemfetchByPrimaryKey(long commerceVirtualOrderItemId) Returns the commerce virtual order item with the primary key or returnsnullif it could not be found.static Map<Serializable, CommerceVirtualOrderItem> fetchByPrimaryKeys(Set<Serializable> primaryKeys) static CommerceVirtualOrderItemfetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceVirtualOrderItem> orderByComparator) Returns the first commerce virtual order item in the ordered set where uuid = ? and companyId = ?.static CommerceVirtualOrderItemfetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceVirtualOrderItem> orderByComparator) Returns the first commerce virtual order item in the ordered set where uuid = ?.static CommerceVirtualOrderItemfetchByUUID_G(String uuid, long groupId) Returns the commerce virtual order item where uuid = ? and groupId = ? or returnsnullif it could not be found.static CommerceVirtualOrderItemfetchByUUID_G(String uuid, long groupId, boolean useFinderCache) Returns the commerce virtual order item where uuid = ? and groupId = ? or returnsnullif it could not be found, optionally using the finder cache.static CommerceVirtualOrderItemfindByCommerceOrderItemId(long commerceOrderItemId) Returns the commerce virtual order item where commerceOrderItemId = ? or throws aNoSuchVirtualOrderItemExceptionif it could not be found.static CommerceVirtualOrderItemfindByPrimaryKey(long commerceVirtualOrderItemId) Returns the commerce virtual order item with the primary key or throws aNoSuchVirtualOrderItemExceptionif it could not be found.static List<CommerceVirtualOrderItem> findByUuid(String uuid) Returns all the commerce virtual order items where uuid = ?.static List<CommerceVirtualOrderItem> findByUuid(String uuid, int start, int end) Returns a range of all the commerce virtual order items where uuid = ?.static List<CommerceVirtualOrderItem> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceVirtualOrderItem> orderByComparator) Returns an ordered range of all the commerce virtual order items where uuid = ?.static List<CommerceVirtualOrderItem> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceVirtualOrderItem> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce virtual order items where uuid = ?.static List<CommerceVirtualOrderItem> findByUuid_C(String uuid, long companyId) Returns all the commerce virtual order items where uuid = ? and companyId = ?.static List<CommerceVirtualOrderItem> findByUuid_C(String uuid, long companyId, int start, int end) Returns a range of all the commerce virtual order items where uuid = ? and companyId = ?.static List<CommerceVirtualOrderItem> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceVirtualOrderItem> orderByComparator) Returns an ordered range of all the commerce virtual order items where uuid = ? and companyId = ?.static List<CommerceVirtualOrderItem> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceVirtualOrderItem> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce virtual order items where uuid = ? and companyId = ?.static CommerceVirtualOrderItemfindByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceVirtualOrderItem> orderByComparator) Returns the first commerce virtual order item in the ordered set where uuid = ? and companyId = ?.static CommerceVirtualOrderItemfindByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceVirtualOrderItem> orderByComparator) Returns the first commerce virtual order item in the ordered set where uuid = ?.static CommerceVirtualOrderItemfindByUUID_G(String uuid, long groupId) Returns the commerce virtual order item where uuid = ? and groupId = ? or throws aNoSuchVirtualOrderItemExceptionif it could not be found.static List<CommerceVirtualOrderItem> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<CommerceVirtualOrderItem> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<CommerceVirtualOrderItem> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceVirtualOrderItem> orderByComparator) static CommerceVirtualOrderItemremove(long commerceVirtualOrderItemId) Removes the commerce virtual order item with the primary key from the database.static CommerceVirtualOrderItemremoveByCommerceOrderItemId(long commerceOrderItemId) Removes the commerce virtual order item where commerceOrderItemId = ? from the database.static voidremoveByUuid(String uuid) Removes all the commerce virtual order items where uuid = ? from the database.static voidremoveByUuid_C(String uuid, long companyId) Removes all the commerce virtual order items where uuid = ? and companyId = ? from the database.static CommerceVirtualOrderItemremoveByUUID_G(String uuid, long groupId) Removes the commerce virtual order item where uuid = ? and groupId = ? from the database.static voidsetPersistence(CommerceVirtualOrderItemPersistence persistence) static CommerceVirtualOrderItemupdate(CommerceVirtualOrderItem commerceVirtualOrderItem) static CommerceVirtualOrderItemupdate(CommerceVirtualOrderItem commerceVirtualOrderItem, com.liferay.portal.kernel.service.ServiceContext serviceContext) static CommerceVirtualOrderItemupdateImpl(CommerceVirtualOrderItem commerceVirtualOrderItem)
-
Constructor Details
-
CommerceVirtualOrderItemUtil
public CommerceVirtualOrderItemUtil()
-
-
Method Details
-
cacheResult
- See Also:
-
cacheResult
- See Also:
-
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,CommerceVirtualOrderItem> fetchByPrimaryKeys(Set<Serializable> primaryKeys) - See Also:
-
findWithDynamicQuery
public static List<CommerceVirtualOrderItem> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
findWithDynamicQuery
public static List<CommerceVirtualOrderItem> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
findWithDynamicQuery
public static List<CommerceVirtualOrderItem> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceVirtualOrderItem> orderByComparator) - See Also:
-
update
- See Also:
-
update
public static CommerceVirtualOrderItem update(CommerceVirtualOrderItem commerceVirtualOrderItem, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
findByUuid
public static List<CommerceVirtualOrderItem> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceVirtualOrderItem> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce virtual order items 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.product.type.virtual.order.model.impl.CommerceVirtualOrderItemModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of commerce virtual order itemsend- the upper bound of the range of commerce virtual order items (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 virtual order items
-
findByUuid_First
public static CommerceVirtualOrderItem findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceVirtualOrderItem> orderByComparator) throws NoSuchVirtualOrderItemException Returns the first commerce virtual order item in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching commerce virtual order item
-
fetchByUuid_First
public static CommerceVirtualOrderItem fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceVirtualOrderItem> orderByComparator) Returns the first commerce virtual order item in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching commerce virtual order item, or
nullif a matching commerce virtual order item could not be found
-
removeByUuid
Removes all the commerce virtual order items where uuid = ? from the database.- Parameters:
uuid- the uuid
-
countByUuid
Returns the number of commerce virtual order items where uuid = ?.- Parameters:
uuid- the uuid- Returns:
- the number of matching commerce virtual order items
-
findByUUID_G
public static CommerceVirtualOrderItem findByUUID_G(String uuid, long groupId) throws NoSuchVirtualOrderItemException Returns the commerce virtual order item where uuid = ? and groupId = ? or throws aNoSuchVirtualOrderItemExceptionif it could not be found.- Parameters:
uuid- the uuidgroupId- the group ID- Returns:
- the matching commerce virtual order item
-
fetchByUUID_G
public static CommerceVirtualOrderItem fetchByUUID_G(String uuid, long groupId, boolean useFinderCache) Returns the commerce virtual order item 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 virtual order item, or
nullif a matching commerce virtual order item could not be found
-
removeByUUID_G
public static CommerceVirtualOrderItem removeByUUID_G(String uuid, long groupId) throws NoSuchVirtualOrderItemException Removes the commerce virtual order item where uuid = ? and groupId = ? from the database.- Parameters:
uuid- the uuidgroupId- the group ID- Returns:
- the commerce virtual order item that was removed
- Throws:
NoSuchVirtualOrderItemException
-
countByUUID_G
Returns the number of commerce virtual order items where uuid = ? and groupId = ?.- Parameters:
uuid- the uuidgroupId- the group ID- Returns:
- the number of matching commerce virtual order items
-
findByUuid_C
public static List<CommerceVirtualOrderItem> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceVirtualOrderItem> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce virtual order items 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.product.type.virtual.order.model.impl.CommerceVirtualOrderItemModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of commerce virtual order itemsend- the upper bound of the range of commerce virtual order items (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 virtual order items
-
findByUuid_C_First
public static CommerceVirtualOrderItem findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceVirtualOrderItem> orderByComparator) throws NoSuchVirtualOrderItemException Returns the first commerce virtual order item 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 virtual order item
-
fetchByUuid_C_First
public static CommerceVirtualOrderItem fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceVirtualOrderItem> orderByComparator) Returns the first commerce virtual order item 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 virtual order item, or
nullif a matching commerce virtual order item could not be found
-
removeByUuid_C
Removes all the commerce virtual order items where uuid = ? and companyId = ? from the database.- Parameters:
uuid- the uuidcompanyId- the company ID
-
countByUuid_C
Returns the number of commerce virtual order items where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the number of matching commerce virtual order items
-
findByCommerceOrderItemId
public static CommerceVirtualOrderItem findByCommerceOrderItemId(long commerceOrderItemId) throws NoSuchVirtualOrderItemException Returns the commerce virtual order item where commerceOrderItemId = ? or throws aNoSuchVirtualOrderItemExceptionif it could not be found.- Parameters:
commerceOrderItemId- the commerce order item ID- Returns:
- the matching commerce virtual order item
-
fetchByCommerceOrderItemId
public static CommerceVirtualOrderItem fetchByCommerceOrderItemId(long commerceOrderItemId, boolean useFinderCache) Returns the commerce virtual order item where commerceOrderItemId = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
commerceOrderItemId- the commerce order item IDuseFinderCache- whether to use the finder cache- Returns:
- the matching commerce virtual order item, or
nullif a matching commerce virtual order item could not be found
-
removeByCommerceOrderItemId
public static CommerceVirtualOrderItem removeByCommerceOrderItemId(long commerceOrderItemId) throws NoSuchVirtualOrderItemException Removes the commerce virtual order item where commerceOrderItemId = ? from the database.- Parameters:
commerceOrderItemId- the commerce order item ID- Returns:
- the commerce virtual order item that was removed
- Throws:
NoSuchVirtualOrderItemException
-
countByCommerceOrderItemId
public static int countByCommerceOrderItemId(long commerceOrderItemId) Returns the number of commerce virtual order items where commerceOrderItemId = ?.- Parameters:
commerceOrderItemId- the commerce order item ID- Returns:
- the number of matching commerce virtual order items
-
create
Creates a new commerce virtual order item with the primary key. Does not add the commerce virtual order item to the database.- Parameters:
commerceVirtualOrderItemId- the primary key for the new commerce virtual order item- Returns:
- the new commerce virtual order item
-
remove
public static CommerceVirtualOrderItem remove(long commerceVirtualOrderItemId) throws NoSuchVirtualOrderItemException Removes the commerce virtual order item with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
commerceVirtualOrderItemId- the primary key of the commerce virtual order item- Returns:
- the commerce virtual order item that was removed
-
updateImpl
public static CommerceVirtualOrderItem updateImpl(CommerceVirtualOrderItem commerceVirtualOrderItem) -
findByPrimaryKey
public static CommerceVirtualOrderItem findByPrimaryKey(long commerceVirtualOrderItemId) throws NoSuchVirtualOrderItemException Returns the commerce virtual order item with the primary key or throws aNoSuchVirtualOrderItemExceptionif it could not be found.- Parameters:
commerceVirtualOrderItemId- the primary key of the commerce virtual order item- Returns:
- the commerce virtual order item
-
fetchByPrimaryKey
Returns the commerce virtual order item with the primary key or returnsnullif it could not be found.- Parameters:
commerceVirtualOrderItemId- the primary key of the commerce virtual order item- Returns:
- the commerce virtual order item, or
nullif a commerce virtual order item with the primary key could not be found
-
fetchByUUID_G
Returns the commerce virtual order item 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 virtual order item, or
nullif a matching commerce virtual order item could not be found
-
fetchByCommerceOrderItemId
Returns the commerce virtual order item where commerceOrderItemId = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
commerceOrderItemId- the commerce order item ID- Returns:
- the matching commerce virtual order item, or
nullif a matching commerce virtual order item could not be found
-
findByUuid
Returns all the commerce virtual order items where uuid = ?.- Parameters:
uuid- the uuid- Returns:
- the matching commerce virtual order items
-
findByUuid
Returns a range of all the commerce virtual order items 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.product.type.virtual.order.model.impl.CommerceVirtualOrderItemModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of commerce virtual order itemsend- the upper bound of the range of commerce virtual order items (not inclusive)- Returns:
- the range of matching commerce virtual order items
-
findByUuid
public static List<CommerceVirtualOrderItem> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceVirtualOrderItem> orderByComparator) Returns an ordered range of all the commerce virtual order items 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.product.type.virtual.order.model.impl.CommerceVirtualOrderItemModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of commerce virtual order itemsend- the upper bound of the range of commerce virtual order items (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching commerce virtual order items
-
findByUuid_C
Returns all the commerce virtual order items where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the matching commerce virtual order items
-
findByUuid_C
public static List<CommerceVirtualOrderItem> findByUuid_C(String uuid, long companyId, int start, int end) Returns a range of all the commerce virtual order items 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.product.type.virtual.order.model.impl.CommerceVirtualOrderItemModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of commerce virtual order itemsend- the upper bound of the range of commerce virtual order items (not inclusive)- Returns:
- the range of matching commerce virtual order items
-
findByUuid_C
public static List<CommerceVirtualOrderItem> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceVirtualOrderItem> orderByComparator) Returns an ordered range of all the commerce virtual order items 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.product.type.virtual.order.model.impl.CommerceVirtualOrderItemModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of commerce virtual order itemsend- the upper bound of the range of commerce virtual order items (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching commerce virtual order items
-
getPersistence
-
setPersistence
-