|
Liferay 6.2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@ProviderType public interface ContactPersistence
The persistence interface for the contact service.
Caching information and settings can be found in portal.properties
ContactPersistenceImpl,
ContactUtil| Method Summary | |
|---|---|
abstract void |
cacheResult(Contact contact)
Caches the contact in the entity cache if it is enabled. |
abstract void |
cacheResult(List<Contact> contacts)
Caches the contacts in the entity cache if it is enabled. |
abstract int |
countAll()
Returns the number of contacts. |
abstract int |
countByAccountId(long accountId)
Returns the number of contacts where accountId = ?. |
abstract int |
countByC_C(long classNameId,
long classPK)
Returns the number of contacts where classNameId = ? and classPK = ?. |
abstract int |
countByCompanyId(long companyId)
Returns the number of contacts where companyId = ?. |
abstract Contact |
create(long contactId)
Creates a new contact with the primary key. |
abstract Contact |
fetchByAccountId_First(long accountId,
OrderByComparator orderByComparator)
Returns the first contact in the ordered set where accountId = ?. |
abstract Contact |
fetchByAccountId_Last(long accountId,
OrderByComparator orderByComparator)
Returns the last contact in the ordered set where accountId = ?. |
abstract Contact |
fetchByC_C_First(long classNameId,
long classPK,
OrderByComparator orderByComparator)
Returns the first contact in the ordered set where classNameId = ? and classPK = ?. |
abstract Contact |
fetchByC_C_Last(long classNameId,
long classPK,
OrderByComparator orderByComparator)
Returns the last contact in the ordered set where classNameId = ? and classPK = ?. |
abstract Contact |
fetchByCompanyId_First(long companyId,
OrderByComparator orderByComparator)
Returns the first contact in the ordered set where companyId = ?. |
abstract Contact |
fetchByCompanyId_Last(long companyId,
OrderByComparator orderByComparator)
Returns the last contact in the ordered set where companyId = ?. |
abstract Contact |
fetchByPrimaryKey(long contactId)
Returns the contact with the primary key or returns null if it could not be found. |
abstract List<Contact> |
findAll()
Returns all the contacts. |
abstract List<Contact> |
findAll(int start,
int end)
Returns a range of all the contacts. |
abstract List<Contact> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the contacts. |
abstract Contact |
findByAccountId_First(long accountId,
OrderByComparator orderByComparator)
Returns the first contact in the ordered set where accountId = ?. |
abstract Contact |
findByAccountId_Last(long accountId,
OrderByComparator orderByComparator)
Returns the last contact in the ordered set where accountId = ?. |
abstract Contact[] |
findByAccountId_PrevAndNext(long contactId,
long accountId,
OrderByComparator orderByComparator)
Returns the contacts before and after the current contact in the ordered set where accountId = ?. |
abstract List<Contact> |
findByAccountId(long accountId)
Returns all the contacts where accountId = ?. |
abstract List<Contact> |
findByAccountId(long accountId,
int start,
int end)
Returns a range of all the contacts where accountId = ?. |
abstract List<Contact> |
findByAccountId(long accountId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the contacts where accountId = ?. |
abstract Contact |
findByC_C_First(long classNameId,
long classPK,
OrderByComparator orderByComparator)
Returns the first contact in the ordered set where classNameId = ? and classPK = ?. |
abstract Contact |
findByC_C_Last(long classNameId,
long classPK,
OrderByComparator orderByComparator)
Returns the last contact in the ordered set where classNameId = ? and classPK = ?. |
abstract Contact[] |
findByC_C_PrevAndNext(long contactId,
long classNameId,
long classPK,
OrderByComparator orderByComparator)
Returns the contacts before and after the current contact in the ordered set where classNameId = ? and classPK = ?. |
abstract List<Contact> |
findByC_C(long classNameId,
long classPK)
Returns all the contacts where classNameId = ? and classPK = ?. |
abstract List<Contact> |
findByC_C(long classNameId,
long classPK,
int start,
int end)
Returns a range of all the contacts where classNameId = ? and classPK = ?. |
abstract List<Contact> |
findByC_C(long classNameId,
long classPK,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the contacts where classNameId = ? and classPK = ?. |
abstract Contact |
findByCompanyId_First(long companyId,
OrderByComparator orderByComparator)
Returns the first contact in the ordered set where companyId = ?. |
abstract Contact |
findByCompanyId_Last(long companyId,
OrderByComparator orderByComparator)
Returns the last contact in the ordered set where companyId = ?. |
abstract Contact[] |
findByCompanyId_PrevAndNext(long contactId,
long companyId,
OrderByComparator orderByComparator)
Returns the contacts before and after the current contact in the ordered set where companyId = ?. |
abstract List<Contact> |
findByCompanyId(long companyId)
Returns all the contacts where companyId = ?. |
abstract List<Contact> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the contacts where companyId = ?. |
abstract List<Contact> |
findByCompanyId(long companyId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the contacts where companyId = ?. |
abstract Contact |
findByPrimaryKey(long contactId)
Returns the contact with the primary key or throws a NoSuchContactException if it could not be found. |
abstract Contact |
remove(long contactId)
Removes the contact with the primary key from the database. |
abstract void |
removeAll()
Removes all the contacts from the database. |
abstract void |
removeByAccountId(long accountId)
Removes all the contacts where accountId = ? from the database. |
abstract void |
removeByC_C(long classNameId,
long classPK)
Removes all the contacts where classNameId = ? and classPK = ? from the database. |
abstract void |
removeByCompanyId(long companyId)
Removes all the contacts where companyId = ? from the database. |
abstract Contact |
updateImpl(Contact contact)
|
| Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence |
|---|
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update, update, update |
| Method Detail |
|---|
List<Contact> findByCompanyId(long companyId)
throws SystemException
companyId - the company ID
SystemException - if a system exception occurred
List<Contact> 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from com.liferay.portal.model.impl.ContactModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
companyId - the company IDstart - the lower bound of the range of contactsend - the upper bound of the range of contacts (not inclusive)
SystemException - if a system exception occurred
List<Contact> 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from com.liferay.portal.model.impl.ContactModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
companyId - the company IDstart - the lower bound of the range of contactsend - the upper bound of the range of contacts (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
SystemException - if a system exception occurred
Contact findByCompanyId_First(long companyId,
OrderByComparator orderByComparator)
throws NoSuchContactException,
SystemException
companyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchContactException - if a matching contact could not be found
SystemException - if a system exception occurred
Contact fetchByCompanyId_First(long companyId,
OrderByComparator orderByComparator)
throws SystemException
companyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching contact could not be found
SystemException - if a system exception occurred
Contact findByCompanyId_Last(long companyId,
OrderByComparator orderByComparator)
throws NoSuchContactException,
SystemException
companyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchContactException - if a matching contact could not be found
SystemException - if a system exception occurred
Contact fetchByCompanyId_Last(long companyId,
OrderByComparator orderByComparator)
throws SystemException
companyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching contact could not be found
SystemException - if a system exception occurred
Contact[] findByCompanyId_PrevAndNext(long contactId,
long companyId,
OrderByComparator orderByComparator)
throws NoSuchContactException,
SystemException
contactId - the primary key of the current contactcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchContactException - if a contact with the primary key could not be found
SystemException - if a system exception occurred
void removeByCompanyId(long companyId)
throws SystemException
companyId - the company ID
SystemException - if a system exception occurred
int countByCompanyId(long companyId)
throws SystemException
companyId - the company ID
SystemException - if a system exception occurred
List<Contact> findByAccountId(long accountId)
throws SystemException
accountId - the account ID
SystemException - if a system exception occurred
List<Contact> findByAccountId(long accountId,
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from com.liferay.portal.model.impl.ContactModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
accountId - the account IDstart - the lower bound of the range of contactsend - the upper bound of the range of contacts (not inclusive)
SystemException - if a system exception occurred
List<Contact> findByAccountId(long accountId,
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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from com.liferay.portal.model.impl.ContactModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
accountId - the account IDstart - the lower bound of the range of contactsend - the upper bound of the range of contacts (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
SystemException - if a system exception occurred
Contact findByAccountId_First(long accountId,
OrderByComparator orderByComparator)
throws NoSuchContactException,
SystemException
accountId - the account IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchContactException - if a matching contact could not be found
SystemException - if a system exception occurred
Contact fetchByAccountId_First(long accountId,
OrderByComparator orderByComparator)
throws SystemException
accountId - the account IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching contact could not be found
SystemException - if a system exception occurred
Contact findByAccountId_Last(long accountId,
OrderByComparator orderByComparator)
throws NoSuchContactException,
SystemException
accountId - the account IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchContactException - if a matching contact could not be found
SystemException - if a system exception occurred
Contact fetchByAccountId_Last(long accountId,
OrderByComparator orderByComparator)
throws SystemException
accountId - the account IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching contact could not be found
SystemException - if a system exception occurred
Contact[] findByAccountId_PrevAndNext(long contactId,
long accountId,
OrderByComparator orderByComparator)
throws NoSuchContactException,
SystemException
contactId - the primary key of the current contactaccountId - the account IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchContactException - if a contact with the primary key could not be found
SystemException - if a system exception occurred
void removeByAccountId(long accountId)
throws SystemException
accountId - the account ID
SystemException - if a system exception occurred
int countByAccountId(long accountId)
throws SystemException
accountId - the account ID
SystemException - if a system exception occurred
List<Contact> findByC_C(long classNameId,
long classPK)
throws SystemException
classNameId - the class name IDclassPK - the class p k
SystemException - if a system exception occurred
List<Contact> findByC_C(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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from com.liferay.portal.model.impl.ContactModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
classNameId - the class name IDclassPK - the class p kstart - the lower bound of the range of contactsend - the upper bound of the range of contacts (not inclusive)
SystemException - if a system exception occurred
List<Contact> findByC_C(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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from com.liferay.portal.model.impl.ContactModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
classNameId - the class name IDclassPK - the class p kstart - the lower bound of the range of contactsend - the upper bound of the range of contacts (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
SystemException - if a system exception occurred
Contact findByC_C_First(long classNameId,
long classPK,
OrderByComparator orderByComparator)
throws NoSuchContactException,
SystemException
classNameId - the class name IDclassPK - the class p korderByComparator - the comparator to order the set by (optionally null)
NoSuchContactException - if a matching contact could not be found
SystemException - if a system exception occurred
Contact fetchByC_C_First(long classNameId,
long classPK,
OrderByComparator orderByComparator)
throws SystemException
classNameId - the class name IDclassPK - the class p korderByComparator - the comparator to order the set by (optionally null)
null if a matching contact could not be found
SystemException - if a system exception occurred
Contact findByC_C_Last(long classNameId,
long classPK,
OrderByComparator orderByComparator)
throws NoSuchContactException,
SystemException
classNameId - the class name IDclassPK - the class p korderByComparator - the comparator to order the set by (optionally null)
NoSuchContactException - if a matching contact could not be found
SystemException - if a system exception occurred
Contact fetchByC_C_Last(long classNameId,
long classPK,
OrderByComparator orderByComparator)
throws SystemException
classNameId - the class name IDclassPK - the class p korderByComparator - the comparator to order the set by (optionally null)
null if a matching contact could not be found
SystemException - if a system exception occurred
Contact[] findByC_C_PrevAndNext(long contactId,
long classNameId,
long classPK,
OrderByComparator orderByComparator)
throws NoSuchContactException,
SystemException
contactId - the primary key of the current contactclassNameId - the class name IDclassPK - the class p korderByComparator - the comparator to order the set by (optionally null)
NoSuchContactException - if a contact with the primary key could not be found
SystemException - if a system exception occurred
void removeByC_C(long classNameId,
long classPK)
throws SystemException
classNameId - the class name IDclassPK - the class p k
SystemException - if a system exception occurred
int countByC_C(long classNameId,
long classPK)
throws SystemException
classNameId - the class name IDclassPK - the class p k
SystemException - if a system exception occurredvoid cacheResult(Contact contact)
contact - the contactvoid cacheResult(List<Contact> contacts)
contacts - the contactsContact create(long contactId)
contactId - the primary key for the new contact
Contact remove(long contactId)
throws NoSuchContactException,
SystemException
contactId - the primary key of the contact
NoSuchContactException - if a contact with the primary key could not be found
SystemException - if a system exception occurred
Contact updateImpl(Contact contact)
throws SystemException
SystemException
Contact findByPrimaryKey(long contactId)
throws NoSuchContactException,
SystemException
NoSuchContactException if it could not be found.
contactId - the primary key of the contact
NoSuchContactException - if a contact with the primary key could not be found
SystemException - if a system exception occurred
Contact fetchByPrimaryKey(long contactId)
throws SystemException
null if it could not be found.
contactId - the primary key of the contact
null if a contact with the primary key could not be found
SystemException - if a system exception occurred
List<Contact> findAll()
throws SystemException
SystemException - if a system exception occurred
List<Contact> 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from com.liferay.portal.model.impl.ContactModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start - the lower bound of the range of contactsend - the upper bound of the range of contacts (not inclusive)
SystemException - if a system exception occurred
List<Contact> 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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from com.liferay.portal.model.impl.ContactModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start - the lower bound of the range of contactsend - the upper bound of the range of contacts (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
SystemException - if a system exception occurred
void removeAll()
throws SystemException
SystemException - if a system exception occurred
int countAll()
throws SystemException
SystemException - if a system exception occurred
|
Liferay 6.2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||