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
- Generated:
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,
boolean merge)
|
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()
clearCache
public static void clearCache()
- See Also:
BasePersistence.clearCache()
findWithDynamicQuery
public static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
- See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery)
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.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
- See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
remove
public static Contact remove(Contact contact)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
- See Also:
BasePersistence.remove(com.liferay.portal.model.BaseModel)
update
public static Contact update(Contact contact,
boolean merge)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
- See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean)
cacheResult
public static void cacheResult(Contact contact)
cacheResult
public static void cacheResult(java.util.List<Contact> contacts)
create
public static Contact create(long contactId)
remove
public static Contact remove(long contactId)
throws NoSuchContactException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
NoSuchContactException
com.liferay.portal.kernel.exception.SystemException
updateImpl
public static Contact updateImpl(Contact contact,
boolean merge)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
findByPrimaryKey
public static Contact findByPrimaryKey(long contactId)
throws NoSuchContactException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
NoSuchContactException
com.liferay.portal.kernel.exception.SystemException
fetchByPrimaryKey
public static Contact fetchByPrimaryKey(long contactId)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
findByCompanyId
public static java.util.List<Contact> findByCompanyId(long companyId)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
findByCompanyId
public static java.util.List<Contact> findByCompanyId(long companyId,
int start,
int end)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.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.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
findByCompanyId_First
public static Contact findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchContactException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
NoSuchContactException
com.liferay.portal.kernel.exception.SystemException
findByCompanyId_Last
public static Contact findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchContactException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
NoSuchContactException
com.liferay.portal.kernel.exception.SystemException
findByCompanyId_PrevAndNext
public static Contact[] findByCompanyId_PrevAndNext(long contactId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchContactException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
NoSuchContactException
com.liferay.portal.kernel.exception.SystemException
findAll
public static java.util.List<Contact> findAll()
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
findAll
public static java.util.List<Contact> findAll(int start,
int end)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
findAll
public static java.util.List<Contact> findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
removeByCompanyId
public static void removeByCompanyId(long companyId)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
removeAll
public static void removeAll()
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
countByCompanyId
public static int countByCompanyId(long companyId)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
countAll
public static int countAll()
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
getPersistence
public static ContactPersistence getPersistence()
setPersistence
public void setPersistence(ContactPersistence persistence)