Class AnalyticsMessageUtil
com.liferay.analytics.message.storage.service.persistence.impl.AnalyticsMessagePersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcacheResult(AnalyticsMessage analyticsMessage) static voidcacheResult(List<AnalyticsMessage> analyticsMessages) static voidstatic voidclearCache(AnalyticsMessage analyticsMessage) static intcountByCompanyId(long companyId) Returns the number of analytics messages where companyId = ?.static longcountWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static AnalyticsMessagecreate(long analyticsMessageId) Creates a new analytics message with the primary key.static AnalyticsMessagefetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsMessage> orderByComparator) Returns the first analytics message in the ordered set where companyId = ?.static AnalyticsMessagefetchByPrimaryKey(long analyticsMessageId) Returns the analytics message with the primary key or returnsnullif it could not be found.static Map<Serializable, AnalyticsMessage> fetchByPrimaryKeys(Set<Serializable> primaryKeys) static List<AnalyticsMessage> findByCompanyId(long companyId) Returns all the analytics messages where companyId = ?.static List<AnalyticsMessage> findByCompanyId(long companyId, int start, int end) Returns a range of all the analytics messages where companyId = ?.static List<AnalyticsMessage> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsMessage> orderByComparator) Returns an ordered range of all the analytics messages where companyId = ?.static List<AnalyticsMessage> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsMessage> orderByComparator, boolean useFinderCache) Returns an ordered range of all the analytics messages where companyId = ?.static AnalyticsMessagefindByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsMessage> orderByComparator) Returns the first analytics message in the ordered set where companyId = ?.static AnalyticsMessagefindByPrimaryKey(long analyticsMessageId) Returns the analytics message with the primary key or throws aNoSuchMessageExceptionif it could not be found.static List<AnalyticsMessage> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<AnalyticsMessage> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<AnalyticsMessage> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsMessage> orderByComparator) static AnalyticsMessagePersistencestatic AnalyticsMessageremove(long analyticsMessageId) Removes the analytics message with the primary key from the database.static voidremoveByCompanyId(long companyId) Removes all the analytics messages where companyId = ? from the database.static voidsetPersistence(AnalyticsMessagePersistence persistence) static AnalyticsMessageupdate(AnalyticsMessage analyticsMessage) static AnalyticsMessageupdate(AnalyticsMessage analyticsMessage, com.liferay.portal.kernel.service.ServiceContext serviceContext) static AnalyticsMessageupdateImpl(AnalyticsMessage analyticsMessage)
-
Constructor Details
-
AnalyticsMessageUtil
public AnalyticsMessageUtil()
-
-
Method Details
-
cacheResult
- See Also:
-
cacheResult
- See Also:
-
clearCache
public static void clearCache()- See Also:
-
clearCache
- See Also:
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
fetchByPrimaryKeys
- See Also:
-
findWithDynamicQuery
public static List<AnalyticsMessage> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
findWithDynamicQuery
public static List<AnalyticsMessage> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
findWithDynamicQuery
public static List<AnalyticsMessage> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsMessage> orderByComparator) - See Also:
-
update
- See Also:
-
update
public static AnalyticsMessage update(AnalyticsMessage analyticsMessage, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
findByCompanyId
public static List<AnalyticsMessage> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsMessage> orderByComparator, boolean useFinderCache) Returns an ordered range of all the analytics messages where companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.analytics.message.storage.model.impl.AnalyticsMessageModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of analytics messagesend- the upper bound of the range of analytics messages (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching analytics messages
-
findByCompanyId_First
public static AnalyticsMessage findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsMessage> orderByComparator) throws NoSuchMessageException Returns the first analytics message in the ordered set where companyId = ?.- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching analytics message
-
fetchByCompanyId_First
public static AnalyticsMessage fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsMessage> orderByComparator) Returns the first analytics message in the ordered set where companyId = ?.- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching analytics message, or
nullif a matching analytics message could not be found
-
removeByCompanyId
public static void removeByCompanyId(long companyId) Removes all the analytics messages where companyId = ? from the database.- Parameters:
companyId- the company ID
-
countByCompanyId
public static int countByCompanyId(long companyId) Returns the number of analytics messages where companyId = ?.- Parameters:
companyId- the company ID- Returns:
- the number of matching analytics messages
-
create
Creates a new analytics message with the primary key. Does not add the analytics message to the database.- Parameters:
analyticsMessageId- the primary key for the new analytics message- Returns:
- the new analytics message
-
remove
Removes the analytics message with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
analyticsMessageId- the primary key of the analytics message- Returns:
- the analytics message that was removed
-
updateImpl
-
findByPrimaryKey
public static AnalyticsMessage findByPrimaryKey(long analyticsMessageId) throws NoSuchMessageException Returns the analytics message with the primary key or throws aNoSuchMessageExceptionif it could not be found.- Parameters:
analyticsMessageId- the primary key of the analytics message- Returns:
- the analytics message
-
fetchByPrimaryKey
Returns the analytics message with the primary key or returnsnullif it could not be found.- Parameters:
analyticsMessageId- the primary key of the analytics message- Returns:
- the analytics message, or
nullif a analytics message with the primary key could not be found
-
findByCompanyId
Returns all the analytics messages where companyId = ?.- Parameters:
companyId- the company ID- Returns:
- the matching analytics messages
-
findByCompanyId
Returns a range of all the analytics messages where companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.analytics.message.storage.model.impl.AnalyticsMessageModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of analytics messagesend- the upper bound of the range of analytics messages (not inclusive)- Returns:
- the range of matching analytics messages
-
findByCompanyId
public static List<AnalyticsMessage> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsMessage> orderByComparator) Returns an ordered range of all the analytics messages where companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.analytics.message.storage.model.impl.AnalyticsMessageModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of analytics messagesend- the upper bound of the range of analytics messages (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching analytics messages
-
getPersistence
-
setPersistence
-