@ProviderType public interface CompanyInfoPersistence extends BasePersistence<CompanyInfo>
Caching information and settings can be found in portal.properties
CompanyInfoUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(CompanyInfo companyInfo)
Caches the company info in the entity cache if it is enabled.
|
void |
cacheResult(java.util.List<CompanyInfo> companyInfos)
Caches the company infos in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of company infos.
|
int |
countByCompanyId(long companyId)
Returns the number of company infos where companyId = ?.
|
CompanyInfo |
create(long companyInfoId)
Creates a new company info with the primary key.
|
CompanyInfo |
fetchByCompanyId(long companyId)
Returns the company info where companyId = ? or returns
null if it could not be found. |
CompanyInfo |
fetchByCompanyId(long companyId,
boolean useFinderCache)
Returns the company info where companyId = ? or returns
null if it could not be found, optionally using the finder cache. |
CompanyInfo |
fetchByPrimaryKey(long companyInfoId)
Returns the company info with the primary key or returns
null if it could not be found. |
java.util.List<CompanyInfo> |
findAll()
Returns all the company infos.
|
java.util.List<CompanyInfo> |
findAll(int start,
int end)
Returns a range of all the company infos.
|
java.util.List<CompanyInfo> |
findAll(int start,
int end,
OrderByComparator<CompanyInfo> orderByComparator)
Returns an ordered range of all the company infos.
|
java.util.List<CompanyInfo> |
findAll(int start,
int end,
OrderByComparator<CompanyInfo> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the company infos.
|
CompanyInfo |
findByCompanyId(long companyId)
Returns the company info where companyId = ? or throws a
NoSuchCompanyInfoException if it could not be found. |
CompanyInfo |
findByPrimaryKey(long companyInfoId)
Returns the company info with the primary key or throws a
NoSuchCompanyInfoException if it could not be found. |
CompanyInfo |
remove(long companyInfoId)
Removes the company info with the primary key from the database.
|
void |
removeAll()
Removes all the company infos from the database.
|
CompanyInfo |
removeByCompanyId(long companyId)
Removes the company info where companyId = ? from the database.
|
CompanyInfo |
updateImpl(CompanyInfo companyInfo) |
clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update
CompanyInfo findByCompanyId(long companyId) throws NoSuchCompanyInfoException
NoSuchCompanyInfoException
if it could not be found.companyId
- the company IDNoSuchCompanyInfoException
- if a matching company info could not be foundCompanyInfo fetchByCompanyId(long companyId)
null
if it could not be found. Uses the finder cache.companyId
- the company IDnull
if a matching company info could not be foundCompanyInfo fetchByCompanyId(long companyId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.companyId
- the company IDuseFinderCache
- whether to use the finder cachenull
if a matching company info could not be foundCompanyInfo removeByCompanyId(long companyId) throws NoSuchCompanyInfoException
companyId
- the company IDNoSuchCompanyInfoException
int countByCompanyId(long companyId)
companyId
- the company IDvoid cacheResult(CompanyInfo companyInfo)
companyInfo
- the company infovoid cacheResult(java.util.List<CompanyInfo> companyInfos)
companyInfos
- the company infosCompanyInfo create(long companyInfoId)
companyInfoId
- the primary key for the new company infoCompanyInfo remove(long companyInfoId) throws NoSuchCompanyInfoException
companyInfoId
- the primary key of the company infoNoSuchCompanyInfoException
- if a company info with the primary key could not be foundCompanyInfo updateImpl(CompanyInfo companyInfo)
CompanyInfo findByPrimaryKey(long companyInfoId) throws NoSuchCompanyInfoException
NoSuchCompanyInfoException
if it could not be found.companyInfoId
- the primary key of the company infoNoSuchCompanyInfoException
- if a company info with the primary key could not be foundCompanyInfo fetchByPrimaryKey(long companyInfoId)
null
if it could not be found.companyInfoId
- the primary key of the company infonull
if a company info with the primary key could not be foundjava.util.List<CompanyInfo> findAll()
java.util.List<CompanyInfo> 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, then the query will include the default ORDER BY logic from CompanyInfoModelImpl
.
start
- the lower bound of the range of company infosend
- the upper bound of the range of company infos (not inclusive)java.util.List<CompanyInfo> findAll(int start, int end, OrderByComparator<CompanyInfo> 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, then the query will include the default ORDER BY logic from CompanyInfoModelImpl
.
start
- the lower bound of the range of company infosend
- the upper bound of the range of company infos (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<CompanyInfo> findAll(int start, int end, OrderByComparator<CompanyInfo> orderByComparator, boolean useFinderCache)
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, then the query will include the default ORDER BY logic from CompanyInfoModelImpl
.
start
- the lower bound of the range of company infosend
- the upper bound of the range of company infos (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachevoid removeAll()
int countAll()