com.liferay.portal.service.persistence
Class ContactUtil

java.lang.Object
  extended by 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:

Constructor Summary
ContactUtil()
           
 
Method Summary
static void cacheResult(Contact contact)
           
static void cacheResult(java.util.List<Contact> contacts)
           
static void clearCache()
           
static void clearCache(Contact contact)
           
static int countAll()
           
static int countByCompanyId(long companyId)
           
 int countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
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 orderByComparator)
           
static Contact findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
static Contact findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
static Contact[] findByCompanyId_PrevAndNext(long contactId, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
           
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 orderByComparator)
           
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 com.liferay.portal.service.persistence.BasePersistence.#update(com.liferay.portal.model.BaseModel, boolean).
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
 

Constructor Detail

ContactUtil

public ContactUtil()
Method Detail

clearCache

public static void clearCache()
See Also:
BasePersistence.clearCache()

clearCache

public static void clearCache(Contact contact)
See Also:
com.liferay.portal.service.persistence.BasePersistence#clearCache(Contact)

countWithDynamicQuery

public int countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException
See Also:
BasePersistence.countWithDynamicQuery(DynamicQuery)

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
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.SystemException
Throws:
com.liferay.portal.SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)

remove

public static Contact remove(Contact contact)
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException
See Also:
BasePersistence.remove(com.liferay.portal.model.BaseModel)

update

public static Contact update(Contact contact,
                             boolean merge)
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.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.SystemException
Throws:
NoSuchContactException
com.liferay.portal.SystemException

update

public static Contact update(Contact contact)
                      throws com.liferay.portal.SystemException
Deprecated. Use com.liferay.portal.service.persistence.BasePersistence.#update(com.liferay.portal.model.BaseModel, boolean).

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 orderByComparator)
                                               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 orderByComparator)
                                     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 orderByComparator)
                                    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 orderByComparator)
                                             throws NoSuchContactException,
                                                    com.liferay.portal.SystemException
Throws:
NoSuchContactException
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 orderByComparator)
                                       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)