Interface AudiencesEntryPersistence

All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<AudiencesEntry>

@ProviderType public interface AudiencesEntryPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<AudiencesEntry>
The persistence interface for the audiences entry service.

Caching information and settings can be found in portal.properties

See Also:
Generated:
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    countByC_LikeN(long companyId, String name)
    Returns the number of audiences entries where companyId = ? and name LIKE ?.
    int
    countByCompanyId(long companyId)
    Returns the number of audiences entries where companyId = ?.
    int
    countByERC_C(String externalReferenceCode, long companyId)
    Returns the number of audiences entries where externalReferenceCode = ? and companyId = ?.
    create(long audiencesEntryId)
    Creates a new audiences entry with the primary key.
    fetchByC_LikeN_First(long companyId, String name, com.liferay.portal.kernel.util.OrderByComparator<AudiencesEntry> orderByComparator)
    Returns the first audiences entry in the ordered set where companyId = ? and name LIKE ?.
    fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AudiencesEntry> orderByComparator)
    Returns the first audiences entry in the ordered set where companyId = ?.
    fetchByERC_C(String externalReferenceCode, long companyId)
    Returns the audiences entry where externalReferenceCode = ? and companyId = ? or returns null if it could not be found.
    fetchByERC_C(String externalReferenceCode, long companyId, boolean useFinderCache)
    Returns the audiences entry where externalReferenceCode = ? and companyId = ? or returns null if it could not be found, optionally using the finder cache.
    fetchByPrimaryKey(long audiencesEntryId)
    Returns the audiences entry with the primary key or returns null if it could not be found.
    findByC_LikeN(long companyId, String name)
    Returns all the audiences entries where companyId = ? and name LIKE ?.
    findByC_LikeN(long companyId, String name, int start, int end)
    Returns a range of all the audiences entries where companyId = ? and name LIKE ?.
    findByC_LikeN(long companyId, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AudiencesEntry> orderByComparator)
    Returns an ordered range of all the audiences entries where companyId = ? and name LIKE ?.
    findByC_LikeN(long companyId, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AudiencesEntry> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the audiences entries where companyId = ? and name LIKE ?.
    findByC_LikeN_First(long companyId, String name, com.liferay.portal.kernel.util.OrderByComparator<AudiencesEntry> orderByComparator)
    Returns the first audiences entry in the ordered set where companyId = ? and name LIKE ?.
    findByCompanyId(long companyId)
    Returns all the audiences entries where companyId = ?.
    findByCompanyId(long companyId, int start, int end)
    Returns a range of all the audiences entries where companyId = ?.
    findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AudiencesEntry> orderByComparator)
    Returns an ordered range of all the audiences entries where companyId = ?.
    findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AudiencesEntry> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the audiences entries where companyId = ?.
    findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AudiencesEntry> orderByComparator)
    Returns the first audiences entry in the ordered set where companyId = ?.
    findByERC_C(String externalReferenceCode, long companyId)
    Returns the audiences entry where externalReferenceCode = ? and companyId = ? or throws a NoSuchAudiencesEntryException if it could not be found.
    findByPrimaryKey(long audiencesEntryId)
    Returns the audiences entry with the primary key or throws a NoSuchAudiencesEntryException if it could not be found.
    remove(long audiencesEntryId)
    Removes the audiences entry with the primary key from the database.
    void
    removeByC_LikeN(long companyId, String name)
    Removes all the audiences entries where companyId = ? and name LIKE ? from the database.
    void
    removeByCompanyId(long companyId)
    Removes all the audiences entries where companyId = ? from the database.
    removeByERC_C(String externalReferenceCode, long companyId)
    Removes the audiences entry where externalReferenceCode = ? and companyId = ? from the database.
    updateImpl(AudiencesEntry audiencesEntry)
     

    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

      List<AudiencesEntry> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AudiencesEntry> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the audiences entries where companyId = ?.

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.audiences.model.impl.AudiencesEntryModelImpl.

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of audiences entries
      end - the upper bound of the range of audiences entries (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching audiences entries
    • findByCompanyId_First

      AudiencesEntry findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AudiencesEntry> orderByComparator) throws NoSuchAudiencesEntryException
      Returns the first audiences entry in the ordered set where companyId = ?.
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching audiences entry
      Throws:
      NoSuchAudiencesEntryException - if a matching audiences entry could not be found
    • fetchByCompanyId_First

      AudiencesEntry fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AudiencesEntry> orderByComparator)
      Returns the first audiences entry in the ordered set where companyId = ?.
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching audiences entry, or null if a matching audiences entry could not be found
    • removeByCompanyId

      void removeByCompanyId(long companyId)
      Removes all the audiences entries where companyId = ? from the database.
      Parameters:
      companyId - the company ID
    • countByCompanyId

      int countByCompanyId(long companyId)
      Returns the number of audiences entries where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the number of matching audiences entries
    • findByC_LikeN

      List<AudiencesEntry> findByC_LikeN(long companyId, String name)
      Returns all the audiences entries where companyId = ? and name LIKE ?.
      Parameters:
      companyId - the company ID
      name - the name
      Returns:
      the matching audiences entries
    • findByC_LikeN

      List<AudiencesEntry> findByC_LikeN(long companyId, String name, int start, int end)
      Returns a range of all the audiences entries where companyId = ? and name LIKE ?.

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.audiences.model.impl.AudiencesEntryModelImpl.

      Parameters:
      companyId - the company ID
      name - the name
      start - the lower bound of the range of audiences entries
      end - the upper bound of the range of audiences entries (not inclusive)
      Returns:
      the range of matching audiences entries
    • findByC_LikeN

      List<AudiencesEntry> findByC_LikeN(long companyId, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AudiencesEntry> orderByComparator)
      Returns an ordered range of all the audiences entries where companyId = ? and name LIKE ?.

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.audiences.model.impl.AudiencesEntryModelImpl.

      Parameters:
      companyId - the company ID
      name - the name
      start - the lower bound of the range of audiences entries
      end - the upper bound of the range of audiences entries (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching audiences entries
    • findByC_LikeN

      List<AudiencesEntry> findByC_LikeN(long companyId, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AudiencesEntry> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the audiences entries where companyId = ? and name LIKE ?.

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.audiences.model.impl.AudiencesEntryModelImpl.

      Parameters:
      companyId - the company ID
      name - the name
      start - the lower bound of the range of audiences entries
      end - the upper bound of the range of audiences entries (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching audiences entries
    • findByC_LikeN_First

      AudiencesEntry findByC_LikeN_First(long companyId, String name, com.liferay.portal.kernel.util.OrderByComparator<AudiencesEntry> orderByComparator) throws NoSuchAudiencesEntryException
      Returns the first audiences entry in the ordered set where companyId = ? and name LIKE ?.
      Parameters:
      companyId - the company ID
      name - the name
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching audiences entry
      Throws:
      NoSuchAudiencesEntryException - if a matching audiences entry could not be found
    • fetchByC_LikeN_First

      AudiencesEntry fetchByC_LikeN_First(long companyId, String name, com.liferay.portal.kernel.util.OrderByComparator<AudiencesEntry> orderByComparator)
      Returns the first audiences entry in the ordered set where companyId = ? and name LIKE ?.
      Parameters:
      companyId - the company ID
      name - the name
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching audiences entry, or null if a matching audiences entry could not be found
    • removeByC_LikeN

      void removeByC_LikeN(long companyId, String name)
      Removes all the audiences entries where companyId = ? and name LIKE ? from the database.
      Parameters:
      companyId - the company ID
      name - the name
    • countByC_LikeN

      int countByC_LikeN(long companyId, String name)
      Returns the number of audiences entries where companyId = ? and name LIKE ?.
      Parameters:
      companyId - the company ID
      name - the name
      Returns:
      the number of matching audiences entries
    • findByERC_C

      AudiencesEntry findByERC_C(String externalReferenceCode, long companyId) throws NoSuchAudiencesEntryException
      Returns the audiences entry where externalReferenceCode = ? and companyId = ? or throws a NoSuchAudiencesEntryException if it could not be found.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      Returns:
      the matching audiences entry
      Throws:
      NoSuchAudiencesEntryException - if a matching audiences entry could not be found
    • fetchByERC_C

      AudiencesEntry fetchByERC_C(String externalReferenceCode, long companyId, boolean useFinderCache)
      Returns the audiences entry where externalReferenceCode = ? and companyId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching audiences entry, or null if a matching audiences entry could not be found
    • removeByERC_C

      AudiencesEntry removeByERC_C(String externalReferenceCode, long companyId) throws NoSuchAudiencesEntryException
      Removes the audiences entry where externalReferenceCode = ? and companyId = ? from the database.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      Returns:
      the audiences entry that was removed
      Throws:
      NoSuchAudiencesEntryException
    • countByERC_C

      int countByERC_C(String externalReferenceCode, long companyId)
      Returns the number of audiences entries where externalReferenceCode = ? and companyId = ?.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      Returns:
      the number of matching audiences entries
    • create

      AudiencesEntry create(long audiencesEntryId)
      Creates a new audiences entry with the primary key. Does not add the audiences entry to the database.
      Parameters:
      audiencesEntryId - the primary key for the new audiences entry
      Returns:
      the new audiences entry
    • remove

      AudiencesEntry remove(long audiencesEntryId) throws NoSuchAudiencesEntryException
      Removes the audiences entry with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      audiencesEntryId - the primary key of the audiences entry
      Returns:
      the audiences entry that was removed
      Throws:
      NoSuchAudiencesEntryException - if a audiences entry with the primary key could not be found
    • updateImpl

      AudiencesEntry updateImpl(AudiencesEntry audiencesEntry)
    • findByPrimaryKey

      AudiencesEntry findByPrimaryKey(long audiencesEntryId) throws NoSuchAudiencesEntryException
      Returns the audiences entry with the primary key or throws a NoSuchAudiencesEntryException if it could not be found.
      Parameters:
      audiencesEntryId - the primary key of the audiences entry
      Returns:
      the audiences entry
      Throws:
      NoSuchAudiencesEntryException - if a audiences entry with the primary key could not be found
    • fetchByPrimaryKey

      AudiencesEntry fetchByPrimaryKey(long audiencesEntryId)
      Returns the audiences entry with the primary key or returns null if it could not be found.
      Parameters:
      audiencesEntryId - the primary key of the audiences entry
      Returns:
      the audiences entry, or null if a audiences entry with the primary key could not be found
    • fetchByERC_C

      default AudiencesEntry fetchByERC_C(String externalReferenceCode, long companyId)
      Returns the audiences entry where externalReferenceCode = ? and companyId = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      Returns:
      the matching audiences entry, or null if a matching audiences entry could not be found
    • findByCompanyId

      default List<AudiencesEntry> findByCompanyId(long companyId)
      Returns all the audiences entries where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the matching audiences entries
    • findByCompanyId

      default List<AudiencesEntry> findByCompanyId(long companyId, int start, int end)
      Returns a range of all the audiences entries where companyId = ?.

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.audiences.model.impl.AudiencesEntryModelImpl.

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of audiences entries
      end - the upper bound of the range of audiences entries (not inclusive)
      Returns:
      the range of matching audiences entries
    • findByCompanyId

      default List<AudiencesEntry> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AudiencesEntry> orderByComparator)
      Returns an ordered range of all the audiences entries where companyId = ?.

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.audiences.model.impl.AudiencesEntryModelImpl.

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of audiences entries
      end - the upper bound of the range of audiences entries (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching audiences entries