|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AddressPersistence
The persistence interface for the address service.
Never modify or reference this interface directly. Always use AddressUtil
to access the address persistence. Modify service.xml
and rerun ServiceBuilder to regenerate this interface.
Caching information and settings can be found in portal.properties
AddressPersistenceImpl
,
AddressUtil
Method Summary | |
---|---|
void |
cacheResult(Address address)
Caches the address in the entity cache if it is enabled. |
void |
cacheResult(List<Address> addresses)
Caches the addresses in the entity cache if it is enabled. |
int |
countAll()
Counts all the addresses. |
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 = ?. |
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 = ?. |
int |
countByC_C_C(long companyId,
long classNameId,
long classPK)
Counts all the addresses where companyId = ? and classNameId = ? and classPK = ?. |
int |
countByC_C(long companyId,
long classNameId)
Counts all the addresses where companyId = ? and classNameId = ?. |
int |
countByCompanyId(long companyId)
Counts all the addresses where companyId = ?. |
int |
countByUserId(long userId)
Counts all the addresses where userId = ?. |
Address |
create(long addressId)
Creates a new address with the primary key. |
Address |
fetchByPrimaryKey(long addressId)
Finds the address with the primary key or returns null if it could not be found. |
List<Address> |
findAll()
Finds all the addresses. |
List<Address> |
findAll(int start,
int end)
Finds a range of all the addresses. |
List<Address> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the addresses. |
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 = ?. |
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 = ?. |
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 = ?. |
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 = ?. |
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 = ?. |
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 = ?. |
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 = ?. |
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 = ?. |
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 = ?. |
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 = ?. |
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 = ?. |
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 = ?. |
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 = ?. |
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 = ?. |
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 = ?. |
List<Address> |
findByC_C_C(long companyId,
long classNameId,
long classPK)
Finds all the addresses where companyId = ? and classNameId = ? and classPK = ?. |
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 = ?. |
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 = ?. |
Address |
findByC_C_First(long companyId,
long classNameId,
OrderByComparator orderByComparator)
Finds the first address in the ordered set where companyId = ? and classNameId = ?. |
Address |
findByC_C_Last(long companyId,
long classNameId,
OrderByComparator orderByComparator)
Finds the last address in the ordered set where companyId = ? and classNameId = ?. |
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 = ?. |
List<Address> |
findByC_C(long companyId,
long classNameId)
Finds all the addresses where companyId = ? and classNameId = ?. |
List<Address> |
findByC_C(long companyId,
long classNameId,
int start,
int end)
Finds a range of all the addresses where companyId = ? and classNameId = ?. |
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 = ?. |
Address |
findByCompanyId_First(long companyId,
OrderByComparator orderByComparator)
Finds the first address in the ordered set where companyId = ?. |
Address |
findByCompanyId_Last(long companyId,
OrderByComparator orderByComparator)
Finds the last address in the ordered set where companyId = ?. |
Address[] |
findByCompanyId_PrevAndNext(long addressId,
long companyId,
OrderByComparator orderByComparator)
Finds the addresses before and after the current address in the ordered set where companyId = ?. |
List<Address> |
findByCompanyId(long companyId)
Finds all the addresses where companyId = ?. |
List<Address> |
findByCompanyId(long companyId,
int start,
int end)
Finds a range of all the addresses where companyId = ?. |
List<Address> |
findByCompanyId(long companyId,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the addresses where companyId = ?. |
Address |
findByPrimaryKey(long addressId)
Finds the address with the primary key or throws a NoSuchAddressException if it could not be found. |
Address |
findByUserId_First(long userId,
OrderByComparator orderByComparator)
Finds the first address in the ordered set where userId = ?. |
Address |
findByUserId_Last(long userId,
OrderByComparator orderByComparator)
Finds the last address in the ordered set where userId = ?. |
Address[] |
findByUserId_PrevAndNext(long addressId,
long userId,
OrderByComparator orderByComparator)
Finds the addresses before and after the current address in the ordered set where userId = ?. |
List<Address> |
findByUserId(long userId)
Finds all the addresses where userId = ?. |
List<Address> |
findByUserId(long userId,
int start,
int end)
Finds a range of all the addresses where userId = ?. |
List<Address> |
findByUserId(long userId,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the addresses where userId = ?. |
Address |
remove(long addressId)
Removes the address with the primary key from the database. |
void |
removeAll()
Removes all the addresses from the database. |
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. |
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. |
void |
removeByC_C_C(long companyId,
long classNameId,
long classPK)
Removes all the addresses where companyId = ? and classNameId = ? and classPK = ? from the database. |
void |
removeByC_C(long companyId,
long classNameId)
Removes all the addresses where companyId = ? and classNameId = ? from the database. |
void |
removeByCompanyId(long companyId)
Removes all the addresses where companyId = ? from the database. |
void |
removeByUserId(long userId)
Removes all the addresses where userId = ? from the database. |
Address |
updateImpl(Address address,
boolean merge)
|
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence |
---|
clearCache, clearCache, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, registerListener, remove, remove, setDataSource, unregisterListener, update, update |
Method Detail |
---|
void cacheResult(Address address)
address
- the address to cachevoid cacheResult(List<Address> addresses)
addresses
- the addresses to cacheAddress create(long addressId)
addressId
- the primary key for the new address
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 occurredAddress updateImpl(Address address, boolean merge) throws SystemException
SystemException
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 occurredAddress 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 occurredList<Address> findByCompanyId(long companyId) throws SystemException
companyId
- the company id to search with
SystemException
- if a system exception occurredList<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 occurredList<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 occurredAddress 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 occurredAddress 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 occurredAddress[] 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 occurredList<Address> findByUserId(long userId) throws SystemException
userId
- the user id to search with
SystemException
- if a system exception occurredList<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 occurredList<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 occurredAddress 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 occurredAddress 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 occurredAddress[] 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 occurredList<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 occurredList<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 occurredList<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 occurredAddress 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 occurredAddress 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 occurredAddress[] 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 occurredList<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 occurredList<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 occurredList<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 occurredAddress 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 occurredAddress 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 occurredAddress[] 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 occurredList<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 occurredList<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 occurredList<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 occurredAddress 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 occurredAddress 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 occurredAddress[] 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 occurredList<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 occurredList<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 occurredList<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 occurredAddress 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 occurredAddress 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 occurredAddress[] 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 occurredList<Address> findAll() throws SystemException
SystemException
- if a system exception occurredList<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 occurredList<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 occurredvoid removeByCompanyId(long companyId) throws SystemException
companyId
- the company id to search with
SystemException
- if a system exception occurredvoid removeByUserId(long userId) throws SystemException
userId
- the user id to search with
SystemException
- if a system exception occurredvoid 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 occurredvoid 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 occurredvoid 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 occurredvoid 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 occurredvoid removeAll() throws SystemException
SystemException
- if a system exception occurredint countByCompanyId(long companyId) throws SystemException
companyId
- the company id to search with
SystemException
- if a system exception occurredint countByUserId(long userId) throws SystemException
userId
- the user id to search with
SystemException
- if a system exception occurredint 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 occurredint 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 occurredint 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 occurredint 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 occurredint countAll() throws SystemException
SystemException
- if a system exception occurred
|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |