Interface CompanyInfoPersistence
- All Superinterfaces:
BasePersistence<CompanyInfo>
Caching information and settings can be found in portal.properties
- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cacheResult
(CompanyInfo companyInfo) Caches the company info in the entity cache if it is enabled.void
cacheResult
(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 = ?.create
(long companyInfoId) Creates a new company info with the primary key.fetchByCompanyId
(long companyId) Returns the company info where companyId = ? or returnsnull
if it could not be found.fetchByCompanyId
(long companyId, boolean useFinderCache) Returns the company info where companyId = ? or returnsnull
if it could not be found, optionally using the finder cache.fetchByPrimaryKey
(long companyInfoId) Returns the company info with the primary key or returnsnull
if it could not be found.findAll()
Returns all the company infos.findAll
(int start, int end) Returns a range of all the company infos.findAll
(int start, int end, OrderByComparator<CompanyInfo> orderByComparator) Returns an ordered range of all the company infos.findAll
(int start, int end, OrderByComparator<CompanyInfo> orderByComparator, boolean useFinderCache) Returns an ordered range of all the company infos.findByCompanyId
(long companyId) Returns the company info where companyId = ? or throws aNoSuchCompanyInfoException
if it could not be found.findByPrimaryKey
(long companyInfoId) Returns the company info with the primary key or throws aNoSuchCompanyInfoException
if it could not be found.remove
(long companyInfoId) Removes the company info with the primary key from the database.void
Removes all the company infos from the database.removeByCompanyId
(long companyId) Removes the company info where companyId = ? from the database.updateImpl
(CompanyInfo companyInfo) Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence
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, removeByFunction, setDataSource, unregisterListener, update, update
-
Method Details
-
findByCompanyId
Returns the company info where companyId = ? or throws aNoSuchCompanyInfoException
if it could not be found.- Parameters:
companyId
- the company ID- Returns:
- the matching company info
- Throws:
NoSuchCompanyInfoException
- if a matching company info could not be found
-
fetchByCompanyId
Returns the company info where companyId = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
companyId
- the company ID- Returns:
- the matching company info, or
null
if a matching company info could not be found
-
fetchByCompanyId
Returns the company info where companyId = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
companyId
- the company IDuseFinderCache
- whether to use the finder cache- Returns:
- the matching company info, or
null
if a matching company info could not be found
-
removeByCompanyId
Removes the company info where companyId = ? from the database.- Parameters:
companyId
- the company ID- Returns:
- the company info that was removed
- Throws:
NoSuchCompanyInfoException
-
countByCompanyId
int countByCompanyId(long companyId) Returns the number of company infos where companyId = ?.- Parameters:
companyId
- the company ID- Returns:
- the number of matching company infos
-
cacheResult
Caches the company info in the entity cache if it is enabled.- Parameters:
companyInfo
- the company info
-
cacheResult
Caches the company infos in the entity cache if it is enabled.- Parameters:
companyInfos
- the company infos
-
create
Creates a new company info with the primary key. Does not add the company info to the database.- Parameters:
companyInfoId
- the primary key for the new company info- Returns:
- the new company info
-
remove
Removes the company info with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
companyInfoId
- the primary key of the company info- Returns:
- the company info that was removed
- Throws:
NoSuchCompanyInfoException
- if a company info with the primary key could not be found
-
updateImpl
-
findByPrimaryKey
Returns the company info with the primary key or throws aNoSuchCompanyInfoException
if it could not be found.- Parameters:
companyInfoId
- the primary key of the company info- Returns:
- the company info
- Throws:
NoSuchCompanyInfoException
- if a company info with the primary key could not be found
-
fetchByPrimaryKey
Returns the company info with the primary key or returnsnull
if it could not be found.- Parameters:
companyInfoId
- the primary key of the company info- Returns:
- the company info, or
null
if a company info with the primary key could not be found
-
findAll
List<CompanyInfo> findAll()Returns all the company infos.- Returns:
- the company infos
-
findAll
Returns a range of all the company infos.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCompanyInfoModelImpl
.- Parameters:
start
- the lower bound of the range of company infosend
- the upper bound of the range of company infos (not inclusive)- Returns:
- the range of company infos
-
findAll
Returns an ordered range of all the company infos.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCompanyInfoModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of company infos
-
findAll
List<CompanyInfo> findAll(int start, int end, OrderByComparator<CompanyInfo> orderByComparator, boolean useFinderCache) Returns an ordered range of all the company infos.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCompanyInfoModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of company infos
-
removeAll
void removeAll()Removes all the company infos from the database. -
countAll
int countAll()Returns the number of company infos.- Returns:
- the number of company infos
-