@ProviderType public interface ViewCountEntryPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<ViewCountEntry>
Caching information and settings can be found in portal.properties
ViewCountEntryUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(java.util.List<ViewCountEntry> viewCountEntries)
Caches the view count entries in the entity cache if it is enabled.
|
void |
cacheResult(ViewCountEntry viewCountEntry)
Caches the view count entry in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of view count entries.
|
int |
countByC_CN(long companyId,
long classNameId)
Returns the number of view count entries where companyId = ? and classNameId = ?.
|
ViewCountEntry |
create(ViewCountEntryPK viewCountEntryPK)
Creates a new view count entry with the primary key.
|
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 = ?.
|
ViewCountEntry |
fetchByC_CN_Last(long companyId,
long classNameId,
com.liferay.portal.kernel.util.OrderByComparator<ViewCountEntry> orderByComparator)
Returns the last view count entry in the ordered set where companyId = ? and classNameId = ?.
|
ViewCountEntry |
fetchByPrimaryKey(ViewCountEntryPK viewCountEntryPK)
Returns the view count entry with the primary key or returns
null if it could not be found. |
java.util.List<ViewCountEntry> |
findAll()
Returns all the view count entries.
|
java.util.List<ViewCountEntry> |
findAll(int start,
int end)
Returns a range of all the view count entries.
|
java.util.List<ViewCountEntry> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ViewCountEntry> orderByComparator)
Returns an ordered range of all the view count entries.
|
java.util.List<ViewCountEntry> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<ViewCountEntry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the view count entries.
|
ViewCountEntry |
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 = ?.
|
ViewCountEntry |
findByC_CN_Last(long companyId,
long classNameId,
com.liferay.portal.kernel.util.OrderByComparator<ViewCountEntry> orderByComparator)
Returns the last view count entry in the ordered set where companyId = ? and classNameId = ?.
|
ViewCountEntry[] |
findByC_CN_PrevAndNext(ViewCountEntryPK viewCountEntryPK,
long companyId,
long classNameId,
com.liferay.portal.kernel.util.OrderByComparator<ViewCountEntry> orderByComparator)
Returns the view count entries before and after the current view count entry in the ordered set where companyId = ? and classNameId = ?.
|
java.util.List<ViewCountEntry> |
findByC_CN(long companyId,
long classNameId)
Returns all the view count entries where companyId = ? and classNameId = ?.
|
java.util.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 = ?.
|
java.util.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 = ?.
|
java.util.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 = ?.
|
ViewCountEntry |
findByPrimaryKey(ViewCountEntryPK viewCountEntryPK)
Returns the view count entry with the primary key or throws a
NoSuchEntryException if it could not be found. |
java.util.Set<java.lang.String> |
getCompoundPKColumnNames() |
ViewCountEntry |
remove(ViewCountEntryPK viewCountEntryPK)
Removes the view count entry with the primary key from the database.
|
void |
removeAll()
Removes all the view count entries from the database.
|
void |
removeByC_CN(long companyId,
long classNameId)
Removes all the view count entries where companyId = ? and classNameId = ? from the database.
|
ViewCountEntry |
updateImpl(ViewCountEntry viewCountEntry) |
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
java.util.List<ViewCountEntry> findByC_CN(long companyId, long classNameId)
companyId
- the company IDclassNameId
- the class name IDjava.util.List<ViewCountEntry> findByC_CN(long companyId, long classNameId, 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 ViewCountEntryModelImpl
.
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)java.util.List<ViewCountEntry> findByC_CN(long companyId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ViewCountEntry> 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 ViewCountEntryModelImpl
.
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 (optionally null
)java.util.List<ViewCountEntry> findByC_CN(long companyId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ViewCountEntry> 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 ViewCountEntryModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cacheViewCountEntry findByC_CN_First(long companyId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<ViewCountEntry> orderByComparator) throws NoSuchEntryException
companyId
- the company IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching view count entry could not be foundViewCountEntry fetchByC_CN_First(long companyId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<ViewCountEntry> orderByComparator)
companyId
- the company IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching view count entry could not be foundViewCountEntry findByC_CN_Last(long companyId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<ViewCountEntry> orderByComparator) throws NoSuchEntryException
companyId
- the company IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a matching view count entry could not be foundViewCountEntry fetchByC_CN_Last(long companyId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<ViewCountEntry> orderByComparator)
companyId
- the company IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching view count entry could not be foundViewCountEntry[] findByC_CN_PrevAndNext(ViewCountEntryPK viewCountEntryPK, long companyId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<ViewCountEntry> orderByComparator) throws NoSuchEntryException
viewCountEntryPK
- the primary key of the current view count entrycompanyId
- the company IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEntryException
- if a view count entry with the primary key could not be foundvoid removeByC_CN(long companyId, long classNameId)
companyId
- the company IDclassNameId
- the class name IDint countByC_CN(long companyId, long classNameId)
companyId
- the company IDclassNameId
- the class name IDvoid cacheResult(ViewCountEntry viewCountEntry)
viewCountEntry
- the view count entryvoid cacheResult(java.util.List<ViewCountEntry> viewCountEntries)
viewCountEntries
- the view count entriesViewCountEntry create(ViewCountEntryPK viewCountEntryPK)
viewCountEntryPK
- the primary key for the new view count entryViewCountEntry remove(ViewCountEntryPK viewCountEntryPK) throws NoSuchEntryException
viewCountEntryPK
- the primary key of the view count entryNoSuchEntryException
- if a view count entry with the primary key could not be foundViewCountEntry updateImpl(ViewCountEntry viewCountEntry)
ViewCountEntry findByPrimaryKey(ViewCountEntryPK viewCountEntryPK) throws NoSuchEntryException
NoSuchEntryException
if it could not be found.viewCountEntryPK
- the primary key of the view count entryNoSuchEntryException
- if a view count entry with the primary key could not be foundViewCountEntry fetchByPrimaryKey(ViewCountEntryPK viewCountEntryPK)
null
if it could not be found.viewCountEntryPK
- the primary key of the view count entrynull
if a view count entry with the primary key could not be foundjava.util.List<ViewCountEntry> findAll()
java.util.List<ViewCountEntry> 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 ViewCountEntryModelImpl
.
start
- the lower bound of the range of view count entriesend
- the upper bound of the range of view count entries (not inclusive)java.util.List<ViewCountEntry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ViewCountEntry> 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 ViewCountEntryModelImpl
.
start
- 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 (optionally null
)java.util.List<ViewCountEntry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ViewCountEntry> 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 ViewCountEntryModelImpl
.
start
- 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 (optionally null
)useFinderCache
- whether to use the finder cachevoid removeAll()
int countAll()
java.util.Set<java.lang.String> getCompoundPKColumnNames()