@ProviderType public interface CTCommentPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<CTComment>
Caching information and settings can be found in portal.properties
CTCommentUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(CTComment ctComment)
Caches the ct comment in the entity cache if it is enabled.
|
void |
cacheResult(java.util.List<CTComment> ctComments)
Caches the ct comments in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of ct comments.
|
int |
countByCtCollectionId(long ctCollectionId)
Returns the number of ct comments where ctCollectionId = ?.
|
int |
countByCtEntryId(long ctEntryId)
Returns the number of ct comments where ctEntryId = ?.
|
CTComment |
create(long ctCommentId)
Creates a new ct comment with the primary key.
|
CTComment |
fetchByCtCollectionId_First(long ctCollectionId,
com.liferay.portal.kernel.util.OrderByComparator<CTComment> orderByComparator)
Returns the first ct comment in the ordered set where ctCollectionId = ?.
|
CTComment |
fetchByCtCollectionId_Last(long ctCollectionId,
com.liferay.portal.kernel.util.OrderByComparator<CTComment> orderByComparator)
Returns the last ct comment in the ordered set where ctCollectionId = ?.
|
CTComment |
fetchByCtEntryId_First(long ctEntryId,
com.liferay.portal.kernel.util.OrderByComparator<CTComment> orderByComparator)
Returns the first ct comment in the ordered set where ctEntryId = ?.
|
CTComment |
fetchByCtEntryId_Last(long ctEntryId,
com.liferay.portal.kernel.util.OrderByComparator<CTComment> orderByComparator)
Returns the last ct comment in the ordered set where ctEntryId = ?.
|
CTComment |
fetchByPrimaryKey(long ctCommentId)
Returns the ct comment with the primary key or returns
null if it could not be found. |
java.util.List<CTComment> |
findAll()
Returns all the ct comments.
|
java.util.List<CTComment> |
findAll(int start,
int end)
Returns a range of all the ct comments.
|
java.util.List<CTComment> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTComment> orderByComparator)
Returns an ordered range of all the ct comments.
|
java.util.List<CTComment> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTComment> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the ct comments.
|
CTComment |
findByCtCollectionId_First(long ctCollectionId,
com.liferay.portal.kernel.util.OrderByComparator<CTComment> orderByComparator)
Returns the first ct comment in the ordered set where ctCollectionId = ?.
|
CTComment |
findByCtCollectionId_Last(long ctCollectionId,
com.liferay.portal.kernel.util.OrderByComparator<CTComment> orderByComparator)
Returns the last ct comment in the ordered set where ctCollectionId = ?.
|
CTComment[] |
findByCtCollectionId_PrevAndNext(long ctCommentId,
long ctCollectionId,
com.liferay.portal.kernel.util.OrderByComparator<CTComment> orderByComparator)
Returns the ct comments before and after the current ct comment in the ordered set where ctCollectionId = ?.
|
java.util.List<CTComment> |
findByCtCollectionId(long ctCollectionId)
Returns all the ct comments where ctCollectionId = ?.
|
java.util.List<CTComment> |
findByCtCollectionId(long ctCollectionId,
int start,
int end)
Returns a range of all the ct comments where ctCollectionId = ?.
|
java.util.List<CTComment> |
findByCtCollectionId(long ctCollectionId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTComment> orderByComparator)
Returns an ordered range of all the ct comments where ctCollectionId = ?.
|
java.util.List<CTComment> |
findByCtCollectionId(long ctCollectionId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTComment> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the ct comments where ctCollectionId = ?.
|
CTComment |
findByCtEntryId_First(long ctEntryId,
com.liferay.portal.kernel.util.OrderByComparator<CTComment> orderByComparator)
Returns the first ct comment in the ordered set where ctEntryId = ?.
|
CTComment |
findByCtEntryId_Last(long ctEntryId,
com.liferay.portal.kernel.util.OrderByComparator<CTComment> orderByComparator)
Returns the last ct comment in the ordered set where ctEntryId = ?.
|
CTComment[] |
findByCtEntryId_PrevAndNext(long ctCommentId,
long ctEntryId,
com.liferay.portal.kernel.util.OrderByComparator<CTComment> orderByComparator)
Returns the ct comments before and after the current ct comment in the ordered set where ctEntryId = ?.
|
java.util.List<CTComment> |
findByCtEntryId(long ctEntryId)
Returns all the ct comments where ctEntryId = ?.
|
java.util.List<CTComment> |
findByCtEntryId(long ctEntryId,
int start,
int end)
Returns a range of all the ct comments where ctEntryId = ?.
|
java.util.List<CTComment> |
findByCtEntryId(long ctEntryId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTComment> orderByComparator)
Returns an ordered range of all the ct comments where ctEntryId = ?.
|
java.util.List<CTComment> |
findByCtEntryId(long ctEntryId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTComment> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the ct comments where ctEntryId = ?.
|
CTComment |
findByPrimaryKey(long ctCommentId)
Returns the ct comment with the primary key or throws a
NoSuchCommentException if it could not be found. |
CTComment |
remove(long ctCommentId)
Removes the ct comment with the primary key from the database.
|
void |
removeAll()
Removes all the ct comments from the database.
|
void |
removeByCtCollectionId(long ctCollectionId)
Removes all the ct comments where ctCollectionId = ? from the database.
|
void |
removeByCtEntryId(long ctEntryId)
Removes all the ct comments where ctEntryId = ? from the database.
|
CTComment |
updateImpl(CTComment ctComment) |
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<CTComment> findByCtCollectionId(long ctCollectionId)
ctCollectionId
- the ct collection IDjava.util.List<CTComment> 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 CTCommentModelImpl
.
ctCollectionId
- the ct collection IDstart
- the lower bound of the range of ct commentsend
- the upper bound of the range of ct comments (not inclusive)java.util.List<CTComment> findByCtCollectionId(long ctCollectionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTComment> 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 CTCommentModelImpl
.
ctCollectionId
- the ct collection IDstart
- the lower bound of the range of ct commentsend
- the upper bound of the range of ct comments (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<CTComment> findByCtCollectionId(long ctCollectionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTComment> 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 CTCommentModelImpl
.
ctCollectionId
- the ct collection IDstart
- the lower bound of the range of ct commentsend
- the upper bound of the range of ct comments (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cacheCTComment findByCtCollectionId_First(long ctCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTComment> orderByComparator) throws NoSuchCommentException
ctCollectionId
- the ct collection IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCommentException
- if a matching ct comment could not be foundCTComment fetchByCtCollectionId_First(long ctCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTComment> orderByComparator)
ctCollectionId
- the ct collection IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ct comment could not be foundCTComment findByCtCollectionId_Last(long ctCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTComment> orderByComparator) throws NoSuchCommentException
ctCollectionId
- the ct collection IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCommentException
- if a matching ct comment could not be foundCTComment fetchByCtCollectionId_Last(long ctCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTComment> orderByComparator)
ctCollectionId
- the ct collection IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ct comment could not be foundCTComment[] findByCtCollectionId_PrevAndNext(long ctCommentId, long ctCollectionId, com.liferay.portal.kernel.util.OrderByComparator<CTComment> orderByComparator) throws NoSuchCommentException
ctCommentId
- the primary key of the current ct commentctCollectionId
- the ct collection IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCommentException
- if a ct comment with the primary key could not be foundvoid removeByCtCollectionId(long ctCollectionId)
ctCollectionId
- the ct collection IDint countByCtCollectionId(long ctCollectionId)
ctCollectionId
- the ct collection IDjava.util.List<CTComment> findByCtEntryId(long ctEntryId)
ctEntryId
- the ct entry IDjava.util.List<CTComment> findByCtEntryId(long ctEntryId, 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 CTCommentModelImpl
.
ctEntryId
- the ct entry IDstart
- the lower bound of the range of ct commentsend
- the upper bound of the range of ct comments (not inclusive)java.util.List<CTComment> findByCtEntryId(long ctEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTComment> 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 CTCommentModelImpl
.
ctEntryId
- the ct entry IDstart
- the lower bound of the range of ct commentsend
- the upper bound of the range of ct comments (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<CTComment> findByCtEntryId(long ctEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTComment> 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 CTCommentModelImpl
.
ctEntryId
- the ct entry IDstart
- the lower bound of the range of ct commentsend
- the upper bound of the range of ct comments (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cacheCTComment findByCtEntryId_First(long ctEntryId, com.liferay.portal.kernel.util.OrderByComparator<CTComment> orderByComparator) throws NoSuchCommentException
ctEntryId
- the ct entry IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCommentException
- if a matching ct comment could not be foundCTComment fetchByCtEntryId_First(long ctEntryId, com.liferay.portal.kernel.util.OrderByComparator<CTComment> orderByComparator)
ctEntryId
- the ct entry IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ct comment could not be foundCTComment findByCtEntryId_Last(long ctEntryId, com.liferay.portal.kernel.util.OrderByComparator<CTComment> orderByComparator) throws NoSuchCommentException
ctEntryId
- the ct entry IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCommentException
- if a matching ct comment could not be foundCTComment fetchByCtEntryId_Last(long ctEntryId, com.liferay.portal.kernel.util.OrderByComparator<CTComment> orderByComparator)
ctEntryId
- the ct entry IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ct comment could not be foundCTComment[] findByCtEntryId_PrevAndNext(long ctCommentId, long ctEntryId, com.liferay.portal.kernel.util.OrderByComparator<CTComment> orderByComparator) throws NoSuchCommentException
ctCommentId
- the primary key of the current ct commentctEntryId
- the ct entry IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCommentException
- if a ct comment with the primary key could not be foundvoid removeByCtEntryId(long ctEntryId)
ctEntryId
- the ct entry IDint countByCtEntryId(long ctEntryId)
ctEntryId
- the ct entry IDvoid cacheResult(CTComment ctComment)
ctComment
- the ct commentvoid cacheResult(java.util.List<CTComment> ctComments)
ctComments
- the ct commentsCTComment create(long ctCommentId)
ctCommentId
- the primary key for the new ct commentCTComment remove(long ctCommentId) throws NoSuchCommentException
ctCommentId
- the primary key of the ct commentNoSuchCommentException
- if a ct comment with the primary key could not be foundCTComment findByPrimaryKey(long ctCommentId) throws NoSuchCommentException
NoSuchCommentException
if it could not be found.ctCommentId
- the primary key of the ct commentNoSuchCommentException
- if a ct comment with the primary key could not be foundCTComment fetchByPrimaryKey(long ctCommentId)
null
if it could not be found.ctCommentId
- the primary key of the ct commentnull
if a ct comment with the primary key could not be foundjava.util.List<CTComment> findAll()
java.util.List<CTComment> 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 CTCommentModelImpl
.
start
- the lower bound of the range of ct commentsend
- the upper bound of the range of ct comments (not inclusive)java.util.List<CTComment> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTComment> 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 CTCommentModelImpl
.
start
- the lower bound of the range of ct commentsend
- the upper bound of the range of ct comments (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<CTComment> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTComment> 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 CTCommentModelImpl
.
start
- the lower bound of the range of ct commentsend
- the upper bound of the range of ct comments (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachevoid removeAll()
int countAll()