Interface CompanyInfoPersistence

All Superinterfaces:
BasePersistence<CompanyInfo>

@ProviderType public interface CompanyInfoPersistence extends 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 Details

    • findByCompanyId

      CompanyInfo findByCompanyId(long companyId) throws NoSuchCompanyInfoException
      Returns the company info where companyId = ? or throws a NoSuchCompanyInfoException 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

      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.
      Parameters:
      companyId - the company ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching company info, or null if a matching company info could not be found
    • removeByCompanyId

      CompanyInfo removeByCompanyId(long companyId) throws NoSuchCompanyInfoException
      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

      CompanyInfo create(long companyInfoId)
      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

      CompanyInfo remove(long companyInfoId) throws NoSuchCompanyInfoException
      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

      CompanyInfo updateImpl(CompanyInfo companyInfo)
    • findByPrimaryKey

      CompanyInfo findByPrimaryKey(long companyInfoId) throws NoSuchCompanyInfoException
      Returns the company info with the primary key or throws a NoSuchCompanyInfoException 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

      CompanyInfo fetchByPrimaryKey(long companyInfoId)
      Returns the company info with the primary key or returns null 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
    • fetchByCompanyId

      default CompanyInfo fetchByCompanyId(long companyId)
      Returns the company info where companyId = ? or returns null 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