public class CommerceVirtualOrderItemUtil
extends java.lang.Object
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
CommerceVirtualOrderItemPersistence
Constructor and Description |
---|
CommerceVirtualOrderItemUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(CommerceVirtualOrderItem commerceVirtualOrderItem)
Caches the commerce virtual order item in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CommerceVirtualOrderItem> commerceVirtualOrderItems)
Caches the commerce virtual order items in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(CommerceVirtualOrderItem commerceVirtualOrderItem) |
static int |
countAll()
Returns the number of commerce virtual order items.
|
static int |
countByCommerceOrderItemId(long commerceOrderItemId)
Returns the number of commerce virtual order items where commerceOrderItemId = ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of commerce virtual order items where uuid = ? and companyId = ?.
|
static int |
countByUUID_G(java.lang.String uuid,
long groupId)
Returns the number of commerce virtual order items where uuid = ? and groupId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of commerce virtual order items where uuid = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static CommerceVirtualOrderItem |
create(long commerceVirtualOrderItemId)
Creates a new commerce virtual order item with the primary key.
|
static CommerceVirtualOrderItem |
fetchByCommerceOrderItemId(long commerceOrderItemId)
Returns the commerce virtual order item where commerceOrderItemId = ? or returns
null if it could not be found. |
static CommerceVirtualOrderItem |
fetchByCommerceOrderItemId(long commerceOrderItemId,
boolean useFinderCache)
Returns the commerce virtual order item where commerceOrderItemId = ? or returns
null if it could not be found, optionally using the finder cache. |
static CommerceVirtualOrderItem |
fetchByPrimaryKey(long commerceVirtualOrderItemId)
Returns the commerce virtual order item with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CommerceVirtualOrderItem> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static CommerceVirtualOrderItem |
fetchByUuid_C_First(java.lang.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 CommerceVirtualOrderItem |
fetchByUuid_C_Last(java.lang.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 = ?.
|
static CommerceVirtualOrderItem |
fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceVirtualOrderItem> orderByComparator)
Returns the first commerce virtual order item in the ordered set where uuid = ?.
|
static CommerceVirtualOrderItem |
fetchByUUID_G(java.lang.String uuid,
long groupId)
Returns the commerce virtual order item where uuid = ? and groupId = ? or returns
null if it could not be found. |
static CommerceVirtualOrderItem |
fetchByUUID_G(java.lang.String uuid,
long groupId,
boolean useFinderCache)
Returns the commerce virtual order item where uuid = ? and groupId = ? or returns
null if it could not be found, optionally using the finder cache. |
static CommerceVirtualOrderItem |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceVirtualOrderItem> orderByComparator)
Returns the last commerce virtual order item in the ordered set where uuid = ?.
|
static java.util.List<CommerceVirtualOrderItem> |
findAll()
Returns all the commerce virtual order items.
|
static java.util.List<CommerceVirtualOrderItem> |
findAll(int start,
int end)
Returns a range of all the commerce virtual order items.
|
static java.util.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.
|
static java.util.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.
|
static CommerceVirtualOrderItem |
findByCommerceOrderItemId(long commerceOrderItemId)
Returns the commerce virtual order item where commerceOrderItemId = ? or throws a
NoSuchVirtualOrderItemException if it could not be found. |
static CommerceVirtualOrderItem |
findByPrimaryKey(long commerceVirtualOrderItemId)
Returns the commerce virtual order item with the primary key or throws a
NoSuchVirtualOrderItemException if it could not be found. |
static CommerceVirtualOrderItem |
findByUuid_C_First(java.lang.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 CommerceVirtualOrderItem |
findByUuid_C_Last(java.lang.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 = ?.
|
static CommerceVirtualOrderItem[] |
findByUuid_C_PrevAndNext(long commerceVirtualOrderItemId,
java.lang.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 = ?.
|
static java.util.List<CommerceVirtualOrderItem> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the commerce virtual order items where uuid = ? and companyId = ?.
|
static java.util.List<CommerceVirtualOrderItem> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the commerce virtual order items where uuid = ? and companyId = ?.
|
static java.util.List<CommerceVirtualOrderItem> |
findByUuid_C(java.lang.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 java.util.List<CommerceVirtualOrderItem> |
findByUuid_C(java.lang.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 CommerceVirtualOrderItem |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceVirtualOrderItem> orderByComparator)
Returns the first commerce virtual order item in the ordered set where uuid = ?.
|
static CommerceVirtualOrderItem |
findByUUID_G(java.lang.String uuid,
long groupId)
Returns the commerce virtual order item where uuid = ? and groupId = ? or throws a
NoSuchVirtualOrderItemException if it could not be found. |
static CommerceVirtualOrderItem |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceVirtualOrderItem> orderByComparator)
Returns the last commerce virtual order item in the ordered set where uuid = ?.
|
static CommerceVirtualOrderItem[] |
findByUuid_PrevAndNext(long commerceVirtualOrderItemId,
java.lang.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 = ?.
|
static java.util.List<CommerceVirtualOrderItem> |
findByUuid(java.lang.String uuid)
Returns all the commerce virtual order items where uuid = ?.
|
static java.util.List<CommerceVirtualOrderItem> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the commerce virtual order items where uuid = ?.
|
static java.util.List<CommerceVirtualOrderItem> |
findByUuid(java.lang.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 java.util.List<CommerceVirtualOrderItem> |
findByUuid(java.lang.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 java.util.List<CommerceVirtualOrderItem> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CommerceVirtualOrderItem> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<CommerceVirtualOrderItem> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceVirtualOrderItem> orderByComparator) |
static CommerceVirtualOrderItemPersistence |
getPersistence() |
static CommerceVirtualOrderItem |
remove(long commerceVirtualOrderItemId)
Removes the commerce virtual order item with the primary key from the database.
|
static void |
removeAll()
Removes all the commerce virtual order items from the database.
|
static CommerceVirtualOrderItem |
removeByCommerceOrderItemId(long commerceOrderItemId)
Removes the commerce virtual order item where commerceOrderItemId = ? from the database.
|
static void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the commerce virtual order items where uuid = ? and companyId = ? from the database.
|
static CommerceVirtualOrderItem |
removeByUUID_G(java.lang.String uuid,
long groupId)
Removes the commerce virtual order item where uuid = ? and groupId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the commerce virtual order items where uuid = ? from the database.
|
static CommerceVirtualOrderItem |
update(CommerceVirtualOrderItem commerceVirtualOrderItem) |
static CommerceVirtualOrderItem |
update(CommerceVirtualOrderItem commerceVirtualOrderItem,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CommerceVirtualOrderItem |
updateImpl(CommerceVirtualOrderItem commerceVirtualOrderItem) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(CommerceVirtualOrderItem commerceVirtualOrderItem)
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static java.util.Map<java.io.Serializable,CommerceVirtualOrderItem> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<CommerceVirtualOrderItem> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<CommerceVirtualOrderItem> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<CommerceVirtualOrderItem> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceVirtualOrderItem> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static CommerceVirtualOrderItem update(CommerceVirtualOrderItem commerceVirtualOrderItem)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static CommerceVirtualOrderItem update(CommerceVirtualOrderItem commerceVirtualOrderItem, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<CommerceVirtualOrderItem> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<CommerceVirtualOrderItem> findByUuid(java.lang.String uuid, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceVirtualOrderItemModelImpl
.
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)public static java.util.List<CommerceVirtualOrderItem> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceVirtualOrderItem> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceVirtualOrderItemModelImpl
.
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 (optionally null
)public static java.util.List<CommerceVirtualOrderItem> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceVirtualOrderItem> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceVirtualOrderItemModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceVirtualOrderItem findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceVirtualOrderItem> orderByComparator) throws NoSuchVirtualOrderItemException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchVirtualOrderItemException
- if a matching commerce virtual order item could not be foundpublic static CommerceVirtualOrderItem fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceVirtualOrderItem> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce virtual order item could not be foundpublic static CommerceVirtualOrderItem findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceVirtualOrderItem> orderByComparator) throws NoSuchVirtualOrderItemException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchVirtualOrderItemException
- if a matching commerce virtual order item could not be foundpublic static CommerceVirtualOrderItem fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceVirtualOrderItem> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce virtual order item could not be foundpublic static CommerceVirtualOrderItem[] findByUuid_PrevAndNext(long commerceVirtualOrderItemId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceVirtualOrderItem> orderByComparator) throws NoSuchVirtualOrderItemException
commerceVirtualOrderItemId
- the primary key of the current commerce virtual order itemuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchVirtualOrderItemException
- if a commerce virtual order item with the primary key could not be foundpublic static void removeByUuid(java.lang.String uuid)
uuid
- the uuidpublic static int countByUuid(java.lang.String uuid)
uuid
- the uuidpublic static CommerceVirtualOrderItem findByUUID_G(java.lang.String uuid, long groupId) throws NoSuchVirtualOrderItemException
NoSuchVirtualOrderItemException
if it could not be found.uuid
- the uuidgroupId
- the group IDNoSuchVirtualOrderItemException
- if a matching commerce virtual order item could not be foundpublic static CommerceVirtualOrderItem fetchByUUID_G(java.lang.String uuid, long groupId)
null
if it could not be found. Uses the finder cache.uuid
- the uuidgroupId
- the group IDnull
if a matching commerce virtual order item could not be foundpublic static CommerceVirtualOrderItem fetchByUUID_G(java.lang.String uuid, long groupId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.uuid
- the uuidgroupId
- the group IDuseFinderCache
- whether to use the finder cachenull
if a matching commerce virtual order item could not be foundpublic static CommerceVirtualOrderItem removeByUUID_G(java.lang.String uuid, long groupId) throws NoSuchVirtualOrderItemException
uuid
- the uuidgroupId
- the group IDNoSuchVirtualOrderItemException
public static int countByUUID_G(java.lang.String uuid, long groupId)
uuid
- the uuidgroupId
- the group IDpublic static java.util.List<CommerceVirtualOrderItem> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<CommerceVirtualOrderItem> findByUuid_C(java.lang.String uuid, long companyId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceVirtualOrderItemModelImpl
.
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)public static java.util.List<CommerceVirtualOrderItem> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceVirtualOrderItem> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceVirtualOrderItemModelImpl
.
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 (optionally null
)public static java.util.List<CommerceVirtualOrderItem> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceVirtualOrderItem> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceVirtualOrderItemModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceVirtualOrderItem findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceVirtualOrderItem> orderByComparator) throws NoSuchVirtualOrderItemException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchVirtualOrderItemException
- if a matching commerce virtual order item could not be foundpublic static CommerceVirtualOrderItem fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceVirtualOrderItem> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce virtual order item could not be foundpublic static CommerceVirtualOrderItem findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceVirtualOrderItem> orderByComparator) throws NoSuchVirtualOrderItemException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchVirtualOrderItemException
- if a matching commerce virtual order item could not be foundpublic static CommerceVirtualOrderItem fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceVirtualOrderItem> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce virtual order item could not be foundpublic static CommerceVirtualOrderItem[] findByUuid_C_PrevAndNext(long commerceVirtualOrderItemId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceVirtualOrderItem> orderByComparator) throws NoSuchVirtualOrderItemException
commerceVirtualOrderItemId
- the primary key of the current commerce virtual order itemuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchVirtualOrderItemException
- if a commerce virtual order item with the primary key could not be foundpublic static void removeByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static int countByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static CommerceVirtualOrderItem findByCommerceOrderItemId(long commerceOrderItemId) throws NoSuchVirtualOrderItemException
NoSuchVirtualOrderItemException
if it could not be found.commerceOrderItemId
- the commerce order item IDNoSuchVirtualOrderItemException
- if a matching commerce virtual order item could not be foundpublic static CommerceVirtualOrderItem fetchByCommerceOrderItemId(long commerceOrderItemId)
null
if it could not be found. Uses the finder cache.commerceOrderItemId
- the commerce order item IDnull
if a matching commerce virtual order item could not be foundpublic static CommerceVirtualOrderItem fetchByCommerceOrderItemId(long commerceOrderItemId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.commerceOrderItemId
- the commerce order item IDuseFinderCache
- whether to use the finder cachenull
if a matching commerce virtual order item could not be foundpublic static CommerceVirtualOrderItem removeByCommerceOrderItemId(long commerceOrderItemId) throws NoSuchVirtualOrderItemException
commerceOrderItemId
- the commerce order item IDNoSuchVirtualOrderItemException
public static int countByCommerceOrderItemId(long commerceOrderItemId)
commerceOrderItemId
- the commerce order item IDpublic static void cacheResult(CommerceVirtualOrderItem commerceVirtualOrderItem)
commerceVirtualOrderItem
- the commerce virtual order itempublic static void cacheResult(java.util.List<CommerceVirtualOrderItem> commerceVirtualOrderItems)
commerceVirtualOrderItems
- the commerce virtual order itemspublic static CommerceVirtualOrderItem create(long commerceVirtualOrderItemId)
commerceVirtualOrderItemId
- the primary key for the new commerce virtual order itempublic static CommerceVirtualOrderItem remove(long commerceVirtualOrderItemId) throws NoSuchVirtualOrderItemException
commerceVirtualOrderItemId
- the primary key of the commerce virtual order itemNoSuchVirtualOrderItemException
- if a commerce virtual order item with the primary key could not be foundpublic static CommerceVirtualOrderItem updateImpl(CommerceVirtualOrderItem commerceVirtualOrderItem)
public static CommerceVirtualOrderItem findByPrimaryKey(long commerceVirtualOrderItemId) throws NoSuchVirtualOrderItemException
NoSuchVirtualOrderItemException
if it could not be found.commerceVirtualOrderItemId
- the primary key of the commerce virtual order itemNoSuchVirtualOrderItemException
- if a commerce virtual order item with the primary key could not be foundpublic static CommerceVirtualOrderItem fetchByPrimaryKey(long commerceVirtualOrderItemId)
null
if it could not be found.commerceVirtualOrderItemId
- the primary key of the commerce virtual order itemnull
if a commerce virtual order item with the primary key could not be foundpublic static java.util.List<CommerceVirtualOrderItem> findAll()
public static java.util.List<CommerceVirtualOrderItem> findAll(int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceVirtualOrderItemModelImpl
.
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)public static java.util.List<CommerceVirtualOrderItem> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceVirtualOrderItem> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceVirtualOrderItemModelImpl
.
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 (optionally null
)public static java.util.List<CommerceVirtualOrderItem> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceVirtualOrderItem> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceVirtualOrderItemModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static CommerceVirtualOrderItemPersistence getPersistence()