@ProviderType public interface EntryPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<Entry>
Caching information and settings can be found in portal.properties
EntryUtil| Modifier and Type | Method and Description |
|---|---|
void |
cacheResult(Entry entry)
Caches the entry in the entity cache if it is enabled.
|
void |
cacheResult(java.util.List<Entry> entries)
Caches the entries in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of entries.
|
Entry |
create(long entryId)
Creates a new entry with the primary key.
|
Entry |
fetchByPrimaryKey(long entryId)
Returns the entry with the primary key or returns
null if it could not be found. |
java.util.List<Entry> |
findAll()
Returns all the entries.
|
java.util.List<Entry> |
findAll(int start,
int end)
Returns a range of all the entries.
|
java.util.List<Entry> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator)
Returns an ordered range of all the entries.
|
java.util.List<Entry> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the entries.
|
Entry |
findByPrimaryKey(long entryId)
Returns the entry with the primary key or throws a
NoSuchEntryException if it could not be found. |
Entry |
remove(long entryId)
Removes the entry with the primary key from the database.
|
void |
removeAll()
Removes all the entries from the database.
|
Entry |
updateImpl(Entry entry) |
clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, updatevoid cacheResult(Entry entry)
entry - the entryvoid cacheResult(java.util.List<Entry> entries)
entries - the entriesEntry create(long entryId)
entryId - the primary key for the new entryEntry remove(long entryId) throws NoSuchEntryException
entryId - the primary key of the entryNoSuchEntryException - if a entry with the primary key could not be foundEntry findByPrimaryKey(long entryId) throws NoSuchEntryException
NoSuchEntryException if it could not be found.entryId - the primary key of the entryNoSuchEntryException - if a entry with the primary key could not be foundEntry fetchByPrimaryKey(long entryId)
null if it could not be found.entryId - the primary key of the entrynull if a entry with the primary key could not be foundjava.util.List<Entry> findAll()
java.util.List<Entry> 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 EntryModelImpl.
start - the lower bound of the range of entriesend - the upper bound of the range of entries (not inclusive)java.util.List<Entry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Entry> 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 EntryModelImpl.
start - the lower bound of the range of entriesend - the upper bound of the range of entries (not inclusive)orderByComparator - the comparator to order the results by (optionally null)java.util.List<Entry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Entry> 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 EntryModelImpl.
start - the lower bound of the range of entriesend - the upper bound of the range of entries (not inclusive)orderByComparator - the comparator to order the results by (optionally null)useFinderCache - whether to use the finder cachevoid removeAll()
int countAll()