com.liferay.portal.service.persistence
Class CompanyUtil

java.lang.Object
  extended bycom.liferay.portal.service.persistence.CompanyUtil

public class CompanyUtil
extends java.lang.Object

View Source

Author:
Brian Wing Shun Chan

Constructor Summary
CompanyUtil()
           
 
Method Summary
static int countAll()
           
static int countByMx(java.lang.String mx)
           
static int countByVirtualHost(java.lang.String virtualHost)
           
static int countByWebId(java.lang.String webId)
           
static com.liferay.portal.model.Company create(long companyId)
           
static com.liferay.portal.model.Company fetchByMx(java.lang.String mx)
           
static com.liferay.portal.model.Company fetchByPrimaryKey(long companyId)
           
static com.liferay.portal.model.Company fetchByVirtualHost(java.lang.String virtualHost)
           
static com.liferay.portal.model.Company fetchByWebId(java.lang.String webId)
           
static java.util.List findAll()
           
static java.util.List findAll(int begin, int end)
           
static java.util.List findAll(int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static com.liferay.portal.model.Company findByMx(java.lang.String mx)
           
static com.liferay.portal.model.Company findByPrimaryKey(long companyId)
           
static com.liferay.portal.model.Company findByVirtualHost(java.lang.String virtualHost)
           
static com.liferay.portal.model.Company findByWebId(java.lang.String webId)
           
static java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
           
static java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer, int begin, int end)
           
static CompanyPersistence getPersistence()
           
static com.liferay.portal.model.Company remove(com.liferay.portal.model.Company company)
           
static com.liferay.portal.model.Company remove(long companyId)
           
static void removeAll()
           
static void removeByMx(java.lang.String mx)
           
static void removeByVirtualHost(java.lang.String virtualHost)
           
static void removeByWebId(java.lang.String webId)
           
 void setPersistence(CompanyPersistence persistence)
           
static com.liferay.portal.model.Company update(com.liferay.portal.model.Company company)
           
static com.liferay.portal.model.Company update(com.liferay.portal.model.Company company, boolean merge)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompanyUtil

public CompanyUtil()
Method Detail

create

public static com.liferay.portal.model.Company create(long companyId)

remove

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

remove

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

update

public static com.liferay.portal.model.Company update(com.liferay.portal.model.Company company)
                                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

public static com.liferay.portal.model.Company update(com.liferay.portal.model.Company company,
                                                      boolean merge)
                                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

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

fetchByPrimaryKey

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

findByWebId

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

fetchByWebId

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

findByVirtualHost

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

fetchByVirtualHost

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

findByMx

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

fetchByMx

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

findWithDynamicQuery

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

findWithDynamicQuery

public static 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 static java.util.List findAll()
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

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

findAll

public static 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

removeByWebId

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

removeByVirtualHost

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

removeByMx

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

removeAll

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

countByWebId

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

countByVirtualHost

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

countByMx

public static int countByMx(java.lang.String mx)
                     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 CompanyPersistence getPersistence()

setPersistence

public void setPersistence(CompanyPersistence persistence)