com.liferay.portal.service.persistence
Class CompanyUtil
java.lang.Object
com.liferay.portal.service.persistence.CompanyUtil
public class CompanyUtil
- extends java.lang.Object
View Source
- Author:
- Brian Wing Shun Chan
Method Summary |
static int |
countAll()
|
static int |
countByLogoId(long logoId)
|
static int |
countByMx(java.lang.String mx)
|
static int |
countByVirtualHost(java.lang.String virtualHost)
|
static int |
countByWebId(java.lang.String webId)
|
static Company |
create(long companyId)
|
static Company |
fetchByLogoId(long logoId)
|
static Company |
fetchByMx(java.lang.String mx)
|
static Company |
fetchByPrimaryKey(long companyId)
|
static Company |
fetchByVirtualHost(java.lang.String virtualHost)
|
static Company |
fetchByWebId(java.lang.String webId)
|
static java.util.List<Company> |
findAll()
|
static java.util.List<Company> |
findAll(int start,
int end)
|
static java.util.List<Company> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static Company |
findByLogoId(long logoId)
|
static Company |
findByMx(java.lang.String mx)
|
static Company |
findByPrimaryKey(long companyId)
|
static Company |
findByVirtualHost(java.lang.String virtualHost)
|
static Company |
findByWebId(java.lang.String webId)
|
static java.util.List<java.lang.Object> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
|
static java.util.List<java.lang.Object> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
|
static CompanyPersistence |
getPersistence()
|
static Company |
remove(Company company)
|
static Company |
remove(long companyId)
|
static void |
removeAll()
|
static void |
removeByLogoId(long logoId)
|
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 Company |
update(Company company)
Deprecated. Use update(Company company, boolean merge) . |
static Company |
update(Company company,
boolean merge)
Add, update, or merge, the entity. |
static Company |
updateImpl(Company company,
boolean merge)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CompanyUtil
public CompanyUtil()
create
public static Company create(long companyId)
remove
public static Company remove(long companyId)
throws NoSuchCompanyException,
com.liferay.portal.SystemException
- Throws:
NoSuchCompanyException
com.liferay.portal.SystemException
remove
public static Company remove(Company company)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
update
public static Company update(Company company)
throws com.liferay.portal.SystemException
- Deprecated. Use
update(Company company, boolean merge)
.
- Throws:
com.liferay.portal.SystemException
update
public static 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 mergemerge
- 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
public static Company updateImpl(Company company,
boolean merge)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByPrimaryKey
public static Company findByPrimaryKey(long companyId)
throws NoSuchCompanyException,
com.liferay.portal.SystemException
- Throws:
NoSuchCompanyException
com.liferay.portal.SystemException
fetchByPrimaryKey
public static Company fetchByPrimaryKey(long companyId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByWebId
public static Company findByWebId(java.lang.String webId)
throws NoSuchCompanyException,
com.liferay.portal.SystemException
- Throws:
NoSuchCompanyException
com.liferay.portal.SystemException
fetchByWebId
public static Company fetchByWebId(java.lang.String webId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByVirtualHost
public static Company findByVirtualHost(java.lang.String virtualHost)
throws NoSuchCompanyException,
com.liferay.portal.SystemException
- Throws:
NoSuchCompanyException
com.liferay.portal.SystemException
fetchByVirtualHost
public static Company fetchByVirtualHost(java.lang.String virtualHost)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByMx
public static Company findByMx(java.lang.String mx)
throws NoSuchCompanyException,
com.liferay.portal.SystemException
- Throws:
NoSuchCompanyException
com.liferay.portal.SystemException
fetchByMx
public static Company fetchByMx(java.lang.String mx)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByLogoId
public static Company findByLogoId(long logoId)
throws NoSuchCompanyException,
com.liferay.portal.SystemException
- Throws:
NoSuchCompanyException
com.liferay.portal.SystemException
fetchByLogoId
public static Company fetchByLogoId(long logoId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findWithDynamicQuery
public static 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
public static 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
public static java.util.List<Company> findAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List<Company> findAll(int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static 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
public static void removeByWebId(java.lang.String webId)
throws NoSuchCompanyException,
com.liferay.portal.SystemException
- Throws:
NoSuchCompanyException
com.liferay.portal.SystemException
removeByVirtualHost
public static void removeByVirtualHost(java.lang.String virtualHost)
throws NoSuchCompanyException,
com.liferay.portal.SystemException
- Throws:
NoSuchCompanyException
com.liferay.portal.SystemException
removeByMx
public static void removeByMx(java.lang.String mx)
throws NoSuchCompanyException,
com.liferay.portal.SystemException
- Throws:
NoSuchCompanyException
com.liferay.portal.SystemException
removeByLogoId
public static void removeByLogoId(long logoId)
throws NoSuchCompanyException,
com.liferay.portal.SystemException
- Throws:
NoSuchCompanyException
com.liferay.portal.SystemException
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
countByLogoId
public static int countByLogoId(long logoId)
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)