Class CommerceTaxCategoryMappingUtil
com.liferay.commerce.tax.service.persistence.impl.CommerceTaxCategoryMappingPersistenceImpl
and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
cacheResult
(CommerceTaxCategoryMapping commerceTaxCategoryMapping) Caches the commerce tax category mapping in the entity cache if it is enabled.static void
cacheResult
(List<CommerceTaxCategoryMapping> commerceTaxCategoryMappings) Caches the commerce tax category mappings in the entity cache if it is enabled.static void
static void
clearCache
(CommerceTaxCategoryMapping commerceTaxCategoryMapping) static int
countAll()
Returns the number of commerce tax category mappings.static int
countByC_C
(long commerceTaxMethodId, long CPTaxCategoryId) Returns the number of commerce tax category mappings where commerceTaxMethodId = ? and CPTaxCategoryId = ?.static int
countByCommerceTaxMethodId
(long commerceTaxMethodId) Returns the number of commerce tax category mappings where commerceTaxMethodId = ?.static int
countByERC_C
(String externalReferenceCode, long companyId) Returns the number of commerce tax category mappings where externalReferenceCode = ? and companyId = ?.static int
countByUuid
(String uuid) Returns the number of commerce tax category mappings where uuid = ?.static int
countByUuid_C
(String uuid, long companyId) Returns the number of commerce tax category mappings where uuid = ? and companyId = ?.static int
countByUUID_G
(String uuid, long groupId) Returns the number of commerce tax category mappings where uuid = ? and groupId = ?.static long
countWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static CommerceTaxCategoryMapping
create
(long commerceTaxCategoryMappingId) Creates a new commerce tax category mapping with the primary key.static CommerceTaxCategoryMapping
fetchByC_C
(long commerceTaxMethodId, long CPTaxCategoryId) Returns the commerce tax category mapping where commerceTaxMethodId = ? and CPTaxCategoryId = ? or returnsnull
if it could not be found.static CommerceTaxCategoryMapping
fetchByC_C
(long commerceTaxMethodId, long CPTaxCategoryId, boolean useFinderCache) Returns the commerce tax category mapping where commerceTaxMethodId = ? and CPTaxCategoryId = ? or returnsnull
if it could not be found, optionally using the finder cache.static CommerceTaxCategoryMapping
fetchByCommerceTaxMethodId_First
(long commerceTaxMethodId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxCategoryMapping> orderByComparator) Returns the first commerce tax category mapping in the ordered set where commerceTaxMethodId = ?.static CommerceTaxCategoryMapping
fetchByCommerceTaxMethodId_Last
(long commerceTaxMethodId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxCategoryMapping> orderByComparator) Returns the last commerce tax category mapping in the ordered set where commerceTaxMethodId = ?.static CommerceTaxCategoryMapping
fetchByERC_C
(String externalReferenceCode, long companyId) Returns the commerce tax category mapping where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found.static CommerceTaxCategoryMapping
fetchByERC_C
(String externalReferenceCode, long companyId, boolean useFinderCache) Returns the commerce tax category mapping where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found, optionally using the finder cache.static CommerceTaxCategoryMapping
fetchByPrimaryKey
(long commerceTaxCategoryMappingId) Returns the commerce tax category mapping with the primary key or returnsnull
if it could not be found.fetchByPrimaryKeys
(Set<Serializable> primaryKeys) static CommerceTaxCategoryMapping
fetchByUuid_C_First
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxCategoryMapping> orderByComparator) Returns the first commerce tax category mapping in the ordered set where uuid = ? and companyId = ?.static CommerceTaxCategoryMapping
fetchByUuid_C_Last
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxCategoryMapping> orderByComparator) Returns the last commerce tax category mapping in the ordered set where uuid = ? and companyId = ?.static CommerceTaxCategoryMapping
fetchByUuid_First
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxCategoryMapping> orderByComparator) Returns the first commerce tax category mapping in the ordered set where uuid = ?.static CommerceTaxCategoryMapping
fetchByUUID_G
(String uuid, long groupId) Returns the commerce tax category mapping where uuid = ? and groupId = ? or returnsnull
if it could not be found.static CommerceTaxCategoryMapping
fetchByUUID_G
(String uuid, long groupId, boolean useFinderCache) Returns the commerce tax category mapping where uuid = ? and groupId = ? or returnsnull
if it could not be found, optionally using the finder cache.static CommerceTaxCategoryMapping
fetchByUuid_Last
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxCategoryMapping> orderByComparator) Returns the last commerce tax category mapping in the ordered set where uuid = ?.static List<CommerceTaxCategoryMapping>
findAll()
Returns all the commerce tax category mappings.static List<CommerceTaxCategoryMapping>
findAll
(int start, int end) Returns a range of all the commerce tax category mappings.static List<CommerceTaxCategoryMapping>
findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxCategoryMapping> orderByComparator) Returns an ordered range of all the commerce tax category mappings.static List<CommerceTaxCategoryMapping>
findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxCategoryMapping> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce tax category mappings.static CommerceTaxCategoryMapping
findByC_C
(long commerceTaxMethodId, long CPTaxCategoryId) Returns the commerce tax category mapping where commerceTaxMethodId = ? and CPTaxCategoryId = ? or throws aNoSuchTaxCategoryMappingException
if it could not be found.static List<CommerceTaxCategoryMapping>
findByCommerceTaxMethodId
(long commerceTaxMethodId) Returns all the commerce tax category mappings where commerceTaxMethodId = ?.static List<CommerceTaxCategoryMapping>
findByCommerceTaxMethodId
(long commerceTaxMethodId, int start, int end) Returns a range of all the commerce tax category mappings where commerceTaxMethodId = ?.static List<CommerceTaxCategoryMapping>
findByCommerceTaxMethodId
(long commerceTaxMethodId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxCategoryMapping> orderByComparator) Returns an ordered range of all the commerce tax category mappings where commerceTaxMethodId = ?.static List<CommerceTaxCategoryMapping>
findByCommerceTaxMethodId
(long commerceTaxMethodId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxCategoryMapping> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce tax category mappings where commerceTaxMethodId = ?.static CommerceTaxCategoryMapping
findByCommerceTaxMethodId_First
(long commerceTaxMethodId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxCategoryMapping> orderByComparator) Returns the first commerce tax category mapping in the ordered set where commerceTaxMethodId = ?.static CommerceTaxCategoryMapping
findByCommerceTaxMethodId_Last
(long commerceTaxMethodId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxCategoryMapping> orderByComparator) Returns the last commerce tax category mapping in the ordered set where commerceTaxMethodId = ?.static CommerceTaxCategoryMapping[]
findByCommerceTaxMethodId_PrevAndNext
(long commerceTaxCategoryMappingId, long commerceTaxMethodId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxCategoryMapping> orderByComparator) Returns the commerce tax category mappings before and after the current commerce tax category mapping in the ordered set where commerceTaxMethodId = ?.static CommerceTaxCategoryMapping
findByERC_C
(String externalReferenceCode, long companyId) Returns the commerce tax category mapping where externalReferenceCode = ? and companyId = ? or throws aNoSuchTaxCategoryMappingException
if it could not be found.static CommerceTaxCategoryMapping
findByPrimaryKey
(long commerceTaxCategoryMappingId) Returns the commerce tax category mapping with the primary key or throws aNoSuchTaxCategoryMappingException
if it could not be found.static List<CommerceTaxCategoryMapping>
findByUuid
(String uuid) Returns all the commerce tax category mappings where uuid = ?.static List<CommerceTaxCategoryMapping>
findByUuid
(String uuid, int start, int end) Returns a range of all the commerce tax category mappings where uuid = ?.static List<CommerceTaxCategoryMapping>
findByUuid
(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxCategoryMapping> orderByComparator) Returns an ordered range of all the commerce tax category mappings where uuid = ?.static List<CommerceTaxCategoryMapping>
findByUuid
(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxCategoryMapping> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce tax category mappings where uuid = ?.static List<CommerceTaxCategoryMapping>
findByUuid_C
(String uuid, long companyId) Returns all the commerce tax category mappings where uuid = ? and companyId = ?.static List<CommerceTaxCategoryMapping>
findByUuid_C
(String uuid, long companyId, int start, int end) Returns a range of all the commerce tax category mappings where uuid = ? and companyId = ?.static List<CommerceTaxCategoryMapping>
findByUuid_C
(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxCategoryMapping> orderByComparator) Returns an ordered range of all the commerce tax category mappings where uuid = ? and companyId = ?.static List<CommerceTaxCategoryMapping>
findByUuid_C
(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxCategoryMapping> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce tax category mappings where uuid = ? and companyId = ?.static CommerceTaxCategoryMapping
findByUuid_C_First
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxCategoryMapping> orderByComparator) Returns the first commerce tax category mapping in the ordered set where uuid = ? and companyId = ?.static CommerceTaxCategoryMapping
findByUuid_C_Last
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxCategoryMapping> orderByComparator) Returns the last commerce tax category mapping in the ordered set where uuid = ? and companyId = ?.static CommerceTaxCategoryMapping[]
findByUuid_C_PrevAndNext
(long commerceTaxCategoryMappingId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxCategoryMapping> orderByComparator) Returns the commerce tax category mappings before and after the current commerce tax category mapping in the ordered set where uuid = ? and companyId = ?.static CommerceTaxCategoryMapping
findByUuid_First
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxCategoryMapping> orderByComparator) Returns the first commerce tax category mapping in the ordered set where uuid = ?.static CommerceTaxCategoryMapping
findByUUID_G
(String uuid, long groupId) Returns the commerce tax category mapping where uuid = ? and groupId = ? or throws aNoSuchTaxCategoryMappingException
if it could not be found.static CommerceTaxCategoryMapping
findByUuid_Last
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxCategoryMapping> orderByComparator) Returns the last commerce tax category mapping in the ordered set where uuid = ?.static CommerceTaxCategoryMapping[]
findByUuid_PrevAndNext
(long commerceTaxCategoryMappingId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxCategoryMapping> orderByComparator) Returns the commerce tax category mappings before and after the current commerce tax category mapping in the ordered set where uuid = ?.static List<CommerceTaxCategoryMapping>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<CommerceTaxCategoryMapping>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<CommerceTaxCategoryMapping>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxCategoryMapping> orderByComparator) static CommerceTaxCategoryMapping
remove
(long commerceTaxCategoryMappingId) Removes the commerce tax category mapping with the primary key from the database.static void
Removes all the commerce tax category mappings from the database.static CommerceTaxCategoryMapping
removeByC_C
(long commerceTaxMethodId, long CPTaxCategoryId) Removes the commerce tax category mapping where commerceTaxMethodId = ? and CPTaxCategoryId = ? from the database.static void
removeByCommerceTaxMethodId
(long commerceTaxMethodId) Removes all the commerce tax category mappings where commerceTaxMethodId = ? from the database.static CommerceTaxCategoryMapping
removeByERC_C
(String externalReferenceCode, long companyId) Removes the commerce tax category mapping where externalReferenceCode = ? and companyId = ? from the database.static void
removeByUuid
(String uuid) Removes all the commerce tax category mappings where uuid = ? from the database.static void
removeByUuid_C
(String uuid, long companyId) Removes all the commerce tax category mappings where uuid = ? and companyId = ? from the database.static CommerceTaxCategoryMapping
removeByUUID_G
(String uuid, long groupId) Removes the commerce tax category mapping where uuid = ? and groupId = ? from the database.static void
setPersistence
(CommerceTaxCategoryMappingPersistence persistence) static CommerceTaxCategoryMapping
update
(CommerceTaxCategoryMapping commerceTaxCategoryMapping) static CommerceTaxCategoryMapping
update
(CommerceTaxCategoryMapping commerceTaxCategoryMapping, com.liferay.portal.kernel.service.ServiceContext serviceContext) static CommerceTaxCategoryMapping
updateImpl
(CommerceTaxCategoryMapping commerceTaxCategoryMapping)
-
Constructor Details
-
CommerceTaxCategoryMappingUtil
public CommerceTaxCategoryMappingUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
BasePersistence.clearCache()
-
clearCache
- See Also:
-
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.countWithDynamicQuery(DynamicQuery)
-
fetchByPrimaryKeys
public static Map<Serializable,CommerceTaxCategoryMapping> fetchByPrimaryKeys(Set<Serializable> primaryKeys) - See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<CommerceTaxCategoryMapping> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<CommerceTaxCategoryMapping> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<CommerceTaxCategoryMapping> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxCategoryMapping> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
public static CommerceTaxCategoryMapping update(CommerceTaxCategoryMapping commerceTaxCategoryMapping) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static CommerceTaxCategoryMapping update(CommerceTaxCategoryMapping commerceTaxCategoryMapping, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
findByUuid
Returns all the commerce tax category mappings where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the matching commerce tax category mappings
-
findByUuid
Returns a range of all the commerce tax category mappings where uuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceTaxCategoryMappingModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of commerce tax category mappingsend
- the upper bound of the range of commerce tax category mappings (not inclusive)- Returns:
- the range of matching commerce tax category mappings
-
findByUuid
public static List<CommerceTaxCategoryMapping> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxCategoryMapping> orderByComparator) Returns an ordered range of all the commerce tax category mappings where uuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceTaxCategoryMappingModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of commerce tax category mappingsend
- the upper bound of the range of commerce tax category mappings (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching commerce tax category mappings
-
findByUuid
public static List<CommerceTaxCategoryMapping> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxCategoryMapping> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce tax category mappings where uuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceTaxCategoryMappingModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of commerce tax category mappingsend
- the upper bound of the range of commerce tax category mappings (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce tax category mappings
-
findByUuid_First
public static CommerceTaxCategoryMapping findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxCategoryMapping> orderByComparator) throws NoSuchTaxCategoryMappingException Returns the first commerce tax category mapping in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce tax category mapping
- Throws:
NoSuchTaxCategoryMappingException
- if a matching commerce tax category mapping could not be foundNoSuchTaxCategoryMappingException
-
fetchByUuid_First
public static CommerceTaxCategoryMapping fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxCategoryMapping> orderByComparator) Returns the first commerce tax category mapping in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce tax category mapping, or
null
if a matching commerce tax category mapping could not be found
-
findByUuid_Last
public static CommerceTaxCategoryMapping findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxCategoryMapping> orderByComparator) throws NoSuchTaxCategoryMappingException Returns the last commerce tax category mapping in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce tax category mapping
- Throws:
NoSuchTaxCategoryMappingException
- if a matching commerce tax category mapping could not be foundNoSuchTaxCategoryMappingException
-
fetchByUuid_Last
public static CommerceTaxCategoryMapping fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxCategoryMapping> orderByComparator) Returns the last commerce tax category mapping in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce tax category mapping, or
null
if a matching commerce tax category mapping could not be found
-
findByUuid_PrevAndNext
public static CommerceTaxCategoryMapping[] findByUuid_PrevAndNext(long commerceTaxCategoryMappingId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxCategoryMapping> orderByComparator) throws NoSuchTaxCategoryMappingException Returns the commerce tax category mappings before and after the current commerce tax category mapping in the ordered set where uuid = ?.- Parameters:
commerceTaxCategoryMappingId
- the primary key of the current commerce tax category mappinguuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce tax category mapping
- Throws:
NoSuchTaxCategoryMappingException
- if a commerce tax category mapping with the primary key could not be foundNoSuchTaxCategoryMappingException
-
removeByUuid
Removes all the commerce tax category mappings where uuid = ? from the database.- Parameters:
uuid
- the uuid
-
countByUuid
Returns the number of commerce tax category mappings where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the number of matching commerce tax category mappings
-
findByUUID_G
public static CommerceTaxCategoryMapping findByUUID_G(String uuid, long groupId) throws NoSuchTaxCategoryMappingException Returns the commerce tax category mapping where uuid = ? and groupId = ? or throws aNoSuchTaxCategoryMappingException
if it could not be found.- Parameters:
uuid
- the uuidgroupId
- the group ID- Returns:
- the matching commerce tax category mapping
- Throws:
NoSuchTaxCategoryMappingException
- if a matching commerce tax category mapping could not be foundNoSuchTaxCategoryMappingException
-
fetchByUUID_G
Returns the commerce tax category mapping where uuid = ? and groupId = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
uuid
- the uuidgroupId
- the group ID- Returns:
- the matching commerce tax category mapping, or
null
if a matching commerce tax category mapping could not be found
-
fetchByUUID_G
public static CommerceTaxCategoryMapping fetchByUUID_G(String uuid, long groupId, boolean useFinderCache) Returns the commerce tax category mapping where uuid = ? and groupId = ? or returnsnull
if 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 commerce tax category mapping, or
null
if a matching commerce tax category mapping could not be found
-
removeByUUID_G
public static CommerceTaxCategoryMapping removeByUUID_G(String uuid, long groupId) throws NoSuchTaxCategoryMappingException Removes the commerce tax category mapping where uuid = ? and groupId = ? from the database.- Parameters:
uuid
- the uuidgroupId
- the group ID- Returns:
- the commerce tax category mapping that was removed
- Throws:
NoSuchTaxCategoryMappingException
-
countByUUID_G
Returns the number of commerce tax category mappings where uuid = ? and groupId = ?.- Parameters:
uuid
- the uuidgroupId
- the group ID- Returns:
- the number of matching commerce tax category mappings
-
findByUuid_C
Returns all the commerce tax category mappings where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the matching commerce tax category mappings
-
findByUuid_C
public static List<CommerceTaxCategoryMapping> findByUuid_C(String uuid, long companyId, int start, int end) Returns a range of all the commerce tax category mappings where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceTaxCategoryMappingModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of commerce tax category mappingsend
- the upper bound of the range of commerce tax category mappings (not inclusive)- Returns:
- the range of matching commerce tax category mappings
-
findByUuid_C
public static List<CommerceTaxCategoryMapping> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxCategoryMapping> orderByComparator) Returns an ordered range of all the commerce tax category mappings where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceTaxCategoryMappingModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of commerce tax category mappingsend
- the upper bound of the range of commerce tax category mappings (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching commerce tax category mappings
-
findByUuid_C
public static List<CommerceTaxCategoryMapping> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxCategoryMapping> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce tax category mappings where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceTaxCategoryMappingModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of commerce tax category mappingsend
- the upper bound of the range of commerce tax category mappings (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce tax category mappings
-
findByUuid_C_First
public static CommerceTaxCategoryMapping findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxCategoryMapping> orderByComparator) throws NoSuchTaxCategoryMappingException Returns the first commerce tax category mapping in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce tax category mapping
- Throws:
NoSuchTaxCategoryMappingException
- if a matching commerce tax category mapping could not be foundNoSuchTaxCategoryMappingException
-
fetchByUuid_C_First
public static CommerceTaxCategoryMapping fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxCategoryMapping> orderByComparator) Returns the first commerce tax category mapping in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce tax category mapping, or
null
if a matching commerce tax category mapping could not be found
-
findByUuid_C_Last
public static CommerceTaxCategoryMapping findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxCategoryMapping> orderByComparator) throws NoSuchTaxCategoryMappingException Returns the last commerce tax category mapping in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce tax category mapping
- Throws:
NoSuchTaxCategoryMappingException
- if a matching commerce tax category mapping could not be foundNoSuchTaxCategoryMappingException
-
fetchByUuid_C_Last
public static CommerceTaxCategoryMapping fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxCategoryMapping> orderByComparator) Returns the last commerce tax category mapping in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce tax category mapping, or
null
if a matching commerce tax category mapping could not be found
-
findByUuid_C_PrevAndNext
public static CommerceTaxCategoryMapping[] findByUuid_C_PrevAndNext(long commerceTaxCategoryMappingId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxCategoryMapping> orderByComparator) throws NoSuchTaxCategoryMappingException Returns the commerce tax category mappings before and after the current commerce tax category mapping in the ordered set where uuid = ? and companyId = ?.- Parameters:
commerceTaxCategoryMappingId
- the primary key of the current commerce tax category mappinguuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce tax category mapping
- Throws:
NoSuchTaxCategoryMappingException
- if a commerce tax category mapping with the primary key could not be foundNoSuchTaxCategoryMappingException
-
removeByUuid_C
Removes all the commerce tax category mappings where uuid = ? and companyId = ? from the database.- Parameters:
uuid
- the uuidcompanyId
- the company ID
-
countByUuid_C
Returns the number of commerce tax category mappings where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the number of matching commerce tax category mappings
-
findByCommerceTaxMethodId
Returns all the commerce tax category mappings where commerceTaxMethodId = ?.- Parameters:
commerceTaxMethodId
- the commerce tax method ID- Returns:
- the matching commerce tax category mappings
-
findByCommerceTaxMethodId
public static List<CommerceTaxCategoryMapping> findByCommerceTaxMethodId(long commerceTaxMethodId, int start, int end) Returns a range of all the commerce tax category mappings where commerceTaxMethodId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceTaxCategoryMappingModelImpl
.- Parameters:
commerceTaxMethodId
- the commerce tax method IDstart
- the lower bound of the range of commerce tax category mappingsend
- the upper bound of the range of commerce tax category mappings (not inclusive)- Returns:
- the range of matching commerce tax category mappings
-
findByCommerceTaxMethodId
public static List<CommerceTaxCategoryMapping> findByCommerceTaxMethodId(long commerceTaxMethodId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxCategoryMapping> orderByComparator) Returns an ordered range of all the commerce tax category mappings where commerceTaxMethodId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceTaxCategoryMappingModelImpl
.- Parameters:
commerceTaxMethodId
- the commerce tax method IDstart
- the lower bound of the range of commerce tax category mappingsend
- the upper bound of the range of commerce tax category mappings (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching commerce tax category mappings
-
findByCommerceTaxMethodId
public static List<CommerceTaxCategoryMapping> findByCommerceTaxMethodId(long commerceTaxMethodId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxCategoryMapping> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce tax category mappings where commerceTaxMethodId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceTaxCategoryMappingModelImpl
.- Parameters:
commerceTaxMethodId
- the commerce tax method IDstart
- the lower bound of the range of commerce tax category mappingsend
- the upper bound of the range of commerce tax category mappings (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching commerce tax category mappings
-
findByCommerceTaxMethodId_First
public static CommerceTaxCategoryMapping findByCommerceTaxMethodId_First(long commerceTaxMethodId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxCategoryMapping> orderByComparator) throws NoSuchTaxCategoryMappingException Returns the first commerce tax category mapping in the ordered set where commerceTaxMethodId = ?.- Parameters:
commerceTaxMethodId
- the commerce tax method IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce tax category mapping
- Throws:
NoSuchTaxCategoryMappingException
- if a matching commerce tax category mapping could not be foundNoSuchTaxCategoryMappingException
-
fetchByCommerceTaxMethodId_First
public static CommerceTaxCategoryMapping fetchByCommerceTaxMethodId_First(long commerceTaxMethodId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxCategoryMapping> orderByComparator) Returns the first commerce tax category mapping in the ordered set where commerceTaxMethodId = ?.- Parameters:
commerceTaxMethodId
- the commerce tax method IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce tax category mapping, or
null
if a matching commerce tax category mapping could not be found
-
findByCommerceTaxMethodId_Last
public static CommerceTaxCategoryMapping findByCommerceTaxMethodId_Last(long commerceTaxMethodId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxCategoryMapping> orderByComparator) throws NoSuchTaxCategoryMappingException Returns the last commerce tax category mapping in the ordered set where commerceTaxMethodId = ?.- Parameters:
commerceTaxMethodId
- the commerce tax method IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce tax category mapping
- Throws:
NoSuchTaxCategoryMappingException
- if a matching commerce tax category mapping could not be foundNoSuchTaxCategoryMappingException
-
fetchByCommerceTaxMethodId_Last
public static CommerceTaxCategoryMapping fetchByCommerceTaxMethodId_Last(long commerceTaxMethodId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxCategoryMapping> orderByComparator) Returns the last commerce tax category mapping in the ordered set where commerceTaxMethodId = ?.- Parameters:
commerceTaxMethodId
- the commerce tax method IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce tax category mapping, or
null
if a matching commerce tax category mapping could not be found
-
findByCommerceTaxMethodId_PrevAndNext
public static CommerceTaxCategoryMapping[] findByCommerceTaxMethodId_PrevAndNext(long commerceTaxCategoryMappingId, long commerceTaxMethodId, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxCategoryMapping> orderByComparator) throws NoSuchTaxCategoryMappingException Returns the commerce tax category mappings before and after the current commerce tax category mapping in the ordered set where commerceTaxMethodId = ?.- Parameters:
commerceTaxCategoryMappingId
- the primary key of the current commerce tax category mappingcommerceTaxMethodId
- the commerce tax method IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce tax category mapping
- Throws:
NoSuchTaxCategoryMappingException
- if a commerce tax category mapping with the primary key could not be foundNoSuchTaxCategoryMappingException
-
removeByCommerceTaxMethodId
public static void removeByCommerceTaxMethodId(long commerceTaxMethodId) Removes all the commerce tax category mappings where commerceTaxMethodId = ? from the database.- Parameters:
commerceTaxMethodId
- the commerce tax method ID
-
countByCommerceTaxMethodId
public static int countByCommerceTaxMethodId(long commerceTaxMethodId) Returns the number of commerce tax category mappings where commerceTaxMethodId = ?.- Parameters:
commerceTaxMethodId
- the commerce tax method ID- Returns:
- the number of matching commerce tax category mappings
-
findByC_C
public static CommerceTaxCategoryMapping findByC_C(long commerceTaxMethodId, long CPTaxCategoryId) throws NoSuchTaxCategoryMappingException Returns the commerce tax category mapping where commerceTaxMethodId = ? and CPTaxCategoryId = ? or throws aNoSuchTaxCategoryMappingException
if it could not be found.- Parameters:
commerceTaxMethodId
- the commerce tax method IDCPTaxCategoryId
- the cp tax category ID- Returns:
- the matching commerce tax category mapping
- Throws:
NoSuchTaxCategoryMappingException
- if a matching commerce tax category mapping could not be foundNoSuchTaxCategoryMappingException
-
fetchByC_C
Returns the commerce tax category mapping where commerceTaxMethodId = ? and CPTaxCategoryId = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
commerceTaxMethodId
- the commerce tax method IDCPTaxCategoryId
- the cp tax category ID- Returns:
- the matching commerce tax category mapping, or
null
if a matching commerce tax category mapping could not be found
-
fetchByC_C
public static CommerceTaxCategoryMapping fetchByC_C(long commerceTaxMethodId, long CPTaxCategoryId, boolean useFinderCache) Returns the commerce tax category mapping where commerceTaxMethodId = ? and CPTaxCategoryId = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
commerceTaxMethodId
- the commerce tax method IDCPTaxCategoryId
- the cp tax category IDuseFinderCache
- whether to use the finder cache- Returns:
- the matching commerce tax category mapping, or
null
if a matching commerce tax category mapping could not be found
-
removeByC_C
public static CommerceTaxCategoryMapping removeByC_C(long commerceTaxMethodId, long CPTaxCategoryId) throws NoSuchTaxCategoryMappingException Removes the commerce tax category mapping where commerceTaxMethodId = ? and CPTaxCategoryId = ? from the database.- Parameters:
commerceTaxMethodId
- the commerce tax method IDCPTaxCategoryId
- the cp tax category ID- Returns:
- the commerce tax category mapping that was removed
- Throws:
NoSuchTaxCategoryMappingException
-
countByC_C
public static int countByC_C(long commerceTaxMethodId, long CPTaxCategoryId) Returns the number of commerce tax category mappings where commerceTaxMethodId = ? and CPTaxCategoryId = ?.- Parameters:
commerceTaxMethodId
- the commerce tax method IDCPTaxCategoryId
- the cp tax category ID- Returns:
- the number of matching commerce tax category mappings
-
findByERC_C
public static CommerceTaxCategoryMapping findByERC_C(String externalReferenceCode, long companyId) throws NoSuchTaxCategoryMappingException Returns the commerce tax category mapping where externalReferenceCode = ? and companyId = ? or throws aNoSuchTaxCategoryMappingException
if it could not be found.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the matching commerce tax category mapping
- Throws:
NoSuchTaxCategoryMappingException
- if a matching commerce tax category mapping could not be foundNoSuchTaxCategoryMappingException
-
fetchByERC_C
Returns the commerce tax category mapping where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the matching commerce tax category mapping, or
null
if a matching commerce tax category mapping could not be found
-
fetchByERC_C
public static CommerceTaxCategoryMapping fetchByERC_C(String externalReferenceCode, long companyId, boolean useFinderCache) Returns the commerce tax category mapping where externalReferenceCode = ? and companyId = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company IDuseFinderCache
- whether to use the finder cache- Returns:
- the matching commerce tax category mapping, or
null
if a matching commerce tax category mapping could not be found
-
removeByERC_C
public static CommerceTaxCategoryMapping removeByERC_C(String externalReferenceCode, long companyId) throws NoSuchTaxCategoryMappingException Removes the commerce tax category mapping where externalReferenceCode = ? and companyId = ? from the database.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the commerce tax category mapping that was removed
- Throws:
NoSuchTaxCategoryMappingException
-
countByERC_C
Returns the number of commerce tax category mappings where externalReferenceCode = ? and companyId = ?.- Parameters:
externalReferenceCode
- the external reference codecompanyId
- the company ID- Returns:
- the number of matching commerce tax category mappings
-
cacheResult
Caches the commerce tax category mapping in the entity cache if it is enabled.- Parameters:
commerceTaxCategoryMapping
- the commerce tax category mapping
-
cacheResult
Caches the commerce tax category mappings in the entity cache if it is enabled.- Parameters:
commerceTaxCategoryMappings
- the commerce tax category mappings
-
create
Creates a new commerce tax category mapping with the primary key. Does not add the commerce tax category mapping to the database.- Parameters:
commerceTaxCategoryMappingId
- the primary key for the new commerce tax category mapping- Returns:
- the new commerce tax category mapping
-
remove
public static CommerceTaxCategoryMapping remove(long commerceTaxCategoryMappingId) throws NoSuchTaxCategoryMappingException Removes the commerce tax category mapping with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
commerceTaxCategoryMappingId
- the primary key of the commerce tax category mapping- Returns:
- the commerce tax category mapping that was removed
- Throws:
NoSuchTaxCategoryMappingException
- if a commerce tax category mapping with the primary key could not be foundNoSuchTaxCategoryMappingException
-
updateImpl
public static CommerceTaxCategoryMapping updateImpl(CommerceTaxCategoryMapping commerceTaxCategoryMapping) -
findByPrimaryKey
public static CommerceTaxCategoryMapping findByPrimaryKey(long commerceTaxCategoryMappingId) throws NoSuchTaxCategoryMappingException Returns the commerce tax category mapping with the primary key or throws aNoSuchTaxCategoryMappingException
if it could not be found.- Parameters:
commerceTaxCategoryMappingId
- the primary key of the commerce tax category mapping- Returns:
- the commerce tax category mapping
- Throws:
NoSuchTaxCategoryMappingException
- if a commerce tax category mapping with the primary key could not be foundNoSuchTaxCategoryMappingException
-
fetchByPrimaryKey
Returns the commerce tax category mapping with the primary key or returnsnull
if it could not be found.- Parameters:
commerceTaxCategoryMappingId
- the primary key of the commerce tax category mapping- Returns:
- the commerce tax category mapping, or
null
if a commerce tax category mapping with the primary key could not be found
-
findAll
Returns all the commerce tax category mappings.- Returns:
- the commerce tax category mappings
-
findAll
Returns a range of all the commerce tax category mappings.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceTaxCategoryMappingModelImpl
.- Parameters:
start
- the lower bound of the range of commerce tax category mappingsend
- the upper bound of the range of commerce tax category mappings (not inclusive)- Returns:
- the range of commerce tax category mappings
-
findAll
public static List<CommerceTaxCategoryMapping> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxCategoryMapping> orderByComparator) Returns an ordered range of all the commerce tax category mappings.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceTaxCategoryMappingModelImpl
.- Parameters:
start
- the lower bound of the range of commerce tax category mappingsend
- the upper bound of the range of commerce tax category mappings (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of commerce tax category mappings
-
findAll
public static List<CommerceTaxCategoryMapping> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceTaxCategoryMapping> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce tax category mappings.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceTaxCategoryMappingModelImpl
.- Parameters:
start
- the lower bound of the range of commerce tax category mappingsend
- the upper bound of the range of commerce tax category mappings (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of commerce tax category mappings
-
removeAll
public static void removeAll()Removes all the commerce tax category mappings from the database. -
countAll
public static int countAll()Returns the number of commerce tax category mappings.- Returns:
- the number of commerce tax category mappings
-
getPersistence
-
setPersistence
-