@ProviderType public interface AnalyticsMessagePersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<AnalyticsMessage>
Caching information and settings can be found in portal.properties
AnalyticsMessageUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(AnalyticsMessage analyticsMessage)
Caches the analytics message in the entity cache if it is enabled.
|
void |
cacheResult(java.util.List<AnalyticsMessage> analyticsMessages)
Caches the analytics messages in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of analytics messages.
|
int |
countByCompanyId(long companyId)
Returns the number of analytics messages where companyId = ?.
|
AnalyticsMessage |
create(long analyticsMessageId)
Creates a new analytics message with the primary key.
|
AnalyticsMessage |
fetchByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<AnalyticsMessage> orderByComparator)
Returns the first analytics message in the ordered set where companyId = ?.
|
AnalyticsMessage |
fetchByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<AnalyticsMessage> orderByComparator)
Returns the last analytics message in the ordered set where companyId = ?.
|
AnalyticsMessage |
fetchByPrimaryKey(long analyticsMessageId)
Returns the analytics message with the primary key or returns
null if it could not be found. |
java.util.List<AnalyticsMessage> |
findAll()
Returns all the analytics messages.
|
java.util.List<AnalyticsMessage> |
findAll(int start,
int end)
Returns a range of all the analytics messages.
|
java.util.List<AnalyticsMessage> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<AnalyticsMessage> orderByComparator)
Returns an ordered range of all the analytics messages.
|
java.util.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.
|
AnalyticsMessage |
findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<AnalyticsMessage> orderByComparator)
Returns the first analytics message in the ordered set where companyId = ?.
|
AnalyticsMessage |
findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<AnalyticsMessage> orderByComparator)
Returns the last analytics message in the ordered set where companyId = ?.
|
AnalyticsMessage[] |
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 = ?.
|
java.util.List<AnalyticsMessage> |
findByCompanyId(long companyId)
Returns all the analytics messages where companyId = ?.
|
java.util.List<AnalyticsMessage> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the analytics messages where companyId = ?.
|
java.util.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 = ?.
|
java.util.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 = ?.
|
AnalyticsMessage |
findByPrimaryKey(long analyticsMessageId)
Returns the analytics message with the primary key or throws a
NoSuchMessageException if it could not be found. |
AnalyticsMessage |
remove(long analyticsMessageId)
Removes the analytics message with the primary key from the database.
|
void |
removeAll()
Removes all the analytics messages from the database.
|
void |
removeByCompanyId(long companyId)
Removes all the analytics messages where companyId = ? from the database.
|
AnalyticsMessage |
updateImpl(AnalyticsMessage analyticsMessage) |
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, setDataSource, unregisterListener, update, update
java.util.List<AnalyticsMessage> findByCompanyId(long companyId)
companyId
- the company IDjava.util.List<AnalyticsMessage> findByCompanyId(long companyId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from AnalyticsMessageModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of analytics messagesend
- the upper bound of the range of analytics messages (not inclusive)java.util.List<AnalyticsMessage> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsMessage> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from AnalyticsMessageModelImpl
.
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 (optionally null
)java.util.List<AnalyticsMessage> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsMessage> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from AnalyticsMessageModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cacheAnalyticsMessage findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsMessage> orderByComparator) throws NoSuchMessageException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchMessageException
- if a matching analytics message could not be foundAnalyticsMessage fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsMessage> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching analytics message could not be foundAnalyticsMessage findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsMessage> orderByComparator) throws NoSuchMessageException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchMessageException
- if a matching analytics message could not be foundAnalyticsMessage fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsMessage> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching analytics message could not be foundAnalyticsMessage[] findByCompanyId_PrevAndNext(long analyticsMessageId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsMessage> orderByComparator) throws NoSuchMessageException
analyticsMessageId
- the primary key of the current analytics messagecompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchMessageException
- if a analytics message with the primary key could not be foundvoid removeByCompanyId(long companyId)
companyId
- the company IDint countByCompanyId(long companyId)
companyId
- the company IDvoid cacheResult(AnalyticsMessage analyticsMessage)
analyticsMessage
- the analytics messagevoid cacheResult(java.util.List<AnalyticsMessage> analyticsMessages)
analyticsMessages
- the analytics messagesAnalyticsMessage create(long analyticsMessageId)
analyticsMessageId
- the primary key for the new analytics messageAnalyticsMessage remove(long analyticsMessageId) throws NoSuchMessageException
analyticsMessageId
- the primary key of the analytics messageNoSuchMessageException
- if a analytics message with the primary key could not be foundAnalyticsMessage updateImpl(AnalyticsMessage analyticsMessage)
AnalyticsMessage findByPrimaryKey(long analyticsMessageId) throws NoSuchMessageException
NoSuchMessageException
if it could not be found.analyticsMessageId
- the primary key of the analytics messageNoSuchMessageException
- if a analytics message with the primary key could not be foundAnalyticsMessage fetchByPrimaryKey(long analyticsMessageId)
null
if it could not be found.analyticsMessageId
- the primary key of the analytics messagenull
if a analytics message with the primary key could not be foundjava.util.List<AnalyticsMessage> findAll()
java.util.List<AnalyticsMessage> findAll(int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from AnalyticsMessageModelImpl
.
start
- the lower bound of the range of analytics messagesend
- the upper bound of the range of analytics messages (not inclusive)java.util.List<AnalyticsMessage> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsMessage> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from AnalyticsMessageModelImpl
.
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 (optionally null
)java.util.List<AnalyticsMessage> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsMessage> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from AnalyticsMessageModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachevoid removeAll()
int countAll()