|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portal.service.persistence.AddressUtil
public class AddressUtil
The persistence utility for the address service. This utility wraps AddressPersistenceImpl
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.
Never modify this class directly. Modify service.xml
and rerun ServiceBuilder to regenerate this class.
Caching information and settings can be found in portal.properties
AddressPersistence
,
AddressPersistenceImpl
Constructor Summary | |
---|---|
AddressUtil()
|
Method Summary | |
---|---|
static void |
cacheResult(Address address)
Caches the address in the entity cache if it is enabled. |
static void |
cacheResult(List<Address> addresses)
Caches the addresses in the entity cache if it is enabled. |
static void |
clearCache()
|
static void |
clearCache(Address address)
|
static int |
countAll()
Counts all the addresses. |
static int |
countByC_C_C_M(long companyId,
long classNameId,
long classPK,
boolean mailing)
Counts all the addresses where companyId = ? and classNameId = ? and classPK = ? and mailing = ?. |
static int |
countByC_C_C_P(long companyId,
long classNameId,
long classPK,
boolean primary)
Counts all the addresses where companyId = ? and classNameId = ? and classPK = ? and primary = ?. |
static int |
countByC_C_C(long companyId,
long classNameId,
long classPK)
Counts all the addresses where companyId = ? and classNameId = ? and classPK = ?. |
static int |
countByC_C(long companyId,
long classNameId)
Counts all the addresses where companyId = ? and classNameId = ?. |
static int |
countByCompanyId(long companyId)
Counts all the addresses where companyId = ?. |
static int |
countByUserId(long userId)
Counts all the addresses where userId = ?. |
long |
countWithDynamicQuery(DynamicQuery dynamicQuery)
|
static Address |
create(long addressId)
Creates a new address with the primary key. |
static Address |
fetchByPrimaryKey(long addressId)
Finds the address with the primary key or returns null if it could not be found. |
static List<Address> |
findAll()
Finds all the addresses. |
static List<Address> |
findAll(int start,
int end)
Finds a range of all the addresses. |
static List<Address> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the addresses. |
static Address |
findByC_C_C_First(long companyId,
long classNameId,
long classPK,
OrderByComparator orderByComparator)
Finds the first address in the ordered set where companyId = ? and classNameId = ? and classPK = ?. |
static Address |
findByC_C_C_Last(long companyId,
long classNameId,
long classPK,
OrderByComparator orderByComparator)
Finds the last address in the ordered set where companyId = ? and classNameId = ? and classPK = ?. |
static Address |
findByC_C_C_M_First(long companyId,
long classNameId,
long classPK,
boolean mailing,
OrderByComparator orderByComparator)
Finds the first address in the ordered set where companyId = ? and classNameId = ? and classPK = ? and mailing = ?. |
static Address |
findByC_C_C_M_Last(long companyId,
long classNameId,
long classPK,
boolean mailing,
OrderByComparator orderByComparator)
Finds the last address in the ordered set where companyId = ? and classNameId = ? and classPK = ? and mailing = ?. |
static Address[] |
findByC_C_C_M_PrevAndNext(long addressId,
long companyId,
long classNameId,
long classPK,
boolean mailing,
OrderByComparator orderByComparator)
Finds the addresses before and after the current address in the ordered set where companyId = ? and classNameId = ? and classPK = ? and mailing = ?. |
static List<Address> |
findByC_C_C_M(long companyId,
long classNameId,
long classPK,
boolean mailing)
Finds all the addresses where companyId = ? and classNameId = ? and classPK = ? and mailing = ?. |
static List<Address> |
findByC_C_C_M(long companyId,
long classNameId,
long classPK,
boolean mailing,
int start,
int end)
Finds a range of all the addresses where companyId = ? and classNameId = ? and classPK = ? and mailing = ?. |
static List<Address> |
findByC_C_C_M(long companyId,
long classNameId,
long classPK,
boolean mailing,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the addresses where companyId = ? and classNameId = ? and classPK = ? and mailing = ?. |
static Address |
findByC_C_C_P_First(long companyId,
long classNameId,
long classPK,
boolean primary,
OrderByComparator orderByComparator)
Finds the first address in the ordered set where companyId = ? and classNameId = ? and classPK = ? and primary = ?. |
static Address |
findByC_C_C_P_Last(long companyId,
long classNameId,
long classPK,
boolean primary,
OrderByComparator orderByComparator)
Finds the last address in the ordered set where companyId = ? and classNameId = ? and classPK = ? and primary = ?. |
static Address[] |
findByC_C_C_P_PrevAndNext(long addressId,
long companyId,
long classNameId,
long classPK,
boolean primary,
OrderByComparator orderByComparator)
Finds the addresses before and after the current address in the ordered set where companyId = ? and classNameId = ? and classPK = ? and primary = ?. |
static List<Address> |
findByC_C_C_P(long companyId,
long classNameId,
long classPK,
boolean primary)
Finds all the addresses where companyId = ? and classNameId = ? and classPK = ? and primary = ?. |
static List<Address> |
findByC_C_C_P(long companyId,
long classNameId,
long classPK,
boolean primary,
int start,
int end)
Finds a range of all the addresses where companyId = ? and classNameId = ? and classPK = ? and primary = ?. |
static List<Address> |
findByC_C_C_P(long companyId,
long classNameId,
long classPK,
boolean primary,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the addresses where companyId = ? and classNameId = ? and classPK = ? and primary = ?. |
static Address[] |
findByC_C_C_PrevAndNext(long addressId,
long companyId,
long classNameId,
long classPK,
OrderByComparator orderByComparator)
Finds the addresses before and after the current address in the ordered set where companyId = ? and classNameId = ? and classPK = ?. |
static List<Address> |
findByC_C_C(long companyId,
long classNameId,
long classPK)
Finds all the addresses where companyId = ? and classNameId = ? and classPK = ?. |
static List<Address> |
findByC_C_C(long companyId,
long classNameId,
long classPK,
int start,
int end)
Finds a range of all the addresses where companyId = ? and classNameId = ? and classPK = ?. |
static List<Address> |
findByC_C_C(long companyId,
long classNameId,
long classPK,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the addresses where companyId = ? and classNameId = ? and classPK = ?. |
static Address |
findByC_C_First(long companyId,
long classNameId,
OrderByComparator orderByComparator)
Finds the first address in the ordered set where companyId = ? and classNameId = ?. |
static Address |
findByC_C_Last(long companyId,
long classNameId,
OrderByComparator orderByComparator)
Finds the last address in the ordered set where companyId = ? and classNameId = ?. |
static Address[] |
findByC_C_PrevAndNext(long addressId,
long companyId,
long classNameId,
OrderByComparator orderByComparator)
Finds the addresses before and after the current address in the ordered set where companyId = ? and classNameId = ?. |
static List<Address> |
findByC_C(long companyId,
long classNameId)
Finds all the addresses where companyId = ? and classNameId = ?. |
static List<Address> |
findByC_C(long companyId,
long classNameId,
int start,
int end)
Finds a range of all the addresses where companyId = ? and classNameId = ?. |
static List<Address> |
findByC_C(long companyId,
long classNameId,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the addresses where companyId = ? and classNameId = ?. |
static Address |
findByCompanyId_First(long companyId,
OrderByComparator orderByComparator)
Finds the first address in the ordered set where companyId = ?. |
static Address |
findByCompanyId_Last(long companyId,
OrderByComparator orderByComparator)
Finds the last address in the ordered set where companyId = ?. |
static Address[] |
findByCompanyId_PrevAndNext(long addressId,
long companyId,
OrderByComparator orderByComparator)
Finds the addresses before and after the current address in the ordered set where companyId = ?. |
static List<Address> |
findByCompanyId(long companyId)
Finds all the addresses where companyId = ?. |
static List<Address> |
findByCompanyId(long companyId,
int start,
int end)
Finds a range of all the addresses where companyId = ?. |
static List<Address> |
findByCompanyId(long companyId,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the addresses where companyId = ?. |
static Address |
findByPrimaryKey(long addressId)
Finds the address with the primary key or throws a NoSuchAddressException if it could not be found. |
static Address |
findByUserId_First(long userId,
OrderByComparator orderByComparator)
Finds the first address in the ordered set where userId = ?. |
static Address |
findByUserId_Last(long userId,
OrderByComparator orderByComparator)
Finds the last address in the ordered set where userId = ?. |
static Address[] |
findByUserId_PrevAndNext(long addressId,
long userId,
OrderByComparator orderByComparator)
Finds the addresses before and after the current address in the ordered set where userId = ?. |
static List<Address> |
findByUserId(long userId)
Finds all the addresses where userId = ?. |
static List<Address> |
findByUserId(long userId,
int start,
int end)
Finds a range of all the addresses where userId = ?. |
static List<Address> |
findByUserId(long userId,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the addresses where userId = ?. |
static List<Address> |
findWithDynamicQuery(DynamicQuery dynamicQuery)
|
static List<Address> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
|
static List<Address> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
|
static AddressPersistence |
getPersistence()
|
static Address |
remove(Address address)
|
static Address |
remove(long addressId)
Removes the address with the primary key from the database. |
static void |
removeAll()
Removes all the addresses from the database. |
static void |
removeByC_C_C_M(long companyId,
long classNameId,
long classPK,
boolean mailing)
Removes all the addresses where companyId = ? and classNameId = ? and classPK = ? and mailing = ? from the database. |
static void |
removeByC_C_C_P(long companyId,
long classNameId,
long classPK,
boolean primary)
Removes all the addresses where companyId = ? and classNameId = ? and classPK = ? and primary = ? from the database. |
static void |
removeByC_C_C(long companyId,
long classNameId,
long classPK)
Removes all the addresses where companyId = ? and classNameId = ? and classPK = ? from the database. |
static void |
removeByC_C(long companyId,
long classNameId)
Removes all the addresses where companyId = ? and classNameId = ? from the database. |
static void |
removeByCompanyId(long companyId)
Removes all the addresses where companyId = ? from the database. |
static void |
removeByUserId(long userId)
Removes all the addresses where userId = ? from the database. |
void |
setPersistence(AddressPersistence persistence)
|
static Address |
update(Address address,
boolean merge)
|
static Address |
update(Address address,
boolean merge,
ServiceContext serviceContext)
|
static Address |
updateImpl(Address address,
boolean merge)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AddressUtil()
Method Detail |
---|
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(Address address)
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)
public long countWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException
SystemException
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static List<Address> findWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static List<Address> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static List<Address> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static Address remove(Address address) throws SystemException
SystemException
BasePersistence.remove(com.liferay.portal.model.BaseModel)
public static Address update(Address address, boolean merge) throws SystemException
SystemException
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean)
public static Address update(Address address, boolean merge, ServiceContext serviceContext) throws SystemException
SystemException
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
public static void cacheResult(Address address)
address
- the address to cachepublic static void cacheResult(List<Address> addresses)
addresses
- the addresses to cachepublic static Address create(long addressId)
addressId
- the primary key for the new address
public static Address remove(long addressId) throws NoSuchAddressException, SystemException
addressId
- the primary key of the address to remove
NoSuchAddressException
- if a address with the primary key could not be found
SystemException
- if a system exception occurredpublic static Address updateImpl(Address address, boolean merge) throws SystemException
SystemException
public static Address findByPrimaryKey(long addressId) throws NoSuchAddressException, SystemException
NoSuchAddressException
if it could not be found.
addressId
- the primary key of the address to find
NoSuchAddressException
- if a address with the primary key could not be found
SystemException
- if a system exception occurredpublic static Address fetchByPrimaryKey(long addressId) throws SystemException
null
if it could not be found.
addressId
- the primary key of the address to find
null
if a address with the primary key could not be found
SystemException
- if a system exception occurredpublic static List<Address> findByCompanyId(long companyId) throws SystemException
companyId
- the company id to search with
SystemException
- if a system exception occurredpublic static List<Address> findByCompanyId(long companyId, int start, int end) throws SystemException
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.
companyId
- the company id to search withstart
- the lower bound of the range of addresses to returnend
- the upper bound of the range of addresses to return (not inclusive)
SystemException
- if a system exception occurredpublic static List<Address> findByCompanyId(long companyId, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
companyId
- the company id to search withstart
- the lower bound of the range of addresses to returnend
- the upper bound of the range of addresses to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic static Address findByCompanyId_First(long companyId, OrderByComparator orderByComparator) throws NoSuchAddressException, SystemException
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.
companyId
- the company id to search withorderByComparator
- the comparator to order the set by
NoSuchAddressException
- if a matching address could not be found
SystemException
- if a system exception occurredpublic static Address findByCompanyId_Last(long companyId, OrderByComparator orderByComparator) throws NoSuchAddressException, SystemException
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.
companyId
- the company id to search withorderByComparator
- the comparator to order the set by
NoSuchAddressException
- if a matching address could not be found
SystemException
- if a system exception occurredpublic static Address[] findByCompanyId_PrevAndNext(long addressId, long companyId, OrderByComparator orderByComparator) throws NoSuchAddressException, SystemException
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.
addressId
- the primary key of the current addresscompanyId
- the company id to search withorderByComparator
- the comparator to order the set by
NoSuchAddressException
- if a address with the primary key could not be found
SystemException
- if a system exception occurredpublic static List<Address> findByUserId(long userId) throws SystemException
userId
- the user id to search with
SystemException
- if a system exception occurredpublic static List<Address> findByUserId(long userId, int start, int end) throws SystemException
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.
userId
- the user id to search withstart
- the lower bound of the range of addresses to returnend
- the upper bound of the range of addresses to return (not inclusive)
SystemException
- if a system exception occurredpublic static List<Address> findByUserId(long userId, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
userId
- the user id to search withstart
- the lower bound of the range of addresses to returnend
- the upper bound of the range of addresses to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic static Address findByUserId_First(long userId, OrderByComparator orderByComparator) throws NoSuchAddressException, SystemException
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.
userId
- the user id to search withorderByComparator
- the comparator to order the set by
NoSuchAddressException
- if a matching address could not be found
SystemException
- if a system exception occurredpublic static Address findByUserId_Last(long userId, OrderByComparator orderByComparator) throws NoSuchAddressException, SystemException
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.
userId
- the user id to search withorderByComparator
- the comparator to order the set by
NoSuchAddressException
- if a matching address could not be found
SystemException
- if a system exception occurredpublic static Address[] findByUserId_PrevAndNext(long addressId, long userId, OrderByComparator orderByComparator) throws NoSuchAddressException, SystemException
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.
addressId
- the primary key of the current addressuserId
- the user id to search withorderByComparator
- the comparator to order the set by
NoSuchAddressException
- if a address with the primary key could not be found
SystemException
- if a system exception occurredpublic static List<Address> findByC_C(long companyId, long classNameId) throws SystemException
companyId
- the company id to search withclassNameId
- the class name id to search with
SystemException
- if a system exception occurredpublic static List<Address> findByC_C(long companyId, long classNameId, int start, int end) throws SystemException
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.
companyId
- the company id to search withclassNameId
- the class name id to search withstart
- the lower bound of the range of addresses to returnend
- the upper bound of the range of addresses to return (not inclusive)
SystemException
- if a system exception occurredpublic static List<Address> findByC_C(long companyId, long classNameId, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
companyId
- the company id to search withclassNameId
- the class name id to search withstart
- the lower bound of the range of addresses to returnend
- the upper bound of the range of addresses to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic static Address findByC_C_First(long companyId, long classNameId, OrderByComparator orderByComparator) throws NoSuchAddressException, SystemException
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.
companyId
- the company id to search withclassNameId
- the class name id to search withorderByComparator
- the comparator to order the set by
NoSuchAddressException
- if a matching address could not be found
SystemException
- if a system exception occurredpublic static Address findByC_C_Last(long companyId, long classNameId, OrderByComparator orderByComparator) throws NoSuchAddressException, SystemException
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.
companyId
- the company id to search withclassNameId
- the class name id to search withorderByComparator
- the comparator to order the set by
NoSuchAddressException
- if a matching address could not be found
SystemException
- if a system exception occurredpublic static Address[] findByC_C_PrevAndNext(long addressId, long companyId, long classNameId, OrderByComparator orderByComparator) throws NoSuchAddressException, SystemException
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.
addressId
- the primary key of the current addresscompanyId
- the company id to search withclassNameId
- the class name id to search withorderByComparator
- the comparator to order the set by
NoSuchAddressException
- if a address with the primary key could not be found
SystemException
- if a system exception occurredpublic static List<Address> findByC_C_C(long companyId, long classNameId, long classPK) throws SystemException
companyId
- the company id to search withclassNameId
- the class name id to search withclassPK
- the class p k to search with
SystemException
- if a system exception occurredpublic static List<Address> findByC_C_C(long companyId, long classNameId, long classPK, int start, int end) throws SystemException
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.
companyId
- the company id to search withclassNameId
- the class name id to search withclassPK
- the class p k to search withstart
- the lower bound of the range of addresses to returnend
- the upper bound of the range of addresses to return (not inclusive)
SystemException
- if a system exception occurredpublic static List<Address> findByC_C_C(long companyId, long classNameId, long classPK, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
companyId
- the company id to search withclassNameId
- the class name id to search withclassPK
- the class p k to search withstart
- the lower bound of the range of addresses to returnend
- the upper bound of the range of addresses to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic static Address findByC_C_C_First(long companyId, long classNameId, long classPK, OrderByComparator orderByComparator) throws NoSuchAddressException, SystemException
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.
companyId
- the company id to search withclassNameId
- the class name id to search withclassPK
- the class p k to search withorderByComparator
- the comparator to order the set by
NoSuchAddressException
- if a matching address could not be found
SystemException
- if a system exception occurredpublic static Address findByC_C_C_Last(long companyId, long classNameId, long classPK, OrderByComparator orderByComparator) throws NoSuchAddressException, SystemException
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.
companyId
- the company id to search withclassNameId
- the class name id to search withclassPK
- the class p k to search withorderByComparator
- the comparator to order the set by
NoSuchAddressException
- if a matching address could not be found
SystemException
- if a system exception occurredpublic static Address[] findByC_C_C_PrevAndNext(long addressId, long companyId, long classNameId, long classPK, OrderByComparator orderByComparator) throws NoSuchAddressException, SystemException
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.
addressId
- the primary key of the current addresscompanyId
- the company id to search withclassNameId
- the class name id to search withclassPK
- the class p k to search withorderByComparator
- the comparator to order the set by
NoSuchAddressException
- if a address with the primary key could not be found
SystemException
- if a system exception occurredpublic static List<Address> findByC_C_C_M(long companyId, long classNameId, long classPK, boolean mailing) throws SystemException
companyId
- the company id to search withclassNameId
- the class name id to search withclassPK
- the class p k to search withmailing
- the mailing to search with
SystemException
- if a system exception occurredpublic static List<Address> findByC_C_C_M(long companyId, long classNameId, long classPK, boolean mailing, int start, int end) throws SystemException
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.
companyId
- the company id to search withclassNameId
- the class name id to search withclassPK
- the class p k to search withmailing
- the mailing to search withstart
- the lower bound of the range of addresses to returnend
- the upper bound of the range of addresses to return (not inclusive)
SystemException
- if a system exception occurredpublic static List<Address> findByC_C_C_M(long companyId, long classNameId, long classPK, boolean mailing, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
companyId
- the company id to search withclassNameId
- the class name id to search withclassPK
- the class p k to search withmailing
- the mailing to search withstart
- the lower bound of the range of addresses to returnend
- the upper bound of the range of addresses to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic static Address findByC_C_C_M_First(long companyId, long classNameId, long classPK, boolean mailing, OrderByComparator orderByComparator) throws NoSuchAddressException, SystemException
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.
companyId
- the company id to search withclassNameId
- the class name id to search withclassPK
- the class p k to search withmailing
- the mailing to search withorderByComparator
- the comparator to order the set by
NoSuchAddressException
- if a matching address could not be found
SystemException
- if a system exception occurredpublic static Address findByC_C_C_M_Last(long companyId, long classNameId, long classPK, boolean mailing, OrderByComparator orderByComparator) throws NoSuchAddressException, SystemException
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.
companyId
- the company id to search withclassNameId
- the class name id to search withclassPK
- the class p k to search withmailing
- the mailing to search withorderByComparator
- the comparator to order the set by
NoSuchAddressException
- if a matching address could not be found
SystemException
- if a system exception occurredpublic static Address[] findByC_C_C_M_PrevAndNext(long addressId, long companyId, long classNameId, long classPK, boolean mailing, OrderByComparator orderByComparator) throws NoSuchAddressException, SystemException
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.
addressId
- the primary key of the current addresscompanyId
- the company id to search withclassNameId
- the class name id to search withclassPK
- the class p k to search withmailing
- the mailing to search withorderByComparator
- the comparator to order the set by
NoSuchAddressException
- if a address with the primary key could not be found
SystemException
- if a system exception occurredpublic static List<Address> findByC_C_C_P(long companyId, long classNameId, long classPK, boolean primary) throws SystemException
companyId
- the company id to search withclassNameId
- the class name id to search withclassPK
- the class p k to search withprimary
- the primary to search with
SystemException
- if a system exception occurredpublic static List<Address> findByC_C_C_P(long companyId, long classNameId, long classPK, boolean primary, int start, int end) throws SystemException
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.
companyId
- the company id to search withclassNameId
- the class name id to search withclassPK
- the class p k to search withprimary
- the primary to search withstart
- the lower bound of the range of addresses to returnend
- the upper bound of the range of addresses to return (not inclusive)
SystemException
- if a system exception occurredpublic static List<Address> findByC_C_C_P(long companyId, long classNameId, long classPK, boolean primary, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
companyId
- the company id to search withclassNameId
- the class name id to search withclassPK
- the class p k to search withprimary
- the primary to search withstart
- the lower bound of the range of addresses to returnend
- the upper bound of the range of addresses to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic static Address findByC_C_C_P_First(long companyId, long classNameId, long classPK, boolean primary, OrderByComparator orderByComparator) throws NoSuchAddressException, SystemException
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.
companyId
- the company id to search withclassNameId
- the class name id to search withclassPK
- the class p k to search withprimary
- the primary to search withorderByComparator
- the comparator to order the set by
NoSuchAddressException
- if a matching address could not be found
SystemException
- if a system exception occurredpublic static Address findByC_C_C_P_Last(long companyId, long classNameId, long classPK, boolean primary, OrderByComparator orderByComparator) throws NoSuchAddressException, SystemException
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.
companyId
- the company id to search withclassNameId
- the class name id to search withclassPK
- the class p k to search withprimary
- the primary to search withorderByComparator
- the comparator to order the set by
NoSuchAddressException
- if a matching address could not be found
SystemException
- if a system exception occurredpublic static Address[] findByC_C_C_P_PrevAndNext(long addressId, long companyId, long classNameId, long classPK, boolean primary, OrderByComparator orderByComparator) throws NoSuchAddressException, SystemException
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.
addressId
- the primary key of the current addresscompanyId
- the company id to search withclassNameId
- the class name id to search withclassPK
- the class p k to search withprimary
- the primary to search withorderByComparator
- the comparator to order the set by
NoSuchAddressException
- if a address with the primary key could not be found
SystemException
- if a system exception occurredpublic static List<Address> findAll() throws SystemException
SystemException
- if a system exception occurredpublic static List<Address> findAll(int start, int end) throws SystemException
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.
start
- the lower bound of the range of addresses to returnend
- the upper bound of the range of addresses to return (not inclusive)
SystemException
- if a system exception occurredpublic static List<Address> findAll(int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
start
- the lower bound of the range of addresses to returnend
- the upper bound of the range of addresses to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic static void removeByCompanyId(long companyId) throws SystemException
companyId
- the company id to search with
SystemException
- if a system exception occurredpublic static void removeByUserId(long userId) throws SystemException
userId
- the user id to search with
SystemException
- if a system exception occurredpublic static void removeByC_C(long companyId, long classNameId) throws SystemException
companyId
- the company id to search withclassNameId
- the class name id to search with
SystemException
- if a system exception occurredpublic static void removeByC_C_C(long companyId, long classNameId, long classPK) throws SystemException
companyId
- the company id to search withclassNameId
- the class name id to search withclassPK
- the class p k to search with
SystemException
- if a system exception occurredpublic static void removeByC_C_C_M(long companyId, long classNameId, long classPK, boolean mailing) throws SystemException
companyId
- the company id to search withclassNameId
- the class name id to search withclassPK
- the class p k to search withmailing
- the mailing to search with
SystemException
- if a system exception occurredpublic static void removeByC_C_C_P(long companyId, long classNameId, long classPK, boolean primary) throws SystemException
companyId
- the company id to search withclassNameId
- the class name id to search withclassPK
- the class p k to search withprimary
- the primary to search with
SystemException
- if a system exception occurredpublic static void removeAll() throws SystemException
SystemException
- if a system exception occurredpublic static int countByCompanyId(long companyId) throws SystemException
companyId
- the company id to search with
SystemException
- if a system exception occurredpublic static int countByUserId(long userId) throws SystemException
userId
- the user id to search with
SystemException
- if a system exception occurredpublic static int countByC_C(long companyId, long classNameId) throws SystemException
companyId
- the company id to search withclassNameId
- the class name id to search with
SystemException
- if a system exception occurredpublic static int countByC_C_C(long companyId, long classNameId, long classPK) throws SystemException
companyId
- the company id to search withclassNameId
- the class name id to search withclassPK
- the class p k to search with
SystemException
- if a system exception occurredpublic static int countByC_C_C_M(long companyId, long classNameId, long classPK, boolean mailing) throws SystemException
companyId
- the company id to search withclassNameId
- the class name id to search withclassPK
- the class p k to search withmailing
- the mailing to search with
SystemException
- if a system exception occurredpublic static int countByC_C_C_P(long companyId, long classNameId, long classPK, boolean primary) throws SystemException
companyId
- the company id to search withclassNameId
- the class name id to search withclassPK
- the class p k to search withprimary
- the primary to search with
SystemException
- if a system exception occurredpublic static int countAll() throws SystemException
SystemException
- if a system exception occurredpublic static AddressPersistence getPersistence()
public void setPersistence(AddressPersistence persistence)
|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |