Interface CompanyInfoPersistence
- All Superinterfaces:
BasePersistence<CompanyInfo>
The persistence interface for the company info service.
Caching information and settings can be found in portal.properties
- Author:
- Brian Wing Shun Chan
- See Also:
- Generated:
-
Method Summary
Modifier and TypeMethodDescriptionintcountByCompanyId(long companyId) Returns the number of company infos where companyId = ?.create(long companyInfoId) Creates a new company info with the primary key.default CompanyInfofetchByCompanyId(long companyId) Returns the company info where companyId = ? or returnsnullif it could not be found.fetchByCompanyId(long companyId, boolean useFinderCache) Returns the company info where companyId = ? or returnsnullif it could not be found, optionally using the finder cache.fetchByPrimaryKey(long companyInfoId) Returns the company info with the primary key or returnsnullif it could not be found.findByCompanyId(long companyId) Returns the company info where companyId = ? or throws aNoSuchCompanyInfoExceptionif it could not be found.findByPrimaryKey(long companyInfoId) Returns the company info with the primary key or throws aNoSuchCompanyInfoExceptionif it could not be found.remove(long companyInfoId) Removes the company info with the primary key 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
cacheResult, cacheResult, clearCache, clearCache, clearCache, clearCache, closeSession, countAll, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQuery, dslQueryCount, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findAll, findAll, findAll, findAll, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, reassociateIfAbsent, registerListener, remove, remove, removeAll, removeByFunction, setDataSource, unregisterListener, update, update
-
Method Details
-
findByCompanyId
Returns the company info where companyId = ? or throws aNoSuchCompanyInfoExceptionif 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 returnsnullif 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
nullif 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
-
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 aNoSuchCompanyInfoExceptionif 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 returnsnullif it could not be found.- Parameters:
companyInfoId- the primary key of the company info- Returns:
- the company info, or
nullif a company info with the primary key could not be found
-
fetchByCompanyId
Returns the company info where companyId = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
companyId- the company ID- Returns:
- the matching company info, or
nullif a matching company info could not be found
-