@ProviderType public interface CTMessagePersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<CTMessage>
Caching information and settings can be found in portal.properties
CTMessageUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(CTMessage ctMessage)
Caches the ct message in the entity cache if it is enabled.
|
void |
cacheResult(java.util.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 = ?.
|
CTMessage |
create(long ctMessageId)
Creates a new ct message with the primary key.
|
CTMessage |
fetchByCTCollectionId_First(long ctCollectionId,
com.liferay.portal.kernel.util.OrderByComparator<CTMessage> orderByComparator)
Returns the first ct message in the ordered set where ctCollectionId = ?.
|
CTMessage |
fetchByCTCollectionId_Last(long ctCollectionId,
com.liferay.portal.kernel.util.OrderByComparator<CTMessage> orderByComparator)
Returns the last ct message in the ordered set where ctCollectionId = ?.
|
CTMessage |
fetchByPrimaryKey(long ctMessageId)
Returns the ct message with the primary key or returns
null if it could not be found. |
java.util.List<CTMessage> |
findAll()
Returns all the ct messages.
|
java.util.List<CTMessage> |
findAll(int start,
int end)
Returns a range of all the ct messages.
|
java.util.List<CTMessage> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTMessage> orderByComparator)
Returns an ordered range of all the ct messages.
|
java.util.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.
|
CTMessage |
findByCTCollectionId_First(long ctCollectionId,
com.liferay.portal.kernel.util.OrderByComparator<CTMessage> orderByComparator)
Returns the first ct message in the ordered set where ctCollectionId = ?.
|
CTMessage |
findByCTCollectionId_Last(long ctCollectionId,
com.liferay.portal.kernel.util.OrderByComparator<CTMessage> orderByComparator)
Returns the last ct message in the ordered set where ctCollectionId = ?.
|
CTMessage[] |
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 = ?.
|
java.util.List<CTMessage> |
findByCTCollectionId(long ctCollectionId)
Returns all the ct messages where ctCollectionId = ?.
|
java.util.List<CTMessage> |
findByCTCollectionId(long ctCollectionId,
int start,
int end)
Returns a range of all the ct messages where ctCollectionId = ?.
|
java.util.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 = ?.
|
java.util.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 = ?.
|
CTMessage |
findByPrimaryKey(long ctMessageId)
Returns the ct message with the primary key or throws a
NoSuchMessageException if it could not be found. |
CTMessage |
remove(long ctMessageId)
Removes the ct message with the primary key from the database.
|
void |
removeAll()
Removes all the ct messages from the database.
|
void |
removeByCTCollectionId(long ctCollectionId)
Removes all the ct messages where ctCollectionId = ? from the database.
|
CTMessage |
updateImpl(CTMessage ctMessage) |
clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update
java.util.List<CTMessage> findByCTCollectionId(long ctCollectionId)
ctCollectionId
- the ct collection IDjava.util.List<CTMessage> findByCTCollectionId(long ctCollectionId, 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 CTMessageModelImpl
.
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)java.util.List<CTMessage> findByCTCollectionId(long ctCollectionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTMessage> 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 CTMessageModelImpl
.
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 (optionally null
)java.util.List<CTMessage> findByCTCollectionId(long ctCollectionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTMessage> 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 CTMessageModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cacheCTMessage findByCTCollectionId_First(long ctCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTMessage> orderByComparator) throws NoSuchMessageException
ctCollectionId
- the ct collection IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchMessageException
- if a matching ct message could not be foundCTMessage fetchByCTCollectionId_First(long ctCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTMessage> orderByComparator)
ctCollectionId
- the ct collection IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ct message could not be foundCTMessage findByCTCollectionId_Last(long ctCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTMessage> orderByComparator) throws NoSuchMessageException
ctCollectionId
- the ct collection IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchMessageException
- if a matching ct message could not be foundCTMessage fetchByCTCollectionId_Last(long ctCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTMessage> orderByComparator)
ctCollectionId
- the ct collection IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ct message could not be foundCTMessage[] findByCTCollectionId_PrevAndNext(long ctMessageId, long ctCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTMessage> orderByComparator) throws NoSuchMessageException
ctMessageId
- the primary key of the current ct messagectCollectionId
- the ct collection IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchMessageException
- if a ct message with the primary key could not be foundvoid removeByCTCollectionId(long ctCollectionId)
ctCollectionId
- the ct collection IDint countByCTCollectionId(long ctCollectionId)
ctCollectionId
- the ct collection IDvoid cacheResult(CTMessage ctMessage)
ctMessage
- the ct messagevoid cacheResult(java.util.List<CTMessage> ctMessages)
ctMessages
- the ct messagesCTMessage create(long ctMessageId)
ctMessageId
- the primary key for the new ct messageCTMessage remove(long ctMessageId) throws NoSuchMessageException
ctMessageId
- the primary key of the ct messageNoSuchMessageException
- if a ct message with the primary key could not be foundCTMessage findByPrimaryKey(long ctMessageId) throws NoSuchMessageException
NoSuchMessageException
if it could not be found.ctMessageId
- the primary key of the ct messageNoSuchMessageException
- if a ct message with the primary key could not be foundCTMessage fetchByPrimaryKey(long ctMessageId)
null
if it could not be found.ctMessageId
- the primary key of the ct messagenull
if a ct message with the primary key could not be foundjava.util.List<CTMessage> findAll()
java.util.List<CTMessage> 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 CTMessageModelImpl
.
start
- the lower bound of the range of ct messagesend
- the upper bound of the range of ct messages (not inclusive)java.util.List<CTMessage> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTMessage> 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 CTMessageModelImpl
.
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 (optionally null
)java.util.List<CTMessage> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTMessage> 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 CTMessageModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachevoid removeAll()
int countAll()