com.liferay.portal.service.persistence
Interface ContactPersistence


public interface ContactPersistence

View Source

Author:
Brian Wing Shun Chan

Method Summary
 int countAll()
           
 int countByCompanyId(long companyId)
           
 Contact create(long contactId)
           
 Contact fetchByPrimaryKey(long contactId)
           
 java.util.List findAll()
           
 java.util.List findAll(int begin, int end)
           
 java.util.List findAll(int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 Contact findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 Contact findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 Contact[] findByCompanyId_PrevAndNext(long contactId, long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List findByCompanyId(long companyId)
           
 java.util.List findByCompanyId(long companyId, int begin, int end)
           
 java.util.List findByCompanyId(long companyId, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 Contact findByPrimaryKey(long contactId)
           
 java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
           
 java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer, int begin, int end)
           
 Contact remove(Contact contact)
           
 Contact remove(long contactId)
           
 void removeAll()
           
 void removeByCompanyId(long companyId)
           
 Contact update(Contact contact)
           
 Contact update(Contact contact, boolean merge)
           
 Contact updateImpl(Contact contact, boolean merge)
           
 

Method Detail

create

public Contact create(long contactId)

remove

public Contact remove(long contactId)
               throws com.liferay.portal.SystemException,
                      NoSuchContactException
Throws:
com.liferay.portal.SystemException
NoSuchContactException

remove

public Contact remove(Contact contact)
               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

public Contact update(Contact contact)
               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

public Contact update(Contact contact,
                      boolean merge)
               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateImpl

public Contact updateImpl(Contact contact,
                          boolean merge)
                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

public Contact findByPrimaryKey(long contactId)
                         throws com.liferay.portal.SystemException,
                                NoSuchContactException
Throws:
com.liferay.portal.SystemException
NoSuchContactException

fetchByPrimaryKey

public Contact fetchByPrimaryKey(long contactId)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByCompanyId

public java.util.List findByCompanyId(long companyId)
                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByCompanyId

public java.util.List findByCompanyId(long companyId,
                                      int begin,
                                      int end)
                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByCompanyId

public java.util.List findByCompanyId(long companyId,
                                      int begin,
                                      int end,
                                      com.liferay.portal.kernel.util.OrderByComparator obc)
                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByCompanyId_First

public Contact findByCompanyId_First(long companyId,
                                     com.liferay.portal.kernel.util.OrderByComparator obc)
                              throws com.liferay.portal.SystemException,
                                     NoSuchContactException
Throws:
com.liferay.portal.SystemException
NoSuchContactException

findByCompanyId_Last

public Contact findByCompanyId_Last(long companyId,
                                    com.liferay.portal.kernel.util.OrderByComparator obc)
                             throws com.liferay.portal.SystemException,
                                    NoSuchContactException
Throws:
com.liferay.portal.SystemException
NoSuchContactException

findByCompanyId_PrevAndNext

public Contact[] findByCompanyId_PrevAndNext(long contactId,
                                             long companyId,
                                             com.liferay.portal.kernel.util.OrderByComparator obc)
                                      throws com.liferay.portal.SystemException,
                                             NoSuchContactException
Throws:
com.liferay.portal.SystemException
NoSuchContactException

findWithDynamicQuery

public java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

public java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
                                           int begin,
                                           int end)
                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public java.util.List findAll()
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public java.util.List findAll(int begin,
                              int end)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public java.util.List findAll(int begin,
                              int end,
                              com.liferay.portal.kernel.util.OrderByComparator obc)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByCompanyId

public void removeByCompanyId(long companyId)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeAll

public void removeAll()
               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByCompanyId

public int countByCompanyId(long companyId)
                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countAll

public int countAll()
             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException