com.liferay.portal.service.persistence
Interface CompanyPersistence

All Superinterfaces:
BasePersistence

public interface CompanyPersistence
extends BasePersistence

View Source

Author:
Brian Wing Shun Chan

Method Summary
 void cacheResult(Company company)
           
 void cacheResult(java.util.List<Company> companies)
           
 void clearCache()
           
 int countAll()
           
 int countByLogoId(long logoId)
           
 int countByMx(java.lang.String mx)
           
 int countBySystem(boolean system)
           
 int countByVirtualHost(java.lang.String virtualHost)
           
 int countByWebId(java.lang.String webId)
           
 Company create(long companyId)
           
 Company fetchByLogoId(long logoId)
           
 Company fetchByLogoId(long logoId, boolean retrieveFromCache)
           
 Company fetchByMx(java.lang.String mx)
           
 Company fetchByMx(java.lang.String mx, boolean retrieveFromCache)
           
 Company fetchByPrimaryKey(long companyId)
           
 Company fetchByVirtualHost(java.lang.String virtualHost)
           
 Company fetchByVirtualHost(java.lang.String virtualHost, boolean retrieveFromCache)
           
 Company fetchByWebId(java.lang.String webId)
           
 Company fetchByWebId(java.lang.String webId, boolean retrieveFromCache)
           
 java.util.List<Company> findAll()
           
 java.util.List<Company> findAll(int start, int end)
           
 java.util.List<Company> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 Company findByLogoId(long logoId)
           
 Company findByMx(java.lang.String mx)
           
 Company findByPrimaryKey(long companyId)
           
 Company findBySystem_First(boolean system, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 Company findBySystem_Last(boolean system, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 Company[] findBySystem_PrevAndNext(long companyId, boolean system, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<Company> findBySystem(boolean system)
           
 java.util.List<Company> findBySystem(boolean system, int start, int end)
           
 java.util.List<Company> findBySystem(boolean system, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 Company findByVirtualHost(java.lang.String virtualHost)
           
 Company findByWebId(java.lang.String webId)
           
 java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
 java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
           
 Company remove(Company company)
           
 Company remove(long companyId)
           
 void removeAll()
           
 void removeByLogoId(long logoId)
           
 void removeByMx(java.lang.String mx)
           
 void removeBySystem(boolean system)
           
 void removeByVirtualHost(java.lang.String virtualHost)
           
 void removeByWebId(java.lang.String webId)
           
 Company update(Company company)
          Deprecated. Use update(Company company, boolean merge).
 Company update(Company company, boolean merge)
          Add, update, or merge, the entity.
 Company updateImpl(Company company, boolean merge)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
getListeners, registerListener, unregisterListener
 

Method Detail

cacheResult

void cacheResult(Company company)

cacheResult

void cacheResult(java.util.List<Company> companies)

clearCache

void clearCache()
Specified by:
clearCache in interface BasePersistence

create

Company create(long companyId)

remove

Company remove(long companyId)
               throws NoSuchCompanyException,
                      com.liferay.portal.SystemException
Throws:
NoSuchCompanyException
com.liferay.portal.SystemException

remove

Company remove(Company company)
               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

Company update(Company company)
               throws com.liferay.portal.SystemException
Deprecated. Use update(Company company, boolean merge).

Throws:
com.liferay.portal.SystemException

update

Company update(Company company,
               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:
company - the entity to add, update, or merge
merge - 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 company is transient. See LEP-5473 for a detailed discussion of this method.
Returns:
true if the portlet can be displayed via Ajax
Throws:
com.liferay.portal.SystemException

updateImpl

Company updateImpl(Company company,
                   boolean merge)
                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

Company findByPrimaryKey(long companyId)
                         throws NoSuchCompanyException,
                                com.liferay.portal.SystemException
Throws:
NoSuchCompanyException
com.liferay.portal.SystemException

fetchByPrimaryKey

Company fetchByPrimaryKey(long companyId)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByWebId

Company findByWebId(java.lang.String webId)
                    throws NoSuchCompanyException,
                           com.liferay.portal.SystemException
Throws:
NoSuchCompanyException
com.liferay.portal.SystemException

fetchByWebId

Company fetchByWebId(java.lang.String webId)
                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

fetchByWebId

Company fetchByWebId(java.lang.String webId,
                     boolean retrieveFromCache)
                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByVirtualHost

Company findByVirtualHost(java.lang.String virtualHost)
                          throws NoSuchCompanyException,
                                 com.liferay.portal.SystemException
Throws:
NoSuchCompanyException
com.liferay.portal.SystemException

fetchByVirtualHost

Company fetchByVirtualHost(java.lang.String virtualHost)
                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

fetchByVirtualHost

Company fetchByVirtualHost(java.lang.String virtualHost,
                           boolean retrieveFromCache)
                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByMx

Company findByMx(java.lang.String mx)
                 throws NoSuchCompanyException,
                        com.liferay.portal.SystemException
Throws:
NoSuchCompanyException
com.liferay.portal.SystemException

fetchByMx

Company fetchByMx(java.lang.String mx)
                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

fetchByMx

Company fetchByMx(java.lang.String mx,
                  boolean retrieveFromCache)
                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByLogoId

Company findByLogoId(long logoId)
                     throws NoSuchCompanyException,
                            com.liferay.portal.SystemException
Throws:
NoSuchCompanyException
com.liferay.portal.SystemException

fetchByLogoId

Company fetchByLogoId(long logoId)
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

fetchByLogoId

Company fetchByLogoId(long logoId,
                      boolean retrieveFromCache)
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findBySystem

java.util.List<Company> findBySystem(boolean system)
                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findBySystem

java.util.List<Company> findBySystem(boolean system,
                                     int start,
                                     int end)
                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findBySystem

java.util.List<Company> findBySystem(boolean system,
                                     int start,
                                     int end,
                                     com.liferay.portal.kernel.util.OrderByComparator obc)
                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findBySystem_First

Company findBySystem_First(boolean system,
                           com.liferay.portal.kernel.util.OrderByComparator obc)
                           throws NoSuchCompanyException,
                                  com.liferay.portal.SystemException
Throws:
NoSuchCompanyException
com.liferay.portal.SystemException

findBySystem_Last

Company findBySystem_Last(boolean system,
                          com.liferay.portal.kernel.util.OrderByComparator obc)
                          throws NoSuchCompanyException,
                                 com.liferay.portal.SystemException
Throws:
NoSuchCompanyException
com.liferay.portal.SystemException

findBySystem_PrevAndNext

Company[] findBySystem_PrevAndNext(long companyId,
                                   boolean system,
                                   com.liferay.portal.kernel.util.OrderByComparator obc)
                                   throws NoSuchCompanyException,
                                          com.liferay.portal.SystemException
Throws:
NoSuchCompanyException
com.liferay.portal.SystemException

findWithDynamicQuery

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

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

java.util.List<Company> findAll()
                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

java.util.List<Company> findAll(int start,
                                int end)
                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

java.util.List<Company> findAll(int start,
                                int end,
                                com.liferay.portal.kernel.util.OrderByComparator obc)
                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByWebId

void removeByWebId(java.lang.String webId)
                   throws NoSuchCompanyException,
                          com.liferay.portal.SystemException
Throws:
NoSuchCompanyException
com.liferay.portal.SystemException

removeByVirtualHost

void removeByVirtualHost(java.lang.String virtualHost)
                         throws NoSuchCompanyException,
                                com.liferay.portal.SystemException
Throws:
NoSuchCompanyException
com.liferay.portal.SystemException

removeByMx

void removeByMx(java.lang.String mx)
                throws NoSuchCompanyException,
                       com.liferay.portal.SystemException
Throws:
NoSuchCompanyException
com.liferay.portal.SystemException

removeByLogoId

void removeByLogoId(long logoId)
                    throws NoSuchCompanyException,
                           com.liferay.portal.SystemException
Throws:
NoSuchCompanyException
com.liferay.portal.SystemException

removeBySystem

void removeBySystem(boolean system)
                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeAll

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

countByWebId

int countByWebId(java.lang.String webId)
                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByVirtualHost

int countByVirtualHost(java.lang.String virtualHost)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByMx

int countByMx(java.lang.String mx)
              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByLogoId

int countByLogoId(long logoId)
                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countBySystem

int countBySystem(boolean system)
                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countAll

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