Class CommerceAddressRestrictionUtil
com.liferay.commerce.service.persistence.impl.CommerceAddressRestrictionPersistenceImpl
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
(CommerceAddressRestriction commerceAddressRestriction) Caches the commerce address restriction in the entity cache if it is enabled.static void
cacheResult
(List<CommerceAddressRestriction> commerceAddressRestrictions) Caches the commerce address restrictions in the entity cache if it is enabled.static void
static void
clearCache
(CommerceAddressRestriction commerceAddressRestriction) static int
countAll()
Returns the number of commerce address restrictions.static int
countByC_C
(long classNameId, long classPK) Returns the number of commerce address restrictions where classNameId = ? and classPK = ?.static int
countByC_C_C
(long classNameId, long classPK, long countryId) Returns the number of commerce address restrictions where classNameId = ? and classPK = ? and countryId = ?.static int
countByCountryId
(long countryId) Returns the number of commerce address restrictions where countryId = ?.static long
countWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static CommerceAddressRestriction
create
(long commerceAddressRestrictionId) Creates a new commerce address restriction with the primary key.static CommerceAddressRestriction
fetchByC_C_C
(long classNameId, long classPK, long countryId) Returns the commerce address restriction where classNameId = ? and classPK = ? and countryId = ? or returnsnull
if it could not be found.static CommerceAddressRestriction
fetchByC_C_C
(long classNameId, long classPK, long countryId, boolean useFinderCache) Returns the commerce address restriction where classNameId = ? and classPK = ? and countryId = ? or returnsnull
if it could not be found, optionally using the finder cache.static CommerceAddressRestriction
fetchByC_C_First
(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator) Returns the first commerce address restriction in the ordered set where classNameId = ? and classPK = ?.static CommerceAddressRestriction
fetchByC_C_Last
(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator) Returns the last commerce address restriction in the ordered set where classNameId = ? and classPK = ?.static CommerceAddressRestriction
fetchByCountryId_First
(long countryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator) Returns the first commerce address restriction in the ordered set where countryId = ?.static CommerceAddressRestriction
fetchByCountryId_Last
(long countryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator) Returns the last commerce address restriction in the ordered set where countryId = ?.static CommerceAddressRestriction
fetchByPrimaryKey
(long commerceAddressRestrictionId) Returns the commerce address restriction with the primary key or returnsnull
if it could not be found.fetchByPrimaryKeys
(Set<Serializable> primaryKeys) static List<CommerceAddressRestriction>
findAll()
Returns all the commerce address restrictions.static List<CommerceAddressRestriction>
findAll
(int start, int end) Returns a range of all the commerce address restrictions.static List<CommerceAddressRestriction>
findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator) Returns an ordered range of all the commerce address restrictions.static List<CommerceAddressRestriction>
findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce address restrictions.static List<CommerceAddressRestriction>
findByC_C
(long classNameId, long classPK) Returns all the commerce address restrictions where classNameId = ? and classPK = ?.static List<CommerceAddressRestriction>
findByC_C
(long classNameId, long classPK, int start, int end) Returns a range of all the commerce address restrictions where classNameId = ? and classPK = ?.static List<CommerceAddressRestriction>
findByC_C
(long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator) Returns an ordered range of all the commerce address restrictions where classNameId = ? and classPK = ?.static List<CommerceAddressRestriction>
findByC_C
(long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce address restrictions where classNameId = ? and classPK = ?.static CommerceAddressRestriction
findByC_C_C
(long classNameId, long classPK, long countryId) Returns the commerce address restriction where classNameId = ? and classPK = ? and countryId = ? or throws aNoSuchAddressRestrictionException
if it could not be found.static CommerceAddressRestriction
findByC_C_First
(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator) Returns the first commerce address restriction in the ordered set where classNameId = ? and classPK = ?.static CommerceAddressRestriction
findByC_C_Last
(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator) Returns the last commerce address restriction in the ordered set where classNameId = ? and classPK = ?.static CommerceAddressRestriction[]
findByC_C_PrevAndNext
(long commerceAddressRestrictionId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator) Returns the commerce address restrictions before and after the current commerce address restriction in the ordered set where classNameId = ? and classPK = ?.static List<CommerceAddressRestriction>
findByCountryId
(long countryId) Returns all the commerce address restrictions where countryId = ?.static List<CommerceAddressRestriction>
findByCountryId
(long countryId, int start, int end) Returns a range of all the commerce address restrictions where countryId = ?.static List<CommerceAddressRestriction>
findByCountryId
(long countryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator) Returns an ordered range of all the commerce address restrictions where countryId = ?.static List<CommerceAddressRestriction>
findByCountryId
(long countryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce address restrictions where countryId = ?.static CommerceAddressRestriction
findByCountryId_First
(long countryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator) Returns the first commerce address restriction in the ordered set where countryId = ?.static CommerceAddressRestriction
findByCountryId_Last
(long countryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator) Returns the last commerce address restriction in the ordered set where countryId = ?.static CommerceAddressRestriction[]
findByCountryId_PrevAndNext
(long commerceAddressRestrictionId, long countryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator) Returns the commerce address restrictions before and after the current commerce address restriction in the ordered set where countryId = ?.static CommerceAddressRestriction
findByPrimaryKey
(long commerceAddressRestrictionId) Returns the commerce address restriction with the primary key or throws aNoSuchAddressRestrictionException
if it could not be found.static List<CommerceAddressRestriction>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<CommerceAddressRestriction>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<CommerceAddressRestriction>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator) static CommerceAddressRestriction
remove
(long commerceAddressRestrictionId) Removes the commerce address restriction with the primary key from the database.static void
Removes all the commerce address restrictions from the database.static void
removeByC_C
(long classNameId, long classPK) Removes all the commerce address restrictions where classNameId = ? and classPK = ? from the database.static CommerceAddressRestriction
removeByC_C_C
(long classNameId, long classPK, long countryId) Removes the commerce address restriction where classNameId = ? and classPK = ? and countryId = ? from the database.static void
removeByCountryId
(long countryId) Removes all the commerce address restrictions where countryId = ? from the database.static void
setPersistence
(CommerceAddressRestrictionPersistence persistence) static CommerceAddressRestriction
update
(CommerceAddressRestriction commerceAddressRestriction) static CommerceAddressRestriction
update
(CommerceAddressRestriction commerceAddressRestriction, com.liferay.portal.kernel.service.ServiceContext serviceContext) static CommerceAddressRestriction
updateImpl
(CommerceAddressRestriction commerceAddressRestriction)
-
Constructor Details
-
CommerceAddressRestrictionUtil
public CommerceAddressRestrictionUtil()
-
-
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,CommerceAddressRestriction> fetchByPrimaryKeys(Set<Serializable> primaryKeys) - See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<CommerceAddressRestriction> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<CommerceAddressRestriction> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<CommerceAddressRestriction> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
public static CommerceAddressRestriction update(CommerceAddressRestriction commerceAddressRestriction) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static CommerceAddressRestriction update(CommerceAddressRestriction commerceAddressRestriction, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
findByCountryId
Returns all the commerce address restrictions where countryId = ?.- Parameters:
countryId
- the country ID- Returns:
- the matching commerce address restrictions
-
findByCountryId
Returns a range of all the commerce address restrictions where countryId = ?.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 fromCommerceAddressRestrictionModelImpl
.- Parameters:
countryId
- the country IDstart
- the lower bound of the range of commerce address restrictionsend
- the upper bound of the range of commerce address restrictions (not inclusive)- Returns:
- the range of matching commerce address restrictions
-
findByCountryId
public static List<CommerceAddressRestriction> findByCountryId(long countryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator) Returns an ordered range of all the commerce address restrictions where countryId = ?.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 fromCommerceAddressRestrictionModelImpl
.- Parameters:
countryId
- the country IDstart
- the lower bound of the range of commerce address restrictionsend
- the upper bound of the range of commerce address restrictions (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching commerce address restrictions
-
findByCountryId
public static List<CommerceAddressRestriction> findByCountryId(long countryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce address restrictions where countryId = ?.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 fromCommerceAddressRestrictionModelImpl
.- Parameters:
countryId
- the country IDstart
- the lower bound of the range of commerce address restrictionsend
- the upper bound of the range of commerce address restrictions (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 address restrictions
-
findByCountryId_First
public static CommerceAddressRestriction findByCountryId_First(long countryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator) throws NoSuchAddressRestrictionException Returns the first commerce address restriction in the ordered set where countryId = ?.- Parameters:
countryId
- the country IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce address restriction
- Throws:
NoSuchAddressRestrictionException
- if a matching commerce address restriction could not be foundNoSuchAddressRestrictionException
-
fetchByCountryId_First
public static CommerceAddressRestriction fetchByCountryId_First(long countryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator) Returns the first commerce address restriction in the ordered set where countryId = ?.- Parameters:
countryId
- the country IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce address restriction, or
null
if a matching commerce address restriction could not be found
-
findByCountryId_Last
public static CommerceAddressRestriction findByCountryId_Last(long countryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator) throws NoSuchAddressRestrictionException Returns the last commerce address restriction in the ordered set where countryId = ?.- Parameters:
countryId
- the country IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce address restriction
- Throws:
NoSuchAddressRestrictionException
- if a matching commerce address restriction could not be foundNoSuchAddressRestrictionException
-
fetchByCountryId_Last
public static CommerceAddressRestriction fetchByCountryId_Last(long countryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator) Returns the last commerce address restriction in the ordered set where countryId = ?.- Parameters:
countryId
- the country IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce address restriction, or
null
if a matching commerce address restriction could not be found
-
findByCountryId_PrevAndNext
public static CommerceAddressRestriction[] findByCountryId_PrevAndNext(long commerceAddressRestrictionId, long countryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator) throws NoSuchAddressRestrictionException Returns the commerce address restrictions before and after the current commerce address restriction in the ordered set where countryId = ?.- Parameters:
commerceAddressRestrictionId
- the primary key of the current commerce address restrictioncountryId
- the country IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce address restriction
- Throws:
NoSuchAddressRestrictionException
- if a commerce address restriction with the primary key could not be foundNoSuchAddressRestrictionException
-
removeByCountryId
public static void removeByCountryId(long countryId) Removes all the commerce address restrictions where countryId = ? from the database.- Parameters:
countryId
- the country ID
-
countByCountryId
public static int countByCountryId(long countryId) Returns the number of commerce address restrictions where countryId = ?.- Parameters:
countryId
- the country ID- Returns:
- the number of matching commerce address restrictions
-
findByC_C
Returns all the commerce address restrictions where classNameId = ? and classPK = ?.- Parameters:
classNameId
- the class name IDclassPK
- the class pk- Returns:
- the matching commerce address restrictions
-
findByC_C
public static List<CommerceAddressRestriction> findByC_C(long classNameId, long classPK, int start, int end) Returns a range of all the commerce address restrictions where classNameId = ? and classPK = ?.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 fromCommerceAddressRestrictionModelImpl
.- Parameters:
classNameId
- the class name IDclassPK
- the class pkstart
- the lower bound of the range of commerce address restrictionsend
- the upper bound of the range of commerce address restrictions (not inclusive)- Returns:
- the range of matching commerce address restrictions
-
findByC_C
public static List<CommerceAddressRestriction> findByC_C(long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator) Returns an ordered range of all the commerce address restrictions where classNameId = ? and classPK = ?.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 fromCommerceAddressRestrictionModelImpl
.- Parameters:
classNameId
- the class name IDclassPK
- the class pkstart
- the lower bound of the range of commerce address restrictionsend
- the upper bound of the range of commerce address restrictions (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching commerce address restrictions
-
findByC_C
public static List<CommerceAddressRestriction> findByC_C(long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce address restrictions where classNameId = ? and classPK = ?.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 fromCommerceAddressRestrictionModelImpl
.- Parameters:
classNameId
- the class name IDclassPK
- the class pkstart
- the lower bound of the range of commerce address restrictionsend
- the upper bound of the range of commerce address restrictions (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 address restrictions
-
findByC_C_First
public static CommerceAddressRestriction findByC_C_First(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator) throws NoSuchAddressRestrictionException Returns the first commerce address restriction in the ordered set where classNameId = ? and classPK = ?.- Parameters:
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce address restriction
- Throws:
NoSuchAddressRestrictionException
- if a matching commerce address restriction could not be foundNoSuchAddressRestrictionException
-
fetchByC_C_First
public static CommerceAddressRestriction fetchByC_C_First(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator) Returns the first commerce address restriction in the ordered set where classNameId = ? and classPK = ?.- Parameters:
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce address restriction, or
null
if a matching commerce address restriction could not be found
-
findByC_C_Last
public static CommerceAddressRestriction findByC_C_Last(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator) throws NoSuchAddressRestrictionException Returns the last commerce address restriction in the ordered set where classNameId = ? and classPK = ?.- Parameters:
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce address restriction
- Throws:
NoSuchAddressRestrictionException
- if a matching commerce address restriction could not be foundNoSuchAddressRestrictionException
-
fetchByC_C_Last
public static CommerceAddressRestriction fetchByC_C_Last(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator) Returns the last commerce address restriction in the ordered set where classNameId = ? and classPK = ?.- Parameters:
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce address restriction, or
null
if a matching commerce address restriction could not be found
-
findByC_C_PrevAndNext
public static CommerceAddressRestriction[] findByC_C_PrevAndNext(long commerceAddressRestrictionId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator) throws NoSuchAddressRestrictionException Returns the commerce address restrictions before and after the current commerce address restriction in the ordered set where classNameId = ? and classPK = ?.- Parameters:
commerceAddressRestrictionId
- the primary key of the current commerce address restrictionclassNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce address restriction
- Throws:
NoSuchAddressRestrictionException
- if a commerce address restriction with the primary key could not be foundNoSuchAddressRestrictionException
-
removeByC_C
public static void removeByC_C(long classNameId, long classPK) Removes all the commerce address restrictions where classNameId = ? and classPK = ? from the database.- Parameters:
classNameId
- the class name IDclassPK
- the class pk
-
countByC_C
public static int countByC_C(long classNameId, long classPK) Returns the number of commerce address restrictions where classNameId = ? and classPK = ?.- Parameters:
classNameId
- the class name IDclassPK
- the class pk- Returns:
- the number of matching commerce address restrictions
-
findByC_C_C
public static CommerceAddressRestriction findByC_C_C(long classNameId, long classPK, long countryId) throws NoSuchAddressRestrictionException Returns the commerce address restriction where classNameId = ? and classPK = ? and countryId = ? or throws aNoSuchAddressRestrictionException
if it could not be found.- Parameters:
classNameId
- the class name IDclassPK
- the class pkcountryId
- the country ID- Returns:
- the matching commerce address restriction
- Throws:
NoSuchAddressRestrictionException
- if a matching commerce address restriction could not be foundNoSuchAddressRestrictionException
-
fetchByC_C_C
public static CommerceAddressRestriction fetchByC_C_C(long classNameId, long classPK, long countryId) Returns the commerce address restriction where classNameId = ? and classPK = ? and countryId = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
classNameId
- the class name IDclassPK
- the class pkcountryId
- the country ID- Returns:
- the matching commerce address restriction, or
null
if a matching commerce address restriction could not be found
-
fetchByC_C_C
public static CommerceAddressRestriction fetchByC_C_C(long classNameId, long classPK, long countryId, boolean useFinderCache) Returns the commerce address restriction where classNameId = ? and classPK = ? and countryId = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
classNameId
- the class name IDclassPK
- the class pkcountryId
- the country IDuseFinderCache
- whether to use the finder cache- Returns:
- the matching commerce address restriction, or
null
if a matching commerce address restriction could not be found
-
removeByC_C_C
public static CommerceAddressRestriction removeByC_C_C(long classNameId, long classPK, long countryId) throws NoSuchAddressRestrictionException Removes the commerce address restriction where classNameId = ? and classPK = ? and countryId = ? from the database.- Parameters:
classNameId
- the class name IDclassPK
- the class pkcountryId
- the country ID- Returns:
- the commerce address restriction that was removed
- Throws:
NoSuchAddressRestrictionException
-
countByC_C_C
public static int countByC_C_C(long classNameId, long classPK, long countryId) Returns the number of commerce address restrictions where classNameId = ? and classPK = ? and countryId = ?.- Parameters:
classNameId
- the class name IDclassPK
- the class pkcountryId
- the country ID- Returns:
- the number of matching commerce address restrictions
-
cacheResult
Caches the commerce address restriction in the entity cache if it is enabled.- Parameters:
commerceAddressRestriction
- the commerce address restriction
-
cacheResult
Caches the commerce address restrictions in the entity cache if it is enabled.- Parameters:
commerceAddressRestrictions
- the commerce address restrictions
-
create
Creates a new commerce address restriction with the primary key. Does not add the commerce address restriction to the database.- Parameters:
commerceAddressRestrictionId
- the primary key for the new commerce address restriction- Returns:
- the new commerce address restriction
-
remove
public static CommerceAddressRestriction remove(long commerceAddressRestrictionId) throws NoSuchAddressRestrictionException Removes the commerce address restriction with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
commerceAddressRestrictionId
- the primary key of the commerce address restriction- Returns:
- the commerce address restriction that was removed
- Throws:
NoSuchAddressRestrictionException
- if a commerce address restriction with the primary key could not be foundNoSuchAddressRestrictionException
-
updateImpl
public static CommerceAddressRestriction updateImpl(CommerceAddressRestriction commerceAddressRestriction) -
findByPrimaryKey
public static CommerceAddressRestriction findByPrimaryKey(long commerceAddressRestrictionId) throws NoSuchAddressRestrictionException Returns the commerce address restriction with the primary key or throws aNoSuchAddressRestrictionException
if it could not be found.- Parameters:
commerceAddressRestrictionId
- the primary key of the commerce address restriction- Returns:
- the commerce address restriction
- Throws:
NoSuchAddressRestrictionException
- if a commerce address restriction with the primary key could not be foundNoSuchAddressRestrictionException
-
fetchByPrimaryKey
Returns the commerce address restriction with the primary key or returnsnull
if it could not be found.- Parameters:
commerceAddressRestrictionId
- the primary key of the commerce address restriction- Returns:
- the commerce address restriction, or
null
if a commerce address restriction with the primary key could not be found
-
findAll
Returns all the commerce address restrictions.- Returns:
- the commerce address restrictions
-
findAll
Returns a range of all the commerce address restrictions.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 fromCommerceAddressRestrictionModelImpl
.- Parameters:
start
- the lower bound of the range of commerce address restrictionsend
- the upper bound of the range of commerce address restrictions (not inclusive)- Returns:
- the range of commerce address restrictions
-
findAll
public static List<CommerceAddressRestriction> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator) Returns an ordered range of all the commerce address restrictions.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 fromCommerceAddressRestrictionModelImpl
.- Parameters:
start
- the lower bound of the range of commerce address restrictionsend
- the upper bound of the range of commerce address restrictions (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of commerce address restrictions
-
findAll
public static List<CommerceAddressRestriction> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce address restrictions.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 fromCommerceAddressRestrictionModelImpl
.- Parameters:
start
- the lower bound of the range of commerce address restrictionsend
- the upper bound of the range of commerce address restrictions (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of commerce address restrictions
-
removeAll
public static void removeAll()Removes all the commerce address restrictions from the database. -
countAll
public static int countAll()Returns the number of commerce address restrictions.- Returns:
- the number of commerce address restrictions
-
getPersistence
-
setPersistence
-