Liferay 6.0.3

com.liferay.portal.service.persistence
Class ContactUtil

java.lang.Object
  extended by com.liferay.portal.service.persistence.ContactUtil

public class ContactUtil
extends Object

See Also:
ContactPersistence, ContactPersistenceImpl
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Constructor Summary
ContactUtil()
           
 
Method Summary
static void cacheResult(Contact contact)
           
static void cacheResult(List<Contact> contacts)
           
static void clearCache()
           
static void clearCache(Contact contact)
           
static int countAll()
           
static int countByCompanyId(long companyId)
           
 long countWithDynamicQuery(DynamicQuery dynamicQuery)
           
static Contact create(long contactId)
           
static Contact fetchByPrimaryKey(long contactId)
           
static List<Contact> findAll()
           
static List<Contact> findAll(int start, int end)
           
static List<Contact> findAll(int start, int end, OrderByComparator orderByComparator)
           
static Contact findByCompanyId_First(long companyId, OrderByComparator orderByComparator)
           
static Contact findByCompanyId_Last(long companyId, OrderByComparator orderByComparator)
           
static Contact[] findByCompanyId_PrevAndNext(long contactId, long companyId, OrderByComparator orderByComparator)
           
static List<Contact> findByCompanyId(long companyId)
           
static List<Contact> findByCompanyId(long companyId, int start, int end)
           
static List<Contact> findByCompanyId(long companyId, int start, int end, OrderByComparator orderByComparator)
           
static Contact findByPrimaryKey(long contactId)
           
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)
           
static void removeAll()
           
static void removeByCompanyId(long companyId)
           
 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

ContactUtil

public ContactUtil()
Method Detail

clearCache

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

clearCache

public static void clearCache(Contact contact)
See Also:
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)

countWithDynamicQuery

public long countWithDynamicQuery(DynamicQuery dynamicQuery)
                           throws SystemException
Throws:
SystemException
See Also:
BasePersistence.countWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<Contact> findWithDynamicQuery(DynamicQuery dynamicQuery)
                                          throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<Contact> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                 int start,
                                                 int end)
                                          throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)

findWithDynamicQuery

public static List<Contact> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                 int start,
                                                 int end,
                                                 OrderByComparator orderByComparator)
                                          throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)

remove

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

update

public static Contact update(Contact contact,
                             boolean merge)
                      throws SystemException
Throws:
SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean)

update

public static Contact update(Contact contact,
                             boolean merge,
                             ServiceContext serviceContext)
                      throws SystemException
Throws:
SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)

cacheResult

public static void cacheResult(Contact contact)

cacheResult

public static void cacheResult(List<Contact> contacts)

create

public static Contact create(long contactId)

remove

public static Contact remove(long contactId)
                      throws NoSuchContactException,
                             SystemException
Throws:
NoSuchContactException
SystemException

updateImpl

public static Contact updateImpl(Contact contact,
                                 boolean merge)
                          throws SystemException
Throws:
SystemException

findByPrimaryKey

public static Contact findByPrimaryKey(long contactId)
                                throws NoSuchContactException,
                                       SystemException
Throws:
NoSuchContactException
SystemException

fetchByPrimaryKey

public static Contact fetchByPrimaryKey(long contactId)
                                 throws SystemException
Throws:
SystemException

findByCompanyId

public static List<Contact> findByCompanyId(long companyId)
                                     throws SystemException
Throws:
SystemException

findByCompanyId

public static List<Contact> findByCompanyId(long companyId,
                                            int start,
                                            int end)
                                     throws SystemException
Throws:
SystemException

findByCompanyId

public static List<Contact> findByCompanyId(long companyId,
                                            int start,
                                            int end,
                                            OrderByComparator orderByComparator)
                                     throws SystemException
Throws:
SystemException

findByCompanyId_First

public static Contact findByCompanyId_First(long companyId,
                                            OrderByComparator orderByComparator)
                                     throws NoSuchContactException,
                                            SystemException
Throws:
NoSuchContactException
SystemException

findByCompanyId_Last

public static Contact findByCompanyId_Last(long companyId,
                                           OrderByComparator orderByComparator)
                                    throws NoSuchContactException,
                                           SystemException
Throws:
NoSuchContactException
SystemException

findByCompanyId_PrevAndNext

public static Contact[] findByCompanyId_PrevAndNext(long contactId,
                                                    long companyId,
                                                    OrderByComparator orderByComparator)
                                             throws NoSuchContactException,
                                                    SystemException
Throws:
NoSuchContactException
SystemException

findAll

public static List<Contact> findAll()
                             throws SystemException
Throws:
SystemException

findAll

public static List<Contact> findAll(int start,
                                    int end)
                             throws SystemException
Throws:
SystemException

findAll

public static List<Contact> findAll(int start,
                                    int end,
                                    OrderByComparator orderByComparator)
                             throws SystemException
Throws:
SystemException

removeByCompanyId

public static void removeByCompanyId(long companyId)
                              throws SystemException
Throws:
SystemException

removeAll

public static void removeAll()
                      throws SystemException
Throws:
SystemException

countByCompanyId

public static int countByCompanyId(long companyId)
                            throws SystemException
Throws:
SystemException

countAll

public static int countAll()
                    throws SystemException
Throws:
SystemException

getPersistence

public static ContactPersistence getPersistence()

setPersistence

public void setPersistence(ContactPersistence persistence)

Liferay 6.0.3