Interface CommerceVirtualOrderItemPersistence
- All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<CommerceVirtualOrderItem>
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cacheResult
(CommerceVirtualOrderItem commerceVirtualOrderItem) Caches the commerce virtual order item in the entity cache if it is enabled.void
cacheResult
(List<CommerceVirtualOrderItem> commerceVirtualOrderItems) Caches the commerce virtual order items in the entity cache if it is enabled.int
countAll()
Returns the number of commerce virtual order items.int
countByCommerceOrderItemId
(long commerceOrderItemId) Returns the number of commerce virtual order items where commerceOrderItemId = ?.int
countByUuid
(String uuid) Returns the number of commerce virtual order items where uuid = ?.int
countByUuid_C
(String uuid, long companyId) Returns the number of commerce virtual order items where uuid = ? and companyId = ?.int
countByUUID_G
(String uuid, long groupId) Returns the number of commerce virtual order items where uuid = ? and groupId = ?.create
(long commerceVirtualOrderItemId) Creates a new commerce virtual order item with the primary key.fetchByCommerceOrderItemId
(long commerceOrderItemId) Returns the commerce virtual order item where commerceOrderItemId = ? or returnsnull
if it could not be found.fetchByCommerceOrderItemId
(long commerceOrderItemId, boolean useFinderCache) Returns the commerce virtual order item where commerceOrderItemId = ? or returnsnull
if it could not be found, optionally using the finder cache.fetchByPrimaryKey
(long commerceVirtualOrderItemId) Returns the commerce virtual order item with the primary key or returnsnull
if it could not be found.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 = ?.fetchByUuid_C_Last
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceVirtualOrderItem> orderByComparator) Returns the last commerce virtual order item in the ordered set where uuid = ? and companyId = ?.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 = ?.fetchByUUID_G
(String uuid, long groupId) Returns the commerce virtual order item where uuid = ? and groupId = ? or returnsnull
if it could not be found.fetchByUUID_G
(String uuid, long groupId, boolean useFinderCache) Returns the commerce virtual order item where uuid = ? and groupId = ? or returnsnull
if it could not be found, optionally using the finder cache.fetchByUuid_Last
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceVirtualOrderItem> orderByComparator) Returns the last commerce virtual order item in the ordered set where uuid = ?.findAll()
Returns all the commerce virtual order items.findAll
(int start, int end) Returns a range of all the commerce virtual order items.findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceVirtualOrderItem> orderByComparator) Returns an ordered range of all the commerce virtual order items.findAll
(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.findByCommerceOrderItemId
(long commerceOrderItemId) Returns the commerce virtual order item where commerceOrderItemId = ? or throws aNoSuchVirtualOrderItemException
if it could not be found.findByPrimaryKey
(long commerceVirtualOrderItemId) Returns the commerce virtual order item with the primary key or throws aNoSuchVirtualOrderItemException
if it could not be found.findByUuid
(String uuid) Returns all the commerce virtual order items where uuid = ?.findByUuid
(String uuid, int start, int end) Returns a range of all the commerce virtual order items where uuid = ?.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 = ?.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 = ?.findByUuid_C
(String uuid, long companyId) Returns all the commerce virtual order items where uuid = ? and companyId = ?.findByUuid_C
(String uuid, long companyId, int start, int end) Returns a range of all the commerce virtual order items where uuid = ? and companyId = ?.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 = ?.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 = ?.findByUuid_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 = ?.findByUuid_C_Last
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceVirtualOrderItem> orderByComparator) Returns the last commerce virtual order item in the ordered set where uuid = ? and companyId = ?.findByUuid_C_PrevAndNext
(long commerceVirtualOrderItemId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceVirtualOrderItem> orderByComparator) Returns the commerce virtual order items before and after the current commerce virtual order item in the ordered set where uuid = ? and companyId = ?.findByUuid_First
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceVirtualOrderItem> orderByComparator) Returns the first commerce virtual order item in the ordered set where uuid = ?.findByUUID_G
(String uuid, long groupId) Returns the commerce virtual order item where uuid = ? and groupId = ? or throws aNoSuchVirtualOrderItemException
if it could not be found.findByUuid_Last
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceVirtualOrderItem> orderByComparator) Returns the last commerce virtual order item in the ordered set where uuid = ?.findByUuid_PrevAndNext
(long commerceVirtualOrderItemId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceVirtualOrderItem> orderByComparator) Returns the commerce virtual order items before and after the current commerce virtual order item in the ordered set where uuid = ?.remove
(long commerceVirtualOrderItemId) Removes the commerce virtual order item with the primary key from the database.void
Removes all the commerce virtual order items from the database.removeByCommerceOrderItemId
(long commerceOrderItemId) Removes the commerce virtual order item where commerceOrderItemId = ? from the database.void
removeByUuid
(String uuid) Removes all the commerce virtual order items where uuid = ? from the database.void
removeByUuid_C
(String uuid, long companyId) Removes all the commerce virtual order items where uuid = ? and companyId = ? from the database.removeByUUID_G
(String uuid, long groupId) Removes the commerce virtual order item where uuid = ? and groupId = ? from the database.updateImpl
(CommerceVirtualOrderItem commerceVirtualOrderItem) Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence
clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, removeByFunction, setDataSource, unregisterListener, update, update
-
Method Details
-
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 - 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 fromCommerceVirtualOrderItemModelImpl
.- 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
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 - 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 fromCommerceVirtualOrderItemModelImpl
.- 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
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 - 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 fromCommerceVirtualOrderItemModelImpl
.- 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
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
- Throws:
NoSuchVirtualOrderItemException
- if a matching commerce virtual order item could not be found
-
fetchByUuid_First
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
null
if a matching commerce virtual order item could not be found
-
findByUuid_Last
CommerceVirtualOrderItem findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceVirtualOrderItem> orderByComparator) throws NoSuchVirtualOrderItemException Returns the last commerce virtual order item in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce virtual order item
- Throws:
NoSuchVirtualOrderItemException
- if a matching commerce virtual order item could not be found
-
fetchByUuid_Last
CommerceVirtualOrderItem fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceVirtualOrderItem> orderByComparator) Returns the last commerce virtual order item in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce virtual order item, or
null
if a matching commerce virtual order item could not be found
-
findByUuid_PrevAndNext
CommerceVirtualOrderItem[] findByUuid_PrevAndNext(long commerceVirtualOrderItemId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceVirtualOrderItem> orderByComparator) throws NoSuchVirtualOrderItemException Returns the commerce virtual order items before and after the current commerce virtual order item in the ordered set where uuid = ?.- Parameters:
commerceVirtualOrderItemId
- the primary key of the current commerce virtual order itemuuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce virtual order item
- Throws:
NoSuchVirtualOrderItemException
- if a commerce virtual order item with the primary key 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
CommerceVirtualOrderItem findByUUID_G(String uuid, long groupId) throws NoSuchVirtualOrderItemException Returns the commerce virtual order item where uuid = ? and groupId = ? or throws aNoSuchVirtualOrderItemException
if it could not be found.- Parameters:
uuid
- the uuidgroupId
- the group ID- Returns:
- the matching commerce virtual order item
- Throws:
NoSuchVirtualOrderItemException
- if a matching commerce virtual order item could not be found
-
fetchByUUID_G
Returns the commerce virtual order item 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 virtual order item, or
null
if a matching commerce virtual order item could not be found
-
fetchByUUID_G
Returns the commerce virtual order item 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 virtual order item, or
null
if a matching commerce virtual order item could not be found
-
removeByUUID_G
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
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
Returns a range of all the commerce virtual order items 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 fromCommerceVirtualOrderItemModelImpl
.- 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
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 - 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 fromCommerceVirtualOrderItemModelImpl
.- 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
-
findByUuid_C
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 - 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 fromCommerceVirtualOrderItemModelImpl
.- 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
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
- Throws:
NoSuchVirtualOrderItemException
- if a matching commerce virtual order item could not be found
-
fetchByUuid_C_First
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
null
if a matching commerce virtual order item could not be found
-
findByUuid_C_Last
CommerceVirtualOrderItem findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceVirtualOrderItem> orderByComparator) throws NoSuchVirtualOrderItemException Returns the last 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 last matching commerce virtual order item
- Throws:
NoSuchVirtualOrderItemException
- if a matching commerce virtual order item could not be found
-
fetchByUuid_C_Last
CommerceVirtualOrderItem fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceVirtualOrderItem> orderByComparator) Returns the last 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 last matching commerce virtual order item, or
null
if a matching commerce virtual order item could not be found
-
findByUuid_C_PrevAndNext
CommerceVirtualOrderItem[] findByUuid_C_PrevAndNext(long commerceVirtualOrderItemId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceVirtualOrderItem> orderByComparator) throws NoSuchVirtualOrderItemException Returns the commerce virtual order items before and after the current commerce virtual order item in the ordered set where uuid = ? and companyId = ?.- Parameters:
commerceVirtualOrderItemId
- the primary key of the current commerce virtual order itemuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce virtual order item
- Throws:
NoSuchVirtualOrderItemException
- if a commerce virtual order item with the primary key 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
CommerceVirtualOrderItem findByCommerceOrderItemId(long commerceOrderItemId) throws NoSuchVirtualOrderItemException Returns the commerce virtual order item where commerceOrderItemId = ? or throws aNoSuchVirtualOrderItemException
if it could not be found.- Parameters:
commerceOrderItemId
- the commerce order item ID- Returns:
- the matching commerce virtual order item
- Throws:
NoSuchVirtualOrderItemException
- if a matching commerce virtual order item could not be found
-
fetchByCommerceOrderItemId
Returns the commerce virtual order item where commerceOrderItemId = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
commerceOrderItemId
- the commerce order item ID- Returns:
- the matching commerce virtual order item, or
null
if a matching commerce virtual order item could not be found
-
fetchByCommerceOrderItemId
CommerceVirtualOrderItem fetchByCommerceOrderItemId(long commerceOrderItemId, boolean useFinderCache) Returns the commerce virtual order item where commerceOrderItemId = ? or returnsnull
if 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
null
if a matching commerce virtual order item could not be found
-
removeByCommerceOrderItemId
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
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
-
cacheResult
Caches the commerce virtual order item in the entity cache if it is enabled.- Parameters:
commerceVirtualOrderItem
- the commerce virtual order item
-
cacheResult
Caches the commerce virtual order items in the entity cache if it is enabled.- Parameters:
commerceVirtualOrderItems
- the 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
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
- Throws:
NoSuchVirtualOrderItemException
- if a commerce virtual order item with the primary key could not be found
-
updateImpl
-
findByPrimaryKey
CommerceVirtualOrderItem findByPrimaryKey(long commerceVirtualOrderItemId) throws NoSuchVirtualOrderItemException Returns the commerce virtual order item with the primary key or throws aNoSuchVirtualOrderItemException
if it could not be found.- Parameters:
commerceVirtualOrderItemId
- the primary key of the commerce virtual order item- Returns:
- the commerce virtual order item
- Throws:
NoSuchVirtualOrderItemException
- if a commerce virtual order item with the primary key could not be found
-
fetchByPrimaryKey
Returns the commerce virtual order item with the primary key or returnsnull
if it could not be found.- Parameters:
commerceVirtualOrderItemId
- the primary key of the commerce virtual order item- Returns:
- the commerce virtual order item, or
null
if a commerce virtual order item with the primary key could not be found
-
findAll
List<CommerceVirtualOrderItem> findAll()Returns all the commerce virtual order items.- Returns:
- the commerce virtual order items
-
findAll
Returns a range of all the commerce virtual order items.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 fromCommerceVirtualOrderItemModelImpl
.- Parameters:
start
- 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 commerce virtual order items
-
findAll
List<CommerceVirtualOrderItem> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceVirtualOrderItem> orderByComparator) Returns an ordered range of all the commerce virtual order items.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 fromCommerceVirtualOrderItemModelImpl
.- Parameters:
start
- 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 commerce virtual order items
-
findAll
List<CommerceVirtualOrderItem> findAll(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.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 fromCommerceVirtualOrderItemModelImpl
.- Parameters:
start
- 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 commerce virtual order items
-
removeAll
void removeAll()Removes all the commerce virtual order items from the database. -
countAll
int countAll()Returns the number of commerce virtual order items.- Returns:
- the number of commerce virtual order items
-