Class AnalyticsAssociationUtil

java.lang.Object
com.liferay.analytics.message.storage.service.persistence.AnalyticsAssociationUtil

public class AnalyticsAssociationUtil extends Object
The persistence utility for the analytics association service. This utility wraps com.liferay.analytics.message.storage.service.persistence.impl.AnalyticsAssociationPersistenceImpl 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

    • AnalyticsAssociationUtil

      public AnalyticsAssociationUtil()
  • Method Details

    • clearCache

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

      public static void clearCache(AnalyticsAssociation analyticsAssociation)
      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,AnalyticsAssociation> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
      See Also:
      • BasePersistence.fetchByPrimaryKeys(Set)
    • findWithDynamicQuery

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

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

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

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

      public static AnalyticsAssociation update(AnalyticsAssociation analyticsAssociation, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
    • findByC_A

      public static List<AnalyticsAssociation> findByC_A(long companyId, String associationClassName)
      Returns all the analytics associations where companyId = ? and associationClassName = ?.
      Parameters:
      companyId - the company ID
      associationClassName - the association class name
      Returns:
      the matching analytics associations
    • findByC_A

      public static List<AnalyticsAssociation> findByC_A(long companyId, String associationClassName, int start, int end)
      Returns a range of all the analytics associations where companyId = ? and associationClassName = ?.

      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 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 AnalyticsAssociationModelImpl.

      Parameters:
      companyId - the company ID
      associationClassName - the association class name
      start - the lower bound of the range of analytics associations
      end - the upper bound of the range of analytics associations (not inclusive)
      Returns:
      the range of matching analytics associations
    • findByC_A

      public static List<AnalyticsAssociation> findByC_A(long companyId, String associationClassName, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsAssociation> orderByComparator)
      Returns an ordered range of all the analytics associations where companyId = ? and associationClassName = ?.

      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 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 AnalyticsAssociationModelImpl.

      Parameters:
      companyId - the company ID
      associationClassName - the association class name
      start - the lower bound of the range of analytics associations
      end - the upper bound of the range of analytics associations (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching analytics associations
    • findByC_A

      public static List<AnalyticsAssociation> findByC_A(long companyId, String associationClassName, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsAssociation> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the analytics associations where companyId = ? and associationClassName = ?.

      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 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 AnalyticsAssociationModelImpl.

      Parameters:
      companyId - the company ID
      associationClassName - the association class name
      start - the lower bound of the range of analytics associations
      end - the upper bound of the range of analytics associations (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 analytics associations
    • findByC_A_First

      public static AnalyticsAssociation findByC_A_First(long companyId, String associationClassName, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsAssociation> orderByComparator) throws NoSuchAssociationException
      Returns the first analytics association in the ordered set where companyId = ? and associationClassName = ?.
      Parameters:
      companyId - the company ID
      associationClassName - the association class name
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching analytics association
      Throws:
      NoSuchAssociationException - if a matching analytics association could not be found
      NoSuchAssociationException
    • fetchByC_A_First

      public static AnalyticsAssociation fetchByC_A_First(long companyId, String associationClassName, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsAssociation> orderByComparator)
      Returns the first analytics association in the ordered set where companyId = ? and associationClassName = ?.
      Parameters:
      companyId - the company ID
      associationClassName - the association class name
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching analytics association, or null if a matching analytics association could not be found
    • findByC_A_Last

      public static AnalyticsAssociation findByC_A_Last(long companyId, String associationClassName, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsAssociation> orderByComparator) throws NoSuchAssociationException
      Returns the last analytics association in the ordered set where companyId = ? and associationClassName = ?.
      Parameters:
      companyId - the company ID
      associationClassName - the association class name
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching analytics association
      Throws:
      NoSuchAssociationException - if a matching analytics association could not be found
      NoSuchAssociationException
    • fetchByC_A_Last

      public static AnalyticsAssociation fetchByC_A_Last(long companyId, String associationClassName, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsAssociation> orderByComparator)
      Returns the last analytics association in the ordered set where companyId = ? and associationClassName = ?.
      Parameters:
      companyId - the company ID
      associationClassName - the association class name
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching analytics association, or null if a matching analytics association could not be found
    • findByC_A_PrevAndNext

      public static AnalyticsAssociation[] findByC_A_PrevAndNext(long analyticsAssociationId, long companyId, String associationClassName, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsAssociation> orderByComparator) throws NoSuchAssociationException
      Returns the analytics associations before and after the current analytics association in the ordered set where companyId = ? and associationClassName = ?.
      Parameters:
      analyticsAssociationId - the primary key of the current analytics association
      companyId - the company ID
      associationClassName - the association class name
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next analytics association
      Throws:
      NoSuchAssociationException - if a analytics association with the primary key could not be found
      NoSuchAssociationException
    • removeByC_A

      public static void removeByC_A(long companyId, String associationClassName)
      Removes all the analytics associations where companyId = ? and associationClassName = ? from the database.
      Parameters:
      companyId - the company ID
      associationClassName - the association class name
    • countByC_A

      public static int countByC_A(long companyId, String associationClassName)
      Returns the number of analytics associations where companyId = ? and associationClassName = ?.
      Parameters:
      companyId - the company ID
      associationClassName - the association class name
      Returns:
      the number of matching analytics associations
    • findByC_GtM_A

      public static List<AnalyticsAssociation> findByC_GtM_A(long companyId, Date modifiedDate, String associationClassName)
      Returns all the analytics associations where companyId = ? and modifiedDate > ? and associationClassName = ?.
      Parameters:
      companyId - the company ID
      modifiedDate - the modified date
      associationClassName - the association class name
      Returns:
      the matching analytics associations
    • findByC_GtM_A

      public static List<AnalyticsAssociation> findByC_GtM_A(long companyId, Date modifiedDate, String associationClassName, int start, int end)
      Returns a range of all the analytics associations where companyId = ? and modifiedDate > ? and associationClassName = ?.

      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 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 AnalyticsAssociationModelImpl.

      Parameters:
      companyId - the company ID
      modifiedDate - the modified date
      associationClassName - the association class name
      start - the lower bound of the range of analytics associations
      end - the upper bound of the range of analytics associations (not inclusive)
      Returns:
      the range of matching analytics associations
    • findByC_GtM_A

      public static List<AnalyticsAssociation> findByC_GtM_A(long companyId, Date modifiedDate, String associationClassName, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsAssociation> orderByComparator)
      Returns an ordered range of all the analytics associations where companyId = ? and modifiedDate > ? and associationClassName = ?.

      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 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 AnalyticsAssociationModelImpl.

      Parameters:
      companyId - the company ID
      modifiedDate - the modified date
      associationClassName - the association class name
      start - the lower bound of the range of analytics associations
      end - the upper bound of the range of analytics associations (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching analytics associations
    • findByC_GtM_A

      public static List<AnalyticsAssociation> findByC_GtM_A(long companyId, Date modifiedDate, String associationClassName, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsAssociation> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the analytics associations where companyId = ? and modifiedDate > ? and associationClassName = ?.

      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 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 AnalyticsAssociationModelImpl.

      Parameters:
      companyId - the company ID
      modifiedDate - the modified date
      associationClassName - the association class name
      start - the lower bound of the range of analytics associations
      end - the upper bound of the range of analytics associations (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 analytics associations
    • findByC_GtM_A_First

      public static AnalyticsAssociation findByC_GtM_A_First(long companyId, Date modifiedDate, String associationClassName, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsAssociation> orderByComparator) throws NoSuchAssociationException
      Returns the first analytics association in the ordered set where companyId = ? and modifiedDate > ? and associationClassName = ?.
      Parameters:
      companyId - the company ID
      modifiedDate - the modified date
      associationClassName - the association class name
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching analytics association
      Throws:
      NoSuchAssociationException - if a matching analytics association could not be found
      NoSuchAssociationException
    • fetchByC_GtM_A_First

      public static AnalyticsAssociation fetchByC_GtM_A_First(long companyId, Date modifiedDate, String associationClassName, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsAssociation> orderByComparator)
      Returns the first analytics association in the ordered set where companyId = ? and modifiedDate > ? and associationClassName = ?.
      Parameters:
      companyId - the company ID
      modifiedDate - the modified date
      associationClassName - the association class name
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching analytics association, or null if a matching analytics association could not be found
    • findByC_GtM_A_Last

      public static AnalyticsAssociation findByC_GtM_A_Last(long companyId, Date modifiedDate, String associationClassName, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsAssociation> orderByComparator) throws NoSuchAssociationException
      Returns the last analytics association in the ordered set where companyId = ? and modifiedDate > ? and associationClassName = ?.
      Parameters:
      companyId - the company ID
      modifiedDate - the modified date
      associationClassName - the association class name
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching analytics association
      Throws:
      NoSuchAssociationException - if a matching analytics association could not be found
      NoSuchAssociationException
    • fetchByC_GtM_A_Last

      public static AnalyticsAssociation fetchByC_GtM_A_Last(long companyId, Date modifiedDate, String associationClassName, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsAssociation> orderByComparator)
      Returns the last analytics association in the ordered set where companyId = ? and modifiedDate > ? and associationClassName = ?.
      Parameters:
      companyId - the company ID
      modifiedDate - the modified date
      associationClassName - the association class name
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching analytics association, or null if a matching analytics association could not be found
    • findByC_GtM_A_PrevAndNext

      public static AnalyticsAssociation[] findByC_GtM_A_PrevAndNext(long analyticsAssociationId, long companyId, Date modifiedDate, String associationClassName, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsAssociation> orderByComparator) throws NoSuchAssociationException
      Returns the analytics associations before and after the current analytics association in the ordered set where companyId = ? and modifiedDate > ? and associationClassName = ?.
      Parameters:
      analyticsAssociationId - the primary key of the current analytics association
      companyId - the company ID
      modifiedDate - the modified date
      associationClassName - the association class name
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next analytics association
      Throws:
      NoSuchAssociationException - if a analytics association with the primary key could not be found
      NoSuchAssociationException
    • removeByC_GtM_A

      public static void removeByC_GtM_A(long companyId, Date modifiedDate, String associationClassName)
      Removes all the analytics associations where companyId = ? and modifiedDate > ? and associationClassName = ? from the database.
      Parameters:
      companyId - the company ID
      modifiedDate - the modified date
      associationClassName - the association class name
    • countByC_GtM_A

      public static int countByC_GtM_A(long companyId, Date modifiedDate, String associationClassName)
      Returns the number of analytics associations where companyId = ? and modifiedDate > ? and associationClassName = ?.
      Parameters:
      companyId - the company ID
      modifiedDate - the modified date
      associationClassName - the association class name
      Returns:
      the number of matching analytics associations
    • findByC_A_A

      public static List<AnalyticsAssociation> findByC_A_A(long companyId, String associationClassName, long associationClassPK)
      Returns all the analytics associations where companyId = ? and associationClassName = ? and associationClassPK = ?.
      Parameters:
      companyId - the company ID
      associationClassName - the association class name
      associationClassPK - the association class pk
      Returns:
      the matching analytics associations
    • findByC_A_A

      public static List<AnalyticsAssociation> findByC_A_A(long companyId, String associationClassName, long associationClassPK, int start, int end)
      Returns a range of all the analytics associations where companyId = ? and associationClassName = ? and associationClassPK = ?.

      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 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 AnalyticsAssociationModelImpl.

      Parameters:
      companyId - the company ID
      associationClassName - the association class name
      associationClassPK - the association class pk
      start - the lower bound of the range of analytics associations
      end - the upper bound of the range of analytics associations (not inclusive)
      Returns:
      the range of matching analytics associations
    • findByC_A_A

      public static List<AnalyticsAssociation> findByC_A_A(long companyId, String associationClassName, long associationClassPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsAssociation> orderByComparator)
      Returns an ordered range of all the analytics associations where companyId = ? and associationClassName = ? and associationClassPK = ?.

      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 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 AnalyticsAssociationModelImpl.

      Parameters:
      companyId - the company ID
      associationClassName - the association class name
      associationClassPK - the association class pk
      start - the lower bound of the range of analytics associations
      end - the upper bound of the range of analytics associations (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching analytics associations
    • findByC_A_A

      public static List<AnalyticsAssociation> findByC_A_A(long companyId, String associationClassName, long associationClassPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsAssociation> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the analytics associations where companyId = ? and associationClassName = ? and associationClassPK = ?.

      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 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 AnalyticsAssociationModelImpl.

      Parameters:
      companyId - the company ID
      associationClassName - the association class name
      associationClassPK - the association class pk
      start - the lower bound of the range of analytics associations
      end - the upper bound of the range of analytics associations (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 analytics associations
    • findByC_A_A_First

      public static AnalyticsAssociation findByC_A_A_First(long companyId, String associationClassName, long associationClassPK, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsAssociation> orderByComparator) throws NoSuchAssociationException
      Returns the first analytics association in the ordered set where companyId = ? and associationClassName = ? and associationClassPK = ?.
      Parameters:
      companyId - the company ID
      associationClassName - the association class name
      associationClassPK - the association class pk
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching analytics association
      Throws:
      NoSuchAssociationException - if a matching analytics association could not be found
      NoSuchAssociationException
    • fetchByC_A_A_First

      public static AnalyticsAssociation fetchByC_A_A_First(long companyId, String associationClassName, long associationClassPK, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsAssociation> orderByComparator)
      Returns the first analytics association in the ordered set where companyId = ? and associationClassName = ? and associationClassPK = ?.
      Parameters:
      companyId - the company ID
      associationClassName - the association class name
      associationClassPK - the association class pk
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching analytics association, or null if a matching analytics association could not be found
    • findByC_A_A_Last

      public static AnalyticsAssociation findByC_A_A_Last(long companyId, String associationClassName, long associationClassPK, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsAssociation> orderByComparator) throws NoSuchAssociationException
      Returns the last analytics association in the ordered set where companyId = ? and associationClassName = ? and associationClassPK = ?.
      Parameters:
      companyId - the company ID
      associationClassName - the association class name
      associationClassPK - the association class pk
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching analytics association
      Throws:
      NoSuchAssociationException - if a matching analytics association could not be found
      NoSuchAssociationException
    • fetchByC_A_A_Last

      public static AnalyticsAssociation fetchByC_A_A_Last(long companyId, String associationClassName, long associationClassPK, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsAssociation> orderByComparator)
      Returns the last analytics association in the ordered set where companyId = ? and associationClassName = ? and associationClassPK = ?.
      Parameters:
      companyId - the company ID
      associationClassName - the association class name
      associationClassPK - the association class pk
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching analytics association, or null if a matching analytics association could not be found
    • findByC_A_A_PrevAndNext

      public static AnalyticsAssociation[] findByC_A_A_PrevAndNext(long analyticsAssociationId, long companyId, String associationClassName, long associationClassPK, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsAssociation> orderByComparator) throws NoSuchAssociationException
      Returns the analytics associations before and after the current analytics association in the ordered set where companyId = ? and associationClassName = ? and associationClassPK = ?.
      Parameters:
      analyticsAssociationId - the primary key of the current analytics association
      companyId - the company ID
      associationClassName - the association class name
      associationClassPK - the association class pk
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next analytics association
      Throws:
      NoSuchAssociationException - if a analytics association with the primary key could not be found
      NoSuchAssociationException
    • removeByC_A_A

      public static void removeByC_A_A(long companyId, String associationClassName, long associationClassPK)
      Removes all the analytics associations where companyId = ? and associationClassName = ? and associationClassPK = ? from the database.
      Parameters:
      companyId - the company ID
      associationClassName - the association class name
      associationClassPK - the association class pk
    • countByC_A_A

      public static int countByC_A_A(long companyId, String associationClassName, long associationClassPK)
      Returns the number of analytics associations where companyId = ? and associationClassName = ? and associationClassPK = ?.
      Parameters:
      companyId - the company ID
      associationClassName - the association class name
      associationClassPK - the association class pk
      Returns:
      the number of matching analytics associations
    • cacheResult

      public static void cacheResult(AnalyticsAssociation analyticsAssociation)
      Caches the analytics association in the entity cache if it is enabled.
      Parameters:
      analyticsAssociation - the analytics association
    • cacheResult

      public static void cacheResult(List<AnalyticsAssociation> analyticsAssociations)
      Caches the analytics associations in the entity cache if it is enabled.
      Parameters:
      analyticsAssociations - the analytics associations
    • create

      public static AnalyticsAssociation create(long analyticsAssociationId)
      Creates a new analytics association with the primary key. Does not add the analytics association to the database.
      Parameters:
      analyticsAssociationId - the primary key for the new analytics association
      Returns:
      the new analytics association
    • remove

      public static AnalyticsAssociation remove(long analyticsAssociationId) throws NoSuchAssociationException
      Removes the analytics association with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      analyticsAssociationId - the primary key of the analytics association
      Returns:
      the analytics association that was removed
      Throws:
      NoSuchAssociationException - if a analytics association with the primary key could not be found
      NoSuchAssociationException
    • updateImpl

      public static AnalyticsAssociation updateImpl(AnalyticsAssociation analyticsAssociation)
    • findByPrimaryKey

      public static AnalyticsAssociation findByPrimaryKey(long analyticsAssociationId) throws NoSuchAssociationException
      Returns the analytics association with the primary key or throws a NoSuchAssociationException if it could not be found.
      Parameters:
      analyticsAssociationId - the primary key of the analytics association
      Returns:
      the analytics association
      Throws:
      NoSuchAssociationException - if a analytics association with the primary key could not be found
      NoSuchAssociationException
    • fetchByPrimaryKey

      public static AnalyticsAssociation fetchByPrimaryKey(long analyticsAssociationId)
      Returns the analytics association with the primary key or returns null if it could not be found.
      Parameters:
      analyticsAssociationId - the primary key of the analytics association
      Returns:
      the analytics association, or null if a analytics association with the primary key could not be found
    • findAll

      public static List<AnalyticsAssociation> findAll()
      Returns all the analytics associations.
      Returns:
      the analytics associations
    • findAll

      public static List<AnalyticsAssociation> findAll(int start, int end)
      Returns a range of all the analytics associations.

      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 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 AnalyticsAssociationModelImpl.

      Parameters:
      start - the lower bound of the range of analytics associations
      end - the upper bound of the range of analytics associations (not inclusive)
      Returns:
      the range of analytics associations
    • findAll

      public static List<AnalyticsAssociation> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsAssociation> orderByComparator)
      Returns an ordered range of all the analytics associations.

      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 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 AnalyticsAssociationModelImpl.

      Parameters:
      start - the lower bound of the range of analytics associations
      end - the upper bound of the range of analytics associations (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of analytics associations
    • findAll

      public static List<AnalyticsAssociation> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsAssociation> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the analytics associations.

      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 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 AnalyticsAssociationModelImpl.

      Parameters:
      start - the lower bound of the range of analytics associations
      end - the upper bound of the range of analytics associations (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of analytics associations
    • removeAll

      public static void removeAll()
      Removes all the analytics associations from the database.
    • countAll

      public static int countAll()
      Returns the number of analytics associations.
      Returns:
      the number of analytics associations
    • getPersistence

      public static AnalyticsAssociationPersistence getPersistence()
    • setPersistence

      public static void setPersistence(AnalyticsAssociationPersistence persistence)