Class AudiencesEntryUtil

java.lang.Object
com.liferay.audiences.service.persistence.AudiencesEntryUtil

public class AudiencesEntryUtil extends Object
The persistence utility for the audiences entry service. This utility wraps com.liferay.audiences.service.persistence.impl.AudiencesEntryPersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.

Caching information and settings can be found in portal.properties

See Also:
Generated:
  • Constructor Details

    • AudiencesEntryUtil

      public AudiencesEntryUtil()
  • Method Details

    • cacheResult

      public static void cacheResult(List<AudiencesEntry> audiencesEntries)
      See Also:
      • BasePersistence.cacheResult(List)
    • cacheResult

      public static void cacheResult(AudiencesEntry audiencesEntry)
      See Also:
      • BasePersistence.cacheResult(com.liferay.portal.kernel.model.BaseModel)
    • clearCache

      public static void clearCache()
      See Also:
      • BasePersistence.clearCache()
    • clearCache

      public static void clearCache(AudiencesEntry audiencesEntry)
      See Also:
      • BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
    • countWithDynamicQuery

      public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      See Also:
      • BasePersistence.countWithDynamicQuery(DynamicQuery)
    • fetchByPrimaryKeys

      public static Map<Serializable,AudiencesEntry> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
      See Also:
      • BasePersistence.fetchByPrimaryKeys(Set)
    • findWithDynamicQuery

      public static List<AudiencesEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery)
    • findWithDynamicQuery

      public static List<AudiencesEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
    • findWithDynamicQuery

      public static List<AudiencesEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AudiencesEntry> orderByComparator)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
    • update

      public static AudiencesEntry update(AudiencesEntry audiencesEntry)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
    • update

      public static AudiencesEntry update(AudiencesEntry audiencesEntry, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
    • findByCompanyId

      public static 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

      public static 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
    • fetchByCompanyId_First

      public static 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

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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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
    • fetchByC_LikeN_First

      public static 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

      public static 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

      public static 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

      public static 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
    • fetchByERC_C

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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
    • updateImpl

      public static AudiencesEntry updateImpl(AudiencesEntry audiencesEntry)
    • findByPrimaryKey

      public static 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
    • fetchByPrimaryKey

      public static 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

      public static 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

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

      public static 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

      public static 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
    • getPersistence

      public static AudiencesEntryPersistence getPersistence()
    • setPersistence

      public static void setPersistence(AudiencesEntryPersistence persistence)