Interface CTMessagePersistence
- All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<CTMessage>
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cacheResult
(CTMessage ctMessage) Caches the ct message in the entity cache if it is enabled.void
cacheResult
(List<CTMessage> ctMessages) Caches the ct messages in the entity cache if it is enabled.int
countAll()
Returns the number of ct messages.int
countByCtCollectionId
(long ctCollectionId) Returns the number of ct messages where ctCollectionId = ?.create
(long ctMessageId) Creates a new ct message with the primary key.fetchByCtCollectionId_First
(long ctCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTMessage> orderByComparator) Returns the first ct message in the ordered set where ctCollectionId = ?.fetchByCtCollectionId_Last
(long ctCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTMessage> orderByComparator) Returns the last ct message in the ordered set where ctCollectionId = ?.fetchByPrimaryKey
(long ctMessageId) Returns the ct message with the primary key or returnsnull
if it could not be found.findAll()
Returns all the ct messages.findAll
(int start, int end) Returns a range of all the ct messages.findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTMessage> orderByComparator) Returns an ordered range of all the ct messages.findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTMessage> orderByComparator, boolean useFinderCache) Returns an ordered range of all the ct messages.findByCtCollectionId
(long ctCollectionId) Returns all the ct messages where ctCollectionId = ?.findByCtCollectionId
(long ctCollectionId, int start, int end) Returns a range of all the ct messages where ctCollectionId = ?.findByCtCollectionId
(long ctCollectionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTMessage> orderByComparator) Returns an ordered range of all the ct messages where ctCollectionId = ?.findByCtCollectionId
(long ctCollectionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTMessage> orderByComparator, boolean useFinderCache) Returns an ordered range of all the ct messages where ctCollectionId = ?.findByCtCollectionId_First
(long ctCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTMessage> orderByComparator) Returns the first ct message in the ordered set where ctCollectionId = ?.findByCtCollectionId_Last
(long ctCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTMessage> orderByComparator) Returns the last ct message in the ordered set where ctCollectionId = ?.findByCtCollectionId_PrevAndNext
(long ctMessageId, long ctCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTMessage> orderByComparator) Returns the ct messages before and after the current ct message in the ordered set where ctCollectionId = ?.findByPrimaryKey
(long ctMessageId) Returns the ct message with the primary key or throws aNoSuchMessageException
if it could not be found.remove
(long ctMessageId) Removes the ct message with the primary key from the database.void
Removes all the ct messages from the database.void
removeByCtCollectionId
(long ctCollectionId) Removes all the ct messages where ctCollectionId = ? from the database.updateImpl
(CTMessage ctMessage) 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, update
-
Method Details
-
findByCtCollectionId
Returns all the ct messages where ctCollectionId = ?.- Parameters:
ctCollectionId
- the ct collection ID- Returns:
- the matching ct messages
-
findByCtCollectionId
Returns a range of all the ct messages where ctCollectionId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCTMessageModelImpl
.- Parameters:
ctCollectionId
- the ct collection IDstart
- the lower bound of the range of ct messagesend
- the upper bound of the range of ct messages (not inclusive)- Returns:
- the range of matching ct messages
-
findByCtCollectionId
List<CTMessage> findByCtCollectionId(long ctCollectionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTMessage> orderByComparator) Returns an ordered range of all the ct messages where ctCollectionId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCTMessageModelImpl
.- Parameters:
ctCollectionId
- the ct collection IDstart
- the lower bound of the range of ct messagesend
- the upper bound of the range of ct messages (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching ct messages
-
findByCtCollectionId
List<CTMessage> findByCtCollectionId(long ctCollectionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTMessage> orderByComparator, boolean useFinderCache) Returns an ordered range of all the ct messages where ctCollectionId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCTMessageModelImpl
.- Parameters:
ctCollectionId
- the ct collection IDstart
- the lower bound of the range of ct messagesend
- the upper bound of the range of ct 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 ct messages
-
findByCtCollectionId_First
CTMessage findByCtCollectionId_First(long ctCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTMessage> orderByComparator) throws NoSuchMessageException Returns the first ct message in the ordered set where ctCollectionId = ?.- Parameters:
ctCollectionId
- the ct collection IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching ct message
- Throws:
NoSuchMessageException
- if a matching ct message could not be found
-
fetchByCtCollectionId_First
CTMessage fetchByCtCollectionId_First(long ctCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTMessage> orderByComparator) Returns the first ct message in the ordered set where ctCollectionId = ?.- Parameters:
ctCollectionId
- the ct collection IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching ct message, or
null
if a matching ct message could not be found
-
findByCtCollectionId_Last
CTMessage findByCtCollectionId_Last(long ctCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTMessage> orderByComparator) throws NoSuchMessageException Returns the last ct message in the ordered set where ctCollectionId = ?.- Parameters:
ctCollectionId
- the ct collection IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching ct message
- Throws:
NoSuchMessageException
- if a matching ct message could not be found
-
fetchByCtCollectionId_Last
CTMessage fetchByCtCollectionId_Last(long ctCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTMessage> orderByComparator) Returns the last ct message in the ordered set where ctCollectionId = ?.- Parameters:
ctCollectionId
- the ct collection IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching ct message, or
null
if a matching ct message could not be found
-
findByCtCollectionId_PrevAndNext
CTMessage[] findByCtCollectionId_PrevAndNext(long ctMessageId, long ctCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTMessage> orderByComparator) throws NoSuchMessageException Returns the ct messages before and after the current ct message in the ordered set where ctCollectionId = ?.- Parameters:
ctMessageId
- the primary key of the current ct messagectCollectionId
- the ct collection IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next ct message
- Throws:
NoSuchMessageException
- if a ct message with the primary key could not be found
-
removeByCtCollectionId
void removeByCtCollectionId(long ctCollectionId) Removes all the ct messages where ctCollectionId = ? from the database.- Parameters:
ctCollectionId
- the ct collection ID
-
countByCtCollectionId
int countByCtCollectionId(long ctCollectionId) Returns the number of ct messages where ctCollectionId = ?.- Parameters:
ctCollectionId
- the ct collection ID- Returns:
- the number of matching ct messages
-
cacheResult
Caches the ct message in the entity cache if it is enabled.- Parameters:
ctMessage
- the ct message
-
cacheResult
Caches the ct messages in the entity cache if it is enabled.- Parameters:
ctMessages
- the ct messages
-
create
Creates a new ct message with the primary key. Does not add the ct message to the database.- Parameters:
ctMessageId
- the primary key for the new ct message- Returns:
- the new ct message
-
remove
Removes the ct message with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
ctMessageId
- the primary key of the ct message- Returns:
- the ct message that was removed
- Throws:
NoSuchMessageException
- if a ct message with the primary key could not be found
-
updateImpl
-
findByPrimaryKey
Returns the ct message with the primary key or throws aNoSuchMessageException
if it could not be found.- Parameters:
ctMessageId
- the primary key of the ct message- Returns:
- the ct message
- Throws:
NoSuchMessageException
- if a ct message with the primary key could not be found
-
fetchByPrimaryKey
Returns the ct message with the primary key or returnsnull
if it could not be found.- Parameters:
ctMessageId
- the primary key of the ct message- Returns:
- the ct message, or
null
if a ct message with the primary key could not be found
-
findAll
Returns all the ct messages.- Returns:
- the ct messages
-
findAll
Returns a range of all the ct messages.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCTMessageModelImpl
.- Parameters:
start
- the lower bound of the range of ct messagesend
- the upper bound of the range of ct messages (not inclusive)- Returns:
- the range of ct messages
-
findAll
List<CTMessage> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTMessage> orderByComparator) Returns an ordered range of all the ct messages.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCTMessageModelImpl
.- Parameters:
start
- the lower bound of the range of ct messagesend
- the upper bound of the range of ct messages (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of ct messages
-
findAll
List<CTMessage> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTMessage> orderByComparator, boolean useFinderCache) Returns an ordered range of all the ct messages.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCTMessageModelImpl
.- Parameters:
start
- the lower bound of the range of ct messagesend
- the upper bound of the range of ct messages (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of ct messages
-
removeAll
void removeAll()Removes all the ct messages from the database. -
countAll
int countAll()Returns the number of ct messages.- Returns:
- the number of ct messages
-