@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.
|
ViewCountEntry |
create(ViewCountEntryPK viewCountEntryPK)
Creates a new view count entry with the primary key.
|
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 |
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.
|
ViewCountEntry |
updateImpl(ViewCountEntry viewCountEntry) |
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
void 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()