Interface CPDefinitionPersistence
- All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<CPDefinition>,com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<CPDefinition>
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Method Summary
Modifier and TypeMethodDescriptionintcountByC_S(long CProductId, int status) Returns the number of cp definitions where CProductId = ? and status = ?.intcountByC_V(long CProductId, int version) Returns the number of cp definitions where CProductId = ? and version = ?.intcountByCompanyId(long companyId) Returns the number of cp definitions where companyId = ?.intcountByCProductId(long CProductId) Returns the number of cp definitions where CProductId = ?.intcountByCPTaxCategoryId(long CPTaxCategoryId) Returns the number of cp definitions where CPTaxCategoryId = ?.intcountByG_S(long groupId, int status) Returns the number of cp definitions where groupId = ? and status = ?.intcountByG_SE(long groupId, boolean subscriptionEnabled) Returns the number of cp definitions where groupId = ? and subscriptionEnabled = ?.intcountByGroupId(long groupId) Returns the number of cp definitions where groupId = ?.intcountByLtD_S(Date displayDate, int status) Returns the number of cp definitions where displayDate < ? and status = ?.intcountByUuid(String uuid) Returns the number of cp definitions where uuid = ?.intcountByUuid_C(String uuid, long companyId) Returns the number of cp definitions where uuid = ? and companyId = ?.intcountByUUID_G(String uuid, long groupId) Returns the number of cp definitions where uuid = ? and groupId = ?.create(long CPDefinitionId) Creates a new cp definition with the primary key.fetchByC_S_First(long CProductId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns the first cp definition in the ordered set where CProductId = ? and status = ?.default CPDefinitionfetchByC_V(long CProductId, int version) Returns the cp definition where CProductId = ? and version = ? or returnsnullif it could not be found.fetchByC_V(long CProductId, int version, boolean useFinderCache) Returns the cp definition where CProductId = ? and version = ? or returnsnullif it could not be found, optionally using the finder cache.fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns the first cp definition in the ordered set where companyId = ?.fetchByCProductId_First(long CProductId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns the first cp definition in the ordered set where CProductId = ?.fetchByCPTaxCategoryId_First(long CPTaxCategoryId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns the first cp definition in the ordered set where CPTaxCategoryId = ?.fetchByG_S_First(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns the first cp definition in the ordered set where groupId = ? and status = ?.fetchByG_SE_First(long groupId, boolean subscriptionEnabled, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns the first cp definition in the ordered set where groupId = ? and subscriptionEnabled = ?.fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns the first cp definition in the ordered set where groupId = ?.fetchByLtD_S_First(Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns the first cp definition in the ordered set where displayDate < ? and status = ?.fetchByPrimaryKey(long CPDefinitionId) Returns the cp definition with the primary key or returnsnullif it could not be found.fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns the first cp definition in the ordered set where uuid = ? and companyId = ?.fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns the first cp definition in the ordered set where uuid = ?.default CPDefinitionfetchByUUID_G(String uuid, long groupId) Returns the cp definition where uuid = ? and groupId = ? or returnsnullif it could not be found.fetchByUUID_G(String uuid, long groupId, boolean useFinderCache) Returns the cp definition where uuid = ? and groupId = ? or returnsnullif it could not be found, optionally using the finder cache.intfilterCountByG_S(long groupId, int status) Returns the number of cp definitions that the user has permission to view where groupId = ? and status = ?.intfilterCountByG_SE(long groupId, boolean subscriptionEnabled) Returns the number of cp definitions that the user has permission to view where groupId = ? and subscriptionEnabled = ?.intfilterCountByGroupId(long groupId) Returns the number of cp definitions that the user has permission to view where groupId = ?.default List<CPDefinition> filterFindByG_S(long groupId, int status) Returns all the cp definitions that the user has permission to view where groupId = ? and status = ?.default List<CPDefinition> filterFindByG_S(long groupId, int status, int start, int end) Returns a range of all the cp definitions that the user has permission to view where groupId = ? and status = ?.filterFindByG_S(long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns an ordered range of all the cp definitions that the user has permissions to view where groupId = ? and status = ?.default List<CPDefinition> filterFindByG_SE(long groupId, boolean subscriptionEnabled) Returns all the cp definitions that the user has permission to view where groupId = ? and subscriptionEnabled = ?.default List<CPDefinition> filterFindByG_SE(long groupId, boolean subscriptionEnabled, int start, int end) Returns a range of all the cp definitions that the user has permission to view where groupId = ? and subscriptionEnabled = ?.filterFindByG_SE(long groupId, boolean subscriptionEnabled, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns an ordered range of all the cp definitions that the user has permissions to view where groupId = ? and subscriptionEnabled = ?.default List<CPDefinition> filterFindByGroupId(long groupId) Returns all the cp definitions that the user has permission to view where groupId = ?.default List<CPDefinition> filterFindByGroupId(long groupId, int start, int end) Returns a range of all the cp definitions that the user has permission to view where groupId = ?.filterFindByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns an ordered range of all the cp definitions that the user has permissions to view where groupId = ?.default List<CPDefinition> findByC_S(long CProductId, int status) Returns all the cp definitions where CProductId = ? and status = ?.default List<CPDefinition> findByC_S(long CProductId, int status, int start, int end) Returns a range of all the cp definitions where CProductId = ? and status = ?.default List<CPDefinition> findByC_S(long CProductId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns an ordered range of all the cp definitions where CProductId = ? and status = ?.findByC_S(long CProductId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp definitions where CProductId = ? and status = ?.findByC_S_First(long CProductId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns the first cp definition in the ordered set where CProductId = ? and status = ?.findByC_V(long CProductId, int version) Returns the cp definition where CProductId = ? and version = ? or throws aNoSuchCPDefinitionExceptionif it could not be found.default List<CPDefinition> findByCompanyId(long companyId) Returns all the cp definitions where companyId = ?.default List<CPDefinition> findByCompanyId(long companyId, int start, int end) Returns a range of all the cp definitions where companyId = ?.default List<CPDefinition> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns an ordered range of all the cp definitions where companyId = ?.findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp definitions where companyId = ?.findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns the first cp definition in the ordered set where companyId = ?.default List<CPDefinition> findByCProductId(long CProductId) Returns all the cp definitions where CProductId = ?.default List<CPDefinition> findByCProductId(long CProductId, int start, int end) Returns a range of all the cp definitions where CProductId = ?.default List<CPDefinition> findByCProductId(long CProductId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns an ordered range of all the cp definitions where CProductId = ?.findByCProductId(long CProductId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp definitions where CProductId = ?.findByCProductId_First(long CProductId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns the first cp definition in the ordered set where CProductId = ?.default List<CPDefinition> findByCPTaxCategoryId(long CPTaxCategoryId) Returns all the cp definitions where CPTaxCategoryId = ?.default List<CPDefinition> findByCPTaxCategoryId(long CPTaxCategoryId, int start, int end) Returns a range of all the cp definitions where CPTaxCategoryId = ?.default List<CPDefinition> findByCPTaxCategoryId(long CPTaxCategoryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns an ordered range of all the cp definitions where CPTaxCategoryId = ?.findByCPTaxCategoryId(long CPTaxCategoryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp definitions where CPTaxCategoryId = ?.findByCPTaxCategoryId_First(long CPTaxCategoryId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns the first cp definition in the ordered set where CPTaxCategoryId = ?.default List<CPDefinition> findByG_S(long groupId, int status) Returns all the cp definitions where groupId = ? and status = ?.default List<CPDefinition> findByG_S(long groupId, int status, int start, int end) Returns a range of all the cp definitions where groupId = ? and status = ?.default List<CPDefinition> findByG_S(long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns an ordered range of all the cp definitions where groupId = ? and status = ?.findByG_S(long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp definitions where groupId = ? and status = ?.findByG_S_First(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns the first cp definition in the ordered set where groupId = ? and status = ?.default List<CPDefinition> findByG_SE(long groupId, boolean subscriptionEnabled) Returns all the cp definitions where groupId = ? and subscriptionEnabled = ?.default List<CPDefinition> findByG_SE(long groupId, boolean subscriptionEnabled, int start, int end) Returns a range of all the cp definitions where groupId = ? and subscriptionEnabled = ?.default List<CPDefinition> findByG_SE(long groupId, boolean subscriptionEnabled, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns an ordered range of all the cp definitions where groupId = ? and subscriptionEnabled = ?.findByG_SE(long groupId, boolean subscriptionEnabled, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp definitions where groupId = ? and subscriptionEnabled = ?.findByG_SE_First(long groupId, boolean subscriptionEnabled, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns the first cp definition in the ordered set where groupId = ? and subscriptionEnabled = ?.default List<CPDefinition> findByGroupId(long groupId) Returns all the cp definitions where groupId = ?.default List<CPDefinition> findByGroupId(long groupId, int start, int end) Returns a range of all the cp definitions where groupId = ?.default List<CPDefinition> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns an ordered range of all the cp definitions where groupId = ?.findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp definitions where groupId = ?.findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns the first cp definition in the ordered set where groupId = ?.findByLtD_S(Date displayDate, int status) Returns all the cp definitions where displayDate < ? and status = ?.findByLtD_S(Date displayDate, int status, int start, int end) Returns a range of all the cp definitions where displayDate < ? and status = ?.findByLtD_S(Date displayDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns an ordered range of all the cp definitions where displayDate < ? and status = ?.findByLtD_S(Date displayDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp definitions where displayDate < ? and status = ?.findByLtD_S_First(Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns the first cp definition in the ordered set where displayDate < ? and status = ?.findByPrimaryKey(long CPDefinitionId) Returns the cp definition with the primary key or throws aNoSuchCPDefinitionExceptionif it could not be found.default List<CPDefinition> findByUuid(String uuid) Returns all the cp definitions where uuid = ?.default List<CPDefinition> findByUuid(String uuid, int start, int end) Returns a range of all the cp definitions where uuid = ?.default List<CPDefinition> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns an ordered range of all the cp definitions where uuid = ?.findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp definitions where uuid = ?.default List<CPDefinition> findByUuid_C(String uuid, long companyId) Returns all the cp definitions where uuid = ? and companyId = ?.default List<CPDefinition> findByUuid_C(String uuid, long companyId, int start, int end) Returns a range of all the cp definitions where uuid = ? and companyId = ?.default List<CPDefinition> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns an ordered range of all the cp definitions where uuid = ? and companyId = ?.findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp definitions where uuid = ? and companyId = ?.findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns the first cp definition in the ordered set where uuid = ? and companyId = ?.findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns the first cp definition in the ordered set where uuid = ?.findByUUID_G(String uuid, long groupId) Returns the cp definition where uuid = ? and groupId = ? or throws aNoSuchCPDefinitionExceptionif it could not be found.remove(long CPDefinitionId) Removes the cp definition with the primary key from the database.voidremoveByC_S(long CProductId, int status) Removes all the cp definitions where CProductId = ? and status = ? from the database.removeByC_V(long CProductId, int version) Removes the cp definition where CProductId = ? and version = ? from the database.voidremoveByCompanyId(long companyId) Removes all the cp definitions where companyId = ? from the database.voidremoveByCProductId(long CProductId) Removes all the cp definitions where CProductId = ? from the database.voidremoveByCPTaxCategoryId(long CPTaxCategoryId) Removes all the cp definitions where CPTaxCategoryId = ? from the database.voidremoveByG_S(long groupId, int status) Removes all the cp definitions where groupId = ? and status = ? from the database.voidremoveByG_SE(long groupId, boolean subscriptionEnabled) Removes all the cp definitions where groupId = ? and subscriptionEnabled = ? from the database.voidremoveByGroupId(long groupId) Removes all the cp definitions where groupId = ? from the database.voidremoveByLtD_S(Date displayDate, int status) Removes all the cp definitions where displayDate < ? and status = ? from the database.voidremoveByUuid(String uuid) Removes all the cp definitions where uuid = ? from the database.voidremoveByUuid_C(String uuid, long companyId) Removes all the cp definitions where uuid = ? and companyId = ? from the database.removeByUUID_G(String uuid, long groupId) Removes the cp definition where uuid = ? and groupId = ? from the database.updateImpl(CPDefinition cpDefinition) Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence
cacheResult, cacheResult, clearCache, clearCache, clearCache, clearCache, closeSession, countAll, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQuery, dslQueryCount, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findAll, findAll, findAll, findAll, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, reassociateIfAbsent, registerListener, remove, remove, removeAll, removeByFunction, setDataSource, unregisterListener, update, updateMethods inherited from interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence
getCTColumnNames, getMappingTableNames, getTableColumnsMap, getTableName, getUniqueIndexColumnNames
-
Method Details
-
findByUuid
List<CPDefinition> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp definitions where uuid = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.product.model.impl.CPDefinitionModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of cp definitionsend- the upper bound of the range of cp definitions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching cp definitions
-
findByUuid_First
CPDefinition findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException Returns the first cp definition in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp definition
- Throws:
NoSuchCPDefinitionException- if a matching cp definition could not be found
-
fetchByUuid_First
CPDefinition fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns the first cp definition in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp definition, or
nullif a matching cp definition could not be found
-
removeByUuid
Removes all the cp definitions where uuid = ? from the database.- Parameters:
uuid- the uuid
-
countByUuid
Returns the number of cp definitions where uuid = ?.- Parameters:
uuid- the uuid- Returns:
- the number of matching cp definitions
-
findByUUID_G
Returns the cp definition where uuid = ? and groupId = ? or throws aNoSuchCPDefinitionExceptionif it could not be found.- Parameters:
uuid- the uuidgroupId- the group ID- Returns:
- the matching cp definition
- Throws:
NoSuchCPDefinitionException- if a matching cp definition could not be found
-
fetchByUUID_G
Returns the cp definition where uuid = ? and groupId = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
uuid- the uuidgroupId- the group IDuseFinderCache- whether to use the finder cache- Returns:
- the matching cp definition, or
nullif a matching cp definition could not be found
-
removeByUUID_G
Removes the cp definition where uuid = ? and groupId = ? from the database.- Parameters:
uuid- the uuidgroupId- the group ID- Returns:
- the cp definition that was removed
- Throws:
NoSuchCPDefinitionException
-
countByUUID_G
Returns the number of cp definitions where uuid = ? and groupId = ?.- Parameters:
uuid- the uuidgroupId- the group ID- Returns:
- the number of matching cp definitions
-
findByUuid_C
List<CPDefinition> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp definitions where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.product.model.impl.CPDefinitionModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of cp definitionsend- the upper bound of the range of cp definitions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching cp definitions
-
findByUuid_C_First
CPDefinition findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException Returns the first cp definition 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 cp definition
- Throws:
NoSuchCPDefinitionException- if a matching cp definition could not be found
-
fetchByUuid_C_First
CPDefinition fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns the first cp definition 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 cp definition, or
nullif a matching cp definition could not be found
-
removeByUuid_C
Removes all the cp definitions where uuid = ? and companyId = ? from the database.- Parameters:
uuid- the uuidcompanyId- the company ID
-
countByUuid_C
Returns the number of cp definitions where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the number of matching cp definitions
-
findByGroupId
List<CPDefinition> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp definitions where groupId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.product.model.impl.CPDefinitionModelImpl.- Parameters:
groupId- the group IDstart- the lower bound of the range of cp definitionsend- the upper bound of the range of cp definitions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching cp definitions
-
findByGroupId_First
CPDefinition findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException Returns the first cp definition in the ordered set where groupId = ?.- Parameters:
groupId- the group IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp definition
- Throws:
NoSuchCPDefinitionException- if a matching cp definition could not be found
-
fetchByGroupId_First
CPDefinition fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns the first cp definition in the ordered set where groupId = ?.- Parameters:
groupId- the group IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp definition, or
nullif a matching cp definition could not be found
-
filterFindByGroupId
List<CPDefinition> filterFindByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns an ordered range of all the cp definitions that the user has permissions to view where groupId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.product.model.impl.CPDefinitionModelImpl.- Parameters:
groupId- the group IDstart- the lower bound of the range of cp definitionsend- the upper bound of the range of cp definitions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching cp definitions that the user has permission to view
-
removeByGroupId
void removeByGroupId(long groupId) Removes all the cp definitions where groupId = ? from the database.- Parameters:
groupId- the group ID
-
countByGroupId
int countByGroupId(long groupId) Returns the number of cp definitions where groupId = ?.- Parameters:
groupId- the group ID- Returns:
- the number of matching cp definitions
-
filterCountByGroupId
int filterCountByGroupId(long groupId) Returns the number of cp definitions that the user has permission to view where groupId = ?.- Parameters:
groupId- the group ID- Returns:
- the number of matching cp definitions that the user has permission to view
-
findByCompanyId
List<CPDefinition> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp definitions where companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.product.model.impl.CPDefinitionModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of cp definitionsend- the upper bound of the range of cp definitions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching cp definitions
-
findByCompanyId_First
CPDefinition findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException Returns the first cp definition in the ordered set where companyId = ?.- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp definition
- Throws:
NoSuchCPDefinitionException- if a matching cp definition could not be found
-
fetchByCompanyId_First
CPDefinition fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns the first cp definition in the ordered set where companyId = ?.- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp definition, or
nullif a matching cp definition could not be found
-
removeByCompanyId
void removeByCompanyId(long companyId) Removes all the cp definitions where companyId = ? from the database.- Parameters:
companyId- the company ID
-
countByCompanyId
int countByCompanyId(long companyId) Returns the number of cp definitions where companyId = ?.- Parameters:
companyId- the company ID- Returns:
- the number of matching cp definitions
-
findByCProductId
List<CPDefinition> findByCProductId(long CProductId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp definitions where CProductId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.product.model.impl.CPDefinitionModelImpl.- Parameters:
CProductId- the c product IDstart- the lower bound of the range of cp definitionsend- the upper bound of the range of cp definitions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching cp definitions
-
findByCProductId_First
CPDefinition findByCProductId_First(long CProductId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException Returns the first cp definition in the ordered set where CProductId = ?.- Parameters:
CProductId- the c product IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp definition
- Throws:
NoSuchCPDefinitionException- if a matching cp definition could not be found
-
fetchByCProductId_First
CPDefinition fetchByCProductId_First(long CProductId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns the first cp definition in the ordered set where CProductId = ?.- Parameters:
CProductId- the c product IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp definition, or
nullif a matching cp definition could not be found
-
removeByCProductId
void removeByCProductId(long CProductId) Removes all the cp definitions where CProductId = ? from the database.- Parameters:
CProductId- the c product ID
-
countByCProductId
int countByCProductId(long CProductId) Returns the number of cp definitions where CProductId = ?.- Parameters:
CProductId- the c product ID- Returns:
- the number of matching cp definitions
-
findByCPTaxCategoryId
List<CPDefinition> findByCPTaxCategoryId(long CPTaxCategoryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp definitions where CPTaxCategoryId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.product.model.impl.CPDefinitionModelImpl.- Parameters:
CPTaxCategoryId- the cp tax category IDstart- the lower bound of the range of cp definitionsend- the upper bound of the range of cp definitions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching cp definitions
-
findByCPTaxCategoryId_First
CPDefinition findByCPTaxCategoryId_First(long CPTaxCategoryId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException Returns the first cp definition in the ordered set where CPTaxCategoryId = ?.- Parameters:
CPTaxCategoryId- the cp tax category IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp definition
- Throws:
NoSuchCPDefinitionException- if a matching cp definition could not be found
-
fetchByCPTaxCategoryId_First
CPDefinition fetchByCPTaxCategoryId_First(long CPTaxCategoryId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns the first cp definition in the ordered set where CPTaxCategoryId = ?.- Parameters:
CPTaxCategoryId- the cp tax category IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp definition, or
nullif a matching cp definition could not be found
-
removeByCPTaxCategoryId
void removeByCPTaxCategoryId(long CPTaxCategoryId) Removes all the cp definitions where CPTaxCategoryId = ? from the database.- Parameters:
CPTaxCategoryId- the cp tax category ID
-
countByCPTaxCategoryId
int countByCPTaxCategoryId(long CPTaxCategoryId) Returns the number of cp definitions where CPTaxCategoryId = ?.- Parameters:
CPTaxCategoryId- the cp tax category ID- Returns:
- the number of matching cp definitions
-
findByG_SE
List<CPDefinition> findByG_SE(long groupId, boolean subscriptionEnabled, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp definitions where groupId = ? and subscriptionEnabled = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.product.model.impl.CPDefinitionModelImpl.- Parameters:
groupId- the group IDsubscriptionEnabled- the subscription enabledstart- the lower bound of the range of cp definitionsend- the upper bound of the range of cp definitions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching cp definitions
-
findByG_SE_First
CPDefinition findByG_SE_First(long groupId, boolean subscriptionEnabled, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException Returns the first cp definition in the ordered set where groupId = ? and subscriptionEnabled = ?.- Parameters:
groupId- the group IDsubscriptionEnabled- the subscription enabledorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp definition
- Throws:
NoSuchCPDefinitionException- if a matching cp definition could not be found
-
fetchByG_SE_First
CPDefinition fetchByG_SE_First(long groupId, boolean subscriptionEnabled, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns the first cp definition in the ordered set where groupId = ? and subscriptionEnabled = ?.- Parameters:
groupId- the group IDsubscriptionEnabled- the subscription enabledorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp definition, or
nullif a matching cp definition could not be found
-
filterFindByG_SE
List<CPDefinition> filterFindByG_SE(long groupId, boolean subscriptionEnabled, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns an ordered range of all the cp definitions that the user has permissions to view where groupId = ? and subscriptionEnabled = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.product.model.impl.CPDefinitionModelImpl.- Parameters:
groupId- the group IDsubscriptionEnabled- the subscription enabledstart- the lower bound of the range of cp definitionsend- the upper bound of the range of cp definitions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching cp definitions that the user has permission to view
-
removeByG_SE
void removeByG_SE(long groupId, boolean subscriptionEnabled) Removes all the cp definitions where groupId = ? and subscriptionEnabled = ? from the database.- Parameters:
groupId- the group IDsubscriptionEnabled- the subscription enabled
-
countByG_SE
int countByG_SE(long groupId, boolean subscriptionEnabled) Returns the number of cp definitions where groupId = ? and subscriptionEnabled = ?.- Parameters:
groupId- the group IDsubscriptionEnabled- the subscription enabled- Returns:
- the number of matching cp definitions
-
filterCountByG_SE
int filterCountByG_SE(long groupId, boolean subscriptionEnabled) Returns the number of cp definitions that the user has permission to view where groupId = ? and subscriptionEnabled = ?.- Parameters:
groupId- the group IDsubscriptionEnabled- the subscription enabled- Returns:
- the number of matching cp definitions that the user has permission to view
-
findByG_S
List<CPDefinition> findByG_S(long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp definitions where groupId = ? and status = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.product.model.impl.CPDefinitionModelImpl.- Parameters:
groupId- the group IDstatus- the statusstart- the lower bound of the range of cp definitionsend- the upper bound of the range of cp definitions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching cp definitions
-
findByG_S_First
CPDefinition findByG_S_First(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException Returns the first cp definition in the ordered set where groupId = ? and status = ?.- Parameters:
groupId- the group IDstatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp definition
- Throws:
NoSuchCPDefinitionException- if a matching cp definition could not be found
-
fetchByG_S_First
CPDefinition fetchByG_S_First(long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns the first cp definition in the ordered set where groupId = ? and status = ?.- Parameters:
groupId- the group IDstatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp definition, or
nullif a matching cp definition could not be found
-
filterFindByG_S
List<CPDefinition> filterFindByG_S(long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns an ordered range of all the cp definitions that the user has permissions to view where groupId = ? and status = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.product.model.impl.CPDefinitionModelImpl.- Parameters:
groupId- the group IDstatus- the statusstart- the lower bound of the range of cp definitionsend- the upper bound of the range of cp definitions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching cp definitions that the user has permission to view
-
removeByG_S
void removeByG_S(long groupId, int status) Removes all the cp definitions where groupId = ? and status = ? from the database.- Parameters:
groupId- the group IDstatus- the status
-
countByG_S
int countByG_S(long groupId, int status) Returns the number of cp definitions where groupId = ? and status = ?.- Parameters:
groupId- the group IDstatus- the status- Returns:
- the number of matching cp definitions
-
filterCountByG_S
int filterCountByG_S(long groupId, int status) Returns the number of cp definitions that the user has permission to view where groupId = ? and status = ?.- Parameters:
groupId- the group IDstatus- the status- Returns:
- the number of matching cp definitions that the user has permission to view
-
findByC_V
Returns the cp definition where CProductId = ? and version = ? or throws aNoSuchCPDefinitionExceptionif it could not be found.- Parameters:
CProductId- the c product IDversion- the version- Returns:
- the matching cp definition
- Throws:
NoSuchCPDefinitionException- if a matching cp definition could not be found
-
fetchByC_V
Returns the cp definition where CProductId = ? and version = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
CProductId- the c product IDversion- the versionuseFinderCache- whether to use the finder cache- Returns:
- the matching cp definition, or
nullif a matching cp definition could not be found
-
removeByC_V
Removes the cp definition where CProductId = ? and version = ? from the database.- Parameters:
CProductId- the c product IDversion- the version- Returns:
- the cp definition that was removed
- Throws:
NoSuchCPDefinitionException
-
countByC_V
int countByC_V(long CProductId, int version) Returns the number of cp definitions where CProductId = ? and version = ?.- Parameters:
CProductId- the c product IDversion- the version- Returns:
- the number of matching cp definitions
-
findByC_S
List<CPDefinition> findByC_S(long CProductId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp definitions where CProductId = ? and status = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.product.model.impl.CPDefinitionModelImpl.- Parameters:
CProductId- the c product IDstatus- the statusstart- the lower bound of the range of cp definitionsend- the upper bound of the range of cp definitions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching cp definitions
-
findByC_S_First
CPDefinition findByC_S_First(long CProductId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException Returns the first cp definition in the ordered set where CProductId = ? and status = ?.- Parameters:
CProductId- the c product IDstatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp definition
- Throws:
NoSuchCPDefinitionException- if a matching cp definition could not be found
-
fetchByC_S_First
CPDefinition fetchByC_S_First(long CProductId, int status, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns the first cp definition in the ordered set where CProductId = ? and status = ?.- Parameters:
CProductId- the c product IDstatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp definition, or
nullif a matching cp definition could not be found
-
removeByC_S
void removeByC_S(long CProductId, int status) Removes all the cp definitions where CProductId = ? and status = ? from the database.- Parameters:
CProductId- the c product IDstatus- the status
-
countByC_S
int countByC_S(long CProductId, int status) Returns the number of cp definitions where CProductId = ? and status = ?.- Parameters:
CProductId- the c product IDstatus- the status- Returns:
- the number of matching cp definitions
-
findByLtD_S
Returns all the cp definitions where displayDate < ? and status = ?.- Parameters:
displayDate- the display datestatus- the status- Returns:
- the matching cp definitions
-
findByLtD_S
Returns a range of all the cp definitions where displayDate < ? and status = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.product.model.impl.CPDefinitionModelImpl.- Parameters:
displayDate- the display datestatus- the statusstart- the lower bound of the range of cp definitionsend- the upper bound of the range of cp definitions (not inclusive)- Returns:
- the range of matching cp definitions
-
findByLtD_S
List<CPDefinition> findByLtD_S(Date displayDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns an ordered range of all the cp definitions where displayDate < ? and status = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.product.model.impl.CPDefinitionModelImpl.- Parameters:
displayDate- the display datestatus- the statusstart- the lower bound of the range of cp definitionsend- the upper bound of the range of cp definitions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching cp definitions
-
findByLtD_S
List<CPDefinition> findByLtD_S(Date displayDate, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp definitions where displayDate < ? and status = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.product.model.impl.CPDefinitionModelImpl.- Parameters:
displayDate- the display datestatus- the statusstart- the lower bound of the range of cp definitionsend- the upper bound of the range of cp definitions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching cp definitions
-
findByLtD_S_First
CPDefinition findByLtD_S_First(Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) throws NoSuchCPDefinitionException Returns the first cp definition 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 cp definition
- Throws:
NoSuchCPDefinitionException- if a matching cp definition could not be found
-
fetchByLtD_S_First
CPDefinition fetchByLtD_S_First(Date displayDate, int status, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns the first cp definition 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 cp definition, or
nullif a matching cp definition could not be found
-
removeByLtD_S
Removes all the cp definitions where displayDate < ? and status = ? from the database.- Parameters:
displayDate- the display datestatus- the status
-
countByLtD_S
Returns the number of cp definitions where displayDate < ? and status = ?.- Parameters:
displayDate- the display datestatus- the status- Returns:
- the number of matching cp definitions
-
create
Creates a new cp definition with the primary key. Does not add the cp definition to the database.- Parameters:
CPDefinitionId- the primary key for the new cp definition- Returns:
- the new cp definition
-
remove
Removes the cp definition with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
CPDefinitionId- the primary key of the cp definition- Returns:
- the cp definition that was removed
- Throws:
NoSuchCPDefinitionException- if a cp definition with the primary key could not be found
-
updateImpl
-
findByPrimaryKey
Returns the cp definition with the primary key or throws aNoSuchCPDefinitionExceptionif it could not be found.- Parameters:
CPDefinitionId- the primary key of the cp definition- Returns:
- the cp definition
- Throws:
NoSuchCPDefinitionException- if a cp definition with the primary key could not be found
-
fetchByPrimaryKey
Returns the cp definition with the primary key or returnsnullif it could not be found.- Parameters:
CPDefinitionId- the primary key of the cp definition- Returns:
- the cp definition, or
nullif a cp definition with the primary key could not be found
-
fetchByUUID_G
Returns the cp definition where uuid = ? and groupId = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
uuid- the uuidgroupId- the group ID- Returns:
- the matching cp definition, or
nullif a matching cp definition could not be found
-
fetchByC_V
Returns the cp definition where CProductId = ? and version = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
CProductId- the c product IDversion- the version- Returns:
- the matching cp definition, or
nullif a matching cp definition could not be found
-
findByUuid
Returns all the cp definitions where uuid = ?.- Parameters:
uuid- the uuid- Returns:
- the matching cp definitions
-
findByUuid
Returns a range of all the cp definitions where uuid = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.product.model.impl.CPDefinitionModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of cp definitionsend- the upper bound of the range of cp definitions (not inclusive)- Returns:
- the range of matching cp definitions
-
findByUuid
default List<CPDefinition> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns an ordered range of all the cp definitions where uuid = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.product.model.impl.CPDefinitionModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of cp definitionsend- the upper bound of the range of cp definitions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching cp definitions
-
findByUuid_C
Returns all the cp definitions where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the matching cp definitions
-
findByUuid_C
Returns a range of all the cp definitions where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.product.model.impl.CPDefinitionModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of cp definitionsend- the upper bound of the range of cp definitions (not inclusive)- Returns:
- the range of matching cp definitions
-
findByUuid_C
default List<CPDefinition> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns an ordered range of all the cp definitions where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.product.model.impl.CPDefinitionModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of cp definitionsend- the upper bound of the range of cp definitions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching cp definitions
-
findByGroupId
Returns all the cp definitions where groupId = ?.- Parameters:
groupId- the group ID- Returns:
- the matching cp definitions
-
findByGroupId
Returns a range of all the cp definitions where groupId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.product.model.impl.CPDefinitionModelImpl.- Parameters:
groupId- the group IDstart- the lower bound of the range of cp definitionsend- the upper bound of the range of cp definitions (not inclusive)- Returns:
- the range of matching cp definitions
-
findByGroupId
default List<CPDefinition> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns an ordered range of all the cp definitions where groupId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.product.model.impl.CPDefinitionModelImpl.- Parameters:
groupId- the group IDstart- the lower bound of the range of cp definitionsend- the upper bound of the range of cp definitions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching cp definitions
-
filterFindByGroupId
Returns all the cp definitions that the user has permission to view where groupId = ?.- Parameters:
groupId- the group ID- Returns:
- the matching cp definitions that the user has permission to view
-
filterFindByGroupId
Returns a range of all the cp definitions that the user has permission to view where groupId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.product.model.impl.CPDefinitionModelImpl.- Parameters:
groupId- the group IDstart- the lower bound of the range of cp definitionsend- the upper bound of the range of cp definitions (not inclusive)- Returns:
- the range of matching cp definitions that the user has permission to view
-
findByCompanyId
Returns all the cp definitions where companyId = ?.- Parameters:
companyId- the company ID- Returns:
- the matching cp definitions
-
findByCompanyId
Returns a range of all the cp definitions where companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.product.model.impl.CPDefinitionModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of cp definitionsend- the upper bound of the range of cp definitions (not inclusive)- Returns:
- the range of matching cp definitions
-
findByCompanyId
default List<CPDefinition> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns an ordered range of all the cp definitions where companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.product.model.impl.CPDefinitionModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of cp definitionsend- the upper bound of the range of cp definitions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching cp definitions
-
findByCProductId
Returns all the cp definitions where CProductId = ?.- Parameters:
CProductId- the c product ID- Returns:
- the matching cp definitions
-
findByCProductId
Returns a range of all the cp definitions where CProductId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.product.model.impl.CPDefinitionModelImpl.- Parameters:
CProductId- the c product IDstart- the lower bound of the range of cp definitionsend- the upper bound of the range of cp definitions (not inclusive)- Returns:
- the range of matching cp definitions
-
findByCProductId
default List<CPDefinition> findByCProductId(long CProductId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns an ordered range of all the cp definitions where CProductId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.product.model.impl.CPDefinitionModelImpl.- Parameters:
CProductId- the c product IDstart- the lower bound of the range of cp definitionsend- the upper bound of the range of cp definitions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching cp definitions
-
findByCPTaxCategoryId
Returns all the cp definitions where CPTaxCategoryId = ?.- Parameters:
CPTaxCategoryId- the cp tax category ID- Returns:
- the matching cp definitions
-
findByCPTaxCategoryId
Returns a range of all the cp definitions where CPTaxCategoryId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.product.model.impl.CPDefinitionModelImpl.- Parameters:
CPTaxCategoryId- the cp tax category IDstart- the lower bound of the range of cp definitionsend- the upper bound of the range of cp definitions (not inclusive)- Returns:
- the range of matching cp definitions
-
findByCPTaxCategoryId
default List<CPDefinition> findByCPTaxCategoryId(long CPTaxCategoryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns an ordered range of all the cp definitions where CPTaxCategoryId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.product.model.impl.CPDefinitionModelImpl.- Parameters:
CPTaxCategoryId- the cp tax category IDstart- the lower bound of the range of cp definitionsend- the upper bound of the range of cp definitions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching cp definitions
-
findByG_SE
Returns all the cp definitions where groupId = ? and subscriptionEnabled = ?.- Parameters:
groupId- the group IDsubscriptionEnabled- the subscription enabled- Returns:
- the matching cp definitions
-
findByG_SE
default List<CPDefinition> findByG_SE(long groupId, boolean subscriptionEnabled, int start, int end) Returns a range of all the cp definitions where groupId = ? and subscriptionEnabled = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.product.model.impl.CPDefinitionModelImpl.- Parameters:
groupId- the group IDsubscriptionEnabled- the subscription enabledstart- the lower bound of the range of cp definitionsend- the upper bound of the range of cp definitions (not inclusive)- Returns:
- the range of matching cp definitions
-
findByG_SE
default List<CPDefinition> findByG_SE(long groupId, boolean subscriptionEnabled, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns an ordered range of all the cp definitions where groupId = ? and subscriptionEnabled = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.product.model.impl.CPDefinitionModelImpl.- Parameters:
groupId- the group IDsubscriptionEnabled- the subscription enabledstart- the lower bound of the range of cp definitionsend- the upper bound of the range of cp definitions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching cp definitions
-
filterFindByG_SE
Returns all the cp definitions that the user has permission to view where groupId = ? and subscriptionEnabled = ?.- Parameters:
groupId- the group IDsubscriptionEnabled- the subscription enabled- Returns:
- the matching cp definitions that the user has permission to view
-
filterFindByG_SE
default List<CPDefinition> filterFindByG_SE(long groupId, boolean subscriptionEnabled, int start, int end) Returns a range of all the cp definitions that the user has permission to view where groupId = ? and subscriptionEnabled = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.product.model.impl.CPDefinitionModelImpl.- Parameters:
groupId- the group IDsubscriptionEnabled- the subscription enabledstart- the lower bound of the range of cp definitionsend- the upper bound of the range of cp definitions (not inclusive)- Returns:
- the range of matching cp definitions that the user has permission to view
-
findByG_S
Returns all the cp definitions where groupId = ? and status = ?.- Parameters:
groupId- the group IDstatus- the status- Returns:
- the matching cp definitions
-
findByG_S
Returns a range of all the cp definitions where groupId = ? and status = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.product.model.impl.CPDefinitionModelImpl.- Parameters:
groupId- the group IDstatus- the statusstart- the lower bound of the range of cp definitionsend- the upper bound of the range of cp definitions (not inclusive)- Returns:
- the range of matching cp definitions
-
findByG_S
default List<CPDefinition> findByG_S(long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns an ordered range of all the cp definitions where groupId = ? and status = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.product.model.impl.CPDefinitionModelImpl.- Parameters:
groupId- the group IDstatus- the statusstart- the lower bound of the range of cp definitionsend- the upper bound of the range of cp definitions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching cp definitions
-
filterFindByG_S
Returns all the cp definitions that the user has permission to view where groupId = ? and status = ?.- Parameters:
groupId- the group IDstatus- the status- Returns:
- the matching cp definitions that the user has permission to view
-
filterFindByG_S
Returns a range of all the cp definitions that the user has permission to view where groupId = ? and status = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.product.model.impl.CPDefinitionModelImpl.- Parameters:
groupId- the group IDstatus- the statusstart- the lower bound of the range of cp definitionsend- the upper bound of the range of cp definitions (not inclusive)- Returns:
- the range of matching cp definitions that the user has permission to view
-
findByC_S
Returns all the cp definitions where CProductId = ? and status = ?.- Parameters:
CProductId- the c product IDstatus- the status- Returns:
- the matching cp definitions
-
findByC_S
Returns a range of all the cp definitions where CProductId = ? and status = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.product.model.impl.CPDefinitionModelImpl.- Parameters:
CProductId- the c product IDstatus- the statusstart- the lower bound of the range of cp definitionsend- the upper bound of the range of cp definitions (not inclusive)- Returns:
- the range of matching cp definitions
-
findByC_S
default List<CPDefinition> findByC_S(long CProductId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinition> orderByComparator) Returns an ordered range of all the cp definitions where CProductId = ? and status = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.product.model.impl.CPDefinitionModelImpl.- Parameters:
CProductId- the c product IDstatus- the statusstart- the lower bound of the range of cp definitionsend- the upper bound of the range of cp definitions (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching cp definitions
-