com.liferay.portal.service.persistence
Interface CompanyPersistence
- All Superinterfaces:
- BasePersistence
@Transactional(rollbackFor={com.liferay.portal.PortalException.class,com.liferay.portal.SystemException.class})
public interface CompanyPersistence
- extends BasePersistence
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)
|
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)
|
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)
|
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 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
Company updateImpl(Company company,
boolean merge)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByPrimaryKey
@Transactional(propagation=SUPPORTS,
readOnly=true)
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
@Transactional(propagation=SUPPORTS,
readOnly=true)
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
@Transactional(propagation=SUPPORTS,
readOnly=true)
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
@Transactional(propagation=SUPPORTS,
readOnly=true)
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
@Transactional(propagation=SUPPORTS,
readOnly=true)
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
@Transactional(propagation=SUPPORTS,
readOnly=true)
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
@Transactional(propagation=SUPPORTS,
readOnly=true)
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
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<Company> findAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<Company> findAll(int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
@Transactional(propagation=SUPPORTS,
readOnly=true)
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
@Transactional(propagation=SUPPORTS,
readOnly=true)
int countByWebId(java.lang.String webId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByVirtualHost
@Transactional(propagation=SUPPORTS,
readOnly=true)
int countByVirtualHost(java.lang.String virtualHost)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByMx
@Transactional(propagation=SUPPORTS,
readOnly=true)
int countByMx(java.lang.String mx)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByLogoId
@Transactional(propagation=SUPPORTS,
readOnly=true)
int countByLogoId(long logoId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countAll
@Transactional(propagation=SUPPORTS,
readOnly=true)
int countAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException