Interface ViewCountEntryPersistence
- All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<ViewCountEntry>
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Method Summary
Modifier and TypeMethodDescriptionintcountByC_CN(long companyId, long classNameId) Returns the number of view count entries where companyId = ? and classNameId = ?.create(ViewCountEntryPK viewCountEntryPK) Creates a new view count entry with the primary key.fetchByC_CN_First(long companyId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<ViewCountEntry> orderByComparator) Returns the first view count entry in the ordered set where companyId = ? and classNameId = ?.fetchByPrimaryKey(ViewCountEntryPK viewCountEntryPK) Returns the view count entry with the primary key or returnsnullif it could not be found.default List<ViewCountEntry> findByC_CN(long companyId, long classNameId) Returns all the view count entries where companyId = ? and classNameId = ?.default List<ViewCountEntry> findByC_CN(long companyId, long classNameId, int start, int end) Returns a range of all the view count entries where companyId = ? and classNameId = ?.default List<ViewCountEntry> findByC_CN(long companyId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ViewCountEntry> orderByComparator) Returns an ordered range of all the view count entries where companyId = ? and classNameId = ?.findByC_CN(long companyId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ViewCountEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the view count entries where companyId = ? and classNameId = ?.findByC_CN_First(long companyId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<ViewCountEntry> orderByComparator) Returns the first view count entry in the ordered set where companyId = ? and classNameId = ?.findByPrimaryKey(ViewCountEntryPK viewCountEntryPK) Returns the view count entry with the primary key or throws aNoSuchEntryExceptionif it could not be found.remove(ViewCountEntryPK viewCountEntryPK) Removes the view count entry with the primary key from the database.voidremoveByC_CN(long companyId, long classNameId) Removes all the view count entries where companyId = ? and classNameId = ? from the database.updateImpl(ViewCountEntry viewCountEntry) Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence
cacheResult, cacheResult, clearCache, clearCache, clearCache, clearCache, closeSession, countAll, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQuery, dslQueryCount, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findAll, findAll, findAll, findAll, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, reassociateIfAbsent, registerListener, remove, remove, removeAll, removeByFunction, setDataSource, unregisterListener, update, update
-
Method Details
-
findByC_CN
List<ViewCountEntry> findByC_CN(long companyId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ViewCountEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the view count entries where companyId = ? and classNameId = ?.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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.view.count.model.impl.ViewCountEntryModelImpl.- Parameters:
companyId- the company IDclassNameId- the class name IDstart- the lower bound of the range of view count entriesend- the upper bound of the range of view count entries (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching view count entries
-
findByC_CN_First
ViewCountEntry findByC_CN_First(long companyId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<ViewCountEntry> orderByComparator) throws NoSuchEntryException Returns the first view count entry in the ordered set where companyId = ? and classNameId = ?.- Parameters:
companyId- the company IDclassNameId- the class name IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching view count entry
- Throws:
NoSuchEntryException- if a matching view count entry could not be found
-
fetchByC_CN_First
ViewCountEntry fetchByC_CN_First(long companyId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<ViewCountEntry> orderByComparator) Returns the first view count entry in the ordered set where companyId = ? and classNameId = ?.- Parameters:
companyId- the company IDclassNameId- the class name IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching view count entry, or
nullif a matching view count entry could not be found
-
removeByC_CN
void removeByC_CN(long companyId, long classNameId) Removes all the view count entries where companyId = ? and classNameId = ? from the database.- Parameters:
companyId- the company IDclassNameId- the class name ID
-
countByC_CN
int countByC_CN(long companyId, long classNameId) Returns the number of view count entries where companyId = ? and classNameId = ?.- Parameters:
companyId- the company IDclassNameId- the class name ID- Returns:
- the number of matching view count entries
-
create
Creates a new view count entry with the primary key. Does not add the view count entry to the database.- Parameters:
viewCountEntryPK- the primary key for the new view count entry- Returns:
- the new view count entry
-
remove
Removes the view count entry with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
viewCountEntryPK- the primary key of the view count entry- Returns:
- the view count entry that was removed
- Throws:
NoSuchEntryException- if a view count entry with the primary key could not be found
-
updateImpl
-
findByPrimaryKey
Returns the view count entry with the primary key or throws aNoSuchEntryExceptionif it could not be found.- Parameters:
viewCountEntryPK- the primary key of the view count entry- Returns:
- the view count entry
- Throws:
NoSuchEntryException- if a view count entry with the primary key could not be found
-
fetchByPrimaryKey
Returns the view count entry with the primary key or returnsnullif it could not be found.- Parameters:
viewCountEntryPK- the primary key of the view count entry- Returns:
- the view count entry, or
nullif a view count entry with the primary key could not be found
-
getCompoundPKColumnNames
-
findByC_CN
Returns all the view count entries where companyId = ? and classNameId = ?.- Parameters:
companyId- the company IDclassNameId- the class name ID- Returns:
- the matching view count entries
-
findByC_CN
Returns a range of all the view count entries where companyId = ? and classNameId = ?.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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.view.count.model.impl.ViewCountEntryModelImpl.- Parameters:
companyId- the company IDclassNameId- the class name IDstart- the lower bound of the range of view count entriesend- the upper bound of the range of view count entries (not inclusive)- Returns:
- the range of matching view count entries
-
findByC_CN
default List<ViewCountEntry> findByC_CN(long companyId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ViewCountEntry> orderByComparator) Returns an ordered range of all the view count entries where companyId = ? and classNameId = ?.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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.view.count.model.impl.ViewCountEntryModelImpl.- Parameters:
companyId- the company IDclassNameId- the class name IDstart- the lower bound of the range of view count entriesend- the upper bound of the range of view count entries (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching view count entries
-