/** * Copyright (c) 2000-present Liferay, Inc. All rights reserved. * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2.1 of the License, or (at your option) * any later version. * * This library is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more * details. */ package com.liferay.content.targeting.analytics.service.persistence; import com.liferay.content.targeting.analytics.model.AnalyticsEvent; import com.liferay.portal.kernel.bean.PortletBeanLocatorUtil; import com.liferay.portal.kernel.dao.orm.DynamicQuery; import com.liferay.portal.kernel.exception.SystemException; import com.liferay.portal.kernel.util.OrderByComparator; import com.liferay.portal.kernel.util.ReferenceRegistry; import com.liferay.portal.service.ServiceContext; import java.util.List; /** * The persistence utility for the analytics event service. This utility wraps {@link AnalyticsEventPersistenceImpl} 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. * * <p> * Caching information and settings can be found in <code>portal.properties</code> * </p> * * @author Brian Wing Shun Chan * @see AnalyticsEventPersistence * @see AnalyticsEventPersistenceImpl * @generated */ public class AnalyticsEventUtil { /* * NOTE FOR DEVELOPERS: * * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class. */ /** * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() */ public static void clearCache() { getPersistence().clearCache(); } /** * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) */ public static void clearCache(AnalyticsEvent analyticsEvent) { getPersistence().clearCache(analyticsEvent); } /** * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) */ public static long countWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException { return getPersistence().countWithDynamicQuery(dynamicQuery); } /** * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) */ public static List<AnalyticsEvent> findWithDynamicQuery( DynamicQuery dynamicQuery) throws SystemException { return getPersistence().findWithDynamicQuery(dynamicQuery); } /** * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) */ public static List<AnalyticsEvent> findWithDynamicQuery( DynamicQuery dynamicQuery, int start, int end) throws SystemException { return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); } /** * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) */ public static List<AnalyticsEvent> findWithDynamicQuery( DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator) throws SystemException { return getPersistence() .findWithDynamicQuery(dynamicQuery, start, end, orderByComparator); } /** * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel) */ public static AnalyticsEvent update(AnalyticsEvent analyticsEvent) throws SystemException { return getPersistence().update(analyticsEvent); } /** * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext) */ public static AnalyticsEvent update(AnalyticsEvent analyticsEvent, ServiceContext serviceContext) throws SystemException { return getPersistence().update(analyticsEvent, serviceContext); } /** * Returns all the analytics events where companyId = ?. * * @param companyId the company ID * @return the matching analytics events * @throws SystemException if a system exception occurred */ public static java.util.List<com.liferay.content.targeting.analytics.model.AnalyticsEvent> findByCompanyId( long companyId) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByCompanyId(companyId); } /** * Returns a range of all the analytics events where companyId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.content.targeting.analytics.model.impl.AnalyticsEventModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param companyId the company ID * @param start the lower bound of the range of analytics events * @param end the upper bound of the range of analytics events (not inclusive) * @return the range of matching analytics events * @throws SystemException if a system exception occurred */ public static java.util.List<com.liferay.content.targeting.analytics.model.AnalyticsEvent> findByCompanyId( long companyId, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByCompanyId(companyId, start, end); } /** * Returns an ordered range of all the analytics events where companyId = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.content.targeting.analytics.model.impl.AnalyticsEventModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param companyId the company ID * @param start the lower bound of the range of analytics events * @param end the upper bound of the range of analytics events (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching analytics events * @throws SystemException if a system exception occurred */ public static java.util.List<com.liferay.content.targeting.analytics.model.AnalyticsEvent> findByCompanyId( long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByCompanyId(companyId, start, end, orderByComparator); } /** * Returns the first analytics event in the ordered set where companyId = ?. * * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching analytics event * @throws com.liferay.content.targeting.analytics.NoSuchAnalyticsEventException if a matching analytics event could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.content.targeting.analytics.model.AnalyticsEvent findByCompanyId_First( long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.content.targeting.analytics.NoSuchAnalyticsEventException, com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByCompanyId_First(companyId, orderByComparator); } /** * Returns the first analytics event in the ordered set where companyId = ?. * * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching analytics event, or <code>null</code> if a matching analytics event could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.content.targeting.analytics.model.AnalyticsEvent fetchByCompanyId_First( long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .fetchByCompanyId_First(companyId, orderByComparator); } /** * Returns the last analytics event in the ordered set where companyId = ?. * * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching analytics event * @throws com.liferay.content.targeting.analytics.NoSuchAnalyticsEventException if a matching analytics event could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.content.targeting.analytics.model.AnalyticsEvent findByCompanyId_Last( long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.content.targeting.analytics.NoSuchAnalyticsEventException, com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByCompanyId_Last(companyId, orderByComparator); } /** * Returns the last analytics event in the ordered set where companyId = ?. * * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching analytics event, or <code>null</code> if a matching analytics event could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.content.targeting.analytics.model.AnalyticsEvent fetchByCompanyId_Last( long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .fetchByCompanyId_Last(companyId, orderByComparator); } /** * Returns the analytics events before and after the current analytics event in the ordered set where companyId = ?. * * @param analyticsEventId the primary key of the current analytics event * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next analytics event * @throws com.liferay.content.targeting.analytics.NoSuchAnalyticsEventException if a analytics event with the primary key could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.content.targeting.analytics.model.AnalyticsEvent[] findByCompanyId_PrevAndNext( long analyticsEventId, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.content.targeting.analytics.NoSuchAnalyticsEventException, com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByCompanyId_PrevAndNext(analyticsEventId, companyId, orderByComparator); } /** * Removes all the analytics events where companyId = ? from the database. * * @param companyId the company ID * @throws SystemException if a system exception occurred */ public static void removeByCompanyId(long companyId) throws com.liferay.portal.kernel.exception.SystemException { getPersistence().removeByCompanyId(companyId); } /** * Returns the number of analytics events where companyId = ?. * * @param companyId the company ID * @return the number of matching analytics events * @throws SystemException if a system exception occurred */ public static int countByCompanyId(long companyId) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().countByCompanyId(companyId); } /** * Returns all the analytics events where companyId = ? and createDate > ?. * * @param companyId the company ID * @param createDate the create date * @return the matching analytics events * @throws SystemException if a system exception occurred */ public static java.util.List<com.liferay.content.targeting.analytics.model.AnalyticsEvent> findByC_GtD( long companyId, java.util.Date createDate) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByC_GtD(companyId, createDate); } /** * Returns a range of all the analytics events where companyId = ? and createDate > ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.content.targeting.analytics.model.impl.AnalyticsEventModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param companyId the company ID * @param createDate the create date * @param start the lower bound of the range of analytics events * @param end the upper bound of the range of analytics events (not inclusive) * @return the range of matching analytics events * @throws SystemException if a system exception occurred */ public static java.util.List<com.liferay.content.targeting.analytics.model.AnalyticsEvent> findByC_GtD( long companyId, java.util.Date createDate, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByC_GtD(companyId, createDate, start, end); } /** * Returns an ordered range of all the analytics events where companyId = ? and createDate > ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.content.targeting.analytics.model.impl.AnalyticsEventModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param companyId the company ID * @param createDate the create date * @param start the lower bound of the range of analytics events * @param end the upper bound of the range of analytics events (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching analytics events * @throws SystemException if a system exception occurred */ public static java.util.List<com.liferay.content.targeting.analytics.model.AnalyticsEvent> findByC_GtD( long companyId, java.util.Date createDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByC_GtD(companyId, createDate, start, end, orderByComparator); } /** * Returns the first analytics event in the ordered set where companyId = ? and createDate > ?. * * @param companyId the company ID * @param createDate the create date * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching analytics event * @throws com.liferay.content.targeting.analytics.NoSuchAnalyticsEventException if a matching analytics event could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.content.targeting.analytics.model.AnalyticsEvent findByC_GtD_First( long companyId, java.util.Date createDate, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.content.targeting.analytics.NoSuchAnalyticsEventException, com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByC_GtD_First(companyId, createDate, orderByComparator); } /** * Returns the first analytics event in the ordered set where companyId = ? and createDate > ?. * * @param companyId the company ID * @param createDate the create date * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching analytics event, or <code>null</code> if a matching analytics event could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.content.targeting.analytics.model.AnalyticsEvent fetchByC_GtD_First( long companyId, java.util.Date createDate, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .fetchByC_GtD_First(companyId, createDate, orderByComparator); } /** * Returns the last analytics event in the ordered set where companyId = ? and createDate > ?. * * @param companyId the company ID * @param createDate the create date * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching analytics event * @throws com.liferay.content.targeting.analytics.NoSuchAnalyticsEventException if a matching analytics event could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.content.targeting.analytics.model.AnalyticsEvent findByC_GtD_Last( long companyId, java.util.Date createDate, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.content.targeting.analytics.NoSuchAnalyticsEventException, com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByC_GtD_Last(companyId, createDate, orderByComparator); } /** * Returns the last analytics event in the ordered set where companyId = ? and createDate > ?. * * @param companyId the company ID * @param createDate the create date * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching analytics event, or <code>null</code> if a matching analytics event could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.content.targeting.analytics.model.AnalyticsEvent fetchByC_GtD_Last( long companyId, java.util.Date createDate, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .fetchByC_GtD_Last(companyId, createDate, orderByComparator); } /** * Returns the analytics events before and after the current analytics event in the ordered set where companyId = ? and createDate > ?. * * @param analyticsEventId the primary key of the current analytics event * @param companyId the company ID * @param createDate the create date * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next analytics event * @throws com.liferay.content.targeting.analytics.NoSuchAnalyticsEventException if a analytics event with the primary key could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.content.targeting.analytics.model.AnalyticsEvent[] findByC_GtD_PrevAndNext( long analyticsEventId, long companyId, java.util.Date createDate, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.content.targeting.analytics.NoSuchAnalyticsEventException, com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByC_GtD_PrevAndNext(analyticsEventId, companyId, createDate, orderByComparator); } /** * Removes all the analytics events where companyId = ? and createDate > ? from the database. * * @param companyId the company ID * @param createDate the create date * @throws SystemException if a system exception occurred */ public static void removeByC_GtD(long companyId, java.util.Date createDate) throws com.liferay.portal.kernel.exception.SystemException { getPersistence().removeByC_GtD(companyId, createDate); } /** * Returns the number of analytics events where companyId = ? and createDate > ?. * * @param companyId the company ID * @param createDate the create date * @return the number of matching analytics events * @throws SystemException if a system exception occurred */ public static int countByC_GtD(long companyId, java.util.Date createDate) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().countByC_GtD(companyId, createDate); } /** * Returns all the analytics events where companyId = ? and createDate < ?. * * @param companyId the company ID * @param createDate the create date * @return the matching analytics events * @throws SystemException if a system exception occurred */ public static java.util.List<com.liferay.content.targeting.analytics.model.AnalyticsEvent> findByC_LtD( long companyId, java.util.Date createDate) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByC_LtD(companyId, createDate); } /** * Returns a range of all the analytics events where companyId = ? and createDate < ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.content.targeting.analytics.model.impl.AnalyticsEventModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param companyId the company ID * @param createDate the create date * @param start the lower bound of the range of analytics events * @param end the upper bound of the range of analytics events (not inclusive) * @return the range of matching analytics events * @throws SystemException if a system exception occurred */ public static java.util.List<com.liferay.content.targeting.analytics.model.AnalyticsEvent> findByC_LtD( long companyId, java.util.Date createDate, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByC_LtD(companyId, createDate, start, end); } /** * Returns an ordered range of all the analytics events where companyId = ? and createDate < ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.content.targeting.analytics.model.impl.AnalyticsEventModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param companyId the company ID * @param createDate the create date * @param start the lower bound of the range of analytics events * @param end the upper bound of the range of analytics events (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching analytics events * @throws SystemException if a system exception occurred */ public static java.util.List<com.liferay.content.targeting.analytics.model.AnalyticsEvent> findByC_LtD( long companyId, java.util.Date createDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByC_LtD(companyId, createDate, start, end, orderByComparator); } /** * Returns the first analytics event in the ordered set where companyId = ? and createDate < ?. * * @param companyId the company ID * @param createDate the create date * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching analytics event * @throws com.liferay.content.targeting.analytics.NoSuchAnalyticsEventException if a matching analytics event could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.content.targeting.analytics.model.AnalyticsEvent findByC_LtD_First( long companyId, java.util.Date createDate, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.content.targeting.analytics.NoSuchAnalyticsEventException, com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByC_LtD_First(companyId, createDate, orderByComparator); } /** * Returns the first analytics event in the ordered set where companyId = ? and createDate < ?. * * @param companyId the company ID * @param createDate the create date * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching analytics event, or <code>null</code> if a matching analytics event could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.content.targeting.analytics.model.AnalyticsEvent fetchByC_LtD_First( long companyId, java.util.Date createDate, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .fetchByC_LtD_First(companyId, createDate, orderByComparator); } /** * Returns the last analytics event in the ordered set where companyId = ? and createDate < ?. * * @param companyId the company ID * @param createDate the create date * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching analytics event * @throws com.liferay.content.targeting.analytics.NoSuchAnalyticsEventException if a matching analytics event could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.content.targeting.analytics.model.AnalyticsEvent findByC_LtD_Last( long companyId, java.util.Date createDate, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.content.targeting.analytics.NoSuchAnalyticsEventException, com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByC_LtD_Last(companyId, createDate, orderByComparator); } /** * Returns the last analytics event in the ordered set where companyId = ? and createDate < ?. * * @param companyId the company ID * @param createDate the create date * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching analytics event, or <code>null</code> if a matching analytics event could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.content.targeting.analytics.model.AnalyticsEvent fetchByC_LtD_Last( long companyId, java.util.Date createDate, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .fetchByC_LtD_Last(companyId, createDate, orderByComparator); } /** * Returns the analytics events before and after the current analytics event in the ordered set where companyId = ? and createDate < ?. * * @param analyticsEventId the primary key of the current analytics event * @param companyId the company ID * @param createDate the create date * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next analytics event * @throws com.liferay.content.targeting.analytics.NoSuchAnalyticsEventException if a analytics event with the primary key could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.content.targeting.analytics.model.AnalyticsEvent[] findByC_LtD_PrevAndNext( long analyticsEventId, long companyId, java.util.Date createDate, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.content.targeting.analytics.NoSuchAnalyticsEventException, com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByC_LtD_PrevAndNext(analyticsEventId, companyId, createDate, orderByComparator); } /** * Removes all the analytics events where companyId = ? and createDate < ? from the database. * * @param companyId the company ID * @param createDate the create date * @throws SystemException if a system exception occurred */ public static void removeByC_LtD(long companyId, java.util.Date createDate) throws com.liferay.portal.kernel.exception.SystemException { getPersistence().removeByC_LtD(companyId, createDate); } /** * Returns the number of analytics events where companyId = ? and createDate < ?. * * @param companyId the company ID * @param createDate the create date * @return the number of matching analytics events * @throws SystemException if a system exception occurred */ public static int countByC_LtD(long companyId, java.util.Date createDate) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().countByC_LtD(companyId, createDate); } /** * Returns all the analytics events where classPK ≠ ? and createDate > ?. * * @param classPK the class p k * @param createDate the create date * @return the matching analytics events * @throws SystemException if a system exception occurred */ public static java.util.List<com.liferay.content.targeting.analytics.model.AnalyticsEvent> findByNotC_GtD( long classPK, java.util.Date createDate) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByNotC_GtD(classPK, createDate); } /** * Returns a range of all the analytics events where classPK ≠ ? and createDate > ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.content.targeting.analytics.model.impl.AnalyticsEventModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param classPK the class p k * @param createDate the create date * @param start the lower bound of the range of analytics events * @param end the upper bound of the range of analytics events (not inclusive) * @return the range of matching analytics events * @throws SystemException if a system exception occurred */ public static java.util.List<com.liferay.content.targeting.analytics.model.AnalyticsEvent> findByNotC_GtD( long classPK, java.util.Date createDate, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByNotC_GtD(classPK, createDate, start, end); } /** * Returns an ordered range of all the analytics events where classPK ≠ ? and createDate > ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.content.targeting.analytics.model.impl.AnalyticsEventModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param classPK the class p k * @param createDate the create date * @param start the lower bound of the range of analytics events * @param end the upper bound of the range of analytics events (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching analytics events * @throws SystemException if a system exception occurred */ public static java.util.List<com.liferay.content.targeting.analytics.model.AnalyticsEvent> findByNotC_GtD( long classPK, java.util.Date createDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByNotC_GtD(classPK, createDate, start, end, orderByComparator); } /** * Returns the first analytics event in the ordered set where classPK ≠ ? and createDate > ?. * * @param classPK the class p k * @param createDate the create date * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching analytics event * @throws com.liferay.content.targeting.analytics.NoSuchAnalyticsEventException if a matching analytics event could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.content.targeting.analytics.model.AnalyticsEvent findByNotC_GtD_First( long classPK, java.util.Date createDate, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.content.targeting.analytics.NoSuchAnalyticsEventException, com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByNotC_GtD_First(classPK, createDate, orderByComparator); } /** * Returns the first analytics event in the ordered set where classPK ≠ ? and createDate > ?. * * @param classPK the class p k * @param createDate the create date * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching analytics event, or <code>null</code> if a matching analytics event could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.content.targeting.analytics.model.AnalyticsEvent fetchByNotC_GtD_First( long classPK, java.util.Date createDate, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .fetchByNotC_GtD_First(classPK, createDate, orderByComparator); } /** * Returns the last analytics event in the ordered set where classPK ≠ ? and createDate > ?. * * @param classPK the class p k * @param createDate the create date * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching analytics event * @throws com.liferay.content.targeting.analytics.NoSuchAnalyticsEventException if a matching analytics event could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.content.targeting.analytics.model.AnalyticsEvent findByNotC_GtD_Last( long classPK, java.util.Date createDate, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.content.targeting.analytics.NoSuchAnalyticsEventException, com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByNotC_GtD_Last(classPK, createDate, orderByComparator); } /** * Returns the last analytics event in the ordered set where classPK ≠ ? and createDate > ?. * * @param classPK the class p k * @param createDate the create date * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching analytics event, or <code>null</code> if a matching analytics event could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.content.targeting.analytics.model.AnalyticsEvent fetchByNotC_GtD_Last( long classPK, java.util.Date createDate, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .fetchByNotC_GtD_Last(classPK, createDate, orderByComparator); } /** * Returns the analytics events before and after the current analytics event in the ordered set where classPK ≠ ? and createDate > ?. * * @param analyticsEventId the primary key of the current analytics event * @param classPK the class p k * @param createDate the create date * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next analytics event * @throws com.liferay.content.targeting.analytics.NoSuchAnalyticsEventException if a analytics event with the primary key could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.content.targeting.analytics.model.AnalyticsEvent[] findByNotC_GtD_PrevAndNext( long analyticsEventId, long classPK, java.util.Date createDate, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.content.targeting.analytics.NoSuchAnalyticsEventException, com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByNotC_GtD_PrevAndNext(analyticsEventId, classPK, createDate, orderByComparator); } /** * Removes all the analytics events where classPK ≠ ? and createDate > ? from the database. * * @param classPK the class p k * @param createDate the create date * @throws SystemException if a system exception occurred */ public static void removeByNotC_GtD(long classPK, java.util.Date createDate) throws com.liferay.portal.kernel.exception.SystemException { getPersistence().removeByNotC_GtD(classPK, createDate); } /** * Returns the number of analytics events where classPK ≠ ? and createDate > ?. * * @param classPK the class p k * @param createDate the create date * @return the number of matching analytics events * @throws SystemException if a system exception occurred */ public static int countByNotC_GtD(long classPK, java.util.Date createDate) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().countByNotC_GtD(classPK, createDate); } /** * Returns all the analytics events where className = ? and classPK = ? and eventType = ?. * * @param className the class name * @param classPK the class p k * @param eventType the event type * @return the matching analytics events * @throws SystemException if a system exception occurred */ public static java.util.List<com.liferay.content.targeting.analytics.model.AnalyticsEvent> findByC_C_E( java.lang.String className, long classPK, java.lang.String eventType) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByC_C_E(className, classPK, eventType); } /** * Returns a range of all the analytics events where className = ? and classPK = ? and eventType = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.content.targeting.analytics.model.impl.AnalyticsEventModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param className the class name * @param classPK the class p k * @param eventType the event type * @param start the lower bound of the range of analytics events * @param end the upper bound of the range of analytics events (not inclusive) * @return the range of matching analytics events * @throws SystemException if a system exception occurred */ public static java.util.List<com.liferay.content.targeting.analytics.model.AnalyticsEvent> findByC_C_E( java.lang.String className, long classPK, java.lang.String eventType, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByC_C_E(className, classPK, eventType, start, end); } /** * Returns an ordered range of all the analytics events where className = ? and classPK = ? and eventType = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.content.targeting.analytics.model.impl.AnalyticsEventModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param className the class name * @param classPK the class p k * @param eventType the event type * @param start the lower bound of the range of analytics events * @param end the upper bound of the range of analytics events (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching analytics events * @throws SystemException if a system exception occurred */ public static java.util.List<com.liferay.content.targeting.analytics.model.AnalyticsEvent> findByC_C_E( java.lang.String className, long classPK, java.lang.String eventType, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByC_C_E(className, classPK, eventType, start, end, orderByComparator); } /** * Returns the first analytics event in the ordered set where className = ? and classPK = ? and eventType = ?. * * @param className the class name * @param classPK the class p k * @param eventType the event type * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching analytics event * @throws com.liferay.content.targeting.analytics.NoSuchAnalyticsEventException if a matching analytics event could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.content.targeting.analytics.model.AnalyticsEvent findByC_C_E_First( java.lang.String className, long classPK, java.lang.String eventType, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.content.targeting.analytics.NoSuchAnalyticsEventException, com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByC_C_E_First(className, classPK, eventType, orderByComparator); } /** * Returns the first analytics event in the ordered set where className = ? and classPK = ? and eventType = ?. * * @param className the class name * @param classPK the class p k * @param eventType the event type * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching analytics event, or <code>null</code> if a matching analytics event could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.content.targeting.analytics.model.AnalyticsEvent fetchByC_C_E_First( java.lang.String className, long classPK, java.lang.String eventType, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .fetchByC_C_E_First(className, classPK, eventType, orderByComparator); } /** * Returns the last analytics event in the ordered set where className = ? and classPK = ? and eventType = ?. * * @param className the class name * @param classPK the class p k * @param eventType the event type * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching analytics event * @throws com.liferay.content.targeting.analytics.NoSuchAnalyticsEventException if a matching analytics event could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.content.targeting.analytics.model.AnalyticsEvent findByC_C_E_Last( java.lang.String className, long classPK, java.lang.String eventType, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.content.targeting.analytics.NoSuchAnalyticsEventException, com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByC_C_E_Last(className, classPK, eventType, orderByComparator); } /** * Returns the last analytics event in the ordered set where className = ? and classPK = ? and eventType = ?. * * @param className the class name * @param classPK the class p k * @param eventType the event type * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching analytics event, or <code>null</code> if a matching analytics event could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.content.targeting.analytics.model.AnalyticsEvent fetchByC_C_E_Last( java.lang.String className, long classPK, java.lang.String eventType, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .fetchByC_C_E_Last(className, classPK, eventType, orderByComparator); } /** * Returns the analytics events before and after the current analytics event in the ordered set where className = ? and classPK = ? and eventType = ?. * * @param analyticsEventId the primary key of the current analytics event * @param className the class name * @param classPK the class p k * @param eventType the event type * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next analytics event * @throws com.liferay.content.targeting.analytics.NoSuchAnalyticsEventException if a analytics event with the primary key could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.content.targeting.analytics.model.AnalyticsEvent[] findByC_C_E_PrevAndNext( long analyticsEventId, java.lang.String className, long classPK, java.lang.String eventType, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.content.targeting.analytics.NoSuchAnalyticsEventException, com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByC_C_E_PrevAndNext(analyticsEventId, className, classPK, eventType, orderByComparator); } /** * Removes all the analytics events where className = ? and classPK = ? and eventType = ? from the database. * * @param className the class name * @param classPK the class p k * @param eventType the event type * @throws SystemException if a system exception occurred */ public static void removeByC_C_E(java.lang.String className, long classPK, java.lang.String eventType) throws com.liferay.portal.kernel.exception.SystemException { getPersistence().removeByC_C_E(className, classPK, eventType); } /** * Returns the number of analytics events where className = ? and classPK = ? and eventType = ?. * * @param className the class name * @param classPK the class p k * @param eventType the event type * @return the number of matching analytics events * @throws SystemException if a system exception occurred */ public static int countByC_C_E(java.lang.String className, long classPK, java.lang.String eventType) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().countByC_C_E(className, classPK, eventType); } /** * Returns all the analytics events where elementId = ? and eventType = ? and createDate > ?. * * @param elementId the element ID * @param eventType the event type * @param createDate the create date * @return the matching analytics events * @throws SystemException if a system exception occurred */ public static java.util.List<com.liferay.content.targeting.analytics.model.AnalyticsEvent> findByE_E_GtD( java.lang.String elementId, java.lang.String eventType, java.util.Date createDate) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByE_E_GtD(elementId, eventType, createDate); } /** * Returns a range of all the analytics events where elementId = ? and eventType = ? and createDate > ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.content.targeting.analytics.model.impl.AnalyticsEventModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param elementId the element ID * @param eventType the event type * @param createDate the create date * @param start the lower bound of the range of analytics events * @param end the upper bound of the range of analytics events (not inclusive) * @return the range of matching analytics events * @throws SystemException if a system exception occurred */ public static java.util.List<com.liferay.content.targeting.analytics.model.AnalyticsEvent> findByE_E_GtD( java.lang.String elementId, java.lang.String eventType, java.util.Date createDate, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByE_E_GtD(elementId, eventType, createDate, start, end); } /** * Returns an ordered range of all the analytics events where elementId = ? and eventType = ? and createDate > ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.content.targeting.analytics.model.impl.AnalyticsEventModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param elementId the element ID * @param eventType the event type * @param createDate the create date * @param start the lower bound of the range of analytics events * @param end the upper bound of the range of analytics events (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching analytics events * @throws SystemException if a system exception occurred */ public static java.util.List<com.liferay.content.targeting.analytics.model.AnalyticsEvent> findByE_E_GtD( java.lang.String elementId, java.lang.String eventType, java.util.Date createDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByE_E_GtD(elementId, eventType, createDate, start, end, orderByComparator); } /** * Returns the first analytics event in the ordered set where elementId = ? and eventType = ? and createDate > ?. * * @param elementId the element ID * @param eventType the event type * @param createDate the create date * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching analytics event * @throws com.liferay.content.targeting.analytics.NoSuchAnalyticsEventException if a matching analytics event could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.content.targeting.analytics.model.AnalyticsEvent findByE_E_GtD_First( java.lang.String elementId, java.lang.String eventType, java.util.Date createDate, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.content.targeting.analytics.NoSuchAnalyticsEventException, com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByE_E_GtD_First(elementId, eventType, createDate, orderByComparator); } /** * Returns the first analytics event in the ordered set where elementId = ? and eventType = ? and createDate > ?. * * @param elementId the element ID * @param eventType the event type * @param createDate the create date * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching analytics event, or <code>null</code> if a matching analytics event could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.content.targeting.analytics.model.AnalyticsEvent fetchByE_E_GtD_First( java.lang.String elementId, java.lang.String eventType, java.util.Date createDate, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .fetchByE_E_GtD_First(elementId, eventType, createDate, orderByComparator); } /** * Returns the last analytics event in the ordered set where elementId = ? and eventType = ? and createDate > ?. * * @param elementId the element ID * @param eventType the event type * @param createDate the create date * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching analytics event * @throws com.liferay.content.targeting.analytics.NoSuchAnalyticsEventException if a matching analytics event could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.content.targeting.analytics.model.AnalyticsEvent findByE_E_GtD_Last( java.lang.String elementId, java.lang.String eventType, java.util.Date createDate, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.content.targeting.analytics.NoSuchAnalyticsEventException, com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByE_E_GtD_Last(elementId, eventType, createDate, orderByComparator); } /** * Returns the last analytics event in the ordered set where elementId = ? and eventType = ? and createDate > ?. * * @param elementId the element ID * @param eventType the event type * @param createDate the create date * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching analytics event, or <code>null</code> if a matching analytics event could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.content.targeting.analytics.model.AnalyticsEvent fetchByE_E_GtD_Last( java.lang.String elementId, java.lang.String eventType, java.util.Date createDate, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .fetchByE_E_GtD_Last(elementId, eventType, createDate, orderByComparator); } /** * Returns the analytics events before and after the current analytics event in the ordered set where elementId = ? and eventType = ? and createDate > ?. * * @param analyticsEventId the primary key of the current analytics event * @param elementId the element ID * @param eventType the event type * @param createDate the create date * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next analytics event * @throws com.liferay.content.targeting.analytics.NoSuchAnalyticsEventException if a analytics event with the primary key could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.content.targeting.analytics.model.AnalyticsEvent[] findByE_E_GtD_PrevAndNext( long analyticsEventId, java.lang.String elementId, java.lang.String eventType, java.util.Date createDate, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.content.targeting.analytics.NoSuchAnalyticsEventException, com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByE_E_GtD_PrevAndNext(analyticsEventId, elementId, eventType, createDate, orderByComparator); } /** * Removes all the analytics events where elementId = ? and eventType = ? and createDate > ? from the database. * * @param elementId the element ID * @param eventType the event type * @param createDate the create date * @throws SystemException if a system exception occurred */ public static void removeByE_E_GtD(java.lang.String elementId, java.lang.String eventType, java.util.Date createDate) throws com.liferay.portal.kernel.exception.SystemException { getPersistence().removeByE_E_GtD(elementId, eventType, createDate); } /** * Returns the number of analytics events where elementId = ? and eventType = ? and createDate > ?. * * @param elementId the element ID * @param eventType the event type * @param createDate the create date * @return the number of matching analytics events * @throws SystemException if a system exception occurred */ public static int countByE_E_GtD(java.lang.String elementId, java.lang.String eventType, java.util.Date createDate) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().countByE_E_GtD(elementId, eventType, createDate); } /** * Returns all the analytics events where anonymousUserId = ? and className = ? and classPK = ? and eventType = ?. * * @param anonymousUserId the anonymous user ID * @param className the class name * @param classPK the class p k * @param eventType the event type * @return the matching analytics events * @throws SystemException if a system exception occurred */ public static java.util.List<com.liferay.content.targeting.analytics.model.AnalyticsEvent> findByA_C_C_E( long anonymousUserId, java.lang.String className, long classPK, java.lang.String eventType) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByA_C_C_E(anonymousUserId, className, classPK, eventType); } /** * Returns a range of all the analytics events where anonymousUserId = ? and className = ? and classPK = ? and eventType = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.content.targeting.analytics.model.impl.AnalyticsEventModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param anonymousUserId the anonymous user ID * @param className the class name * @param classPK the class p k * @param eventType the event type * @param start the lower bound of the range of analytics events * @param end the upper bound of the range of analytics events (not inclusive) * @return the range of matching analytics events * @throws SystemException if a system exception occurred */ public static java.util.List<com.liferay.content.targeting.analytics.model.AnalyticsEvent> findByA_C_C_E( long anonymousUserId, java.lang.String className, long classPK, java.lang.String eventType, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByA_C_C_E(anonymousUserId, className, classPK, eventType, start, end); } /** * Returns an ordered range of all the analytics events where anonymousUserId = ? and className = ? and classPK = ? and eventType = ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.content.targeting.analytics.model.impl.AnalyticsEventModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param anonymousUserId the anonymous user ID * @param className the class name * @param classPK the class p k * @param eventType the event type * @param start the lower bound of the range of analytics events * @param end the upper bound of the range of analytics events (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching analytics events * @throws SystemException if a system exception occurred */ public static java.util.List<com.liferay.content.targeting.analytics.model.AnalyticsEvent> findByA_C_C_E( long anonymousUserId, java.lang.String className, long classPK, java.lang.String eventType, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByA_C_C_E(anonymousUserId, className, classPK, eventType, start, end, orderByComparator); } /** * Returns the first analytics event in the ordered set where anonymousUserId = ? and className = ? and classPK = ? and eventType = ?. * * @param anonymousUserId the anonymous user ID * @param className the class name * @param classPK the class p k * @param eventType the event type * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching analytics event * @throws com.liferay.content.targeting.analytics.NoSuchAnalyticsEventException if a matching analytics event could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.content.targeting.analytics.model.AnalyticsEvent findByA_C_C_E_First( long anonymousUserId, java.lang.String className, long classPK, java.lang.String eventType, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.content.targeting.analytics.NoSuchAnalyticsEventException, com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByA_C_C_E_First(anonymousUserId, className, classPK, eventType, orderByComparator); } /** * Returns the first analytics event in the ordered set where anonymousUserId = ? and className = ? and classPK = ? and eventType = ?. * * @param anonymousUserId the anonymous user ID * @param className the class name * @param classPK the class p k * @param eventType the event type * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching analytics event, or <code>null</code> if a matching analytics event could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.content.targeting.analytics.model.AnalyticsEvent fetchByA_C_C_E_First( long anonymousUserId, java.lang.String className, long classPK, java.lang.String eventType, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .fetchByA_C_C_E_First(anonymousUserId, className, classPK, eventType, orderByComparator); } /** * Returns the last analytics event in the ordered set where anonymousUserId = ? and className = ? and classPK = ? and eventType = ?. * * @param anonymousUserId the anonymous user ID * @param className the class name * @param classPK the class p k * @param eventType the event type * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching analytics event * @throws com.liferay.content.targeting.analytics.NoSuchAnalyticsEventException if a matching analytics event could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.content.targeting.analytics.model.AnalyticsEvent findByA_C_C_E_Last( long anonymousUserId, java.lang.String className, long classPK, java.lang.String eventType, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.content.targeting.analytics.NoSuchAnalyticsEventException, com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByA_C_C_E_Last(anonymousUserId, className, classPK, eventType, orderByComparator); } /** * Returns the last analytics event in the ordered set where anonymousUserId = ? and className = ? and classPK = ? and eventType = ?. * * @param anonymousUserId the anonymous user ID * @param className the class name * @param classPK the class p k * @param eventType the event type * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching analytics event, or <code>null</code> if a matching analytics event could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.content.targeting.analytics.model.AnalyticsEvent fetchByA_C_C_E_Last( long anonymousUserId, java.lang.String className, long classPK, java.lang.String eventType, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .fetchByA_C_C_E_Last(anonymousUserId, className, classPK, eventType, orderByComparator); } /** * Returns the analytics events before and after the current analytics event in the ordered set where anonymousUserId = ? and className = ? and classPK = ? and eventType = ?. * * @param analyticsEventId the primary key of the current analytics event * @param anonymousUserId the anonymous user ID * @param className the class name * @param classPK the class p k * @param eventType the event type * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next analytics event * @throws com.liferay.content.targeting.analytics.NoSuchAnalyticsEventException if a analytics event with the primary key could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.content.targeting.analytics.model.AnalyticsEvent[] findByA_C_C_E_PrevAndNext( long analyticsEventId, long anonymousUserId, java.lang.String className, long classPK, java.lang.String eventType, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.content.targeting.analytics.NoSuchAnalyticsEventException, com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByA_C_C_E_PrevAndNext(analyticsEventId, anonymousUserId, className, classPK, eventType, orderByComparator); } /** * Removes all the analytics events where anonymousUserId = ? and className = ? and classPK = ? and eventType = ? from the database. * * @param anonymousUserId the anonymous user ID * @param className the class name * @param classPK the class p k * @param eventType the event type * @throws SystemException if a system exception occurred */ public static void removeByA_C_C_E(long anonymousUserId, java.lang.String className, long classPK, java.lang.String eventType) throws com.liferay.portal.kernel.exception.SystemException { getPersistence() .removeByA_C_C_E(anonymousUserId, className, classPK, eventType); } /** * Returns the number of analytics events where anonymousUserId = ? and className = ? and classPK = ? and eventType = ?. * * @param anonymousUserId the anonymous user ID * @param className the class name * @param classPK the class p k * @param eventType the event type * @return the number of matching analytics events * @throws SystemException if a system exception occurred */ public static int countByA_C_C_E(long anonymousUserId, java.lang.String className, long classPK, java.lang.String eventType) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .countByA_C_C_E(anonymousUserId, className, classPK, eventType); } /** * Returns all the analytics events where className = ? and classPK = ? and eventType = ? and createDate > ?. * * @param className the class name * @param classPK the class p k * @param eventType the event type * @param createDate the create date * @return the matching analytics events * @throws SystemException if a system exception occurred */ public static java.util.List<com.liferay.content.targeting.analytics.model.AnalyticsEvent> findByC_C_E_GtD( java.lang.String className, long classPK, java.lang.String eventType, java.util.Date createDate) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByC_C_E_GtD(className, classPK, eventType, createDate); } /** * Returns a range of all the analytics events where className = ? and classPK = ? and eventType = ? and createDate > ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.content.targeting.analytics.model.impl.AnalyticsEventModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param className the class name * @param classPK the class p k * @param eventType the event type * @param createDate the create date * @param start the lower bound of the range of analytics events * @param end the upper bound of the range of analytics events (not inclusive) * @return the range of matching analytics events * @throws SystemException if a system exception occurred */ public static java.util.List<com.liferay.content.targeting.analytics.model.AnalyticsEvent> findByC_C_E_GtD( java.lang.String className, long classPK, java.lang.String eventType, java.util.Date createDate, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByC_C_E_GtD(className, classPK, eventType, createDate, start, end); } /** * Returns an ordered range of all the analytics events where className = ? and classPK = ? and eventType = ? and createDate > ?. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.content.targeting.analytics.model.impl.AnalyticsEventModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param className the class name * @param classPK the class p k * @param eventType the event type * @param createDate the create date * @param start the lower bound of the range of analytics events * @param end the upper bound of the range of analytics events (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of matching analytics events * @throws SystemException if a system exception occurred */ public static java.util.List<com.liferay.content.targeting.analytics.model.AnalyticsEvent> findByC_C_E_GtD( java.lang.String className, long classPK, java.lang.String eventType, java.util.Date createDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByC_C_E_GtD(className, classPK, eventType, createDate, start, end, orderByComparator); } /** * Returns the first analytics event in the ordered set where className = ? and classPK = ? and eventType = ? and createDate > ?. * * @param className the class name * @param classPK the class p k * @param eventType the event type * @param createDate the create date * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching analytics event * @throws com.liferay.content.targeting.analytics.NoSuchAnalyticsEventException if a matching analytics event could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.content.targeting.analytics.model.AnalyticsEvent findByC_C_E_GtD_First( java.lang.String className, long classPK, java.lang.String eventType, java.util.Date createDate, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.content.targeting.analytics.NoSuchAnalyticsEventException, com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByC_C_E_GtD_First(className, classPK, eventType, createDate, orderByComparator); } /** * Returns the first analytics event in the ordered set where className = ? and classPK = ? and eventType = ? and createDate > ?. * * @param className the class name * @param classPK the class p k * @param eventType the event type * @param createDate the create date * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the first matching analytics event, or <code>null</code> if a matching analytics event could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.content.targeting.analytics.model.AnalyticsEvent fetchByC_C_E_GtD_First( java.lang.String className, long classPK, java.lang.String eventType, java.util.Date createDate, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .fetchByC_C_E_GtD_First(className, classPK, eventType, createDate, orderByComparator); } /** * Returns the last analytics event in the ordered set where className = ? and classPK = ? and eventType = ? and createDate > ?. * * @param className the class name * @param classPK the class p k * @param eventType the event type * @param createDate the create date * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching analytics event * @throws com.liferay.content.targeting.analytics.NoSuchAnalyticsEventException if a matching analytics event could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.content.targeting.analytics.model.AnalyticsEvent findByC_C_E_GtD_Last( java.lang.String className, long classPK, java.lang.String eventType, java.util.Date createDate, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.content.targeting.analytics.NoSuchAnalyticsEventException, com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByC_C_E_GtD_Last(className, classPK, eventType, createDate, orderByComparator); } /** * Returns the last analytics event in the ordered set where className = ? and classPK = ? and eventType = ? and createDate > ?. * * @param className the class name * @param classPK the class p k * @param eventType the event type * @param createDate the create date * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching analytics event, or <code>null</code> if a matching analytics event could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.content.targeting.analytics.model.AnalyticsEvent fetchByC_C_E_GtD_Last( java.lang.String className, long classPK, java.lang.String eventType, java.util.Date createDate, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .fetchByC_C_E_GtD_Last(className, classPK, eventType, createDate, orderByComparator); } /** * Returns the analytics events before and after the current analytics event in the ordered set where className = ? and classPK = ? and eventType = ? and createDate > ?. * * @param analyticsEventId the primary key of the current analytics event * @param className the class name * @param classPK the class p k * @param eventType the event type * @param createDate the create date * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the previous, current, and next analytics event * @throws com.liferay.content.targeting.analytics.NoSuchAnalyticsEventException if a analytics event with the primary key could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.content.targeting.analytics.model.AnalyticsEvent[] findByC_C_E_GtD_PrevAndNext( long analyticsEventId, java.lang.String className, long classPK, java.lang.String eventType, java.util.Date createDate, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.content.targeting.analytics.NoSuchAnalyticsEventException, com.liferay.portal.kernel.exception.SystemException { return getPersistence() .findByC_C_E_GtD_PrevAndNext(analyticsEventId, className, classPK, eventType, createDate, orderByComparator); } /** * Removes all the analytics events where className = ? and classPK = ? and eventType = ? and createDate > ? from the database. * * @param className the class name * @param classPK the class p k * @param eventType the event type * @param createDate the create date * @throws SystemException if a system exception occurred */ public static void removeByC_C_E_GtD(java.lang.String className, long classPK, java.lang.String eventType, java.util.Date createDate) throws com.liferay.portal.kernel.exception.SystemException { getPersistence() .removeByC_C_E_GtD(className, classPK, eventType, createDate); } /** * Returns the number of analytics events where className = ? and classPK = ? and eventType = ? and createDate > ?. * * @param className the class name * @param classPK the class p k * @param eventType the event type * @param createDate the create date * @return the number of matching analytics events * @throws SystemException if a system exception occurred */ public static int countByC_C_E_GtD(java.lang.String className, long classPK, java.lang.String eventType, java.util.Date createDate) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() .countByC_C_E_GtD(className, classPK, eventType, createDate); } /** * Caches the analytics event in the entity cache if it is enabled. * * @param analyticsEvent the analytics event */ public static void cacheResult( com.liferay.content.targeting.analytics.model.AnalyticsEvent analyticsEvent) { getPersistence().cacheResult(analyticsEvent); } /** * Caches the analytics events in the entity cache if it is enabled. * * @param analyticsEvents the analytics events */ public static void cacheResult( java.util.List<com.liferay.content.targeting.analytics.model.AnalyticsEvent> analyticsEvents) { getPersistence().cacheResult(analyticsEvents); } /** * Creates a new analytics event with the primary key. Does not add the analytics event to the database. * * @param analyticsEventId the primary key for the new analytics event * @return the new analytics event */ public static com.liferay.content.targeting.analytics.model.AnalyticsEvent create( long analyticsEventId) { return getPersistence().create(analyticsEventId); } /** * Removes the analytics event with the primary key from the database. Also notifies the appropriate model listeners. * * @param analyticsEventId the primary key of the analytics event * @return the analytics event that was removed * @throws com.liferay.content.targeting.analytics.NoSuchAnalyticsEventException if a analytics event with the primary key could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.content.targeting.analytics.model.AnalyticsEvent remove( long analyticsEventId) throws com.liferay.content.targeting.analytics.NoSuchAnalyticsEventException, com.liferay.portal.kernel.exception.SystemException { return getPersistence().remove(analyticsEventId); } public static com.liferay.content.targeting.analytics.model.AnalyticsEvent updateImpl( com.liferay.content.targeting.analytics.model.AnalyticsEvent analyticsEvent) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().updateImpl(analyticsEvent); } /** * Returns the analytics event with the primary key or throws a {@link com.liferay.content.targeting.analytics.NoSuchAnalyticsEventException} if it could not be found. * * @param analyticsEventId the primary key of the analytics event * @return the analytics event * @throws com.liferay.content.targeting.analytics.NoSuchAnalyticsEventException if a analytics event with the primary key could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.content.targeting.analytics.model.AnalyticsEvent findByPrimaryKey( long analyticsEventId) throws com.liferay.content.targeting.analytics.NoSuchAnalyticsEventException, com.liferay.portal.kernel.exception.SystemException { return getPersistence().findByPrimaryKey(analyticsEventId); } /** * Returns the analytics event with the primary key or returns <code>null</code> if it could not be found. * * @param analyticsEventId the primary key of the analytics event * @return the analytics event, or <code>null</code> if a analytics event with the primary key could not be found * @throws SystemException if a system exception occurred */ public static com.liferay.content.targeting.analytics.model.AnalyticsEvent fetchByPrimaryKey( long analyticsEventId) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().fetchByPrimaryKey(analyticsEventId); } /** * Returns all the analytics events. * * @return the analytics events * @throws SystemException if a system exception occurred */ public static java.util.List<com.liferay.content.targeting.analytics.model.AnalyticsEvent> findAll() throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findAll(); } /** * Returns a range of all the analytics events. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.content.targeting.analytics.model.impl.AnalyticsEventModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param start the lower bound of the range of analytics events * @param end the upper bound of the range of analytics events (not inclusive) * @return the range of analytics events * @throws SystemException if a system exception occurred */ public static java.util.List<com.liferay.content.targeting.analytics.model.AnalyticsEvent> findAll( int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findAll(start, end); } /** * Returns an ordered range of all the analytics events. * * <p> * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.content.targeting.analytics.model.impl.AnalyticsEventModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. * </p> * * @param start the lower bound of the range of analytics events * @param end the upper bound of the range of analytics events (not inclusive) * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) * @return the ordered range of analytics events * @throws SystemException if a system exception occurred */ public static java.util.List<com.liferay.content.targeting.analytics.model.AnalyticsEvent> findAll( int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().findAll(start, end, orderByComparator); } /** * Removes all the analytics events from the database. * * @throws SystemException if a system exception occurred */ public static void removeAll() throws com.liferay.portal.kernel.exception.SystemException { getPersistence().removeAll(); } /** * Returns the number of analytics events. * * @return the number of analytics events * @throws SystemException if a system exception occurred */ public static int countAll() throws com.liferay.portal.kernel.exception.SystemException { return getPersistence().countAll(); } public static AnalyticsEventPersistence getPersistence() { if (_persistence == null) { _persistence = (AnalyticsEventPersistence)PortletBeanLocatorUtil.locate(com.liferay.content.targeting.analytics.service.ClpSerializer.getServletContextName(), AnalyticsEventPersistence.class.getName()); ReferenceRegistry.registerReference(AnalyticsEventUtil.class, "_persistence"); } return _persistence; } /** * @deprecated As of 6.2.0 */ public void setPersistence(AnalyticsEventPersistence persistence) { } private static AnalyticsEventPersistence _persistence; }