@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(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(String mx)
Returns the number of companies where mx = ?.
|
int |
countBySystem(boolean system)
Returns the number of companies where system = ?.
|
int |
countByWebId(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(String mx)
Returns the company where mx = ? or returns
null if it could not be found. |
Company |
fetchByMx(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. |
Map<Serializable,Company> |
fetchByPrimaryKeys(Set<Serializable> primaryKeys) |
Company |
fetchBySystem_First(boolean system,
OrderByComparator<Company> orderByComparator)
Returns the first company in the ordered set where system = ?.
|
Company |
fetchBySystem_Last(boolean system,
OrderByComparator<Company> orderByComparator)
Returns the last company in the ordered set where system = ?.
|
Company |
fetchByWebId(String webId)
Returns the company where webId = ? or returns
null if it could not be found. |
Company |
fetchByWebId(String webId,
boolean retrieveFromCache)
Returns the company where webId = ? or returns
null if it could not be found, optionally using the finder cache. |
List<Company> |
findAll()
Returns all the companies.
|
List<Company> |
findAll(int start,
int end)
Returns a range of all the companies.
|
List<Company> |
findAll(int start,
int end,
OrderByComparator<Company> orderByComparator)
Returns an ordered range of all the companies.
|
List<Company> |
findAll(int start,
int end,
OrderByComparator<Company> orderByComparator,
boolean retrieveFromCache)
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(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<Company> orderByComparator)
Returns the first company in the ordered set where system = ?.
|
Company |
findBySystem_Last(boolean system,
OrderByComparator<Company> orderByComparator)
Returns the last company in the ordered set where system = ?.
|
Company[] |
findBySystem_PrevAndNext(long companyId,
boolean system,
OrderByComparator<Company> orderByComparator)
Returns the companies before and after the current company in the ordered set where system = ?.
|
List<Company> |
findBySystem(boolean system)
Returns all the companies where system = ?.
|
List<Company> |
findBySystem(boolean system,
int start,
int end)
Returns a range of all the companies where system = ?.
|
List<Company> |
findBySystem(boolean system,
int start,
int end,
OrderByComparator<Company> orderByComparator)
Returns an ordered range of all the companies where system = ?.
|
List<Company> |
findBySystem(boolean system,
int start,
int end,
OrderByComparator<Company> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the companies where system = ?.
|
Company |
findByWebId(String webId)
Returns the company where webId = ? or throws a
NoSuchCompanyException if it could not be found. |
Set<String> |
getBadColumnNames() |
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(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(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
Company findByWebId(String webId) throws NoSuchCompanyException
NoSuchCompanyException
if it could not be found.webId
- the web IDNoSuchCompanyException
- if a matching company could not be foundCompany fetchByWebId(String webId)
null
if it could not be found. Uses the finder cache.webId
- the web IDnull
if a matching company could not be foundCompany fetchByWebId(String webId, boolean retrieveFromCache)
null
if it could not be found, optionally using the finder cache.webId
- the web IDretrieveFromCache
- whether to retrieve from the finder cachenull
if a matching company could not be foundCompany removeByWebId(String webId) throws NoSuchCompanyException
webId
- the web IDNoSuchCompanyException
int countByWebId(String webId)
webId
- the web IDCompany findByMx(String mx) throws NoSuchCompanyException
NoSuchCompanyException
if it could not be found.mx
- the mxNoSuchCompanyException
- if a matching company could not be foundCompany fetchByMx(String mx)
null
if it could not be found. Uses the finder cache.mx
- the mxnull
if a matching company could not be foundCompany fetchByMx(String mx, boolean retrieveFromCache)
null
if it could not be found, optionally using the finder cache.mx
- the mxretrieveFromCache
- whether to retrieve from the finder cachenull
if a matching company could not be foundCompany removeByMx(String mx) throws NoSuchCompanyException
mx
- the mxNoSuchCompanyException
int countByMx(String mx)
mx
- the mxCompany findByLogoId(long logoId) throws NoSuchCompanyException
NoSuchCompanyException
if it could not be found.logoId
- the logo IDNoSuchCompanyException
- if a matching company could not be foundCompany fetchByLogoId(long logoId)
null
if it could not be found. Uses the finder cache.logoId
- the logo IDnull
if a matching company could not be foundCompany fetchByLogoId(long logoId, boolean retrieveFromCache)
null
if it could not be found, optionally using the finder cache.logoId
- the logo IDretrieveFromCache
- whether to retrieve from the finder cachenull
if a matching company could not be foundCompany removeByLogoId(long logoId) throws NoSuchCompanyException
logoId
- the logo IDNoSuchCompanyException
int countByLogoId(long logoId)
logoId
- the logo IDList<Company> findBySystem(boolean system)
system
- the systemList<Company> findBySystem(boolean system, int start, int end)
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)List<Company> findBySystem(boolean system, int start, int end, OrderByComparator<Company> orderByComparator)
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
)List<Company> findBySystem(boolean system, int start, int end, OrderByComparator<Company> orderByComparator, boolean retrieveFromCache)
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
)retrieveFromCache
- whether to retrieve from the finder cacheCompany findBySystem_First(boolean system, OrderByComparator<Company> orderByComparator) throws NoSuchCompanyException
system
- the systemorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCompanyException
- if a matching company could not be foundCompany fetchBySystem_First(boolean system, OrderByComparator<Company> orderByComparator)
system
- the systemorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching company could not be foundCompany findBySystem_Last(boolean system, OrderByComparator<Company> orderByComparator) throws NoSuchCompanyException
system
- the systemorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCompanyException
- if a matching company could not be foundCompany fetchBySystem_Last(boolean system, OrderByComparator<Company> orderByComparator)
system
- the systemorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching company could not be foundCompany[] findBySystem_PrevAndNext(long companyId, boolean system, OrderByComparator<Company> orderByComparator) throws NoSuchCompanyException
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 foundvoid removeBySystem(boolean system)
system
- the systemint countBySystem(boolean system)
system
- the systemvoid cacheResult(Company company)
company
- the companyvoid cacheResult(List<Company> companies)
companies
- the companiesCompany create(long companyId)
companyId
- the primary key for the new companyCompany remove(long companyId) throws NoSuchCompanyException
companyId
- the primary key of the companyNoSuchCompanyException
- if a company with the primary key could not be foundCompany findByPrimaryKey(long companyId) throws NoSuchCompanyException
NoSuchCompanyException
if it could not be found.companyId
- the primary key of the companyNoSuchCompanyException
- if a company with the primary key could not be foundCompany fetchByPrimaryKey(long companyId)
null
if it could not be found.companyId
- the primary key of the companynull
if a company with the primary key could not be foundMap<Serializable,Company> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
fetchByPrimaryKeys
in interface BasePersistence<Company>
List<Company> findAll()
List<Company> findAll(int start, int end)
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)List<Company> findAll(int start, int end, OrderByComparator<Company> orderByComparator)
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
)List<Company> findAll(int start, int end, OrderByComparator<Company> orderByComparator, boolean retrieveFromCache)
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
)retrieveFromCache
- whether to retrieve from the finder cachevoid removeAll()
int countAll()
Set<String> getBadColumnNames()
getBadColumnNames
in interface BasePersistence<Company>