Interface EntryPersistence
- All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<Entry>
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Method Summary
Modifier and TypeMethodDescriptionvoidcacheResult(Entry entry) Caches the entry in the entity cache if it is enabled.voidcacheResult(List<Entry> entries) Caches the entries in the entity cache if it is enabled.intcountAll()Returns the number of entries.create(long entryId) Creates a new entry with the primary key.fetchByPrimaryKey(long entryId) Returns the entry with the primary key or returnsnullif it could not be found.findAll()Returns all the entries.findAll(int start, int end) Returns a range of all the entries.findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator) Returns an ordered range of all the entries.findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the entries.findByPrimaryKey(long entryId) Returns the entry with the primary key or throws aNoSuchEntryExceptionif it could not be found.remove(long entryId) Removes the entry with the primary key from the database.voidRemoves all the entries from the database.updateImpl(Entry entry) Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence
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
-
Method Details
-
cacheResult
Caches the entry in the entity cache if it is enabled.- Parameters:
entry- the entry
-
cacheResult
Caches the entries in the entity cache if it is enabled.- Parameters:
entries- the entries
-
create
Creates a new entry with the primary key. Does not add the entry to the database.- Parameters:
entryId- the primary key for the new entry- Returns:
- the new entry
-
remove
Removes the entry with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
entryId- the primary key of the entry- Returns:
- the entry that was removed
- Throws:
NoSuchEntryException- if a entry with the primary key could not be found
-
updateImpl
-
findByPrimaryKey
Returns the entry with the primary key or throws aNoSuchEntryExceptionif it could not be found.- Parameters:
entryId- the primary key of the entry- Returns:
- the entry
- Throws:
NoSuchEntryException- if a entry with the primary key could not be found
-
fetchByPrimaryKey
Returns the entry with the primary key or returnsnullif it could not be found.- Parameters:
entryId- the primary key of the entry- Returns:
- the entry, or
nullif a entry with the primary key could not be found
-
findAll
Returns all the entries.- Returns:
- the entries
-
findAll
Returns a range of all the entries.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 bothstartandendtoQueryUtil#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 fromEntryModelImpl.- Parameters:
start- the lower bound of the range of entriesend- the upper bound of the range of entries (not inclusive)- Returns:
- the range of entries
-
findAll
List<Entry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Entry> orderByComparator) Returns an ordered range of all the entries.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 bothstartandendtoQueryUtil#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 fromEntryModelImpl.- Parameters:
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 (optionallynull)- Returns:
- the ordered range of entries
-
findAll
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.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 bothstartandendtoQueryUtil#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 fromEntryModelImpl.- Parameters:
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 (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of entries
-
removeAll
void removeAll()Removes all the entries from the database. -
countAll
int countAll()Returns the number of entries.- Returns:
- the number of entries
-