@ProviderType public interface CompanyPersistence extends BasePersistence<Company>
Caching information and settings can be found in portal.properties
CompanyPersistenceImpl,
CompanyUtil| Modifier and Type | Method and Description |
|---|---|
void |
cacheResult(Company company)
Caches the company in the entity cache if it is enabled.
|
void |
cacheResult(java.util.List<Company> companies)
Caches the companies in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of companies.
|
int |
countByLogoId(long logoId)
Returns the number of companies where logoId = ?.
|
int |
countByMx(java.lang.String mx)
Returns the number of companies where mx = ?.
|
int |
countBySystem(boolean system)
Returns the number of companies where system = ?.
|
int |
countByWebId(java.lang.String webId)
Returns the number of companies where webId = ?.
|
Company |
create(long companyId)
Creates a new company with the primary key.
|
Company |
fetchByLogoId(long logoId)
Returns the company where logoId = ? or returns
null if it could not be found. |
Company |
fetchByLogoId(long logoId,
boolean retrieveFromCache)
Returns the company where logoId = ? or returns
null if it could not be found, optionally using the finder cache. |
Company |
fetchByMx(java.lang.String mx)
Returns the company where mx = ? or returns
null if it could not be found. |
Company |
fetchByMx(java.lang.String mx,
boolean retrieveFromCache)
Returns the company where mx = ? or returns
null if it could not be found, optionally using the finder cache. |
Company |
fetchByPrimaryKey(long companyId)
Returns the company with the primary key or returns
null if it could not be found. |
Company |
fetchBySystem_First(boolean system,
OrderByComparator orderByComparator)
Returns the first company in the ordered set where system = ?.
|
Company |
fetchBySystem_Last(boolean system,
OrderByComparator orderByComparator)
Returns the last company in the ordered set where system = ?.
|
Company |
fetchByWebId(java.lang.String webId)
Returns the company where webId = ? or returns
null if it could not be found. |
Company |
fetchByWebId(java.lang.String webId,
boolean retrieveFromCache)
Returns the company where webId = ? or returns
null if it could not be found, optionally using the finder cache. |
java.util.List<Company> |
findAll()
Returns all the companies.
|
java.util.List<Company> |
findAll(int start,
int end)
Returns a range of all the companies.
|
java.util.List<Company> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the companies.
|
Company |
findByLogoId(long logoId)
Returns the company where logoId = ? or throws a
NoSuchCompanyException if it could not be found. |
Company |
findByMx(java.lang.String mx)
Returns the company where mx = ? or throws a
NoSuchCompanyException if it could not be found. |
Company |
findByPrimaryKey(long companyId)
Returns the company with the primary key or throws a
NoSuchCompanyException if it could not be found. |
Company |
findBySystem_First(boolean system,
OrderByComparator orderByComparator)
Returns the first company in the ordered set where system = ?.
|
Company |
findBySystem_Last(boolean system,
OrderByComparator orderByComparator)
Returns the last company in the ordered set where system = ?.
|
Company[] |
findBySystem_PrevAndNext(long companyId,
boolean system,
OrderByComparator orderByComparator)
Returns the companies before and after the current company in the ordered set where system = ?.
|
java.util.List<Company> |
findBySystem(boolean system)
Returns all the companies where system = ?.
|
java.util.List<Company> |
findBySystem(boolean system,
int start,
int end)
Returns a range of all the companies where system = ?.
|
java.util.List<Company> |
findBySystem(boolean system,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the companies where system = ?.
|
Company |
findByWebId(java.lang.String webId)
Returns the company where webId = ? or throws a
NoSuchCompanyException if it could not be found. |
Company |
remove(long companyId)
Removes the company with the primary key from the database.
|
void |
removeAll()
Removes all the companies from the database.
|
Company |
removeByLogoId(long logoId)
Removes the company where logoId = ? from the database.
|
Company |
removeByMx(java.lang.String mx)
Removes the company where mx = ? from the database.
|
void |
removeBySystem(boolean system)
Removes all the companies where system = ? from the database.
|
Company |
removeByWebId(java.lang.String webId)
Removes the company where webId = ? from the database.
|
Company |
updateImpl(Company company) |
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update, update, updateCompany findByWebId(java.lang.String webId) throws NoSuchCompanyException, SystemException
NoSuchCompanyException if it could not be found.webId - the web IDNoSuchCompanyException - if a matching company could not be foundSystemException - if a system exception occurredCompany fetchByWebId(java.lang.String webId) throws SystemException
null if it could not be found. Uses the finder cache.webId - the web IDnull if a matching company could not be foundSystemException - if a system exception occurredCompany fetchByWebId(java.lang.String webId, boolean retrieveFromCache) throws SystemException
null if it could not be found, optionally using the finder cache.webId - the web IDretrieveFromCache - whether to use the finder cachenull if a matching company could not be foundSystemException - if a system exception occurredCompany removeByWebId(java.lang.String webId) throws NoSuchCompanyException, SystemException
webId - the web IDSystemException - if a system exception occurredNoSuchCompanyExceptionint countByWebId(java.lang.String webId)
throws SystemException
webId - the web IDSystemException - if a system exception occurredCompany findByMx(java.lang.String mx) throws NoSuchCompanyException, SystemException
NoSuchCompanyException if it could not be found.mx - the mxNoSuchCompanyException - if a matching company could not be foundSystemException - if a system exception occurredCompany fetchByMx(java.lang.String mx) throws SystemException
null if it could not be found. Uses the finder cache.mx - the mxnull if a matching company could not be foundSystemException - if a system exception occurredCompany fetchByMx(java.lang.String mx, boolean retrieveFromCache) throws SystemException
null if it could not be found, optionally using the finder cache.mx - the mxretrieveFromCache - whether to use the finder cachenull if a matching company could not be foundSystemException - if a system exception occurredCompany removeByMx(java.lang.String mx) throws NoSuchCompanyException, SystemException
mx - the mxSystemException - if a system exception occurredNoSuchCompanyExceptionint countByMx(java.lang.String mx)
throws SystemException
mx - the mxSystemException - if a system exception occurredCompany findByLogoId(long logoId) throws NoSuchCompanyException, SystemException
NoSuchCompanyException if it could not be found.logoId - the logo IDNoSuchCompanyException - if a matching company could not be foundSystemException - if a system exception occurredCompany fetchByLogoId(long logoId) throws SystemException
null if it could not be found. Uses the finder cache.logoId - the logo IDnull if a matching company could not be foundSystemException - if a system exception occurredCompany fetchByLogoId(long logoId, boolean retrieveFromCache) throws SystemException
null if it could not be found, optionally using the finder cache.logoId - the logo IDretrieveFromCache - whether to use the finder cachenull if a matching company could not be foundSystemException - if a system exception occurredCompany removeByLogoId(long logoId) throws NoSuchCompanyException, SystemException
logoId - the logo IDSystemException - if a system exception occurredNoSuchCompanyExceptionint countByLogoId(long logoId)
throws SystemException
logoId - the logo IDSystemException - if a system exception occurredjava.util.List<Company> findBySystem(boolean system) throws SystemException
system - the systemSystemException - if a system exception occurredjava.util.List<Company> findBySystem(boolean system, int start, int end) throws SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from CompanyModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
system - the systemstart - the lower bound of the range of companiesend - the upper bound of the range of companies (not inclusive)SystemException - if a system exception occurredjava.util.List<Company> findBySystem(boolean system, int start, int end, OrderByComparator orderByComparator) throws SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from CompanyModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
system - the systemstart - the lower bound of the range of companiesend - the upper bound of the range of companies (not inclusive)orderByComparator - the comparator to order the results by (optionally null)SystemException - if a system exception occurredCompany findBySystem_First(boolean system, OrderByComparator orderByComparator) throws NoSuchCompanyException, SystemException
system - the systemorderByComparator - the comparator to order the set by (optionally null)NoSuchCompanyException - if a matching company could not be foundSystemException - if a system exception occurredCompany fetchBySystem_First(boolean system, OrderByComparator orderByComparator) throws SystemException
system - the systemorderByComparator - the comparator to order the set by (optionally null)null if a matching company could not be foundSystemException - if a system exception occurredCompany findBySystem_Last(boolean system, OrderByComparator orderByComparator) throws NoSuchCompanyException, SystemException
system - the systemorderByComparator - the comparator to order the set by (optionally null)NoSuchCompanyException - if a matching company could not be foundSystemException - if a system exception occurredCompany fetchBySystem_Last(boolean system, OrderByComparator orderByComparator) throws SystemException
system - the systemorderByComparator - the comparator to order the set by (optionally null)null if a matching company could not be foundSystemException - if a system exception occurredCompany[] findBySystem_PrevAndNext(long companyId, boolean system, OrderByComparator orderByComparator) throws NoSuchCompanyException, SystemException
companyId - the primary key of the current companysystem - the systemorderByComparator - the comparator to order the set by (optionally null)NoSuchCompanyException - if a company with the primary key could not be foundSystemException - if a system exception occurredvoid removeBySystem(boolean system)
throws SystemException
system - the systemSystemException - if a system exception occurredint countBySystem(boolean system)
throws SystemException
system - the systemSystemException - if a system exception occurredvoid cacheResult(Company company)
company - the companyvoid cacheResult(java.util.List<Company> companies)
companies - the companiesCompany create(long companyId)
companyId - the primary key for the new companyCompany remove(long companyId) throws NoSuchCompanyException, SystemException
companyId - the primary key of the companyNoSuchCompanyException - if a company with the primary key could not be foundSystemException - if a system exception occurredCompany updateImpl(Company company) throws SystemException
SystemExceptionCompany findByPrimaryKey(long companyId) throws NoSuchCompanyException, SystemException
NoSuchCompanyException if it could not be found.companyId - the primary key of the companyNoSuchCompanyException - if a company with the primary key could not be foundSystemException - if a system exception occurredCompany fetchByPrimaryKey(long companyId) throws SystemException
null if it could not be found.companyId - the primary key of the companynull if a company with the primary key could not be foundSystemException - if a system exception occurredjava.util.List<Company> findAll() throws SystemException
SystemException - if a system exception occurredjava.util.List<Company> findAll(int start, int end) throws SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from CompanyModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start - the lower bound of the range of companiesend - the upper bound of the range of companies (not inclusive)SystemException - if a system exception occurredjava.util.List<Company> findAll(int start, int end, OrderByComparator orderByComparator) throws SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from CompanyModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start - the lower bound of the range of companiesend - the upper bound of the range of companies (not inclusive)orderByComparator - the comparator to order the results by (optionally null)SystemException - if a system exception occurredvoid removeAll()
throws SystemException
SystemException - if a system exception occurredint countAll()
throws SystemException
SystemException - if a system exception occurred