Interface AnalyticsMessagePersistence
- All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<AnalyticsMessage>,com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<AnalyticsMessage>
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Method Summary
Modifier and TypeMethodDescriptionvoidcacheResult(AnalyticsMessage analyticsMessage) Caches the analytics message in the entity cache if it is enabled.voidcacheResult(List<AnalyticsMessage> analyticsMessages) Caches the analytics messages in the entity cache if it is enabled.intcountAll()Returns the number of analytics messages.intcountByCompanyId(long companyId) Returns the number of analytics messages where companyId = ?.create(long analyticsMessageId) Creates a new analytics message with the primary key.fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsMessage> orderByComparator) Returns the first analytics message in the ordered set where companyId = ?.fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsMessage> orderByComparator) Returns the last analytics message in the ordered set where companyId = ?.fetchByPrimaryKey(long analyticsMessageId) Returns the analytics message with the primary key or returnsnullif it could not be found.findAll()Returns all the analytics messages.findAll(int start, int end) Returns a range of all the analytics messages.findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsMessage> orderByComparator) Returns an ordered range of all the analytics messages.findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsMessage> orderByComparator, boolean useFinderCache) Returns an ordered range of all the analytics messages.findByCompanyId(long companyId) Returns all the analytics messages where companyId = ?.findByCompanyId(long companyId, int start, int end) Returns a range of all the analytics messages where companyId = ?.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 = ?.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 = ?.findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsMessage> orderByComparator) Returns the first analytics message in the ordered set where companyId = ?.findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsMessage> orderByComparator) Returns the last analytics message in the ordered set where companyId = ?.findByCompanyId_PrevAndNext(long analyticsMessageId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsMessage> orderByComparator) Returns the analytics messages before and after the current analytics message in the ordered set where companyId = ?.findByPrimaryKey(long analyticsMessageId) Returns the analytics message with the primary key or throws aNoSuchMessageExceptionif it could not be found.remove(long analyticsMessageId) Removes the analytics message with the primary key from the database.voidRemoves all the analytics messages from the database.voidremoveByCompanyId(long companyId) Removes all the analytics messages where companyId = ? from the database.updateImpl(AnalyticsMessage analyticsMessage) Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence
clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, removeByFunction, setDataSource, unregisterListener, update, updateMethods inherited from interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence
getCTColumnNames, getMappingTableNames, getTableColumnsMap, getTableName, getUniqueIndexColumnNames
-
Method Details
-
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 bothstartandendtoQueryUtil#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 fromAnalyticsMessageModelImpl.- 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
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 bothstartandendtoQueryUtil#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 fromAnalyticsMessageModelImpl.- 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
-
findByCompanyId
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 bothstartandendtoQueryUtil#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 fromAnalyticsMessageModelImpl.- 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
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
- Throws:
NoSuchMessageException- if a matching analytics message could not be found
-
fetchByCompanyId_First
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
-
findByCompanyId_Last
AnalyticsMessage findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsMessage> orderByComparator) throws NoSuchMessageException Returns the last analytics message in the ordered set where companyId = ?.- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching analytics message
- Throws:
NoSuchMessageException- if a matching analytics message could not be found
-
fetchByCompanyId_Last
AnalyticsMessage fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsMessage> orderByComparator) Returns the last analytics message in the ordered set where companyId = ?.- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching analytics message, or
nullif a matching analytics message could not be found
-
findByCompanyId_PrevAndNext
AnalyticsMessage[] findByCompanyId_PrevAndNext(long analyticsMessageId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsMessage> orderByComparator) throws NoSuchMessageException Returns the analytics messages before and after the current analytics message in the ordered set where companyId = ?.- Parameters:
analyticsMessageId- the primary key of the current analytics messagecompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next analytics message
- Throws:
NoSuchMessageException- if a analytics message with the primary key could not be found
-
removeByCompanyId
void removeByCompanyId(long companyId) Removes all the analytics messages where companyId = ? from the database.- Parameters:
companyId- the company ID
-
countByCompanyId
int countByCompanyId(long companyId) Returns the number of analytics messages where companyId = ?.- Parameters:
companyId- the company ID- Returns:
- the number of matching analytics messages
-
cacheResult
Caches the analytics message in the entity cache if it is enabled.- Parameters:
analyticsMessage- the analytics message
-
cacheResult
Caches the analytics messages in the entity cache if it is enabled.- Parameters:
analyticsMessages- the 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
- Throws:
NoSuchMessageException- if a analytics message with the primary key could not be found
-
updateImpl
-
findByPrimaryKey
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
- Throws:
NoSuchMessageException- if a analytics message with the primary key could not be found
-
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
-
findAll
List<AnalyticsMessage> findAll()Returns all the analytics messages.- Returns:
- the analytics messages
-
findAll
Returns a range of all the analytics messages.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 bothstartandendtoQueryUtil#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 fromAnalyticsMessageModelImpl.- Parameters:
start- the lower bound of the range of analytics messagesend- the upper bound of the range of analytics messages (not inclusive)- Returns:
- the range of analytics messages
-
findAll
List<AnalyticsMessage> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsMessage> orderByComparator) Returns an ordered range of all the analytics messages.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 bothstartandendtoQueryUtil#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 fromAnalyticsMessageModelImpl.- Parameters:
start- 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 analytics messages
-
findAll
List<AnalyticsMessage> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsMessage> orderByComparator, boolean useFinderCache) Returns an ordered range of all the analytics messages.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 bothstartandendtoQueryUtil#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 fromAnalyticsMessageModelImpl.- Parameters:
start- 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 analytics messages
-
removeAll
void removeAll()Removes all the analytics messages from the database. -
countAll
int countAll()Returns the number of analytics messages.- Returns:
- the number of analytics messages
-