@ProviderType public interface CommerceAddressRestrictionPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<CommerceAddressRestriction>
Caching information and settings can be found in portal.properties
CommerceAddressRestrictionUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(CommerceAddressRestriction commerceAddressRestriction)
Caches the commerce address restriction in the entity cache if it is enabled.
|
void |
cacheResult(java.util.List<CommerceAddressRestriction> commerceAddressRestrictions)
Caches the commerce address restrictions in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of commerce address restrictions.
|
int |
countByC_C_C(long classNameId,
long classPK,
long countryId)
Returns the number of commerce address restrictions where classNameId = ? and classPK = ? and countryId = ?.
|
int |
countByC_C(long classNameId,
long classPK)
Returns the number of commerce address restrictions where classNameId = ? and classPK = ?.
|
int |
countByCountryId(long countryId)
Returns the number of commerce address restrictions where countryId = ?.
|
CommerceAddressRestriction |
create(long commerceAddressRestrictionId)
Creates a new commerce address restriction with the primary key.
|
CommerceAddressRestriction |
fetchByC_C_C(long classNameId,
long classPK,
long countryId)
Returns the commerce address restriction where classNameId = ? and classPK = ? and countryId = ? or returns
null if it could not be found. |
CommerceAddressRestriction |
fetchByC_C_C(long classNameId,
long classPK,
long countryId,
boolean useFinderCache)
Returns the commerce address restriction where classNameId = ? and classPK = ? and countryId = ? or returns
null if it could not be found, optionally using the finder cache. |
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
CommerceAddressRestriction |
fetchByPrimaryKey(long commerceAddressRestrictionId)
Returns the commerce address restriction with the primary key or returns
null if it could not be found. |
java.util.List<CommerceAddressRestriction> |
findAll()
Returns all the commerce address restrictions.
|
java.util.List<CommerceAddressRestriction> |
findAll(int start,
int end)
Returns a range of all the commerce address restrictions.
|
java.util.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.
|
java.util.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.
|
CommerceAddressRestriction |
findByC_C_C(long classNameId,
long classPK,
long countryId)
Returns the commerce address restriction where classNameId = ? and classPK = ? and countryId = ? or throws a
NoSuchAddressRestrictionException if it could not be found. |
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 = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<CommerceAddressRestriction> |
findByC_C(long classNameId,
long classPK)
Returns all the commerce address restrictions where classNameId = ? and classPK = ?.
|
java.util.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 = ?.
|
java.util.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 = ?.
|
java.util.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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<CommerceAddressRestriction> |
findByCountryId(long countryId)
Returns all the commerce address restrictions where countryId = ?.
|
java.util.List<CommerceAddressRestriction> |
findByCountryId(long countryId,
int start,
int end)
Returns a range of all the commerce address restrictions where countryId = ?.
|
java.util.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 = ?.
|
java.util.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 = ?.
|
CommerceAddressRestriction |
findByPrimaryKey(long commerceAddressRestrictionId)
Returns the commerce address restriction with the primary key or throws a
NoSuchAddressRestrictionException if it could not be found. |
CommerceAddressRestriction |
remove(long commerceAddressRestrictionId)
Removes the commerce address restriction with the primary key from the database.
|
void |
removeAll()
Removes all the commerce address restrictions from the database.
|
CommerceAddressRestriction |
removeByC_C_C(long classNameId,
long classPK,
long countryId)
Removes the commerce address restriction where classNameId = ? and classPK = ? and countryId = ? from the database.
|
void |
removeByC_C(long classNameId,
long classPK)
Removes all the commerce address restrictions where classNameId = ? and classPK = ? from the database.
|
void |
removeByCountryId(long countryId)
Removes all the commerce address restrictions where countryId = ? from the database.
|
CommerceAddressRestriction |
updateImpl(CommerceAddressRestriction commerceAddressRestriction) |
clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update
java.util.List<CommerceAddressRestriction> findByCountryId(long countryId)
countryId
- the country IDjava.util.List<CommerceAddressRestriction> findByCountryId(long countryId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceAddressRestrictionModelImpl
.
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)java.util.List<CommerceAddressRestriction> findByCountryId(long countryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceAddressRestrictionModelImpl
.
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 (optionally null
)java.util.List<CommerceAddressRestriction> findByCountryId(long countryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceAddressRestrictionModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cacheCommerceAddressRestriction findByCountryId_First(long countryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator) throws NoSuchAddressRestrictionException
countryId
- the country IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchAddressRestrictionException
- if a matching commerce address restriction could not be foundCommerceAddressRestriction fetchByCountryId_First(long countryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator)
countryId
- the country IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce address restriction could not be foundCommerceAddressRestriction findByCountryId_Last(long countryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator) throws NoSuchAddressRestrictionException
countryId
- the country IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchAddressRestrictionException
- if a matching commerce address restriction could not be foundCommerceAddressRestriction fetchByCountryId_Last(long countryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator)
countryId
- the country IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce address restriction could not be foundCommerceAddressRestriction[] findByCountryId_PrevAndNext(long commerceAddressRestrictionId, long countryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator) throws NoSuchAddressRestrictionException
commerceAddressRestrictionId
- the primary key of the current commerce address restrictioncountryId
- the country IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchAddressRestrictionException
- if a commerce address restriction with the primary key could not be foundvoid removeByCountryId(long countryId)
countryId
- the country IDint countByCountryId(long countryId)
countryId
- the country IDjava.util.List<CommerceAddressRestriction> findByC_C(long classNameId, long classPK)
classNameId
- the class name IDclassPK
- the class pkjava.util.List<CommerceAddressRestriction> findByC_C(long classNameId, long classPK, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceAddressRestrictionModelImpl
.
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)java.util.List<CommerceAddressRestriction> findByC_C(long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceAddressRestrictionModelImpl
.
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 (optionally null
)java.util.List<CommerceAddressRestriction> findByC_C(long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceAddressRestrictionModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cacheCommerceAddressRestriction findByC_C_First(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator) throws NoSuchAddressRestrictionException
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionally null
)NoSuchAddressRestrictionException
- if a matching commerce address restriction could not be foundCommerceAddressRestriction fetchByC_C_First(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator)
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce address restriction could not be foundCommerceAddressRestriction findByC_C_Last(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator) throws NoSuchAddressRestrictionException
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionally null
)NoSuchAddressRestrictionException
- if a matching commerce address restriction could not be foundCommerceAddressRestriction fetchByC_C_Last(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator)
classNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce address restriction could not be foundCommerceAddressRestriction[] findByC_C_PrevAndNext(long commerceAddressRestrictionId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator) throws NoSuchAddressRestrictionException
commerceAddressRestrictionId
- the primary key of the current commerce address restrictionclassNameId
- the class name IDclassPK
- the class pkorderByComparator
- the comparator to order the set by (optionally null
)NoSuchAddressRestrictionException
- if a commerce address restriction with the primary key could not be foundvoid removeByC_C(long classNameId, long classPK)
classNameId
- the class name IDclassPK
- the class pkint countByC_C(long classNameId, long classPK)
classNameId
- the class name IDclassPK
- the class pkCommerceAddressRestriction findByC_C_C(long classNameId, long classPK, long countryId) throws NoSuchAddressRestrictionException
NoSuchAddressRestrictionException
if it could not be found.classNameId
- the class name IDclassPK
- the class pkcountryId
- the country IDNoSuchAddressRestrictionException
- if a matching commerce address restriction could not be foundCommerceAddressRestriction fetchByC_C_C(long classNameId, long classPK, long countryId)
null
if it could not be found. Uses the finder cache.classNameId
- the class name IDclassPK
- the class pkcountryId
- the country IDnull
if a matching commerce address restriction could not be foundCommerceAddressRestriction fetchByC_C_C(long classNameId, long classPK, long countryId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.classNameId
- the class name IDclassPK
- the class pkcountryId
- the country IDuseFinderCache
- whether to use the finder cachenull
if a matching commerce address restriction could not be foundCommerceAddressRestriction removeByC_C_C(long classNameId, long classPK, long countryId) throws NoSuchAddressRestrictionException
classNameId
- the class name IDclassPK
- the class pkcountryId
- the country IDNoSuchAddressRestrictionException
int countByC_C_C(long classNameId, long classPK, long countryId)
classNameId
- the class name IDclassPK
- the class pkcountryId
- the country IDvoid cacheResult(CommerceAddressRestriction commerceAddressRestriction)
commerceAddressRestriction
- the commerce address restrictionvoid cacheResult(java.util.List<CommerceAddressRestriction> commerceAddressRestrictions)
commerceAddressRestrictions
- the commerce address restrictionsCommerceAddressRestriction create(long commerceAddressRestrictionId)
commerceAddressRestrictionId
- the primary key for the new commerce address restrictionCommerceAddressRestriction remove(long commerceAddressRestrictionId) throws NoSuchAddressRestrictionException
commerceAddressRestrictionId
- the primary key of the commerce address restrictionNoSuchAddressRestrictionException
- if a commerce address restriction with the primary key could not be foundCommerceAddressRestriction updateImpl(CommerceAddressRestriction commerceAddressRestriction)
CommerceAddressRestriction findByPrimaryKey(long commerceAddressRestrictionId) throws NoSuchAddressRestrictionException
NoSuchAddressRestrictionException
if it could not be found.commerceAddressRestrictionId
- the primary key of the commerce address restrictionNoSuchAddressRestrictionException
- if a commerce address restriction with the primary key could not be foundCommerceAddressRestriction fetchByPrimaryKey(long commerceAddressRestrictionId)
null
if it could not be found.commerceAddressRestrictionId
- the primary key of the commerce address restrictionnull
if a commerce address restriction with the primary key could not be foundjava.util.List<CommerceAddressRestriction> findAll()
java.util.List<CommerceAddressRestriction> findAll(int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceAddressRestrictionModelImpl
.
start
- the lower bound of the range of commerce address restrictionsend
- the upper bound of the range of commerce address restrictions (not inclusive)java.util.List<CommerceAddressRestriction> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceAddressRestrictionModelImpl
.
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 (optionally null
)java.util.List<CommerceAddressRestriction> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddressRestriction> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommerceAddressRestrictionModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachevoid removeAll()
int countAll()