Class CPDefinitionGroupedEntryUtil
com.liferay.commerce.product.type.grouped.service.persistence.impl.CPDefinitionGroupedEntryPersistenceImpl 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 voidcacheResult(CPDefinitionGroupedEntry cpDefinitionGroupedEntry) static voidcacheResult(List<CPDefinitionGroupedEntry> cpDefinitionGroupedEntries) static voidstatic voidclearCache(CPDefinitionGroupedEntry cpDefinitionGroupedEntry) static intcountByC_E(long CPDefinitionId, long entryCProductId) Returns the number of cp definition grouped entries where CPDefinitionId = ? and entryCProductId = ?.static intcountByCPDefinitionId(long CPDefinitionId) Returns the number of cp definition grouped entries where CPDefinitionId = ?.static intcountByEntryCProductId(long entryCProductId) Returns the number of cp definition grouped entries where entryCProductId = ?.static intcountByUuid(String uuid) Returns the number of cp definition grouped entries where uuid = ?.static intcountByUuid_C(String uuid, long companyId) Returns the number of cp definition grouped entries where uuid = ? and companyId = ?.static intcountByUUID_G(String uuid, long groupId) Returns the number of cp definition grouped entries where uuid = ? and groupId = ?.static longcountWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static CPDefinitionGroupedEntrycreate(long CPDefinitionGroupedEntryId) Creates a new cp definition grouped entry with the primary key.static CPDefinitionGroupedEntryfetchByC_E(long CPDefinitionId, long entryCProductId) Returns the cp definition grouped entry where CPDefinitionId = ? and entryCProductId = ? or returnsnullif it could not be found.static CPDefinitionGroupedEntryfetchByC_E(long CPDefinitionId, long entryCProductId, boolean useFinderCache) Returns the cp definition grouped entry where CPDefinitionId = ? and entryCProductId = ? or returnsnullif it could not be found, optionally using the finder cache.static CPDefinitionGroupedEntryfetchByCPDefinitionId_First(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator) Returns the first cp definition grouped entry in the ordered set where CPDefinitionId = ?.static CPDefinitionGroupedEntryfetchByEntryCProductId_First(long entryCProductId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator) Returns the first cp definition grouped entry in the ordered set where entryCProductId = ?.static CPDefinitionGroupedEntryfetchByPrimaryKey(long CPDefinitionGroupedEntryId) Returns the cp definition grouped entry with the primary key or returnsnullif it could not be found.static Map<Serializable, CPDefinitionGroupedEntry> fetchByPrimaryKeys(Set<Serializable> primaryKeys) static CPDefinitionGroupedEntryfetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator) Returns the first cp definition grouped entry in the ordered set where uuid = ? and companyId = ?.static CPDefinitionGroupedEntryfetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator) Returns the first cp definition grouped entry in the ordered set where uuid = ?.static CPDefinitionGroupedEntryfetchByUUID_G(String uuid, long groupId) Returns the cp definition grouped entry where uuid = ? and groupId = ? or returnsnullif it could not be found.static CPDefinitionGroupedEntryfetchByUUID_G(String uuid, long groupId, boolean useFinderCache) Returns the cp definition grouped entry where uuid = ? and groupId = ? or returnsnullif it could not be found, optionally using the finder cache.static CPDefinitionGroupedEntryfindByC_E(long CPDefinitionId, long entryCProductId) Returns the cp definition grouped entry where CPDefinitionId = ? and entryCProductId = ? or throws aNoSuchCPDefinitionGroupedEntryExceptionif it could not be found.static List<CPDefinitionGroupedEntry> findByCPDefinitionId(long CPDefinitionId) Returns all the cp definition grouped entries where CPDefinitionId = ?.static List<CPDefinitionGroupedEntry> findByCPDefinitionId(long CPDefinitionId, int start, int end) Returns a range of all the cp definition grouped entries where CPDefinitionId = ?.static List<CPDefinitionGroupedEntry> findByCPDefinitionId(long CPDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator) Returns an ordered range of all the cp definition grouped entries where CPDefinitionId = ?.static List<CPDefinitionGroupedEntry> findByCPDefinitionId(long CPDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp definition grouped entries where CPDefinitionId = ?.static CPDefinitionGroupedEntryfindByCPDefinitionId_First(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator) Returns the first cp definition grouped entry in the ordered set where CPDefinitionId = ?.static List<CPDefinitionGroupedEntry> findByEntryCProductId(long entryCProductId) Returns all the cp definition grouped entries where entryCProductId = ?.static List<CPDefinitionGroupedEntry> findByEntryCProductId(long entryCProductId, int start, int end) Returns a range of all the cp definition grouped entries where entryCProductId = ?.static List<CPDefinitionGroupedEntry> findByEntryCProductId(long entryCProductId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator) Returns an ordered range of all the cp definition grouped entries where entryCProductId = ?.static List<CPDefinitionGroupedEntry> findByEntryCProductId(long entryCProductId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp definition grouped entries where entryCProductId = ?.static CPDefinitionGroupedEntryfindByEntryCProductId_First(long entryCProductId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator) Returns the first cp definition grouped entry in the ordered set where entryCProductId = ?.static CPDefinitionGroupedEntryfindByPrimaryKey(long CPDefinitionGroupedEntryId) Returns the cp definition grouped entry with the primary key or throws aNoSuchCPDefinitionGroupedEntryExceptionif it could not be found.static List<CPDefinitionGroupedEntry> findByUuid(String uuid) Returns all the cp definition grouped entries where uuid = ?.static List<CPDefinitionGroupedEntry> findByUuid(String uuid, int start, int end) Returns a range of all the cp definition grouped entries where uuid = ?.static List<CPDefinitionGroupedEntry> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator) Returns an ordered range of all the cp definition grouped entries where uuid = ?.static List<CPDefinitionGroupedEntry> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp definition grouped entries where uuid = ?.static List<CPDefinitionGroupedEntry> findByUuid_C(String uuid, long companyId) Returns all the cp definition grouped entries where uuid = ? and companyId = ?.static List<CPDefinitionGroupedEntry> findByUuid_C(String uuid, long companyId, int start, int end) Returns a range of all the cp definition grouped entries where uuid = ? and companyId = ?.static List<CPDefinitionGroupedEntry> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator) Returns an ordered range of all the cp definition grouped entries where uuid = ? and companyId = ?.static List<CPDefinitionGroupedEntry> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp definition grouped entries where uuid = ? and companyId = ?.static CPDefinitionGroupedEntryfindByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator) Returns the first cp definition grouped entry in the ordered set where uuid = ? and companyId = ?.static CPDefinitionGroupedEntryfindByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator) Returns the first cp definition grouped entry in the ordered set where uuid = ?.static CPDefinitionGroupedEntryfindByUUID_G(String uuid, long groupId) Returns the cp definition grouped entry where uuid = ? and groupId = ? or throws aNoSuchCPDefinitionGroupedEntryExceptionif it could not be found.static List<CPDefinitionGroupedEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<CPDefinitionGroupedEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<CPDefinitionGroupedEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator) static CPDefinitionGroupedEntryremove(long CPDefinitionGroupedEntryId) Removes the cp definition grouped entry with the primary key from the database.static CPDefinitionGroupedEntryremoveByC_E(long CPDefinitionId, long entryCProductId) Removes the cp definition grouped entry where CPDefinitionId = ? and entryCProductId = ? from the database.static voidremoveByCPDefinitionId(long CPDefinitionId) Removes all the cp definition grouped entries where CPDefinitionId = ? from the database.static voidremoveByEntryCProductId(long entryCProductId) Removes all the cp definition grouped entries where entryCProductId = ? from the database.static voidremoveByUuid(String uuid) Removes all the cp definition grouped entries where uuid = ? from the database.static voidremoveByUuid_C(String uuid, long companyId) Removes all the cp definition grouped entries where uuid = ? and companyId = ? from the database.static CPDefinitionGroupedEntryremoveByUUID_G(String uuid, long groupId) Removes the cp definition grouped entry where uuid = ? and groupId = ? from the database.static voidsetPersistence(CPDefinitionGroupedEntryPersistence persistence) static CPDefinitionGroupedEntryupdate(CPDefinitionGroupedEntry cpDefinitionGroupedEntry) static CPDefinitionGroupedEntryupdate(CPDefinitionGroupedEntry cpDefinitionGroupedEntry, com.liferay.portal.kernel.service.ServiceContext serviceContext) static CPDefinitionGroupedEntryupdateImpl(CPDefinitionGroupedEntry cpDefinitionGroupedEntry)
-
Constructor Details
-
CPDefinitionGroupedEntryUtil
public CPDefinitionGroupedEntryUtil()
-
-
Method Details
-
cacheResult
- See Also:
-
cacheResult
- See Also:
-
clearCache
public static void clearCache()- See Also:
-
clearCache
- See Also:
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
fetchByPrimaryKeys
public static Map<Serializable,CPDefinitionGroupedEntry> fetchByPrimaryKeys(Set<Serializable> primaryKeys) - See Also:
-
findWithDynamicQuery
public static List<CPDefinitionGroupedEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
findWithDynamicQuery
public static List<CPDefinitionGroupedEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
findWithDynamicQuery
public static List<CPDefinitionGroupedEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator) - See Also:
-
update
- See Also:
-
update
public static CPDefinitionGroupedEntry update(CPDefinitionGroupedEntry cpDefinitionGroupedEntry, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
findByUuid
public static List<CPDefinitionGroupedEntry> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp definition grouped entries 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.type.grouped.model.impl.CPDefinitionGroupedEntryModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of cp definition grouped entriesend- the upper bound of the range of cp definition grouped entries (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 definition grouped entries
-
findByUuid_First
public static CPDefinitionGroupedEntry findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator) throws NoSuchCPDefinitionGroupedEntryException Returns the first cp definition grouped entry in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp definition grouped entry
-
fetchByUuid_First
public static CPDefinitionGroupedEntry fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator) Returns the first cp definition grouped entry in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp definition grouped entry, or
nullif a matching cp definition grouped entry could not be found
-
removeByUuid
Removes all the cp definition grouped entries where uuid = ? from the database.- Parameters:
uuid- the uuid
-
countByUuid
Returns the number of cp definition grouped entries where uuid = ?.- Parameters:
uuid- the uuid- Returns:
- the number of matching cp definition grouped entries
-
findByUUID_G
public static CPDefinitionGroupedEntry findByUUID_G(String uuid, long groupId) throws NoSuchCPDefinitionGroupedEntryException Returns the cp definition grouped entry where uuid = ? and groupId = ? or throws aNoSuchCPDefinitionGroupedEntryExceptionif it could not be found.- Parameters:
uuid- the uuidgroupId- the group ID- Returns:
- the matching cp definition grouped entry
-
fetchByUUID_G
public static CPDefinitionGroupedEntry fetchByUUID_G(String uuid, long groupId, boolean useFinderCache) Returns the cp definition grouped entry 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 grouped entry, or
nullif a matching cp definition grouped entry could not be found
-
removeByUUID_G
public static CPDefinitionGroupedEntry removeByUUID_G(String uuid, long groupId) throws NoSuchCPDefinitionGroupedEntryException Removes the cp definition grouped entry where uuid = ? and groupId = ? from the database.- Parameters:
uuid- the uuidgroupId- the group ID- Returns:
- the cp definition grouped entry that was removed
- Throws:
NoSuchCPDefinitionGroupedEntryException
-
countByUUID_G
Returns the number of cp definition grouped entries where uuid = ? and groupId = ?.- Parameters:
uuid- the uuidgroupId- the group ID- Returns:
- the number of matching cp definition grouped entries
-
findByUuid_C
public static List<CPDefinitionGroupedEntry> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp definition grouped entries 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.type.grouped.model.impl.CPDefinitionGroupedEntryModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of cp definition grouped entriesend- the upper bound of the range of cp definition grouped entries (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 definition grouped entries
-
findByUuid_C_First
public static CPDefinitionGroupedEntry findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator) throws NoSuchCPDefinitionGroupedEntryException Returns the first cp definition grouped entry 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 grouped entry
-
fetchByUuid_C_First
public static CPDefinitionGroupedEntry fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator) Returns the first cp definition grouped entry 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 grouped entry, or
nullif a matching cp definition grouped entry could not be found
-
removeByUuid_C
Removes all the cp definition grouped entries where uuid = ? and companyId = ? from the database.- Parameters:
uuid- the uuidcompanyId- the company ID
-
countByUuid_C
Returns the number of cp definition grouped entries where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the number of matching cp definition grouped entries
-
findByCPDefinitionId
public static List<CPDefinitionGroupedEntry> findByCPDefinitionId(long CPDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp definition grouped entries where CPDefinitionId = ?.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.type.grouped.model.impl.CPDefinitionGroupedEntryModelImpl.- Parameters:
CPDefinitionId- the cp definition IDstart- the lower bound of the range of cp definition grouped entriesend- the upper bound of the range of cp definition grouped entries (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 definition grouped entries
-
findByCPDefinitionId_First
public static CPDefinitionGroupedEntry findByCPDefinitionId_First(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator) throws NoSuchCPDefinitionGroupedEntryException Returns the first cp definition grouped entry in the ordered set where CPDefinitionId = ?.- Parameters:
CPDefinitionId- the cp definition IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp definition grouped entry
-
fetchByCPDefinitionId_First
public static CPDefinitionGroupedEntry fetchByCPDefinitionId_First(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator) Returns the first cp definition grouped entry in the ordered set where CPDefinitionId = ?.- Parameters:
CPDefinitionId- the cp definition IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp definition grouped entry, or
nullif a matching cp definition grouped entry could not be found
-
removeByCPDefinitionId
public static void removeByCPDefinitionId(long CPDefinitionId) Removes all the cp definition grouped entries where CPDefinitionId = ? from the database.- Parameters:
CPDefinitionId- the cp definition ID
-
countByCPDefinitionId
public static int countByCPDefinitionId(long CPDefinitionId) Returns the number of cp definition grouped entries where CPDefinitionId = ?.- Parameters:
CPDefinitionId- the cp definition ID- Returns:
- the number of matching cp definition grouped entries
-
findByEntryCProductId
public static List<CPDefinitionGroupedEntry> findByEntryCProductId(long entryCProductId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp definition grouped entries where entryCProductId = ?.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.type.grouped.model.impl.CPDefinitionGroupedEntryModelImpl.- Parameters:
entryCProductId- the entry c product IDstart- the lower bound of the range of cp definition grouped entriesend- the upper bound of the range of cp definition grouped entries (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 definition grouped entries
-
findByEntryCProductId_First
public static CPDefinitionGroupedEntry findByEntryCProductId_First(long entryCProductId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator) throws NoSuchCPDefinitionGroupedEntryException Returns the first cp definition grouped entry in the ordered set where entryCProductId = ?.- Parameters:
entryCProductId- the entry c product IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp definition grouped entry
-
fetchByEntryCProductId_First
public static CPDefinitionGroupedEntry fetchByEntryCProductId_First(long entryCProductId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator) Returns the first cp definition grouped entry in the ordered set where entryCProductId = ?.- Parameters:
entryCProductId- the entry c product IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching cp definition grouped entry, or
nullif a matching cp definition grouped entry could not be found
-
removeByEntryCProductId
public static void removeByEntryCProductId(long entryCProductId) Removes all the cp definition grouped entries where entryCProductId = ? from the database.- Parameters:
entryCProductId- the entry c product ID
-
countByEntryCProductId
public static int countByEntryCProductId(long entryCProductId) Returns the number of cp definition grouped entries where entryCProductId = ?.- Parameters:
entryCProductId- the entry c product ID- Returns:
- the number of matching cp definition grouped entries
-
findByC_E
public static CPDefinitionGroupedEntry findByC_E(long CPDefinitionId, long entryCProductId) throws NoSuchCPDefinitionGroupedEntryException Returns the cp definition grouped entry where CPDefinitionId = ? and entryCProductId = ? or throws aNoSuchCPDefinitionGroupedEntryExceptionif it could not be found.- Parameters:
CPDefinitionId- the cp definition IDentryCProductId- the entry c product ID- Returns:
- the matching cp definition grouped entry
-
fetchByC_E
public static CPDefinitionGroupedEntry fetchByC_E(long CPDefinitionId, long entryCProductId, boolean useFinderCache) Returns the cp definition grouped entry where CPDefinitionId = ? and entryCProductId = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
CPDefinitionId- the cp definition IDentryCProductId- the entry c product IDuseFinderCache- whether to use the finder cache- Returns:
- the matching cp definition grouped entry, or
nullif a matching cp definition grouped entry could not be found
-
removeByC_E
public static CPDefinitionGroupedEntry removeByC_E(long CPDefinitionId, long entryCProductId) throws NoSuchCPDefinitionGroupedEntryException Removes the cp definition grouped entry where CPDefinitionId = ? and entryCProductId = ? from the database.- Parameters:
CPDefinitionId- the cp definition IDentryCProductId- the entry c product ID- Returns:
- the cp definition grouped entry that was removed
- Throws:
NoSuchCPDefinitionGroupedEntryException
-
countByC_E
public static int countByC_E(long CPDefinitionId, long entryCProductId) Returns the number of cp definition grouped entries where CPDefinitionId = ? and entryCProductId = ?.- Parameters:
CPDefinitionId- the cp definition IDentryCProductId- the entry c product ID- Returns:
- the number of matching cp definition grouped entries
-
create
Creates a new cp definition grouped entry with the primary key. Does not add the cp definition grouped entry to the database.- Parameters:
CPDefinitionGroupedEntryId- the primary key for the new cp definition grouped entry- Returns:
- the new cp definition grouped entry
-
remove
public static CPDefinitionGroupedEntry remove(long CPDefinitionGroupedEntryId) throws NoSuchCPDefinitionGroupedEntryException Removes the cp definition grouped entry with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
CPDefinitionGroupedEntryId- the primary key of the cp definition grouped entry- Returns:
- the cp definition grouped entry that was removed
-
updateImpl
public static CPDefinitionGroupedEntry updateImpl(CPDefinitionGroupedEntry cpDefinitionGroupedEntry) -
findByPrimaryKey
public static CPDefinitionGroupedEntry findByPrimaryKey(long CPDefinitionGroupedEntryId) throws NoSuchCPDefinitionGroupedEntryException Returns the cp definition grouped entry with the primary key or throws aNoSuchCPDefinitionGroupedEntryExceptionif it could not be found.- Parameters:
CPDefinitionGroupedEntryId- the primary key of the cp definition grouped entry- Returns:
- the cp definition grouped entry
-
fetchByPrimaryKey
Returns the cp definition grouped entry with the primary key or returnsnullif it could not be found.- Parameters:
CPDefinitionGroupedEntryId- the primary key of the cp definition grouped entry- Returns:
- the cp definition grouped entry, or
nullif a cp definition grouped entry with the primary key could not be found
-
fetchByUUID_G
Returns the cp definition grouped entry 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 grouped entry, or
nullif a matching cp definition grouped entry could not be found
-
fetchByC_E
Returns the cp definition grouped entry where CPDefinitionId = ? and entryCProductId = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
CPDefinitionId- the cp definition IDentryCProductId- the entry c product ID- Returns:
- the matching cp definition grouped entry, or
nullif a matching cp definition grouped entry could not be found
-
findByUuid
Returns all the cp definition grouped entries where uuid = ?.- Parameters:
uuid- the uuid- Returns:
- the matching cp definition grouped entries
-
findByUuid
Returns a range of all the cp definition grouped entries 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.type.grouped.model.impl.CPDefinitionGroupedEntryModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of cp definition grouped entriesend- the upper bound of the range of cp definition grouped entries (not inclusive)- Returns:
- the range of matching cp definition grouped entries
-
findByUuid
public static List<CPDefinitionGroupedEntry> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator) Returns an ordered range of all the cp definition grouped entries 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.type.grouped.model.impl.CPDefinitionGroupedEntryModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of cp definition grouped entriesend- the upper bound of the range of cp definition grouped entries (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching cp definition grouped entries
-
findByUuid_C
Returns all the cp definition grouped entries where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the matching cp definition grouped entries
-
findByUuid_C
public static List<CPDefinitionGroupedEntry> findByUuid_C(String uuid, long companyId, int start, int end) Returns a range of all the cp definition grouped entries 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.type.grouped.model.impl.CPDefinitionGroupedEntryModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of cp definition grouped entriesend- the upper bound of the range of cp definition grouped entries (not inclusive)- Returns:
- the range of matching cp definition grouped entries
-
findByUuid_C
public static List<CPDefinitionGroupedEntry> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator) Returns an ordered range of all the cp definition grouped entries 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.type.grouped.model.impl.CPDefinitionGroupedEntryModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of cp definition grouped entriesend- the upper bound of the range of cp definition grouped entries (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching cp definition grouped entries
-
findByCPDefinitionId
Returns all the cp definition grouped entries where CPDefinitionId = ?.- Parameters:
CPDefinitionId- the cp definition ID- Returns:
- the matching cp definition grouped entries
-
findByCPDefinitionId
public static List<CPDefinitionGroupedEntry> findByCPDefinitionId(long CPDefinitionId, int start, int end) Returns a range of all the cp definition grouped entries where CPDefinitionId = ?.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.type.grouped.model.impl.CPDefinitionGroupedEntryModelImpl.- Parameters:
CPDefinitionId- the cp definition IDstart- the lower bound of the range of cp definition grouped entriesend- the upper bound of the range of cp definition grouped entries (not inclusive)- Returns:
- the range of matching cp definition grouped entries
-
findByCPDefinitionId
public static List<CPDefinitionGroupedEntry> findByCPDefinitionId(long CPDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator) Returns an ordered range of all the cp definition grouped entries where CPDefinitionId = ?.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.type.grouped.model.impl.CPDefinitionGroupedEntryModelImpl.- Parameters:
CPDefinitionId- the cp definition IDstart- the lower bound of the range of cp definition grouped entriesend- the upper bound of the range of cp definition grouped entries (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching cp definition grouped entries
-
findByEntryCProductId
Returns all the cp definition grouped entries where entryCProductId = ?.- Parameters:
entryCProductId- the entry c product ID- Returns:
- the matching cp definition grouped entries
-
findByEntryCProductId
public static List<CPDefinitionGroupedEntry> findByEntryCProductId(long entryCProductId, int start, int end) Returns a range of all the cp definition grouped entries where entryCProductId = ?.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.type.grouped.model.impl.CPDefinitionGroupedEntryModelImpl.- Parameters:
entryCProductId- the entry c product IDstart- the lower bound of the range of cp definition grouped entriesend- the upper bound of the range of cp definition grouped entries (not inclusive)- Returns:
- the range of matching cp definition grouped entries
-
findByEntryCProductId
public static List<CPDefinitionGroupedEntry> findByEntryCProductId(long entryCProductId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionGroupedEntry> orderByComparator) Returns an ordered range of all the cp definition grouped entries where entryCProductId = ?.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.type.grouped.model.impl.CPDefinitionGroupedEntryModelImpl.- Parameters:
entryCProductId- the entry c product IDstart- the lower bound of the range of cp definition grouped entriesend- the upper bound of the range of cp definition grouped entries (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching cp definition grouped entries
-
getPersistence
-
setPersistence
-