public class CommerceAddressUtil
extends java.lang.Object
com.liferay.commerce.service.persistence.impl.CommerceAddressPersistenceImpl 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
CommerceAddressPersistence| Constructor and Description |
|---|
CommerceAddressUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
cacheResult(CommerceAddress commerceAddress)
Caches the commerce address in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CommerceAddress> commerceAddresses)
Caches the commerce addresses in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(CommerceAddress commerceAddress) |
static int |
countAll()
Returns the number of commerce addresses.
|
static int |
countByC_C_C_C(long companyId,
long classNameId,
long classPK,
int type)
Returns the number of commerce addresses where companyId = ? and classNameId = ? and classPK = ? and type = ?.
|
static int |
countByC_C_C(long companyId,
long classNameId,
long classPK)
Returns the number of commerce addresses where companyId = ? and classNameId = ? and classPK = ?.
|
static int |
countByC_C(long classNameId,
long classPK)
Returns the number of commerce addresses where classNameId = ? and classPK = ?.
|
static int |
countByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Returns the number of commerce addresses where companyId = ? and externalReferenceCode = ?.
|
static int |
countByCommerceCountryId(long commerceCountryId)
Returns the number of commerce addresses where commerceCountryId = ?.
|
static int |
countByCommerceRegionId(long commerceRegionId)
Returns the number of commerce addresses where commerceRegionId = ?.
|
static int |
countByG_C_C_DB(long groupId,
long classNameId,
long classPK,
boolean defaultBilling)
Returns the number of commerce addresses where groupId = ? and classNameId = ? and classPK = ? and defaultBilling = ?.
|
static int |
countByG_C_C_DS(long groupId,
long classNameId,
long classPK,
boolean defaultShipping)
Returns the number of commerce addresses where groupId = ? and classNameId = ? and classPK = ? and defaultShipping = ?.
|
static int |
countByG_C_C(long groupId,
long classNameId,
long classPK)
Returns the number of commerce addresses where groupId = ? and classNameId = ? and classPK = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static CommerceAddress |
create(long commerceAddressId)
Creates a new commerce address with the primary key.
|
static CommerceAddress |
fetchByC_C_C_C_First(long companyId,
long classNameId,
long classPK,
int type,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator)
Returns the first commerce address in the ordered set where companyId = ? and classNameId = ? and classPK = ? and type = ?.
|
static CommerceAddress |
fetchByC_C_C_C_Last(long companyId,
long classNameId,
long classPK,
int type,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator)
Returns the last commerce address in the ordered set where companyId = ? and classNameId = ? and classPK = ? and type = ?.
|
static CommerceAddress |
fetchByC_C_C_First(long companyId,
long classNameId,
long classPK,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator)
Returns the first commerce address in the ordered set where companyId = ? and classNameId = ? and classPK = ?.
|
static CommerceAddress |
fetchByC_C_C_Last(long companyId,
long classNameId,
long classPK,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator)
Returns the last commerce address in the ordered set where companyId = ? and classNameId = ? and classPK = ?.
|
static CommerceAddress |
fetchByC_C_First(long classNameId,
long classPK,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator)
Returns the first commerce address in the ordered set where classNameId = ? and classPK = ?.
|
static CommerceAddress |
fetchByC_C_Last(long classNameId,
long classPK,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator)
Returns the last commerce address in the ordered set where classNameId = ? and classPK = ?.
|
static CommerceAddress |
fetchByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Returns the commerce address where companyId = ? and externalReferenceCode = ? or returns
null if it could not be found. |
static CommerceAddress |
fetchByC_ERC(long companyId,
java.lang.String externalReferenceCode,
boolean useFinderCache)
Returns the commerce address where companyId = ? and externalReferenceCode = ? or returns
null if it could not be found, optionally using the finder cache. |
static CommerceAddress |
fetchByCommerceCountryId_First(long commerceCountryId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator)
Returns the first commerce address in the ordered set where commerceCountryId = ?.
|
static CommerceAddress |
fetchByCommerceCountryId_Last(long commerceCountryId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator)
Returns the last commerce address in the ordered set where commerceCountryId = ?.
|
static CommerceAddress |
fetchByCommerceRegionId_First(long commerceRegionId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator)
Returns the first commerce address in the ordered set where commerceRegionId = ?.
|
static CommerceAddress |
fetchByCommerceRegionId_Last(long commerceRegionId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator)
Returns the last commerce address in the ordered set where commerceRegionId = ?.
|
static CommerceAddress |
fetchByG_C_C_DB_First(long groupId,
long classNameId,
long classPK,
boolean defaultBilling,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator)
Returns the first commerce address in the ordered set where groupId = ? and classNameId = ? and classPK = ? and defaultBilling = ?.
|
static CommerceAddress |
fetchByG_C_C_DB_Last(long groupId,
long classNameId,
long classPK,
boolean defaultBilling,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator)
Returns the last commerce address in the ordered set where groupId = ? and classNameId = ? and classPK = ? and defaultBilling = ?.
|
static CommerceAddress |
fetchByG_C_C_DS_First(long groupId,
long classNameId,
long classPK,
boolean defaultShipping,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator)
Returns the first commerce address in the ordered set where groupId = ? and classNameId = ? and classPK = ? and defaultShipping = ?.
|
static CommerceAddress |
fetchByG_C_C_DS_Last(long groupId,
long classNameId,
long classPK,
boolean defaultShipping,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator)
Returns the last commerce address in the ordered set where groupId = ? and classNameId = ? and classPK = ? and defaultShipping = ?.
|
static CommerceAddress |
fetchByG_C_C_First(long groupId,
long classNameId,
long classPK,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator)
Returns the first commerce address in the ordered set where groupId = ? and classNameId = ? and classPK = ?.
|
static CommerceAddress |
fetchByG_C_C_Last(long groupId,
long classNameId,
long classPK,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator)
Returns the last commerce address in the ordered set where groupId = ? and classNameId = ? and classPK = ?.
|
static CommerceAddress |
fetchByPrimaryKey(long commerceAddressId)
Returns the commerce address with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CommerceAddress> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static java.util.List<CommerceAddress> |
findAll()
Returns all the commerce addresses.
|
static java.util.List<CommerceAddress> |
findAll(int start,
int end)
Returns a range of all the commerce addresses.
|
static java.util.List<CommerceAddress> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator)
Returns an ordered range of all the commerce addresses.
|
static java.util.List<CommerceAddress> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce addresses.
|
static CommerceAddress |
findByC_C_C_C_First(long companyId,
long classNameId,
long classPK,
int type,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator)
Returns the first commerce address in the ordered set where companyId = ? and classNameId = ? and classPK = ? and type = ?.
|
static CommerceAddress |
findByC_C_C_C_Last(long companyId,
long classNameId,
long classPK,
int type,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator)
Returns the last commerce address in the ordered set where companyId = ? and classNameId = ? and classPK = ? and type = ?.
|
static CommerceAddress[] |
findByC_C_C_C_PrevAndNext(long commerceAddressId,
long companyId,
long classNameId,
long classPK,
int type,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator)
Returns the commerce addresses before and after the current commerce address in the ordered set where companyId = ? and classNameId = ? and classPK = ? and type = ?.
|
static java.util.List<CommerceAddress> |
findByC_C_C_C(long companyId,
long classNameId,
long classPK,
int type)
Returns all the commerce addresses where companyId = ? and classNameId = ? and classPK = ? and type = ?.
|
static java.util.List<CommerceAddress> |
findByC_C_C_C(long companyId,
long classNameId,
long classPK,
int type,
int start,
int end)
Returns a range of all the commerce addresses where companyId = ? and classNameId = ? and classPK = ? and type = ?.
|
static java.util.List<CommerceAddress> |
findByC_C_C_C(long companyId,
long classNameId,
long classPK,
int type,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator)
Returns an ordered range of all the commerce addresses where companyId = ? and classNameId = ? and classPK = ? and type = ?.
|
static java.util.List<CommerceAddress> |
findByC_C_C_C(long companyId,
long classNameId,
long classPK,
int type,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce addresses where companyId = ? and classNameId = ? and classPK = ? and type = ?.
|
static CommerceAddress |
findByC_C_C_First(long companyId,
long classNameId,
long classPK,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator)
Returns the first commerce address in the ordered set where companyId = ? and classNameId = ? and classPK = ?.
|
static CommerceAddress |
findByC_C_C_Last(long companyId,
long classNameId,
long classPK,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator)
Returns the last commerce address in the ordered set where companyId = ? and classNameId = ? and classPK = ?.
|
static CommerceAddress[] |
findByC_C_C_PrevAndNext(long commerceAddressId,
long companyId,
long classNameId,
long classPK,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator)
Returns the commerce addresses before and after the current commerce address in the ordered set where companyId = ? and classNameId = ? and classPK = ?.
|
static java.util.List<CommerceAddress> |
findByC_C_C(long companyId,
long classNameId,
long classPK)
Returns all the commerce addresses where companyId = ? and classNameId = ? and classPK = ?.
|
static java.util.List<CommerceAddress> |
findByC_C_C(long companyId,
long classNameId,
long classPK,
int start,
int end)
Returns a range of all the commerce addresses where companyId = ? and classNameId = ? and classPK = ?.
|
static java.util.List<CommerceAddress> |
findByC_C_C(long companyId,
long classNameId,
long classPK,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator)
Returns an ordered range of all the commerce addresses where companyId = ? and classNameId = ? and classPK = ?.
|
static java.util.List<CommerceAddress> |
findByC_C_C(long companyId,
long classNameId,
long classPK,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce addresses where companyId = ? and classNameId = ? and classPK = ?.
|
static CommerceAddress |
findByC_C_First(long classNameId,
long classPK,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator)
Returns the first commerce address in the ordered set where classNameId = ? and classPK = ?.
|
static CommerceAddress |
findByC_C_Last(long classNameId,
long classPK,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator)
Returns the last commerce address in the ordered set where classNameId = ? and classPK = ?.
|
static CommerceAddress[] |
findByC_C_PrevAndNext(long commerceAddressId,
long classNameId,
long classPK,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator)
Returns the commerce addresses before and after the current commerce address in the ordered set where classNameId = ? and classPK = ?.
|
static java.util.List<CommerceAddress> |
findByC_C(long classNameId,
long classPK)
Returns all the commerce addresses where classNameId = ? and classPK = ?.
|
static java.util.List<CommerceAddress> |
findByC_C(long classNameId,
long classPK,
int start,
int end)
Returns a range of all the commerce addresses where classNameId = ? and classPK = ?.
|
static java.util.List<CommerceAddress> |
findByC_C(long classNameId,
long classPK,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator)
Returns an ordered range of all the commerce addresses where classNameId = ? and classPK = ?.
|
static java.util.List<CommerceAddress> |
findByC_C(long classNameId,
long classPK,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce addresses where classNameId = ? and classPK = ?.
|
static CommerceAddress |
findByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Returns the commerce address where companyId = ? and externalReferenceCode = ? or throws a
NoSuchAddressException if it could not be found. |
static CommerceAddress |
findByCommerceCountryId_First(long commerceCountryId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator)
Returns the first commerce address in the ordered set where commerceCountryId = ?.
|
static CommerceAddress |
findByCommerceCountryId_Last(long commerceCountryId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator)
Returns the last commerce address in the ordered set where commerceCountryId = ?.
|
static CommerceAddress[] |
findByCommerceCountryId_PrevAndNext(long commerceAddressId,
long commerceCountryId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator)
Returns the commerce addresses before and after the current commerce address in the ordered set where commerceCountryId = ?.
|
static java.util.List<CommerceAddress> |
findByCommerceCountryId(long commerceCountryId)
Returns all the commerce addresses where commerceCountryId = ?.
|
static java.util.List<CommerceAddress> |
findByCommerceCountryId(long commerceCountryId,
int start,
int end)
Returns a range of all the commerce addresses where commerceCountryId = ?.
|
static java.util.List<CommerceAddress> |
findByCommerceCountryId(long commerceCountryId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator)
Returns an ordered range of all the commerce addresses where commerceCountryId = ?.
|
static java.util.List<CommerceAddress> |
findByCommerceCountryId(long commerceCountryId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce addresses where commerceCountryId = ?.
|
static CommerceAddress |
findByCommerceRegionId_First(long commerceRegionId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator)
Returns the first commerce address in the ordered set where commerceRegionId = ?.
|
static CommerceAddress |
findByCommerceRegionId_Last(long commerceRegionId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator)
Returns the last commerce address in the ordered set where commerceRegionId = ?.
|
static CommerceAddress[] |
findByCommerceRegionId_PrevAndNext(long commerceAddressId,
long commerceRegionId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator)
Returns the commerce addresses before and after the current commerce address in the ordered set where commerceRegionId = ?.
|
static java.util.List<CommerceAddress> |
findByCommerceRegionId(long commerceRegionId)
Returns all the commerce addresses where commerceRegionId = ?.
|
static java.util.List<CommerceAddress> |
findByCommerceRegionId(long commerceRegionId,
int start,
int end)
Returns a range of all the commerce addresses where commerceRegionId = ?.
|
static java.util.List<CommerceAddress> |
findByCommerceRegionId(long commerceRegionId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator)
Returns an ordered range of all the commerce addresses where commerceRegionId = ?.
|
static java.util.List<CommerceAddress> |
findByCommerceRegionId(long commerceRegionId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce addresses where commerceRegionId = ?.
|
static CommerceAddress |
findByG_C_C_DB_First(long groupId,
long classNameId,
long classPK,
boolean defaultBilling,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator)
Returns the first commerce address in the ordered set where groupId = ? and classNameId = ? and classPK = ? and defaultBilling = ?.
|
static CommerceAddress |
findByG_C_C_DB_Last(long groupId,
long classNameId,
long classPK,
boolean defaultBilling,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator)
Returns the last commerce address in the ordered set where groupId = ? and classNameId = ? and classPK = ? and defaultBilling = ?.
|
static CommerceAddress[] |
findByG_C_C_DB_PrevAndNext(long commerceAddressId,
long groupId,
long classNameId,
long classPK,
boolean defaultBilling,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator)
Returns the commerce addresses before and after the current commerce address in the ordered set where groupId = ? and classNameId = ? and classPK = ? and defaultBilling = ?.
|
static java.util.List<CommerceAddress> |
findByG_C_C_DB(long groupId,
long classNameId,
long classPK,
boolean defaultBilling)
Returns all the commerce addresses where groupId = ? and classNameId = ? and classPK = ? and defaultBilling = ?.
|
static java.util.List<CommerceAddress> |
findByG_C_C_DB(long groupId,
long classNameId,
long classPK,
boolean defaultBilling,
int start,
int end)
Returns a range of all the commerce addresses where groupId = ? and classNameId = ? and classPK = ? and defaultBilling = ?.
|
static java.util.List<CommerceAddress> |
findByG_C_C_DB(long groupId,
long classNameId,
long classPK,
boolean defaultBilling,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator)
Returns an ordered range of all the commerce addresses where groupId = ? and classNameId = ? and classPK = ? and defaultBilling = ?.
|
static java.util.List<CommerceAddress> |
findByG_C_C_DB(long groupId,
long classNameId,
long classPK,
boolean defaultBilling,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce addresses where groupId = ? and classNameId = ? and classPK = ? and defaultBilling = ?.
|
static CommerceAddress |
findByG_C_C_DS_First(long groupId,
long classNameId,
long classPK,
boolean defaultShipping,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator)
Returns the first commerce address in the ordered set where groupId = ? and classNameId = ? and classPK = ? and defaultShipping = ?.
|
static CommerceAddress |
findByG_C_C_DS_Last(long groupId,
long classNameId,
long classPK,
boolean defaultShipping,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator)
Returns the last commerce address in the ordered set where groupId = ? and classNameId = ? and classPK = ? and defaultShipping = ?.
|
static CommerceAddress[] |
findByG_C_C_DS_PrevAndNext(long commerceAddressId,
long groupId,
long classNameId,
long classPK,
boolean defaultShipping,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator)
Returns the commerce addresses before and after the current commerce address in the ordered set where groupId = ? and classNameId = ? and classPK = ? and defaultShipping = ?.
|
static java.util.List<CommerceAddress> |
findByG_C_C_DS(long groupId,
long classNameId,
long classPK,
boolean defaultShipping)
Returns all the commerce addresses where groupId = ? and classNameId = ? and classPK = ? and defaultShipping = ?.
|
static java.util.List<CommerceAddress> |
findByG_C_C_DS(long groupId,
long classNameId,
long classPK,
boolean defaultShipping,
int start,
int end)
Returns a range of all the commerce addresses where groupId = ? and classNameId = ? and classPK = ? and defaultShipping = ?.
|
static java.util.List<CommerceAddress> |
findByG_C_C_DS(long groupId,
long classNameId,
long classPK,
boolean defaultShipping,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator)
Returns an ordered range of all the commerce addresses where groupId = ? and classNameId = ? and classPK = ? and defaultShipping = ?.
|
static java.util.List<CommerceAddress> |
findByG_C_C_DS(long groupId,
long classNameId,
long classPK,
boolean defaultShipping,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce addresses where groupId = ? and classNameId = ? and classPK = ? and defaultShipping = ?.
|
static CommerceAddress |
findByG_C_C_First(long groupId,
long classNameId,
long classPK,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator)
Returns the first commerce address in the ordered set where groupId = ? and classNameId = ? and classPK = ?.
|
static CommerceAddress |
findByG_C_C_Last(long groupId,
long classNameId,
long classPK,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator)
Returns the last commerce address in the ordered set where groupId = ? and classNameId = ? and classPK = ?.
|
static CommerceAddress[] |
findByG_C_C_PrevAndNext(long commerceAddressId,
long groupId,
long classNameId,
long classPK,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator)
Returns the commerce addresses before and after the current commerce address in the ordered set where groupId = ? and classNameId = ? and classPK = ?.
|
static java.util.List<CommerceAddress> |
findByG_C_C(long groupId,
long classNameId,
long classPK)
Returns all the commerce addresses where groupId = ? and classNameId = ? and classPK = ?.
|
static java.util.List<CommerceAddress> |
findByG_C_C(long groupId,
long classNameId,
long classPK,
int start,
int end)
Returns a range of all the commerce addresses where groupId = ? and classNameId = ? and classPK = ?.
|
static java.util.List<CommerceAddress> |
findByG_C_C(long groupId,
long classNameId,
long classPK,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator)
Returns an ordered range of all the commerce addresses where groupId = ? and classNameId = ? and classPK = ?.
|
static java.util.List<CommerceAddress> |
findByG_C_C(long groupId,
long classNameId,
long classPK,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce addresses where groupId = ? and classNameId = ? and classPK = ?.
|
static CommerceAddress |
findByPrimaryKey(long commerceAddressId)
Returns the commerce address with the primary key or throws a
NoSuchAddressException if it could not be found. |
static java.util.List<CommerceAddress> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CommerceAddress> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<CommerceAddress> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator) |
static CommerceAddressPersistence |
getPersistence() |
static CommerceAddress |
remove(long commerceAddressId)
Removes the commerce address with the primary key from the database.
|
static void |
removeAll()
Removes all the commerce addresses from the database.
|
static void |
removeByC_C_C_C(long companyId,
long classNameId,
long classPK,
int type)
Removes all the commerce addresses where companyId = ? and classNameId = ? and classPK = ? and type = ? from the database.
|
static void |
removeByC_C_C(long companyId,
long classNameId,
long classPK)
Removes all the commerce addresses where companyId = ? and classNameId = ? and classPK = ? from the database.
|
static void |
removeByC_C(long classNameId,
long classPK)
Removes all the commerce addresses where classNameId = ? and classPK = ? from the database.
|
static CommerceAddress |
removeByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Removes the commerce address where companyId = ? and externalReferenceCode = ? from the database.
|
static void |
removeByCommerceCountryId(long commerceCountryId)
Removes all the commerce addresses where commerceCountryId = ? from the database.
|
static void |
removeByCommerceRegionId(long commerceRegionId)
Removes all the commerce addresses where commerceRegionId = ? from the database.
|
static void |
removeByG_C_C_DB(long groupId,
long classNameId,
long classPK,
boolean defaultBilling)
Removes all the commerce addresses where groupId = ? and classNameId = ? and classPK = ? and defaultBilling = ? from the database.
|
static void |
removeByG_C_C_DS(long groupId,
long classNameId,
long classPK,
boolean defaultShipping)
Removes all the commerce addresses where groupId = ? and classNameId = ? and classPK = ? and defaultShipping = ? from the database.
|
static void |
removeByG_C_C(long groupId,
long classNameId,
long classPK)
Removes all the commerce addresses where groupId = ? and classNameId = ? and classPK = ? from the database.
|
static CommerceAddress |
update(CommerceAddress commerceAddress) |
static CommerceAddress |
update(CommerceAddress commerceAddress,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CommerceAddress |
updateImpl(CommerceAddress commerceAddress) |
public static void clearCache()
BasePersistence.clearCache()public static void clearCache(CommerceAddress commerceAddress)
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)public static java.util.Map<java.io.Serializable,CommerceAddress> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)public static java.util.List<CommerceAddress> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)public static java.util.List<CommerceAddress> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)public static java.util.List<CommerceAddress> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)public static CommerceAddress update(CommerceAddress commerceAddress)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)public static CommerceAddress update(CommerceAddress commerceAddress, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)public static java.util.List<CommerceAddress> findByCommerceRegionId(long commerceRegionId)
commerceRegionId - the commerce region IDpublic static java.util.List<CommerceAddress> findByCommerceRegionId(long commerceRegionId, 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 CommerceAddressModelImpl.
commerceRegionId - the commerce region IDstart - the lower bound of the range of commerce addressesend - the upper bound of the range of commerce addresses (not inclusive)public static java.util.List<CommerceAddress> findByCommerceRegionId(long commerceRegionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> 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 CommerceAddressModelImpl.
commerceRegionId - the commerce region IDstart - the lower bound of the range of commerce addressesend - the upper bound of the range of commerce addresses (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<CommerceAddress> findByCommerceRegionId(long commerceRegionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> 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 CommerceAddressModelImpl.
commerceRegionId - the commerce region IDstart - the lower bound of the range of commerce addressesend - the upper bound of the range of commerce addresses (not inclusive)orderByComparator - the comparator to order the results by (optionally null)useFinderCache - whether to use the finder cachepublic static CommerceAddress findByCommerceRegionId_First(long commerceRegionId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator) throws NoSuchAddressException
commerceRegionId - the commerce region IDorderByComparator - the comparator to order the set by (optionally null)NoSuchAddressException - if a matching commerce address could not be foundpublic static CommerceAddress fetchByCommerceRegionId_First(long commerceRegionId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator)
commerceRegionId - the commerce region IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce address could not be foundpublic static CommerceAddress findByCommerceRegionId_Last(long commerceRegionId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator) throws NoSuchAddressException
commerceRegionId - the commerce region IDorderByComparator - the comparator to order the set by (optionally null)NoSuchAddressException - if a matching commerce address could not be foundpublic static CommerceAddress fetchByCommerceRegionId_Last(long commerceRegionId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator)
commerceRegionId - the commerce region IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce address could not be foundpublic static CommerceAddress[] findByCommerceRegionId_PrevAndNext(long commerceAddressId, long commerceRegionId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator) throws NoSuchAddressException
commerceAddressId - the primary key of the current commerce addresscommerceRegionId - the commerce region IDorderByComparator - the comparator to order the set by (optionally null)NoSuchAddressException - if a commerce address with the primary key could not be foundpublic static void removeByCommerceRegionId(long commerceRegionId)
commerceRegionId - the commerce region IDpublic static int countByCommerceRegionId(long commerceRegionId)
commerceRegionId - the commerce region IDpublic static java.util.List<CommerceAddress> findByCommerceCountryId(long commerceCountryId)
commerceCountryId - the commerce country IDpublic static java.util.List<CommerceAddress> findByCommerceCountryId(long commerceCountryId, 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 CommerceAddressModelImpl.
commerceCountryId - the commerce country IDstart - the lower bound of the range of commerce addressesend - the upper bound of the range of commerce addresses (not inclusive)public static java.util.List<CommerceAddress> findByCommerceCountryId(long commerceCountryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> 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 CommerceAddressModelImpl.
commerceCountryId - the commerce country IDstart - the lower bound of the range of commerce addressesend - the upper bound of the range of commerce addresses (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<CommerceAddress> findByCommerceCountryId(long commerceCountryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> 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 CommerceAddressModelImpl.
commerceCountryId - the commerce country IDstart - the lower bound of the range of commerce addressesend - the upper bound of the range of commerce addresses (not inclusive)orderByComparator - the comparator to order the results by (optionally null)useFinderCache - whether to use the finder cachepublic static CommerceAddress findByCommerceCountryId_First(long commerceCountryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator) throws NoSuchAddressException
commerceCountryId - the commerce country IDorderByComparator - the comparator to order the set by (optionally null)NoSuchAddressException - if a matching commerce address could not be foundpublic static CommerceAddress fetchByCommerceCountryId_First(long commerceCountryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator)
commerceCountryId - the commerce country IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce address could not be foundpublic static CommerceAddress findByCommerceCountryId_Last(long commerceCountryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator) throws NoSuchAddressException
commerceCountryId - the commerce country IDorderByComparator - the comparator to order the set by (optionally null)NoSuchAddressException - if a matching commerce address could not be foundpublic static CommerceAddress fetchByCommerceCountryId_Last(long commerceCountryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator)
commerceCountryId - the commerce country IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce address could not be foundpublic static CommerceAddress[] findByCommerceCountryId_PrevAndNext(long commerceAddressId, long commerceCountryId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator) throws NoSuchAddressException
commerceAddressId - the primary key of the current commerce addresscommerceCountryId - the commerce country IDorderByComparator - the comparator to order the set by (optionally null)NoSuchAddressException - if a commerce address with the primary key could not be foundpublic static void removeByCommerceCountryId(long commerceCountryId)
commerceCountryId - the commerce country IDpublic static int countByCommerceCountryId(long commerceCountryId)
commerceCountryId - the commerce country IDpublic static java.util.List<CommerceAddress> findByC_C(long classNameId, long classPK)
classNameId - the class name IDclassPK - the class pkpublic static java.util.List<CommerceAddress> 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 CommerceAddressModelImpl.
classNameId - the class name IDclassPK - the class pkstart - the lower bound of the range of commerce addressesend - the upper bound of the range of commerce addresses (not inclusive)public static java.util.List<CommerceAddress> findByC_C(long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> 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 CommerceAddressModelImpl.
classNameId - the class name IDclassPK - the class pkstart - the lower bound of the range of commerce addressesend - the upper bound of the range of commerce addresses (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<CommerceAddress> findByC_C(long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> 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 CommerceAddressModelImpl.
classNameId - the class name IDclassPK - the class pkstart - the lower bound of the range of commerce addressesend - the upper bound of the range of commerce addresses (not inclusive)orderByComparator - the comparator to order the results by (optionally null)useFinderCache - whether to use the finder cachepublic static CommerceAddress findByC_C_First(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator) throws NoSuchAddressException
classNameId - the class name IDclassPK - the class pkorderByComparator - the comparator to order the set by (optionally null)NoSuchAddressException - if a matching commerce address could not be foundpublic static CommerceAddress fetchByC_C_First(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator)
classNameId - the class name IDclassPK - the class pkorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce address could not be foundpublic static CommerceAddress findByC_C_Last(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator) throws NoSuchAddressException
classNameId - the class name IDclassPK - the class pkorderByComparator - the comparator to order the set by (optionally null)NoSuchAddressException - if a matching commerce address could not be foundpublic static CommerceAddress fetchByC_C_Last(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator)
classNameId - the class name IDclassPK - the class pkorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce address could not be foundpublic static CommerceAddress[] findByC_C_PrevAndNext(long commerceAddressId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator) throws NoSuchAddressException
commerceAddressId - the primary key of the current commerce addressclassNameId - the class name IDclassPK - the class pkorderByComparator - the comparator to order the set by (optionally null)NoSuchAddressException - if a commerce address with the primary key could not be foundpublic static void removeByC_C(long classNameId,
long classPK)
classNameId - the class name IDclassPK - the class pkpublic static int countByC_C(long classNameId,
long classPK)
classNameId - the class name IDclassPK - the class pkpublic static java.util.List<CommerceAddress> findByG_C_C(long groupId, long classNameId, long classPK)
groupId - the group IDclassNameId - the class name IDclassPK - the class pkpublic static java.util.List<CommerceAddress> findByG_C_C(long groupId, 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 CommerceAddressModelImpl.
groupId - the group IDclassNameId - the class name IDclassPK - the class pkstart - the lower bound of the range of commerce addressesend - the upper bound of the range of commerce addresses (not inclusive)public static java.util.List<CommerceAddress> findByG_C_C(long groupId, long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> 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 CommerceAddressModelImpl.
groupId - the group IDclassNameId - the class name IDclassPK - the class pkstart - the lower bound of the range of commerce addressesend - the upper bound of the range of commerce addresses (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<CommerceAddress> findByG_C_C(long groupId, long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> 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 CommerceAddressModelImpl.
groupId - the group IDclassNameId - the class name IDclassPK - the class pkstart - the lower bound of the range of commerce addressesend - the upper bound of the range of commerce addresses (not inclusive)orderByComparator - the comparator to order the results by (optionally null)useFinderCache - whether to use the finder cachepublic static CommerceAddress findByG_C_C_First(long groupId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator) throws NoSuchAddressException
groupId - the group IDclassNameId - the class name IDclassPK - the class pkorderByComparator - the comparator to order the set by (optionally null)NoSuchAddressException - if a matching commerce address could not be foundpublic static CommerceAddress fetchByG_C_C_First(long groupId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator)
groupId - the group IDclassNameId - the class name IDclassPK - the class pkorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce address could not be foundpublic static CommerceAddress findByG_C_C_Last(long groupId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator) throws NoSuchAddressException
groupId - the group IDclassNameId - the class name IDclassPK - the class pkorderByComparator - the comparator to order the set by (optionally null)NoSuchAddressException - if a matching commerce address could not be foundpublic static CommerceAddress fetchByG_C_C_Last(long groupId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator)
groupId - the group IDclassNameId - the class name IDclassPK - the class pkorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce address could not be foundpublic static CommerceAddress[] findByG_C_C_PrevAndNext(long commerceAddressId, long groupId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator) throws NoSuchAddressException
commerceAddressId - the primary key of the current commerce addressgroupId - the group IDclassNameId - the class name IDclassPK - the class pkorderByComparator - the comparator to order the set by (optionally null)NoSuchAddressException - if a commerce address with the primary key could not be foundpublic static void removeByG_C_C(long groupId,
long classNameId,
long classPK)
groupId - the group IDclassNameId - the class name IDclassPK - the class pkpublic static int countByG_C_C(long groupId,
long classNameId,
long classPK)
groupId - the group IDclassNameId - the class name IDclassPK - the class pkpublic static java.util.List<CommerceAddress> findByC_C_C(long companyId, long classNameId, long classPK)
companyId - the company IDclassNameId - the class name IDclassPK - the class pkpublic static java.util.List<CommerceAddress> findByC_C_C(long companyId, 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 CommerceAddressModelImpl.
companyId - the company IDclassNameId - the class name IDclassPK - the class pkstart - the lower bound of the range of commerce addressesend - the upper bound of the range of commerce addresses (not inclusive)public static java.util.List<CommerceAddress> findByC_C_C(long companyId, long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> 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 CommerceAddressModelImpl.
companyId - the company IDclassNameId - the class name IDclassPK - the class pkstart - the lower bound of the range of commerce addressesend - the upper bound of the range of commerce addresses (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<CommerceAddress> findByC_C_C(long companyId, long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> 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 CommerceAddressModelImpl.
companyId - the company IDclassNameId - the class name IDclassPK - the class pkstart - the lower bound of the range of commerce addressesend - the upper bound of the range of commerce addresses (not inclusive)orderByComparator - the comparator to order the results by (optionally null)useFinderCache - whether to use the finder cachepublic static CommerceAddress findByC_C_C_First(long companyId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator) throws NoSuchAddressException
companyId - the company IDclassNameId - the class name IDclassPK - the class pkorderByComparator - the comparator to order the set by (optionally null)NoSuchAddressException - if a matching commerce address could not be foundpublic static CommerceAddress fetchByC_C_C_First(long companyId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator)
companyId - the company IDclassNameId - the class name IDclassPK - the class pkorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce address could not be foundpublic static CommerceAddress findByC_C_C_Last(long companyId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator) throws NoSuchAddressException
companyId - the company IDclassNameId - the class name IDclassPK - the class pkorderByComparator - the comparator to order the set by (optionally null)NoSuchAddressException - if a matching commerce address could not be foundpublic static CommerceAddress fetchByC_C_C_Last(long companyId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator)
companyId - the company IDclassNameId - the class name IDclassPK - the class pkorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce address could not be foundpublic static CommerceAddress[] findByC_C_C_PrevAndNext(long commerceAddressId, long companyId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator) throws NoSuchAddressException
commerceAddressId - the primary key of the current commerce addresscompanyId - the company IDclassNameId - the class name IDclassPK - the class pkorderByComparator - the comparator to order the set by (optionally null)NoSuchAddressException - if a commerce address with the primary key could not be foundpublic static void removeByC_C_C(long companyId,
long classNameId,
long classPK)
companyId - the company IDclassNameId - the class name IDclassPK - the class pkpublic static int countByC_C_C(long companyId,
long classNameId,
long classPK)
companyId - the company IDclassNameId - the class name IDclassPK - the class pkpublic static java.util.List<CommerceAddress> findByG_C_C_DB(long groupId, long classNameId, long classPK, boolean defaultBilling)
groupId - the group IDclassNameId - the class name IDclassPK - the class pkdefaultBilling - the default billingpublic static java.util.List<CommerceAddress> findByG_C_C_DB(long groupId, long classNameId, long classPK, boolean defaultBilling, 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 CommerceAddressModelImpl.
groupId - the group IDclassNameId - the class name IDclassPK - the class pkdefaultBilling - the default billingstart - the lower bound of the range of commerce addressesend - the upper bound of the range of commerce addresses (not inclusive)public static java.util.List<CommerceAddress> findByG_C_C_DB(long groupId, long classNameId, long classPK, boolean defaultBilling, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> 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 CommerceAddressModelImpl.
groupId - the group IDclassNameId - the class name IDclassPK - the class pkdefaultBilling - the default billingstart - the lower bound of the range of commerce addressesend - the upper bound of the range of commerce addresses (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<CommerceAddress> findByG_C_C_DB(long groupId, long classNameId, long classPK, boolean defaultBilling, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> 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 CommerceAddressModelImpl.
groupId - the group IDclassNameId - the class name IDclassPK - the class pkdefaultBilling - the default billingstart - the lower bound of the range of commerce addressesend - the upper bound of the range of commerce addresses (not inclusive)orderByComparator - the comparator to order the results by (optionally null)useFinderCache - whether to use the finder cachepublic static CommerceAddress findByG_C_C_DB_First(long groupId, long classNameId, long classPK, boolean defaultBilling, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator) throws NoSuchAddressException
groupId - the group IDclassNameId - the class name IDclassPK - the class pkdefaultBilling - the default billingorderByComparator - the comparator to order the set by (optionally null)NoSuchAddressException - if a matching commerce address could not be foundpublic static CommerceAddress fetchByG_C_C_DB_First(long groupId, long classNameId, long classPK, boolean defaultBilling, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator)
groupId - the group IDclassNameId - the class name IDclassPK - the class pkdefaultBilling - the default billingorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce address could not be foundpublic static CommerceAddress findByG_C_C_DB_Last(long groupId, long classNameId, long classPK, boolean defaultBilling, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator) throws NoSuchAddressException
groupId - the group IDclassNameId - the class name IDclassPK - the class pkdefaultBilling - the default billingorderByComparator - the comparator to order the set by (optionally null)NoSuchAddressException - if a matching commerce address could not be foundpublic static CommerceAddress fetchByG_C_C_DB_Last(long groupId, long classNameId, long classPK, boolean defaultBilling, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator)
groupId - the group IDclassNameId - the class name IDclassPK - the class pkdefaultBilling - the default billingorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce address could not be foundpublic static CommerceAddress[] findByG_C_C_DB_PrevAndNext(long commerceAddressId, long groupId, long classNameId, long classPK, boolean defaultBilling, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator) throws NoSuchAddressException
commerceAddressId - the primary key of the current commerce addressgroupId - the group IDclassNameId - the class name IDclassPK - the class pkdefaultBilling - the default billingorderByComparator - the comparator to order the set by (optionally null)NoSuchAddressException - if a commerce address with the primary key could not be foundpublic static void removeByG_C_C_DB(long groupId,
long classNameId,
long classPK,
boolean defaultBilling)
groupId - the group IDclassNameId - the class name IDclassPK - the class pkdefaultBilling - the default billingpublic static int countByG_C_C_DB(long groupId,
long classNameId,
long classPK,
boolean defaultBilling)
groupId - the group IDclassNameId - the class name IDclassPK - the class pkdefaultBilling - the default billingpublic static java.util.List<CommerceAddress> findByG_C_C_DS(long groupId, long classNameId, long classPK, boolean defaultShipping)
groupId - the group IDclassNameId - the class name IDclassPK - the class pkdefaultShipping - the default shippingpublic static java.util.List<CommerceAddress> findByG_C_C_DS(long groupId, long classNameId, long classPK, boolean defaultShipping, 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 CommerceAddressModelImpl.
groupId - the group IDclassNameId - the class name IDclassPK - the class pkdefaultShipping - the default shippingstart - the lower bound of the range of commerce addressesend - the upper bound of the range of commerce addresses (not inclusive)public static java.util.List<CommerceAddress> findByG_C_C_DS(long groupId, long classNameId, long classPK, boolean defaultShipping, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> 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 CommerceAddressModelImpl.
groupId - the group IDclassNameId - the class name IDclassPK - the class pkdefaultShipping - the default shippingstart - the lower bound of the range of commerce addressesend - the upper bound of the range of commerce addresses (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<CommerceAddress> findByG_C_C_DS(long groupId, long classNameId, long classPK, boolean defaultShipping, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> 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 CommerceAddressModelImpl.
groupId - the group IDclassNameId - the class name IDclassPK - the class pkdefaultShipping - the default shippingstart - the lower bound of the range of commerce addressesend - the upper bound of the range of commerce addresses (not inclusive)orderByComparator - the comparator to order the results by (optionally null)useFinderCache - whether to use the finder cachepublic static CommerceAddress findByG_C_C_DS_First(long groupId, long classNameId, long classPK, boolean defaultShipping, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator) throws NoSuchAddressException
groupId - the group IDclassNameId - the class name IDclassPK - the class pkdefaultShipping - the default shippingorderByComparator - the comparator to order the set by (optionally null)NoSuchAddressException - if a matching commerce address could not be foundpublic static CommerceAddress fetchByG_C_C_DS_First(long groupId, long classNameId, long classPK, boolean defaultShipping, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator)
groupId - the group IDclassNameId - the class name IDclassPK - the class pkdefaultShipping - the default shippingorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce address could not be foundpublic static CommerceAddress findByG_C_C_DS_Last(long groupId, long classNameId, long classPK, boolean defaultShipping, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator) throws NoSuchAddressException
groupId - the group IDclassNameId - the class name IDclassPK - the class pkdefaultShipping - the default shippingorderByComparator - the comparator to order the set by (optionally null)NoSuchAddressException - if a matching commerce address could not be foundpublic static CommerceAddress fetchByG_C_C_DS_Last(long groupId, long classNameId, long classPK, boolean defaultShipping, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator)
groupId - the group IDclassNameId - the class name IDclassPK - the class pkdefaultShipping - the default shippingorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce address could not be foundpublic static CommerceAddress[] findByG_C_C_DS_PrevAndNext(long commerceAddressId, long groupId, long classNameId, long classPK, boolean defaultShipping, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator) throws NoSuchAddressException
commerceAddressId - the primary key of the current commerce addressgroupId - the group IDclassNameId - the class name IDclassPK - the class pkdefaultShipping - the default shippingorderByComparator - the comparator to order the set by (optionally null)NoSuchAddressException - if a commerce address with the primary key could not be foundpublic static void removeByG_C_C_DS(long groupId,
long classNameId,
long classPK,
boolean defaultShipping)
groupId - the group IDclassNameId - the class name IDclassPK - the class pkdefaultShipping - the default shippingpublic static int countByG_C_C_DS(long groupId,
long classNameId,
long classPK,
boolean defaultShipping)
groupId - the group IDclassNameId - the class name IDclassPK - the class pkdefaultShipping - the default shippingpublic static java.util.List<CommerceAddress> findByC_C_C_C(long companyId, long classNameId, long classPK, int type)
companyId - the company IDclassNameId - the class name IDclassPK - the class pktype - the typepublic static java.util.List<CommerceAddress> findByC_C_C_C(long companyId, long classNameId, long classPK, int type, 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 CommerceAddressModelImpl.
companyId - the company IDclassNameId - the class name IDclassPK - the class pktype - the typestart - the lower bound of the range of commerce addressesend - the upper bound of the range of commerce addresses (not inclusive)public static java.util.List<CommerceAddress> findByC_C_C_C(long companyId, long classNameId, long classPK, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> 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 CommerceAddressModelImpl.
companyId - the company IDclassNameId - the class name IDclassPK - the class pktype - the typestart - the lower bound of the range of commerce addressesend - the upper bound of the range of commerce addresses (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<CommerceAddress> findByC_C_C_C(long companyId, long classNameId, long classPK, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> 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 CommerceAddressModelImpl.
companyId - the company IDclassNameId - the class name IDclassPK - the class pktype - the typestart - the lower bound of the range of commerce addressesend - the upper bound of the range of commerce addresses (not inclusive)orderByComparator - the comparator to order the results by (optionally null)useFinderCache - whether to use the finder cachepublic static CommerceAddress findByC_C_C_C_First(long companyId, long classNameId, long classPK, int type, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator) throws NoSuchAddressException
companyId - the company IDclassNameId - the class name IDclassPK - the class pktype - the typeorderByComparator - the comparator to order the set by (optionally null)NoSuchAddressException - if a matching commerce address could not be foundpublic static CommerceAddress fetchByC_C_C_C_First(long companyId, long classNameId, long classPK, int type, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator)
companyId - the company IDclassNameId - the class name IDclassPK - the class pktype - the typeorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce address could not be foundpublic static CommerceAddress findByC_C_C_C_Last(long companyId, long classNameId, long classPK, int type, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator) throws NoSuchAddressException
companyId - the company IDclassNameId - the class name IDclassPK - the class pktype - the typeorderByComparator - the comparator to order the set by (optionally null)NoSuchAddressException - if a matching commerce address could not be foundpublic static CommerceAddress fetchByC_C_C_C_Last(long companyId, long classNameId, long classPK, int type, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator)
companyId - the company IDclassNameId - the class name IDclassPK - the class pktype - the typeorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce address could not be foundpublic static CommerceAddress[] findByC_C_C_C_PrevAndNext(long commerceAddressId, long companyId, long classNameId, long classPK, int type, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> orderByComparator) throws NoSuchAddressException
commerceAddressId - the primary key of the current commerce addresscompanyId - the company IDclassNameId - the class name IDclassPK - the class pktype - the typeorderByComparator - the comparator to order the set by (optionally null)NoSuchAddressException - if a commerce address with the primary key could not be foundpublic static void removeByC_C_C_C(long companyId,
long classNameId,
long classPK,
int type)
companyId - the company IDclassNameId - the class name IDclassPK - the class pktype - the typepublic static int countByC_C_C_C(long companyId,
long classNameId,
long classPK,
int type)
companyId - the company IDclassNameId - the class name IDclassPK - the class pktype - the typepublic static CommerceAddress findByC_ERC(long companyId, java.lang.String externalReferenceCode) throws NoSuchAddressException
NoSuchAddressException if it could not be found.companyId - the company IDexternalReferenceCode - the external reference codeNoSuchAddressException - if a matching commerce address could not be foundpublic static CommerceAddress fetchByC_ERC(long companyId, java.lang.String externalReferenceCode)
null if it could not be found. Uses the finder cache.companyId - the company IDexternalReferenceCode - the external reference codenull if a matching commerce address could not be foundpublic static CommerceAddress fetchByC_ERC(long companyId, java.lang.String externalReferenceCode, boolean useFinderCache)
null if it could not be found, optionally using the finder cache.companyId - the company IDexternalReferenceCode - the external reference codeuseFinderCache - whether to use the finder cachenull if a matching commerce address could not be foundpublic static CommerceAddress removeByC_ERC(long companyId, java.lang.String externalReferenceCode) throws NoSuchAddressException
companyId - the company IDexternalReferenceCode - the external reference codeNoSuchAddressExceptionpublic static int countByC_ERC(long companyId,
java.lang.String externalReferenceCode)
companyId - the company IDexternalReferenceCode - the external reference codepublic static void cacheResult(CommerceAddress commerceAddress)
commerceAddress - the commerce addresspublic static void cacheResult(java.util.List<CommerceAddress> commerceAddresses)
commerceAddresses - the commerce addressespublic static CommerceAddress create(long commerceAddressId)
commerceAddressId - the primary key for the new commerce addresspublic static CommerceAddress remove(long commerceAddressId) throws NoSuchAddressException
commerceAddressId - the primary key of the commerce addressNoSuchAddressException - if a commerce address with the primary key could not be foundpublic static CommerceAddress updateImpl(CommerceAddress commerceAddress)
public static CommerceAddress findByPrimaryKey(long commerceAddressId) throws NoSuchAddressException
NoSuchAddressException if it could not be found.commerceAddressId - the primary key of the commerce addressNoSuchAddressException - if a commerce address with the primary key could not be foundpublic static CommerceAddress fetchByPrimaryKey(long commerceAddressId)
null if it could not be found.commerceAddressId - the primary key of the commerce addressnull if a commerce address with the primary key could not be foundpublic static java.util.List<CommerceAddress> findAll()
public static java.util.List<CommerceAddress> 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 CommerceAddressModelImpl.
start - the lower bound of the range of commerce addressesend - the upper bound of the range of commerce addresses (not inclusive)public static java.util.List<CommerceAddress> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> 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 CommerceAddressModelImpl.
start - the lower bound of the range of commerce addressesend - the upper bound of the range of commerce addresses (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<CommerceAddress> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAddress> 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 CommerceAddressModelImpl.
start - the lower bound of the range of commerce addressesend - the upper bound of the range of commerce addresses (not inclusive)orderByComparator - the comparator to order the results by (optionally null)useFinderCache - whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static CommerceAddressPersistence getPersistence()