com.liferay.portal.service.persistence
Interface CompanyPersistence


public interface CompanyPersistence

View Source

Author:
Brian Wing Shun Chan

Method Summary
 int countAll()
           
 int countByLogoId(long logoId)
           
 int countByMx(java.lang.String mx)
           
 int countByVirtualHost(java.lang.String virtualHost)
           
 int countByWebId(java.lang.String webId)
           
 Company create(long companyId)
           
 Company fetchByLogoId(long logoId)
           
 Company fetchByMx(java.lang.String mx)
           
 Company fetchByPrimaryKey(long companyId)
           
 Company fetchByVirtualHost(java.lang.String virtualHost)
           
 Company fetchByWebId(java.lang.String webId)
           
 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 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)
           
 void registerListener(ModelListener listener)
           
 Company remove(Company company)
           
 Company remove(long companyId)
           
 void removeAll()
           
 void removeByLogoId(long logoId)
           
 void removeByMx(java.lang.String mx)
           
 void removeByVirtualHost(java.lang.String virtualHost)
           
 void removeByWebId(java.lang.String webId)
           
 void unregisterListener(ModelListener listener)
           
 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)
           
 

Method Detail

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

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

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

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

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

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

countAll

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

registerListener

void registerListener(ModelListener listener)

unregisterListener

void unregisterListener(ModelListener listener)