public class CommerceOrderTypeUtil
extends java.lang.Object
com.liferay.commerce.service.persistence.impl.CommerceOrderTypePersistenceImpl
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
CommerceOrderTypePersistence
Constructor and Description |
---|
CommerceOrderTypeUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(CommerceOrderType commerceOrderType)
Caches the commerce order type in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CommerceOrderType> commerceOrderTypes)
Caches the commerce order types in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(CommerceOrderType commerceOrderType) |
static int |
countAll()
Returns the number of commerce order types.
|
static int |
countByC_A(long companyId,
boolean active)
Returns the number of commerce order types where companyId = ? and active = ?.
|
static int |
countByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Returns the number of commerce order types where companyId = ? and externalReferenceCode = ?.
|
static int |
countByCompanyId(long companyId)
Returns the number of commerce order types where companyId = ?.
|
static int |
countByLtD_S(java.util.Date displayDate,
int status)
Returns the number of commerce order types where displayDate < ? and status = ?.
|
static int |
countByLtE_S(java.util.Date expirationDate,
int status)
Returns the number of commerce order types where expirationDate < ? and status = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static CommerceOrderType |
create(long commerceOrderTypeId)
Creates a new commerce order type with the primary key.
|
static CommerceOrderType |
fetchByC_A_First(long companyId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
Returns the first commerce order type in the ordered set where companyId = ? and active = ?.
|
static CommerceOrderType |
fetchByC_A_Last(long companyId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
Returns the last commerce order type in the ordered set where companyId = ? and active = ?.
|
static CommerceOrderType |
fetchByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Returns the commerce order type where companyId = ? and externalReferenceCode = ? or returns
null if it could not be found. |
static CommerceOrderType |
fetchByC_ERC(long companyId,
java.lang.String externalReferenceCode,
boolean useFinderCache)
Returns the commerce order type where companyId = ? and externalReferenceCode = ? or returns
null if it could not be found, optionally using the finder cache. |
static CommerceOrderType |
fetchByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
Returns the first commerce order type in the ordered set where companyId = ?.
|
static CommerceOrderType |
fetchByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
Returns the last commerce order type in the ordered set where companyId = ?.
|
static CommerceOrderType |
fetchByLtD_S_First(java.util.Date displayDate,
int status,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
Returns the first commerce order type in the ordered set where displayDate < ? and status = ?.
|
static CommerceOrderType |
fetchByLtD_S_Last(java.util.Date displayDate,
int status,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
Returns the last commerce order type in the ordered set where displayDate < ? and status = ?.
|
static CommerceOrderType |
fetchByLtE_S_First(java.util.Date expirationDate,
int status,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
Returns the first commerce order type in the ordered set where expirationDate < ? and status = ?.
|
static CommerceOrderType |
fetchByLtE_S_Last(java.util.Date expirationDate,
int status,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
Returns the last commerce order type in the ordered set where expirationDate < ? and status = ?.
|
static CommerceOrderType |
fetchByPrimaryKey(long commerceOrderTypeId)
Returns the commerce order type with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CommerceOrderType> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static int |
filterCountByC_A(long companyId,
boolean active)
Returns the number of commerce order types that the user has permission to view where companyId = ? and active = ?.
|
static int |
filterCountByCompanyId(long companyId)
Returns the number of commerce order types that the user has permission to view where companyId = ?.
|
static int |
filterCountByLtD_S(java.util.Date displayDate,
int status)
Returns the number of commerce order types that the user has permission to view where displayDate < ? and status = ?.
|
static int |
filterCountByLtE_S(java.util.Date expirationDate,
int status)
Returns the number of commerce order types that the user has permission to view where expirationDate < ? and status = ?.
|
static CommerceOrderType[] |
filterFindByC_A_PrevAndNext(long commerceOrderTypeId,
long companyId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
Returns the commerce order types before and after the current commerce order type in the ordered set of commerce order types that the user has permission to view where companyId = ? and active = ?.
|
static java.util.List<CommerceOrderType> |
filterFindByC_A(long companyId,
boolean active)
Returns all the commerce order types that the user has permission to view where companyId = ? and active = ?.
|
static java.util.List<CommerceOrderType> |
filterFindByC_A(long companyId,
boolean active,
int start,
int end)
Returns a range of all the commerce order types that the user has permission to view where companyId = ? and active = ?.
|
static java.util.List<CommerceOrderType> |
filterFindByC_A(long companyId,
boolean active,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
Returns an ordered range of all the commerce order types that the user has permissions to view where companyId = ? and active = ?.
|
static CommerceOrderType[] |
filterFindByCompanyId_PrevAndNext(long commerceOrderTypeId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
Returns the commerce order types before and after the current commerce order type in the ordered set of commerce order types that the user has permission to view where companyId = ?.
|
static java.util.List<CommerceOrderType> |
filterFindByCompanyId(long companyId)
Returns all the commerce order types that the user has permission to view where companyId = ?.
|
static java.util.List<CommerceOrderType> |
filterFindByCompanyId(long companyId,
int start,
int end)
Returns a range of all the commerce order types that the user has permission to view where companyId = ?.
|
static java.util.List<CommerceOrderType> |
filterFindByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
Returns an ordered range of all the commerce order types that the user has permissions to view where companyId = ?.
|
static CommerceOrderType[] |
filterFindByLtD_S_PrevAndNext(long commerceOrderTypeId,
java.util.Date displayDate,
int status,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
Returns the commerce order types before and after the current commerce order type in the ordered set of commerce order types that the user has permission to view where displayDate < ? and status = ?.
|
static java.util.List<CommerceOrderType> |
filterFindByLtD_S(java.util.Date displayDate,
int status)
Returns all the commerce order types that the user has permission to view where displayDate < ? and status = ?.
|
static java.util.List<CommerceOrderType> |
filterFindByLtD_S(java.util.Date displayDate,
int status,
int start,
int end)
Returns a range of all the commerce order types that the user has permission to view where displayDate < ? and status = ?.
|
static java.util.List<CommerceOrderType> |
filterFindByLtD_S(java.util.Date displayDate,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
Returns an ordered range of all the commerce order types that the user has permissions to view where displayDate < ? and status = ?.
|
static CommerceOrderType[] |
filterFindByLtE_S_PrevAndNext(long commerceOrderTypeId,
java.util.Date expirationDate,
int status,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
Returns the commerce order types before and after the current commerce order type in the ordered set of commerce order types that the user has permission to view where expirationDate < ? and status = ?.
|
static java.util.List<CommerceOrderType> |
filterFindByLtE_S(java.util.Date expirationDate,
int status)
Returns all the commerce order types that the user has permission to view where expirationDate < ? and status = ?.
|
static java.util.List<CommerceOrderType> |
filterFindByLtE_S(java.util.Date expirationDate,
int status,
int start,
int end)
Returns a range of all the commerce order types that the user has permission to view where expirationDate < ? and status = ?.
|
static java.util.List<CommerceOrderType> |
filterFindByLtE_S(java.util.Date expirationDate,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
Returns an ordered range of all the commerce order types that the user has permissions to view where expirationDate < ? and status = ?.
|
static java.util.List<CommerceOrderType> |
findAll()
Returns all the commerce order types.
|
static java.util.List<CommerceOrderType> |
findAll(int start,
int end)
Returns a range of all the commerce order types.
|
static java.util.List<CommerceOrderType> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
Returns an ordered range of all the commerce order types.
|
static java.util.List<CommerceOrderType> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce order types.
|
static CommerceOrderType |
findByC_A_First(long companyId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
Returns the first commerce order type in the ordered set where companyId = ? and active = ?.
|
static CommerceOrderType |
findByC_A_Last(long companyId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
Returns the last commerce order type in the ordered set where companyId = ? and active = ?.
|
static CommerceOrderType[] |
findByC_A_PrevAndNext(long commerceOrderTypeId,
long companyId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
Returns the commerce order types before and after the current commerce order type in the ordered set where companyId = ? and active = ?.
|
static java.util.List<CommerceOrderType> |
findByC_A(long companyId,
boolean active)
Returns all the commerce order types where companyId = ? and active = ?.
|
static java.util.List<CommerceOrderType> |
findByC_A(long companyId,
boolean active,
int start,
int end)
Returns a range of all the commerce order types where companyId = ? and active = ?.
|
static java.util.List<CommerceOrderType> |
findByC_A(long companyId,
boolean active,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
Returns an ordered range of all the commerce order types where companyId = ? and active = ?.
|
static java.util.List<CommerceOrderType> |
findByC_A(long companyId,
boolean active,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce order types where companyId = ? and active = ?.
|
static CommerceOrderType |
findByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Returns the commerce order type where companyId = ? and externalReferenceCode = ? or throws a
NoSuchOrderTypeException if it could not be found. |
static CommerceOrderType |
findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
Returns the first commerce order type in the ordered set where companyId = ?.
|
static CommerceOrderType |
findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
Returns the last commerce order type in the ordered set where companyId = ?.
|
static CommerceOrderType[] |
findByCompanyId_PrevAndNext(long commerceOrderTypeId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
Returns the commerce order types before and after the current commerce order type in the ordered set where companyId = ?.
|
static java.util.List<CommerceOrderType> |
findByCompanyId(long companyId)
Returns all the commerce order types where companyId = ?.
|
static java.util.List<CommerceOrderType> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the commerce order types where companyId = ?.
|
static java.util.List<CommerceOrderType> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
Returns an ordered range of all the commerce order types where companyId = ?.
|
static java.util.List<CommerceOrderType> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce order types where companyId = ?.
|
static CommerceOrderType |
findByLtD_S_First(java.util.Date displayDate,
int status,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
Returns the first commerce order type in the ordered set where displayDate < ? and status = ?.
|
static CommerceOrderType |
findByLtD_S_Last(java.util.Date displayDate,
int status,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
Returns the last commerce order type in the ordered set where displayDate < ? and status = ?.
|
static CommerceOrderType[] |
findByLtD_S_PrevAndNext(long commerceOrderTypeId,
java.util.Date displayDate,
int status,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
Returns the commerce order types before and after the current commerce order type in the ordered set where displayDate < ? and status = ?.
|
static java.util.List<CommerceOrderType> |
findByLtD_S(java.util.Date displayDate,
int status)
Returns all the commerce order types where displayDate < ? and status = ?.
|
static java.util.List<CommerceOrderType> |
findByLtD_S(java.util.Date displayDate,
int status,
int start,
int end)
Returns a range of all the commerce order types where displayDate < ? and status = ?.
|
static java.util.List<CommerceOrderType> |
findByLtD_S(java.util.Date displayDate,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
Returns an ordered range of all the commerce order types where displayDate < ? and status = ?.
|
static java.util.List<CommerceOrderType> |
findByLtD_S(java.util.Date displayDate,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce order types where displayDate < ? and status = ?.
|
static CommerceOrderType |
findByLtE_S_First(java.util.Date expirationDate,
int status,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
Returns the first commerce order type in the ordered set where expirationDate < ? and status = ?.
|
static CommerceOrderType |
findByLtE_S_Last(java.util.Date expirationDate,
int status,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
Returns the last commerce order type in the ordered set where expirationDate < ? and status = ?.
|
static CommerceOrderType[] |
findByLtE_S_PrevAndNext(long commerceOrderTypeId,
java.util.Date expirationDate,
int status,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
Returns the commerce order types before and after the current commerce order type in the ordered set where expirationDate < ? and status = ?.
|
static java.util.List<CommerceOrderType> |
findByLtE_S(java.util.Date expirationDate,
int status)
Returns all the commerce order types where expirationDate < ? and status = ?.
|
static java.util.List<CommerceOrderType> |
findByLtE_S(java.util.Date expirationDate,
int status,
int start,
int end)
Returns a range of all the commerce order types where expirationDate < ? and status = ?.
|
static java.util.List<CommerceOrderType> |
findByLtE_S(java.util.Date expirationDate,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
Returns an ordered range of all the commerce order types where expirationDate < ? and status = ?.
|
static java.util.List<CommerceOrderType> |
findByLtE_S(java.util.Date expirationDate,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce order types where expirationDate < ? and status = ?.
|
static CommerceOrderType |
findByPrimaryKey(long commerceOrderTypeId)
Returns the commerce order type with the primary key or throws a
NoSuchOrderTypeException if it could not be found. |
static java.util.List<CommerceOrderType> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CommerceOrderType> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<CommerceOrderType> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator) |
static CommerceOrderTypePersistence |
getPersistence() |
static CommerceOrderType |
remove(long commerceOrderTypeId)
Removes the commerce order type with the primary key from the database.
|
static void |
removeAll()
Removes all the commerce order types from the database.
|
static void |
removeByC_A(long companyId,
boolean active)
Removes all the commerce order types where companyId = ? and active = ? from the database.
|
static CommerceOrderType |
removeByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Removes the commerce order type where companyId = ? and externalReferenceCode = ? from the database.
|
static void |
removeByCompanyId(long companyId)
Removes all the commerce order types where companyId = ? from the database.
|
static void |
removeByLtD_S(java.util.Date displayDate,
int status)
Removes all the commerce order types where displayDate < ? and status = ? from the database.
|
static void |
removeByLtE_S(java.util.Date expirationDate,
int status)
Removes all the commerce order types where expirationDate < ? and status = ? from the database.
|
static CommerceOrderType |
update(CommerceOrderType commerceOrderType) |
static CommerceOrderType |
update(CommerceOrderType commerceOrderType,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CommerceOrderType |
updateImpl(CommerceOrderType commerceOrderType) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(CommerceOrderType commerceOrderType)
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,CommerceOrderType> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<CommerceOrderType> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<CommerceOrderType> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<CommerceOrderType> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static CommerceOrderType update(CommerceOrderType commerceOrderType)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static CommerceOrderType update(CommerceOrderType commerceOrderType, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<CommerceOrderType> findByCompanyId(long companyId)
companyId
- the company IDpublic static java.util.List<CommerceOrderType> findByCompanyId(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 CommerceOrderTypeModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of commerce order typesend
- the upper bound of the range of commerce order types (not inclusive)public static java.util.List<CommerceOrderType> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> 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 CommerceOrderTypeModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of commerce order typesend
- the upper bound of the range of commerce order types (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceOrderType> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> 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 CommerceOrderTypeModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of commerce order typesend
- the upper bound of the range of commerce order types (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceOrderType findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator) throws NoSuchOrderTypeException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderTypeException
- if a matching commerce order type could not be foundpublic static CommerceOrderType fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce order type could not be foundpublic static CommerceOrderType findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator) throws NoSuchOrderTypeException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderTypeException
- if a matching commerce order type could not be foundpublic static CommerceOrderType fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce order type could not be foundpublic static CommerceOrderType[] findByCompanyId_PrevAndNext(long commerceOrderTypeId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator) throws NoSuchOrderTypeException
commerceOrderTypeId
- the primary key of the current commerce order typecompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderTypeException
- if a commerce order type with the primary key could not be foundpublic static java.util.List<CommerceOrderType> filterFindByCompanyId(long companyId)
companyId
- the company IDpublic static java.util.List<CommerceOrderType> filterFindByCompanyId(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 CommerceOrderTypeModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of commerce order typesend
- the upper bound of the range of commerce order types (not inclusive)public static java.util.List<CommerceOrderType> filterFindByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> 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 CommerceOrderTypeModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of commerce order typesend
- the upper bound of the range of commerce order types (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static CommerceOrderType[] filterFindByCompanyId_PrevAndNext(long commerceOrderTypeId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator) throws NoSuchOrderTypeException
commerceOrderTypeId
- the primary key of the current commerce order typecompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderTypeException
- if a commerce order type with the primary key could not be foundpublic static void removeByCompanyId(long companyId)
companyId
- the company IDpublic static int countByCompanyId(long companyId)
companyId
- the company IDpublic static int filterCountByCompanyId(long companyId)
companyId
- the company IDpublic static java.util.List<CommerceOrderType> findByC_A(long companyId, boolean active)
companyId
- the company IDactive
- the activepublic static java.util.List<CommerceOrderType> findByC_A(long companyId, boolean active, 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 CommerceOrderTypeModelImpl
.
companyId
- the company IDactive
- the activestart
- the lower bound of the range of commerce order typesend
- the upper bound of the range of commerce order types (not inclusive)public static java.util.List<CommerceOrderType> findByC_A(long companyId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> 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 CommerceOrderTypeModelImpl
.
companyId
- the company IDactive
- the activestart
- the lower bound of the range of commerce order typesend
- the upper bound of the range of commerce order types (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceOrderType> findByC_A(long companyId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> 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 CommerceOrderTypeModelImpl
.
companyId
- the company IDactive
- the activestart
- the lower bound of the range of commerce order typesend
- the upper bound of the range of commerce order types (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceOrderType findByC_A_First(long companyId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator) throws NoSuchOrderTypeException
companyId
- the company IDactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderTypeException
- if a matching commerce order type could not be foundpublic static CommerceOrderType fetchByC_A_First(long companyId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
companyId
- the company IDactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce order type could not be foundpublic static CommerceOrderType findByC_A_Last(long companyId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator) throws NoSuchOrderTypeException
companyId
- the company IDactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderTypeException
- if a matching commerce order type could not be foundpublic static CommerceOrderType fetchByC_A_Last(long companyId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
companyId
- the company IDactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce order type could not be foundpublic static CommerceOrderType[] findByC_A_PrevAndNext(long commerceOrderTypeId, long companyId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator) throws NoSuchOrderTypeException
commerceOrderTypeId
- the primary key of the current commerce order typecompanyId
- the company IDactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderTypeException
- if a commerce order type with the primary key could not be foundpublic static java.util.List<CommerceOrderType> filterFindByC_A(long companyId, boolean active)
companyId
- the company IDactive
- the activepublic static java.util.List<CommerceOrderType> filterFindByC_A(long companyId, boolean active, 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 CommerceOrderTypeModelImpl
.
companyId
- the company IDactive
- the activestart
- the lower bound of the range of commerce order typesend
- the upper bound of the range of commerce order types (not inclusive)public static java.util.List<CommerceOrderType> filterFindByC_A(long companyId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> 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 CommerceOrderTypeModelImpl
.
companyId
- the company IDactive
- the activestart
- the lower bound of the range of commerce order typesend
- the upper bound of the range of commerce order types (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static CommerceOrderType[] filterFindByC_A_PrevAndNext(long commerceOrderTypeId, long companyId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator) throws NoSuchOrderTypeException
commerceOrderTypeId
- the primary key of the current commerce order typecompanyId
- the company IDactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderTypeException
- if a commerce order type with the primary key could not be foundpublic static void removeByC_A(long companyId, boolean active)
companyId
- the company IDactive
- the activepublic static int countByC_A(long companyId, boolean active)
companyId
- the company IDactive
- the activepublic static int filterCountByC_A(long companyId, boolean active)
companyId
- the company IDactive
- the activepublic static java.util.List<CommerceOrderType> findByLtD_S(java.util.Date displayDate, int status)
displayDate
- the display datestatus
- the statuspublic static java.util.List<CommerceOrderType> findByLtD_S(java.util.Date displayDate, int status, 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 CommerceOrderTypeModelImpl
.
displayDate
- the display datestatus
- the statusstart
- the lower bound of the range of commerce order typesend
- the upper bound of the range of commerce order types (not inclusive)public static java.util.List<CommerceOrderType> findByLtD_S(java.util.Date displayDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> 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 CommerceOrderTypeModelImpl
.
displayDate
- the display datestatus
- the statusstart
- the lower bound of the range of commerce order typesend
- the upper bound of the range of commerce order types (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceOrderType> findByLtD_S(java.util.Date displayDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> 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 CommerceOrderTypeModelImpl
.
displayDate
- the display datestatus
- the statusstart
- the lower bound of the range of commerce order typesend
- the upper bound of the range of commerce order types (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceOrderType findByLtD_S_First(java.util.Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator) throws NoSuchOrderTypeException
displayDate
- the display datestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderTypeException
- if a matching commerce order type could not be foundpublic static CommerceOrderType fetchByLtD_S_First(java.util.Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
displayDate
- the display datestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce order type could not be foundpublic static CommerceOrderType findByLtD_S_Last(java.util.Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator) throws NoSuchOrderTypeException
displayDate
- the display datestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderTypeException
- if a matching commerce order type could not be foundpublic static CommerceOrderType fetchByLtD_S_Last(java.util.Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
displayDate
- the display datestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce order type could not be foundpublic static CommerceOrderType[] findByLtD_S_PrevAndNext(long commerceOrderTypeId, java.util.Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator) throws NoSuchOrderTypeException
commerceOrderTypeId
- the primary key of the current commerce order typedisplayDate
- the display datestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderTypeException
- if a commerce order type with the primary key could not be foundpublic static java.util.List<CommerceOrderType> filterFindByLtD_S(java.util.Date displayDate, int status)
displayDate
- the display datestatus
- the statuspublic static java.util.List<CommerceOrderType> filterFindByLtD_S(java.util.Date displayDate, int status, 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 CommerceOrderTypeModelImpl
.
displayDate
- the display datestatus
- the statusstart
- the lower bound of the range of commerce order typesend
- the upper bound of the range of commerce order types (not inclusive)public static java.util.List<CommerceOrderType> filterFindByLtD_S(java.util.Date displayDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> 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 CommerceOrderTypeModelImpl
.
displayDate
- the display datestatus
- the statusstart
- the lower bound of the range of commerce order typesend
- the upper bound of the range of commerce order types (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static CommerceOrderType[] filterFindByLtD_S_PrevAndNext(long commerceOrderTypeId, java.util.Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator) throws NoSuchOrderTypeException
commerceOrderTypeId
- the primary key of the current commerce order typedisplayDate
- the display datestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderTypeException
- if a commerce order type with the primary key could not be foundpublic static void removeByLtD_S(java.util.Date displayDate, int status)
displayDate
- the display datestatus
- the statuspublic static int countByLtD_S(java.util.Date displayDate, int status)
displayDate
- the display datestatus
- the statuspublic static int filterCountByLtD_S(java.util.Date displayDate, int status)
displayDate
- the display datestatus
- the statuspublic static java.util.List<CommerceOrderType> findByLtE_S(java.util.Date expirationDate, int status)
expirationDate
- the expiration datestatus
- the statuspublic static java.util.List<CommerceOrderType> findByLtE_S(java.util.Date expirationDate, int status, 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 CommerceOrderTypeModelImpl
.
expirationDate
- the expiration datestatus
- the statusstart
- the lower bound of the range of commerce order typesend
- the upper bound of the range of commerce order types (not inclusive)public static java.util.List<CommerceOrderType> findByLtE_S(java.util.Date expirationDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> 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 CommerceOrderTypeModelImpl
.
expirationDate
- the expiration datestatus
- the statusstart
- the lower bound of the range of commerce order typesend
- the upper bound of the range of commerce order types (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceOrderType> findByLtE_S(java.util.Date expirationDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> 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 CommerceOrderTypeModelImpl
.
expirationDate
- the expiration datestatus
- the statusstart
- the lower bound of the range of commerce order typesend
- the upper bound of the range of commerce order types (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceOrderType findByLtE_S_First(java.util.Date expirationDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator) throws NoSuchOrderTypeException
expirationDate
- the expiration datestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderTypeException
- if a matching commerce order type could not be foundpublic static CommerceOrderType fetchByLtE_S_First(java.util.Date expirationDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
expirationDate
- the expiration datestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce order type could not be foundpublic static CommerceOrderType findByLtE_S_Last(java.util.Date expirationDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator) throws NoSuchOrderTypeException
expirationDate
- the expiration datestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderTypeException
- if a matching commerce order type could not be foundpublic static CommerceOrderType fetchByLtE_S_Last(java.util.Date expirationDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator)
expirationDate
- the expiration datestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce order type could not be foundpublic static CommerceOrderType[] findByLtE_S_PrevAndNext(long commerceOrderTypeId, java.util.Date expirationDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator) throws NoSuchOrderTypeException
commerceOrderTypeId
- the primary key of the current commerce order typeexpirationDate
- the expiration datestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderTypeException
- if a commerce order type with the primary key could not be foundpublic static java.util.List<CommerceOrderType> filterFindByLtE_S(java.util.Date expirationDate, int status)
expirationDate
- the expiration datestatus
- the statuspublic static java.util.List<CommerceOrderType> filterFindByLtE_S(java.util.Date expirationDate, int status, 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 CommerceOrderTypeModelImpl
.
expirationDate
- the expiration datestatus
- the statusstart
- the lower bound of the range of commerce order typesend
- the upper bound of the range of commerce order types (not inclusive)public static java.util.List<CommerceOrderType> filterFindByLtE_S(java.util.Date expirationDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> 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 CommerceOrderTypeModelImpl
.
expirationDate
- the expiration datestatus
- the statusstart
- the lower bound of the range of commerce order typesend
- the upper bound of the range of commerce order types (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static CommerceOrderType[] filterFindByLtE_S_PrevAndNext(long commerceOrderTypeId, java.util.Date expirationDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator) throws NoSuchOrderTypeException
commerceOrderTypeId
- the primary key of the current commerce order typeexpirationDate
- the expiration datestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderTypeException
- if a commerce order type with the primary key could not be foundpublic static void removeByLtE_S(java.util.Date expirationDate, int status)
expirationDate
- the expiration datestatus
- the statuspublic static int countByLtE_S(java.util.Date expirationDate, int status)
expirationDate
- the expiration datestatus
- the statuspublic static int filterCountByLtE_S(java.util.Date expirationDate, int status)
expirationDate
- the expiration datestatus
- the statuspublic static CommerceOrderType findByC_ERC(long companyId, java.lang.String externalReferenceCode) throws NoSuchOrderTypeException
NoSuchOrderTypeException
if it could not be found.companyId
- the company IDexternalReferenceCode
- the external reference codeNoSuchOrderTypeException
- if a matching commerce order type could not be foundpublic static CommerceOrderType fetchByC_ERC(long companyId, java.lang.String externalReferenceCode)
null
if it could not be found. Uses the finder cache.companyId
- the company IDexternalReferenceCode
- the external reference codenull
if a matching commerce order type could not be foundpublic static CommerceOrderType fetchByC_ERC(long companyId, java.lang.String externalReferenceCode, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.companyId
- the company IDexternalReferenceCode
- the external reference codeuseFinderCache
- whether to use the finder cachenull
if a matching commerce order type could not be foundpublic static CommerceOrderType removeByC_ERC(long companyId, java.lang.String externalReferenceCode) throws NoSuchOrderTypeException
companyId
- the company IDexternalReferenceCode
- the external reference codeNoSuchOrderTypeException
public static int countByC_ERC(long companyId, java.lang.String externalReferenceCode)
companyId
- the company IDexternalReferenceCode
- the external reference codepublic static void cacheResult(CommerceOrderType commerceOrderType)
commerceOrderType
- the commerce order typepublic static void cacheResult(java.util.List<CommerceOrderType> commerceOrderTypes)
commerceOrderTypes
- the commerce order typespublic static CommerceOrderType create(long commerceOrderTypeId)
commerceOrderTypeId
- the primary key for the new commerce order typepublic static CommerceOrderType remove(long commerceOrderTypeId) throws NoSuchOrderTypeException
commerceOrderTypeId
- the primary key of the commerce order typeNoSuchOrderTypeException
- if a commerce order type with the primary key could not be foundpublic static CommerceOrderType updateImpl(CommerceOrderType commerceOrderType)
public static CommerceOrderType findByPrimaryKey(long commerceOrderTypeId) throws NoSuchOrderTypeException
NoSuchOrderTypeException
if it could not be found.commerceOrderTypeId
- the primary key of the commerce order typeNoSuchOrderTypeException
- if a commerce order type with the primary key could not be foundpublic static CommerceOrderType fetchByPrimaryKey(long commerceOrderTypeId)
null
if it could not be found.commerceOrderTypeId
- the primary key of the commerce order typenull
if a commerce order type with the primary key could not be foundpublic static java.util.List<CommerceOrderType> findAll()
public static java.util.List<CommerceOrderType> 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 CommerceOrderTypeModelImpl
.
start
- the lower bound of the range of commerce order typesend
- the upper bound of the range of commerce order types (not inclusive)public static java.util.List<CommerceOrderType> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> 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 CommerceOrderTypeModelImpl
.
start
- the lower bound of the range of commerce order typesend
- the upper bound of the range of commerce order types (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceOrderType> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> 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 CommerceOrderTypeModelImpl
.
start
- the lower bound of the range of commerce order typesend
- the upper bound of the range of commerce order types (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 CommerceOrderTypePersistence getPersistence()