com.liferay.portal.service.persistence
Class ContactUtil
java.lang.Object
com.liferay.portal.service.persistence.ContactUtil
public class ContactUtil
- extends java.lang.Object
View Source
ServiceBuilder generated this class. Modifications in this class will be
overwritten the next time is generated.
- Author:
- Brian Wing Shun Chan
- See Also:
ContactPersistence
,
ContactPersistenceImpl
Method Summary |
static void |
cacheResult(Contact contact)
|
static void |
cacheResult(java.util.List<Contact> contacts)
|
static void |
clearCache()
|
static int |
countAll()
|
static int |
countByCompanyId(long companyId)
|
static Contact |
create(long contactId)
|
static Contact |
fetchByPrimaryKey(long contactId)
|
static java.util.List<Contact> |
findAll()
|
static java.util.List<Contact> |
findAll(int start,
int end)
|
static java.util.List<Contact> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static Contact |
findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static Contact |
findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static Contact[] |
findByCompanyId_PrevAndNext(long contactId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<Contact> |
findByCompanyId(long companyId)
|
static java.util.List<Contact> |
findByCompanyId(long companyId,
int start,
int end)
|
static java.util.List<Contact> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static Contact |
findByPrimaryKey(long contactId)
|
static java.util.List<java.lang.Object> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
|
static java.util.List<java.lang.Object> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
|
static ContactPersistence |
getPersistence()
|
static Contact |
remove(Contact contact)
|
static Contact |
remove(long contactId)
|
static void |
removeAll()
|
static void |
removeByCompanyId(long companyId)
|
void |
setPersistence(ContactPersistence persistence)
|
static Contact |
update(Contact contact)
Deprecated. Use update(Contact, boolean merge) . |
static Contact |
update(Contact contact,
boolean merge)
Add, update, or merge, the entity. |
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 |
ContactUtil
public ContactUtil()
cacheResult
public static void cacheResult(Contact contact)
cacheResult
public static void cacheResult(java.util.List<Contact> contacts)
clearCache
public static void clearCache()
create
public static Contact create(long contactId)
remove
public static Contact remove(long contactId)
throws NoSuchContactException,
com.liferay.portal.SystemException
- Throws:
NoSuchContactException
com.liferay.portal.SystemException
remove
public static Contact remove(Contact contact)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
update
public static Contact update(Contact contact)
throws com.liferay.portal.SystemException
- Deprecated. Use
update(Contact, boolean merge)
.
- Throws:
com.liferay.portal.SystemException
update
public static Contact update(Contact contact,
boolean merge)
throws com.liferay.portal.SystemException
- Add, update, or merge, the entity. This method also calls the model
listeners to trigger the proper events associated with adding, deleting,
or updating an entity.
- Parameters:
contact
- the entity to add, update, or mergemerge
- boolean value for whether to merge the entity. The default
value is false. Setting merge to true is more expensive and
should only be true when contact is transient. See
LEP-5473 for a detailed discussion of this method.
- Returns:
- the entity that was added, updated, or merged
- Throws:
com.liferay.portal.SystemException
updateImpl
public static Contact updateImpl(Contact contact,
boolean merge)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByPrimaryKey
public static Contact findByPrimaryKey(long contactId)
throws NoSuchContactException,
com.liferay.portal.SystemException
- Throws:
NoSuchContactException
com.liferay.portal.SystemException
fetchByPrimaryKey
public static Contact fetchByPrimaryKey(long contactId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByCompanyId
public static java.util.List<Contact> findByCompanyId(long companyId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByCompanyId
public static java.util.List<Contact> findByCompanyId(long companyId,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByCompanyId
public static java.util.List<Contact> findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByCompanyId_First
public static Contact findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchContactException,
com.liferay.portal.SystemException
- Throws:
NoSuchContactException
com.liferay.portal.SystemException
findByCompanyId_Last
public static Contact findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchContactException,
com.liferay.portal.SystemException
- Throws:
NoSuchContactException
com.liferay.portal.SystemException
findByCompanyId_PrevAndNext
public static Contact[] findByCompanyId_PrevAndNext(long contactId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchContactException,
com.liferay.portal.SystemException
- Throws:
NoSuchContactException
com.liferay.portal.SystemException
findWithDynamicQuery
public static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findWithDynamicQuery
public static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List<Contact> findAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List<Contact> findAll(int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List<Contact> findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByCompanyId
public static void removeByCompanyId(long companyId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeAll
public static void removeAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByCompanyId
public static int countByCompanyId(long companyId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countAll
public static int countAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getPersistence
public static ContactPersistence getPersistence()
setPersistence
public void setPersistence(ContactPersistence persistence)