|
Liferay 6.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.service.persistence.ContactUtil
public class ContactUtil
The persistence utility for the contact service.
Never modify this class directly. Modify service.xml and rerun ServiceBuilder to regnerate this class.
ContactPersistence,
ContactPersistenceImpl| Constructor Summary | |
|---|---|
ContactUtil()
|
|
| Method Summary | |
|---|---|
static void |
cacheResult(Contact contact)
Caches the contact in the entity cache if it is enabled. |
static void |
cacheResult(List<Contact> contacts)
Caches the contacts in the entity cache if it is enabled. |
static void |
clearCache()
|
static void |
clearCache(Contact contact)
|
static int |
countAll()
Counts all the contacts. |
static int |
countByCompanyId(long companyId)
Counts all the contacts where companyId = ?. |
long |
countWithDynamicQuery(DynamicQuery dynamicQuery)
|
static Contact |
create(long contactId)
Creates a new contact with the primary key. |
static Contact |
fetchByPrimaryKey(long contactId)
Finds the contact with the primary key or returns null if it could not be found. |
static List<Contact> |
findAll()
Finds all the contacts. |
static List<Contact> |
findAll(int start,
int end)
Finds a range of all the contacts. |
static List<Contact> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the contacts. |
static Contact |
findByCompanyId_First(long companyId,
OrderByComparator orderByComparator)
Finds the first contact in the ordered set where companyId = ?. |
static Contact |
findByCompanyId_Last(long companyId,
OrderByComparator orderByComparator)
Finds the last contact in the ordered set where companyId = ?. |
static Contact[] |
findByCompanyId_PrevAndNext(long contactId,
long companyId,
OrderByComparator orderByComparator)
Finds the contacts before and after the current contact in the ordered set where companyId = ?. |
static List<Contact> |
findByCompanyId(long companyId)
Finds all the contacts where companyId = ?. |
static List<Contact> |
findByCompanyId(long companyId,
int start,
int end)
Finds a range of all the contacts where companyId = ?. |
static List<Contact> |
findByCompanyId(long companyId,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the contacts where companyId = ?. |
static Contact |
findByPrimaryKey(long contactId)
Finds the contact with the primary key or throws a NoSuchContactException if it could not be found. |
static List<Contact> |
findWithDynamicQuery(DynamicQuery dynamicQuery)
|
static List<Contact> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
|
static List<Contact> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
|
static ContactPersistence |
getPersistence()
|
static Contact |
remove(Contact contact)
|
static Contact |
remove(long contactId)
Removes the contact with the primary key from the database. |
static void |
removeAll()
Removes all the contacts from the database. |
static void |
removeByCompanyId(long companyId)
Removes all the contacts where companyId = ? from the database. |
void |
setPersistence(ContactPersistence persistence)
|
static Contact |
update(Contact contact,
boolean merge)
|
static Contact |
update(Contact contact,
boolean merge,
ServiceContext serviceContext)
|
static Contact |
updateImpl(Contact contact,
boolean merge)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ContactUtil()
| Method Detail |
|---|
public static void clearCache()
BasePersistence.clearCache()public static void clearCache(Contact contact)
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)
public long countWithDynamicQuery(DynamicQuery dynamicQuery)
throws SystemException
SystemExceptionBasePersistence.countWithDynamicQuery(DynamicQuery)
public static List<Contact> findWithDynamicQuery(DynamicQuery dynamicQuery)
throws SystemException
SystemExceptionBasePersistence.findWithDynamicQuery(DynamicQuery)
public static List<Contact> findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
throws SystemException
SystemExceptionBasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static List<Contact> findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
SystemExceptionBasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static Contact remove(Contact contact)
throws SystemException
SystemExceptionBasePersistence.remove(com.liferay.portal.model.BaseModel)
public static Contact update(Contact contact,
boolean merge)
throws SystemException
SystemExceptionBasePersistence.update(com.liferay.portal.model.BaseModel, boolean)
public static Contact update(Contact contact,
boolean merge,
ServiceContext serviceContext)
throws SystemException
SystemExceptionBasePersistence.update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)public static void cacheResult(Contact contact)
contact - the contact to cachepublic static void cacheResult(List<Contact> contacts)
contacts - the contacts to cachepublic static Contact create(long contactId)
contactId - the primary key for the new contact
public static Contact remove(long contactId)
throws NoSuchContactException,
SystemException
contactId - the primary key of the contact to remove
NoSuchContactException - if a contact with the primary key could not be found
SystemException - if a system exception occurred
public static Contact updateImpl(Contact contact,
boolean merge)
throws SystemException
SystemException
public static Contact findByPrimaryKey(long contactId)
throws NoSuchContactException,
SystemException
NoSuchContactException if it could not be found.
contactId - the primary key of the contact to find
NoSuchContactException - if a contact with the primary key could not be found
SystemException - if a system exception occurred
public static Contact fetchByPrimaryKey(long contactId)
throws SystemException
null if it could not be found.
contactId - the primary key of the contact to find
null if a contact with the primary key could not be found
SystemException - if a system exception occurred
public static List<Contact> findByCompanyId(long companyId)
throws SystemException
companyId - the company id to search with
SystemException - if a system exception occurred
public static 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.
companyId - the company id to search withstart - the lower bound of the range of contacts to returnend - the upper bound of the range of contacts to return (not inclusive)
SystemException - if a system exception occurred
public static 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.
companyId - the company id to search withstart - the lower bound of the range of contacts to returnend - the upper bound of the range of contacts to return (not inclusive)orderByComparator - the comparator to order the results by
SystemException - if a system exception occurred
public static Contact findByCompanyId_First(long companyId,
OrderByComparator orderByComparator)
throws NoSuchContactException,
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
NoSuchContactException - if a matching contact could not be found
SystemException - if a system exception occurred
public static Contact findByCompanyId_Last(long companyId,
OrderByComparator orderByComparator)
throws NoSuchContactException,
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
NoSuchContactException - if a matching contact could not be found
SystemException - if a system exception occurred
public static Contact[] findByCompanyId_PrevAndNext(long contactId,
long companyId,
OrderByComparator orderByComparator)
throws NoSuchContactException,
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.
contactId - the primary key of the current contactcompanyId - the company id to search withorderByComparator - the comparator to order the set by
NoSuchContactException - if a contact with the primary key could not be found
SystemException - if a system exception occurred
public static List<Contact> findAll()
throws SystemException
SystemException - if a system exception occurred
public static 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.
start - the lower bound of the range of contacts to returnend - the upper bound of the range of contacts to return (not inclusive)
SystemException - if a system exception occurred
public static 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.
start - the lower bound of the range of contacts to returnend - the upper bound of the range of contacts to return (not inclusive)orderByComparator - the comparator to order the results by
SystemException - if a system exception occurred
public static void removeByCompanyId(long companyId)
throws SystemException
companyId - the company id to search with
SystemException - if a system exception occurred
public static void removeAll()
throws SystemException
SystemException - if a system exception occurred
public static int countByCompanyId(long companyId)
throws SystemException
companyId - the company id to search with
SystemException - if a system exception occurred
public static int countAll()
throws SystemException
SystemException - if a system exception occurredpublic static ContactPersistence getPersistence()
public void setPersistence(ContactPersistence persistence)
|
Liferay 6.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||