Class CommerceOrderTypeUtil
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
- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
cacheResult
(CommerceOrderType commerceOrderType) Caches the commerce order type in the entity cache if it is enabled.static void
cacheResult
(List<CommerceOrderType> commerceOrderTypes) Caches the commerce order types in the entity cache if it is enabled.static void
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
countByCompanyId
(long companyId) Returns the number of commerce order types where companyId = ?.static int
countByERC_C
(String externalReferenceCode, long companyId) Returns the number of commerce order types where externalReferenceCode = ? and companyId = ?.static int
countByLtD_S
(Date displayDate, int status) Returns the number of commerce order types where displayDate < ? and status = ?.static int
countByLtE_S
(Date expirationDate, int status) Returns the number of commerce order types where expirationDate < ? and status = ?.static int
countByUuid
(String uuid) Returns the number of commerce order types where uuid = ?.static int
countByUuid_C
(String uuid, long companyId) Returns the number of commerce order types where uuid = ? and companyId = ?.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
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
fetchByERC_C
(String externalReferenceCode, long companyId) Returns the commerce order type where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found.static CommerceOrderType
fetchByERC_C
(String externalReferenceCode, long companyId, boolean useFinderCache) Returns the commerce order type where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found, optionally using the finder cache.static CommerceOrderType
fetchByLtD_S_First
(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
(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
(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
(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 returnsnull
if it could not be found.static Map<Serializable,
CommerceOrderType> fetchByPrimaryKeys
(Set<Serializable> primaryKeys) static CommerceOrderType
fetchByUuid_C_First
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator) Returns the first commerce order type in the ordered set where uuid = ? and companyId = ?.static CommerceOrderType
fetchByUuid_C_Last
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator) Returns the last commerce order type in the ordered set where uuid = ? and companyId = ?.static CommerceOrderType
fetchByUuid_First
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator) Returns the first commerce order type in the ordered set where uuid = ?.static CommerceOrderType
fetchByUuid_Last
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator) Returns the last commerce order type in the ordered set where uuid = ?.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
(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
(Date expirationDate, int status) Returns the number of commerce order types that the user has permission to view where expirationDate < ? and status = ?.static int
filterCountByUuid
(String uuid) Returns the number of commerce order types that the user has permission to view where uuid = ?.static int
filterCountByUuid_C
(String uuid, long companyId) Returns the number of commerce order types that the user has permission to view where uuid = ? and companyId = ?.static 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 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 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[]
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 List<CommerceOrderType>
filterFindByCompanyId
(long companyId) Returns all the commerce order types that the user has permission to view where companyId = ?.static 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 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[]
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 List<CommerceOrderType>
filterFindByLtD_S
(Date displayDate, int status) Returns all the commerce order types that the user has permission to view where displayDate < ? and status = ?.static List<CommerceOrderType>
filterFindByLtD_S
(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 List<CommerceOrderType>
filterFindByLtD_S
(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[]
filterFindByLtD_S_PrevAndNext
(long commerceOrderTypeId, 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 List<CommerceOrderType>
filterFindByLtE_S
(Date expirationDate, int status) Returns all the commerce order types that the user has permission to view where expirationDate < ? and status = ?.static List<CommerceOrderType>
filterFindByLtE_S
(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 List<CommerceOrderType>
filterFindByLtE_S
(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 CommerceOrderType[]
filterFindByLtE_S_PrevAndNext
(long commerceOrderTypeId, 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 List<CommerceOrderType>
filterFindByUuid
(String uuid) Returns all the commerce order types that the user has permission to view where uuid = ?.static List<CommerceOrderType>
filterFindByUuid
(String uuid, int start, int end) Returns a range of all the commerce order types that the user has permission to view where uuid = ?.static List<CommerceOrderType>
filterFindByUuid
(String uuid, 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 uuid = ?.static List<CommerceOrderType>
filterFindByUuid_C
(String uuid, long companyId) Returns all the commerce order types that the user has permission to view where uuid = ? and companyId = ?.static List<CommerceOrderType>
filterFindByUuid_C
(String uuid, long companyId, int start, int end) Returns a range of all the commerce order types that the user has permission to view where uuid = ? and companyId = ?.static List<CommerceOrderType>
filterFindByUuid_C
(String uuid, 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 uuid = ? and companyId = ?.static CommerceOrderType[]
filterFindByUuid_C_PrevAndNext
(long commerceOrderTypeId, String uuid, 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 uuid = ? and companyId = ?.static CommerceOrderType[]
filterFindByUuid_PrevAndNext
(long commerceOrderTypeId, String uuid, 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 uuid = ?.static List<CommerceOrderType>
findAll()
Returns all the commerce order types.static List<CommerceOrderType>
findAll
(int start, int end) Returns a range of all the commerce order types.static 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 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 List<CommerceOrderType>
findByC_A
(long companyId, boolean active) Returns all the commerce order types where companyId = ? and active = ?.static 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 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 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_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 List<CommerceOrderType>
findByCompanyId
(long companyId) Returns all the commerce order types where companyId = ?.static List<CommerceOrderType>
findByCompanyId
(long companyId, int start, int end) Returns a range of all the commerce order types where companyId = ?.static 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 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
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 CommerceOrderType
findByERC_C
(String externalReferenceCode, long companyId) Returns the commerce order type where externalReferenceCode = ? and companyId = ? or throws aNoSuchOrderTypeException
if it could not be found.static List<CommerceOrderType>
findByLtD_S
(Date displayDate, int status) Returns all the commerce order types where displayDate < ? and status = ?.static List<CommerceOrderType>
findByLtD_S
(Date displayDate, int status, int start, int end) Returns a range of all the commerce order types where displayDate < ? and status = ?.static List<CommerceOrderType>
findByLtD_S
(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 List<CommerceOrderType>
findByLtD_S
(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
findByLtD_S_First
(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
(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, 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 List<CommerceOrderType>
findByLtE_S
(Date expirationDate, int status) Returns all the commerce order types where expirationDate < ? and status = ?.static List<CommerceOrderType>
findByLtE_S
(Date expirationDate, int status, int start, int end) Returns a range of all the commerce order types where expirationDate < ? and status = ?.static List<CommerceOrderType>
findByLtE_S
(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 List<CommerceOrderType>
findByLtE_S
(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
findByLtE_S_First
(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
(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, 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 CommerceOrderType
findByPrimaryKey
(long commerceOrderTypeId) Returns the commerce order type with the primary key or throws aNoSuchOrderTypeException
if it could not be found.static List<CommerceOrderType>
findByUuid
(String uuid) Returns all the commerce order types where uuid = ?.static List<CommerceOrderType>
findByUuid
(String uuid, int start, int end) Returns a range of all the commerce order types where uuid = ?.static List<CommerceOrderType>
findByUuid
(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator) Returns an ordered range of all the commerce order types where uuid = ?.static List<CommerceOrderType>
findByUuid
(String uuid, 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 uuid = ?.static List<CommerceOrderType>
findByUuid_C
(String uuid, long companyId) Returns all the commerce order types where uuid = ? and companyId = ?.static List<CommerceOrderType>
findByUuid_C
(String uuid, long companyId, int start, int end) Returns a range of all the commerce order types where uuid = ? and companyId = ?.static List<CommerceOrderType>
findByUuid_C
(String uuid, 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 uuid = ? and companyId = ?.static List<CommerceOrderType>
findByUuid_C
(String uuid, 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 uuid = ? and companyId = ?.static CommerceOrderType
findByUuid_C_First
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator) Returns the first commerce order type in the ordered set where uuid = ? and companyId = ?.static CommerceOrderType
findByUuid_C_Last
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator) Returns the last commerce order type in the ordered set where uuid = ? and companyId = ?.static CommerceOrderType[]
findByUuid_C_PrevAndNext
(long commerceOrderTypeId, String uuid, 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 uuid = ? and companyId = ?.static CommerceOrderType
findByUuid_First
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator) Returns the first commerce order type in the ordered set where uuid = ?.static CommerceOrderType
findByUuid_Last
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator) Returns the last commerce order type in the ordered set where uuid = ?.static CommerceOrderType[]
findByUuid_PrevAndNext
(long commerceOrderTypeId, String uuid, 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 uuid = ?.static List<CommerceOrderType>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<CommerceOrderType>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static 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
static CommerceOrderType
remove
(long commerceOrderTypeId) Removes the commerce order type with the primary key from the database.static void
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 void
removeByCompanyId
(long companyId) Removes all the commerce order types where companyId = ? from the database.static CommerceOrderType
removeByERC_C
(String externalReferenceCode, long companyId) Removes the commerce order type where externalReferenceCode = ? and companyId = ? from the database.static void
removeByLtD_S
(Date displayDate, int status) Removes all the commerce order types where displayDate < ? and status = ? from the database.static void
removeByLtE_S
(Date expirationDate, int status) Removes all the commerce order types where expirationDate < ? and status = ? from the database.static void
removeByUuid
(String uuid) Removes all the commerce order types where uuid = ? from the database.static void
removeByUuid_C
(String uuid, long companyId) Removes all the commerce order types where uuid = ? and companyId = ? from the database.static void
setPersistence
(CommerceOrderTypePersistence persistence) static CommerceOrderType
update
(CommerceOrderType commerceOrderType) static CommerceOrderType
update
(CommerceOrderType commerceOrderType, com.liferay.portal.kernel.service.ServiceContext serviceContext) static CommerceOrderType
updateImpl
(CommerceOrderType commerceOrderType)
-
Constructor Details
-
CommerceOrderTypeUtil
public CommerceOrderTypeUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
BasePersistence.clearCache()
-
clearCache
- See Also:
-
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.countWithDynamicQuery(DynamicQuery)
-
fetchByPrimaryKeys
- See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<CommerceOrderType> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<CommerceOrderType> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<CommerceOrderType> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
- See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static CommerceOrderType update(CommerceOrderType commerceOrderType, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
findByUuid
Returns all the commerce order types where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the matching commerce order types
-
findByUuid
Returns a range of all the commerce order types 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 fromCommerceOrderTypeModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of commerce order typesend
- the upper bound of the range of commerce order types (not inclusive)- Returns:
- the range of matching commerce order types
-
findByUuid
public static List<CommerceOrderType> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator) Returns an ordered range of all the commerce order types 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 fromCommerceOrderTypeModelImpl
.- Parameters:
uuid
- the uuidstart
- 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 (optionallynull
)- Returns:
- the ordered range of matching commerce order types
-
findByUuid
public static List<CommerceOrderType> findByUuid(String uuid, 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 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 fromCommerceOrderTypeModelImpl
.- Parameters:
uuid
- the uuidstart
- 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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce order types
-
findByUuid_First
public static CommerceOrderType findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator) throws NoSuchOrderTypeException Returns the first commerce order type in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce order type
- Throws:
NoSuchOrderTypeException
- if a matching commerce order type could not be foundNoSuchOrderTypeException
-
fetchByUuid_First
public static CommerceOrderType fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator) Returns the first commerce order type in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce order type, or
null
if a matching commerce order type could not be found
-
findByUuid_Last
public static CommerceOrderType findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator) throws NoSuchOrderTypeException Returns the last commerce order type in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce order type
- Throws:
NoSuchOrderTypeException
- if a matching commerce order type could not be foundNoSuchOrderTypeException
-
fetchByUuid_Last
public static CommerceOrderType fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator) Returns the last commerce order type in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce order type, or
null
if a matching commerce order type could not be found
-
findByUuid_PrevAndNext
public static CommerceOrderType[] findByUuid_PrevAndNext(long commerceOrderTypeId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator) throws NoSuchOrderTypeException Returns the commerce order types before and after the current commerce order type in the ordered set where uuid = ?.- Parameters:
commerceOrderTypeId
- the primary key of the current commerce order typeuuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce order type
- Throws:
NoSuchOrderTypeException
- if a commerce order type with the primary key could not be foundNoSuchOrderTypeException
-
filterFindByUuid
Returns all the commerce order types that the user has permission to view where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the matching commerce order types that the user has permission to view
-
filterFindByUuid
Returns a range of all the commerce order types that the user has permission to view 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 fromCommerceOrderTypeModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of commerce order typesend
- the upper bound of the range of commerce order types (not inclusive)- Returns:
- the range of matching commerce order types that the user has permission to view
-
filterFindByUuid
public static List<CommerceOrderType> filterFindByUuid(String uuid, 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 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 fromCommerceOrderTypeModelImpl
.- Parameters:
uuid
- the uuidstart
- 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 (optionallynull
)- Returns:
- the ordered range of matching commerce order types that the user has permission to view
-
filterFindByUuid_PrevAndNext
public static CommerceOrderType[] filterFindByUuid_PrevAndNext(long commerceOrderTypeId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator) throws NoSuchOrderTypeException 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 uuid = ?.- Parameters:
commerceOrderTypeId
- the primary key of the current commerce order typeuuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce order type
- Throws:
NoSuchOrderTypeException
- if a commerce order type with the primary key could not be foundNoSuchOrderTypeException
-
removeByUuid
Removes all the commerce order types where uuid = ? from the database.- Parameters:
uuid
- the uuid
-
countByUuid
Returns the number of commerce order types where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the number of matching commerce order types
-
filterCountByUuid
Returns the number of commerce order types that the user has permission to view where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the number of matching commerce order types that the user has permission to view
-
findByUuid_C
Returns all the commerce order types where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the matching commerce order types
-
findByUuid_C
Returns a range of all the commerce order types 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 fromCommerceOrderTypeModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- 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)- Returns:
- the range of matching commerce order types
-
findByUuid_C
public static List<CommerceOrderType> findByUuid_C(String uuid, 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 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 fromCommerceOrderTypeModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- 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 (optionallynull
)- Returns:
- the ordered range of matching commerce order types
-
findByUuid_C
public static List<CommerceOrderType> findByUuid_C(String uuid, 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 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 fromCommerceOrderTypeModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- 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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce order types
-
findByUuid_C_First
public static CommerceOrderType findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator) throws NoSuchOrderTypeException Returns the first commerce order type in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce order type
- Throws:
NoSuchOrderTypeException
- if a matching commerce order type could not be foundNoSuchOrderTypeException
-
fetchByUuid_C_First
public static CommerceOrderType fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator) Returns the first commerce order type in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce order type, or
null
if a matching commerce order type could not be found
-
findByUuid_C_Last
public static CommerceOrderType findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator) throws NoSuchOrderTypeException Returns the last commerce order type 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 order type
- Throws:
NoSuchOrderTypeException
- if a matching commerce order type could not be foundNoSuchOrderTypeException
-
fetchByUuid_C_Last
public static CommerceOrderType fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator) Returns the last commerce order type 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 order type, or
null
if a matching commerce order type could not be found
-
findByUuid_C_PrevAndNext
public static CommerceOrderType[] findByUuid_C_PrevAndNext(long commerceOrderTypeId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator) throws NoSuchOrderTypeException Returns the commerce order types before and after the current commerce order type in the ordered set where uuid = ? and companyId = ?.- Parameters:
commerceOrderTypeId
- the primary key of the current commerce order typeuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce order type
- Throws:
NoSuchOrderTypeException
- if a commerce order type with the primary key could not be foundNoSuchOrderTypeException
-
filterFindByUuid_C
Returns all the commerce order types that the user has permission to view where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the matching commerce order types that the user has permission to view
-
filterFindByUuid_C
public static List<CommerceOrderType> filterFindByUuid_C(String uuid, long companyId, int start, int end) Returns a range of all the commerce order types that the user has permission to view 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 fromCommerceOrderTypeModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- 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)- Returns:
- the range of matching commerce order types that the user has permission to view
-
filterFindByUuid_C
public static List<CommerceOrderType> filterFindByUuid_C(String uuid, 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 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 fromCommerceOrderTypeModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- 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 (optionallynull
)- Returns:
- the ordered range of matching commerce order types that the user has permission to view
-
filterFindByUuid_C_PrevAndNext
public static CommerceOrderType[] filterFindByUuid_C_PrevAndNext(long commerceOrderTypeId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator) throws NoSuchOrderTypeException 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 uuid = ? and companyId = ?.- Parameters:
commerceOrderTypeId
- the primary key of the current commerce order typeuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce order type
- Throws:
NoSuchOrderTypeException
- if a commerce order type with the primary key could not be foundNoSuchOrderTypeException
-
removeByUuid_C
Removes all the commerce order types where uuid = ? and companyId = ? from the database.- Parameters:
uuid
- the uuidcompanyId
- the company ID
-
countByUuid_C
Returns the number of commerce order types where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the number of matching commerce order types
-
filterCountByUuid_C
Returns the number of commerce order types that the user has permission to view where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the number of matching commerce order types that the user has permission to view
-
findByCompanyId
Returns all the commerce order types where companyId = ?.- Parameters:
companyId
- the company ID- Returns:
- the matching commerce order types
-
findByCompanyId
Returns a range of all the commerce order types where 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 fromCommerceOrderTypeModelImpl
.- Parameters:
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)- Returns:
- the range of matching commerce order types
-
findByCompanyId
public static 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 = ?.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 fromCommerceOrderTypeModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching commerce order types
-
findByCompanyId
public static 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 = ?.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 fromCommerceOrderTypeModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce order types
-
findByCompanyId_First
public static CommerceOrderType findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator) throws NoSuchOrderTypeException Returns the first commerce order type in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce order type
- Throws:
NoSuchOrderTypeException
- if a matching commerce order type could not be foundNoSuchOrderTypeException
-
fetchByCompanyId_First
public 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 = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce order type, or
null
if a matching commerce order type could not be found
-
findByCompanyId_Last
public static CommerceOrderType findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator) throws NoSuchOrderTypeException Returns the last commerce order type in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce order type
- Throws:
NoSuchOrderTypeException
- if a matching commerce order type could not be foundNoSuchOrderTypeException
-
fetchByCompanyId_Last
public 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 = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce order type, or
null
if a matching commerce order type could not be found
-
findByCompanyId_PrevAndNext
public static CommerceOrderType[] findByCompanyId_PrevAndNext(long commerceOrderTypeId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator) throws NoSuchOrderTypeException Returns the commerce order types before and after the current commerce order type in the ordered set where companyId = ?.- Parameters:
commerceOrderTypeId
- the primary key of the current commerce order typecompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce order type
- Throws:
NoSuchOrderTypeException
- if a commerce order type with the primary key could not be foundNoSuchOrderTypeException
-
filterFindByCompanyId
Returns all the commerce order types that the user has permission to view where companyId = ?.- Parameters:
companyId
- the company ID- Returns:
- the matching commerce order types that the user has permission to view
-
filterFindByCompanyId
Returns a range of all the commerce order types that the user has permission to view where 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 fromCommerceOrderTypeModelImpl
.- Parameters:
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)- Returns:
- the range of matching commerce order types that the user has permission to view
-
filterFindByCompanyId
public static 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 = ?.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 fromCommerceOrderTypeModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching commerce order types that the user has permission to view
-
filterFindByCompanyId_PrevAndNext
public static CommerceOrderType[] filterFindByCompanyId_PrevAndNext(long commerceOrderTypeId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator) throws NoSuchOrderTypeException 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 = ?.- Parameters:
commerceOrderTypeId
- the primary key of the current commerce order typecompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce order type
- Throws:
NoSuchOrderTypeException
- if a commerce order type with the primary key could not be foundNoSuchOrderTypeException
-
removeByCompanyId
public static void removeByCompanyId(long companyId) Removes all the commerce order types where companyId = ? from the database.- Parameters:
companyId
- the company ID
-
countByCompanyId
public static int countByCompanyId(long companyId) Returns the number of commerce order types where companyId = ?.- Parameters:
companyId
- the company ID- Returns:
- the number of matching commerce order types
-
filterCountByCompanyId
public static int filterCountByCompanyId(long companyId) Returns the number of commerce order types that the user has permission to view where companyId = ?.- Parameters:
companyId
- the company ID- Returns:
- the number of matching commerce order types that the user has permission to view
-
findByC_A
Returns all the commerce order types where companyId = ? and active = ?.- Parameters:
companyId
- the company IDactive
- the active- Returns:
- the matching commerce order types
-
findByC_A
Returns a range of all the commerce order types where companyId = ? and active = ?.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 fromCommerceOrderTypeModelImpl
.- Parameters:
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)- Returns:
- the range of matching commerce order types
-
findByC_A
public static 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 = ?.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 fromCommerceOrderTypeModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching commerce order types
-
findByC_A
public static 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 = ?.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 fromCommerceOrderTypeModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce order types
-
findByC_A_First
public static CommerceOrderType findByC_A_First(long companyId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator) throws NoSuchOrderTypeException Returns the first commerce order type in the ordered set where companyId = ? and active = ?.- Parameters:
companyId
- the company IDactive
- the activeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce order type
- Throws:
NoSuchOrderTypeException
- if a matching commerce order type could not be foundNoSuchOrderTypeException
-
fetchByC_A_First
public 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 = ?.- Parameters:
companyId
- the company IDactive
- the activeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce order type, or
null
if a matching commerce order type could not be found
-
findByC_A_Last
public static CommerceOrderType findByC_A_Last(long companyId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator) throws NoSuchOrderTypeException Returns the last commerce order type in the ordered set where companyId = ? and active = ?.- Parameters:
companyId
- the company IDactive
- the activeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce order type
- Throws:
NoSuchOrderTypeException
- if a matching commerce order type could not be foundNoSuchOrderTypeException
-
fetchByC_A_Last
public 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 = ?.- Parameters:
companyId
- the company IDactive
- the activeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce order type, or
null
if a matching commerce order type could not be found
-
findByC_A_PrevAndNext
public static CommerceOrderType[] findByC_A_PrevAndNext(long commerceOrderTypeId, long companyId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator) throws NoSuchOrderTypeException Returns the commerce order types before and after the current commerce order type in the ordered set where companyId = ? and active = ?.- Parameters:
commerceOrderTypeId
- the primary key of the current commerce order typecompanyId
- the company IDactive
- the activeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce order type
- Throws:
NoSuchOrderTypeException
- if a commerce order type with the primary key could not be foundNoSuchOrderTypeException
-
filterFindByC_A
Returns all the commerce order types that the user has permission to view where companyId = ? and active = ?.- Parameters:
companyId
- the company IDactive
- the active- Returns:
- the matching commerce order types that the user has permission to view
-
filterFindByC_A
public static 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 = ?.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 fromCommerceOrderTypeModelImpl
.- Parameters:
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)- Returns:
- the range of matching commerce order types that the user has permission to view
-
filterFindByC_A
public static 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 = ?.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 fromCommerceOrderTypeModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching commerce order types that the user has permission to view
-
filterFindByC_A_PrevAndNext
public static CommerceOrderType[] filterFindByC_A_PrevAndNext(long commerceOrderTypeId, long companyId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator) throws NoSuchOrderTypeException 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 = ?.- Parameters:
commerceOrderTypeId
- the primary key of the current commerce order typecompanyId
- the company IDactive
- the activeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce order type
- Throws:
NoSuchOrderTypeException
- if a commerce order type with the primary key could not be foundNoSuchOrderTypeException
-
removeByC_A
public static void removeByC_A(long companyId, boolean active) Removes all the commerce order types where companyId = ? and active = ? from the database.- Parameters:
companyId
- the company IDactive
- the active
-
countByC_A
public static int countByC_A(long companyId, boolean active) Returns the number of commerce order types where companyId = ? and active = ?.- Parameters:
companyId
- the company IDactive
- the active- Returns:
- the number of matching commerce order types
-
filterCountByC_A
public 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 = ?.- Parameters:
companyId
- the company IDactive
- the active- Returns:
- the number of matching commerce order types that the user has permission to view
-
findByLtD_S
Returns all the commerce order types where displayDate < ? and status = ?.- Parameters:
displayDate
- the display datestatus
- the status- Returns:
- the matching commerce order types
-
findByLtD_S
Returns a range of all the commerce order types where displayDate < ? and status = ?.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 fromCommerceOrderTypeModelImpl
.- Parameters:
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)- Returns:
- the range of matching commerce order types
-
findByLtD_S
public static List<CommerceOrderType> findByLtD_S(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 = ?.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 fromCommerceOrderTypeModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching commerce order types
-
findByLtD_S
public static List<CommerceOrderType> findByLtD_S(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 = ?.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 fromCommerceOrderTypeModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce order types
-
findByLtD_S_First
public static CommerceOrderType findByLtD_S_First(Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator) throws NoSuchOrderTypeException Returns the first commerce order type in the ordered set where displayDate < ? and status = ?.- Parameters:
displayDate
- the display datestatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce order type
- Throws:
NoSuchOrderTypeException
- if a matching commerce order type could not be foundNoSuchOrderTypeException
-
fetchByLtD_S_First
public static CommerceOrderType fetchByLtD_S_First(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 = ?.- Parameters:
displayDate
- the display datestatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce order type, or
null
if a matching commerce order type could not be found
-
findByLtD_S_Last
public static CommerceOrderType findByLtD_S_Last(Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator) throws NoSuchOrderTypeException Returns the last commerce order type in the ordered set where displayDate < ? and status = ?.- Parameters:
displayDate
- the display datestatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce order type
- Throws:
NoSuchOrderTypeException
- if a matching commerce order type could not be foundNoSuchOrderTypeException
-
fetchByLtD_S_Last
public static CommerceOrderType fetchByLtD_S_Last(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 = ?.- Parameters:
displayDate
- the display datestatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce order type, or
null
if a matching commerce order type could not be found
-
findByLtD_S_PrevAndNext
public static CommerceOrderType[] findByLtD_S_PrevAndNext(long commerceOrderTypeId, Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator) throws NoSuchOrderTypeException Returns the commerce order types before and after the current commerce order type in the ordered set where displayDate < ? and status = ?.- Parameters:
commerceOrderTypeId
- the primary key of the current commerce order typedisplayDate
- the display datestatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce order type
- Throws:
NoSuchOrderTypeException
- if a commerce order type with the primary key could not be foundNoSuchOrderTypeException
-
filterFindByLtD_S
Returns all the commerce order types that the user has permission to view where displayDate < ? and status = ?.- Parameters:
displayDate
- the display datestatus
- the status- Returns:
- the matching commerce order types that the user has permission to view
-
filterFindByLtD_S
public static List<CommerceOrderType> filterFindByLtD_S(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 = ?.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 fromCommerceOrderTypeModelImpl
.- Parameters:
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)- Returns:
- the range of matching commerce order types that the user has permission to view
-
filterFindByLtD_S
public static List<CommerceOrderType> filterFindByLtD_S(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 = ?.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 fromCommerceOrderTypeModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching commerce order types that the user has permission to view
-
filterFindByLtD_S_PrevAndNext
public static CommerceOrderType[] filterFindByLtD_S_PrevAndNext(long commerceOrderTypeId, Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator) throws NoSuchOrderTypeException 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 = ?.- Parameters:
commerceOrderTypeId
- the primary key of the current commerce order typedisplayDate
- the display datestatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce order type
- Throws:
NoSuchOrderTypeException
- if a commerce order type with the primary key could not be foundNoSuchOrderTypeException
-
removeByLtD_S
Removes all the commerce order types where displayDate < ? and status = ? from the database.- Parameters:
displayDate
- the display datestatus
- the status
-
countByLtD_S
Returns the number of commerce order types where displayDate < ? and status = ?.- Parameters:
displayDate
- the display datestatus
- the status- Returns:
- the number of matching commerce order types
-
filterCountByLtD_S
Returns the number of commerce order types that the user has permission to view where displayDate < ? and status = ?.- Parameters:
displayDate
- the display datestatus
- the status- Returns:
- the number of matching commerce order types that the user has permission to view
-
findByLtE_S
Returns all the commerce order types where expirationDate < ? and status = ?.- Parameters:
expirationDate
- the expiration datestatus
- the status- Returns:
- the matching commerce order types
-
findByLtE_S
public static List<CommerceOrderType> findByLtE_S(Date expirationDate, int status, int start, int end) Returns a range of all the commerce order types where expirationDate < ? and status = ?.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 fromCommerceOrderTypeModelImpl
.- Parameters:
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)- Returns:
- the range of matching commerce order types
-
findByLtE_S
public static List<CommerceOrderType> findByLtE_S(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 = ?.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 fromCommerceOrderTypeModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching commerce order types
-
findByLtE_S
public static List<CommerceOrderType> findByLtE_S(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 = ?.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 fromCommerceOrderTypeModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce order types
-
findByLtE_S_First
public static CommerceOrderType findByLtE_S_First(Date expirationDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator) throws NoSuchOrderTypeException Returns the first commerce order type in the ordered set where expirationDate < ? and status = ?.- Parameters:
expirationDate
- the expiration datestatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce order type
- Throws:
NoSuchOrderTypeException
- if a matching commerce order type could not be foundNoSuchOrderTypeException
-
fetchByLtE_S_First
public static CommerceOrderType fetchByLtE_S_First(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 = ?.- Parameters:
expirationDate
- the expiration datestatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce order type, or
null
if a matching commerce order type could not be found
-
findByLtE_S_Last
public static CommerceOrderType findByLtE_S_Last(Date expirationDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator) throws NoSuchOrderTypeException Returns the last commerce order type in the ordered set where expirationDate < ? and status = ?.- Parameters:
expirationDate
- the expiration datestatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce order type
- Throws:
NoSuchOrderTypeException
- if a matching commerce order type could not be foundNoSuchOrderTypeException
-
fetchByLtE_S_Last
public static CommerceOrderType fetchByLtE_S_Last(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 = ?.- Parameters:
expirationDate
- the expiration datestatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce order type, or
null
if a matching commerce order type could not be found
-
findByLtE_S_PrevAndNext
public static CommerceOrderType[] findByLtE_S_PrevAndNext(long commerceOrderTypeId, Date expirationDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator) throws NoSuchOrderTypeException Returns the commerce order types before and after the current commerce order type in the ordered set where expirationDate < ? and status = ?.- Parameters:
commerceOrderTypeId
- the primary key of the current commerce order typeexpirationDate
- the expiration datestatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce order type
- Throws:
NoSuchOrderTypeException
- if a commerce order type with the primary key could not be foundNoSuchOrderTypeException
-
filterFindByLtE_S
Returns all the commerce order types that the user has permission to view where expirationDate < ? and status = ?.- Parameters:
expirationDate
- the expiration datestatus
- the status- Returns:
- the matching commerce order types that the user has permission to view
-
filterFindByLtE_S
public static List<CommerceOrderType> filterFindByLtE_S(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 = ?.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 fromCommerceOrderTypeModelImpl
.- Parameters:
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)- Returns:
- the range of matching commerce order types that the user has permission to view
-
filterFindByLtE_S
public static List<CommerceOrderType> filterFindByLtE_S(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 = ?.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 fromCommerceOrderTypeModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching commerce order types that the user has permission to view
-
filterFindByLtE_S_PrevAndNext
public static CommerceOrderType[] filterFindByLtE_S_PrevAndNext(long commerceOrderTypeId, Date expirationDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderType> orderByComparator) throws NoSuchOrderTypeException 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 = ?.- Parameters:
commerceOrderTypeId
- the primary key of the current commerce order typeexpirationDate
- the expiration datestatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce order type
- Throws:
NoSuchOrderTypeException
- if a commerce order type with the primary key could not be foundNoSuchOrderTypeException
-
removeByLtE_S
Removes all the commerce order types where expirationDate < ? and status = ? from the database.- Parameters:
expirationDate
- the expiration datestatus
- the status
-
countByLtE_S
Returns the number of commerce order types where expirationDate < ? and status = ?.- Parameters:
expirationDate
- the expiration datestatus
- the status- Returns:
- the number of matching commerce order types
-
filterCountByLtE_S
Returns the number of commerce order types that the user has permission to view where expirationDate < ? and status = ?.- Parameters:
expirationDate
- the expiration datestatus
- the status- Returns:
- the number of matching commerce order types that the user has permission to view
-
findByERC_C
public static CommerceOrderType findByERC_C(String externalReferenceCode, long companyId) throws NoSuchOrderTypeException Returns the commerce order type where externalReferenceCode = ? and companyId = ? or throws aNoSuchOrderTypeException
if it could not be found.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the matching commerce order type
- Throws:
NoSuchOrderTypeException
- if a matching commerce order type could not be foundNoSuchOrderTypeException
-
fetchByERC_C
Returns the commerce order type where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the matching commerce order type, or
null
if a matching commerce order type could not be found
-
fetchByERC_C
public static CommerceOrderType fetchByERC_C(String externalReferenceCode, long companyId, boolean useFinderCache) Returns the commerce order type where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company IDuseFinderCache
- whether to use the finder cache- Returns:
- the matching commerce order type, or
null
if a matching commerce order type could not be found
-
removeByERC_C
public static CommerceOrderType removeByERC_C(String externalReferenceCode, long companyId) throws NoSuchOrderTypeException Removes the commerce order type where externalReferenceCode = ? and companyId = ? from the database.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the commerce order type that was removed
- Throws:
NoSuchOrderTypeException
-
countByERC_C
Returns the number of commerce order types where externalReferenceCode = ? and companyId = ?.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the number of matching commerce order types
-
cacheResult
Caches the commerce order type in the entity cache if it is enabled.- Parameters:
commerceOrderType
- the commerce order type
-
cacheResult
Caches the commerce order types in the entity cache if it is enabled.- Parameters:
commerceOrderTypes
- the commerce order types
-
create
Creates a new commerce order type with the primary key. Does not add the commerce order type to the database.- Parameters:
commerceOrderTypeId
- the primary key for the new commerce order type- Returns:
- the new commerce order type
-
remove
Removes the commerce order type with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
commerceOrderTypeId
- the primary key of the commerce order type- Returns:
- the commerce order type that was removed
- Throws:
NoSuchOrderTypeException
- if a commerce order type with the primary key could not be foundNoSuchOrderTypeException
-
updateImpl
-
findByPrimaryKey
public static CommerceOrderType findByPrimaryKey(long commerceOrderTypeId) throws NoSuchOrderTypeException Returns the commerce order type with the primary key or throws aNoSuchOrderTypeException
if it could not be found.- Parameters:
commerceOrderTypeId
- the primary key of the commerce order type- Returns:
- the commerce order type
- Throws:
NoSuchOrderTypeException
- if a commerce order type with the primary key could not be foundNoSuchOrderTypeException
-
fetchByPrimaryKey
Returns the commerce order type with the primary key or returnsnull
if it could not be found.- Parameters:
commerceOrderTypeId
- the primary key of the commerce order type- Returns:
- the commerce order type, or
null
if a commerce order type with the primary key could not be found
-
findAll
Returns all the commerce order types.- Returns:
- the commerce order types
-
findAll
Returns a range of all the commerce order types.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 fromCommerceOrderTypeModelImpl
.- Parameters:
start
- the lower bound of the range of commerce order typesend
- the upper bound of the range of commerce order types (not inclusive)- Returns:
- the range of commerce order types
-
findAll
public static 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.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 fromCommerceOrderTypeModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of commerce order types
-
findAll
public static 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.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 fromCommerceOrderTypeModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of commerce order types
-
removeAll
public static void removeAll()Removes all the commerce order types from the database. -
countAll
public static int countAll()Returns the number of commerce order types.- Returns:
- the number of commerce order types
-
getPersistence
-
setPersistence
-