Interface TrashEntryPersistence
- All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<TrashEntry>,com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<TrashEntry>
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Method Summary
Modifier and TypeMethodDescriptionvoidcacheResult(TrashEntry trashEntry) Caches the trash entry in the entity cache if it is enabled.voidcacheResult(List<TrashEntry> trashEntries) Caches the trash entries in the entity cache if it is enabled.intcountAll()Returns the number of trash entries.intcountByC_C(long classNameId, long classPK) Returns the number of trash entries where classNameId = ? and classPK = ?.intcountByCompanyId(long companyId) Returns the number of trash entries where companyId = ?.intcountByG_C(long groupId, long classNameId) Returns the number of trash entries where groupId = ? and classNameId = ?.intcountByG_LtCD(long groupId, Date createDate) Returns the number of trash entries where groupId = ? and createDate < ?.intcountByGroupId(long groupId) Returns the number of trash entries where groupId = ?.create(long entryId) Creates a new trash entry with the primary key.fetchByC_C(long classNameId, long classPK) Returns the trash entry where classNameId = ? and classPK = ? or returnsnullif it could not be found.fetchByC_C(long classNameId, long classPK, boolean useFinderCache) Returns the trash entry where classNameId = ? and classPK = ? or returnsnullif it could not be found, optionally using the finder cache.fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator) Returns the first trash entry in the ordered set where companyId = ?.fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator) Returns the last trash entry in the ordered set where companyId = ?.fetchByG_C_First(long groupId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator) Returns the first trash entry in the ordered set where groupId = ? and classNameId = ?.fetchByG_C_Last(long groupId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator) Returns the last trash entry in the ordered set where groupId = ? and classNameId = ?.fetchByG_LtCD_First(long groupId, Date createDate, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator) Returns the first trash entry in the ordered set where groupId = ? and createDate < ?.fetchByG_LtCD_Last(long groupId, Date createDate, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator) Returns the last trash entry in the ordered set where groupId = ? and createDate < ?.fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator) Returns the first trash entry in the ordered set where groupId = ?.fetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator) Returns the last trash entry in the ordered set where groupId = ?.fetchByPrimaryKey(long entryId) Returns the trash entry with the primary key or returnsnullif it could not be found.findAll()Returns all the trash entries.findAll(int start, int end) Returns a range of all the trash entries.findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator) Returns an ordered range of all the trash entries.findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the trash entries.findByC_C(long classNameId, long classPK) Returns the trash entry where classNameId = ? and classPK = ? or throws aNoSuchEntryExceptionif it could not be found.findByCompanyId(long companyId) Returns all the trash entries where companyId = ?.findByCompanyId(long companyId, int start, int end) Returns a range of all the trash entries where companyId = ?.findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator) Returns an ordered range of all the trash entries where companyId = ?.findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the trash entries where companyId = ?.findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator) Returns the first trash entry in the ordered set where companyId = ?.findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator) Returns the last trash entry in the ordered set where companyId = ?.findByCompanyId_PrevAndNext(long entryId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator) Returns the trash entries before and after the current trash entry in the ordered set where companyId = ?.findByG_C(long groupId, long classNameId) Returns all the trash entries where groupId = ? and classNameId = ?.findByG_C(long groupId, long classNameId, int start, int end) Returns a range of all the trash entries where groupId = ? and classNameId = ?.findByG_C(long groupId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator) Returns an ordered range of all the trash entries where groupId = ? and classNameId = ?.findByG_C(long groupId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the trash entries where groupId = ? and classNameId = ?.findByG_C_First(long groupId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator) Returns the first trash entry in the ordered set where groupId = ? and classNameId = ?.findByG_C_Last(long groupId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator) Returns the last trash entry in the ordered set where groupId = ? and classNameId = ?.findByG_C_PrevAndNext(long entryId, long groupId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator) Returns the trash entries before and after the current trash entry in the ordered set where groupId = ? and classNameId = ?.findByG_LtCD(long groupId, Date createDate) Returns all the trash entries where groupId = ? and createDate < ?.findByG_LtCD(long groupId, Date createDate, int start, int end) Returns a range of all the trash entries where groupId = ? and createDate < ?.findByG_LtCD(long groupId, Date createDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator) Returns an ordered range of all the trash entries where groupId = ? and createDate < ?.findByG_LtCD(long groupId, Date createDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the trash entries where groupId = ? and createDate < ?.findByG_LtCD_First(long groupId, Date createDate, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator) Returns the first trash entry in the ordered set where groupId = ? and createDate < ?.findByG_LtCD_Last(long groupId, Date createDate, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator) Returns the last trash entry in the ordered set where groupId = ? and createDate < ?.findByG_LtCD_PrevAndNext(long entryId, long groupId, Date createDate, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator) Returns the trash entries before and after the current trash entry in the ordered set where groupId = ? and createDate < ?.findByGroupId(long groupId) Returns all the trash entries where groupId = ?.findByGroupId(long groupId, int start, int end) Returns a range of all the trash entries where groupId = ?.findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator) Returns an ordered range of all the trash entries where groupId = ?.findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the trash entries where groupId = ?.findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator) Returns the first trash entry in the ordered set where groupId = ?.findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator) Returns the last trash entry in the ordered set where groupId = ?.findByGroupId_PrevAndNext(long entryId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator) Returns the trash entries before and after the current trash entry in the ordered set where groupId = ?.findByPrimaryKey(long entryId) Returns the trash entry with the primary key or throws aNoSuchEntryExceptionif it could not be found.remove(long entryId) Removes the trash entry with the primary key from the database.voidRemoves all the trash entries from the database.removeByC_C(long classNameId, long classPK) Removes the trash entry where classNameId = ? and classPK = ? from the database.voidremoveByCompanyId(long companyId) Removes all the trash entries where companyId = ? from the database.voidremoveByG_C(long groupId, long classNameId) Removes all the trash entries where groupId = ? and classNameId = ? from the database.voidremoveByG_LtCD(long groupId, Date createDate) Removes all the trash entries where groupId = ? and createDate < ? from the database.voidremoveByGroupId(long groupId) Removes all the trash entries where groupId = ? from the database.updateImpl(TrashEntry trashEntry) 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, updateMethods inherited from interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence
getCTColumnNames, getMappingTableNames, getTableColumnsMap, getTableName, getUniqueIndexColumnNames
-
Method Details
-
findByGroupId
Returns all the trash entries where groupId = ?.- Parameters:
groupId- the group ID- Returns:
- the matching trash entries
-
findByGroupId
Returns a range of all the trash entries where groupId = ?.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 fromTrashEntryModelImpl.- Parameters:
groupId- the group IDstart- the lower bound of the range of trash entriesend- the upper bound of the range of trash entries (not inclusive)- Returns:
- the range of matching trash entries
-
findByGroupId
List<TrashEntry> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator) Returns an ordered range of all the trash entries where groupId = ?.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 fromTrashEntryModelImpl.- Parameters:
groupId- the group IDstart- the lower bound of the range of trash entriesend- the upper bound of the range of trash entries (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching trash entries
-
findByGroupId
List<TrashEntry> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the trash entries where groupId = ?.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 fromTrashEntryModelImpl.- Parameters:
groupId- the group IDstart- the lower bound of the range of trash entriesend- the upper bound of the range of trash 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 trash entries
-
findByGroupId_First
TrashEntry findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator) throws NoSuchEntryException Returns the first trash entry in the ordered set where groupId = ?.- Parameters:
groupId- the group IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching trash entry
- Throws:
NoSuchEntryException- if a matching trash entry could not be found
-
fetchByGroupId_First
TrashEntry fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator) Returns the first trash entry in the ordered set where groupId = ?.- Parameters:
groupId- the group IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching trash entry, or
nullif a matching trash entry could not be found
-
findByGroupId_Last
TrashEntry findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator) throws NoSuchEntryException Returns the last trash entry in the ordered set where groupId = ?.- Parameters:
groupId- the group IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching trash entry
- Throws:
NoSuchEntryException- if a matching trash entry could not be found
-
fetchByGroupId_Last
TrashEntry fetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator) Returns the last trash entry in the ordered set where groupId = ?.- Parameters:
groupId- the group IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching trash entry, or
nullif a matching trash entry could not be found
-
findByGroupId_PrevAndNext
TrashEntry[] findByGroupId_PrevAndNext(long entryId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator) throws NoSuchEntryException Returns the trash entries before and after the current trash entry in the ordered set where groupId = ?.- Parameters:
entryId- the primary key of the current trash entrygroupId- the group IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next trash entry
- Throws:
NoSuchEntryException- if a trash entry with the primary key could not be found
-
removeByGroupId
void removeByGroupId(long groupId) Removes all the trash entries where groupId = ? from the database.- Parameters:
groupId- the group ID
-
countByGroupId
int countByGroupId(long groupId) Returns the number of trash entries where groupId = ?.- Parameters:
groupId- the group ID- Returns:
- the number of matching trash entries
-
findByCompanyId
Returns all the trash entries where companyId = ?.- Parameters:
companyId- the company ID- Returns:
- the matching trash entries
-
findByCompanyId
Returns a range of all the trash entries where companyId = ?.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 fromTrashEntryModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of trash entriesend- the upper bound of the range of trash entries (not inclusive)- Returns:
- the range of matching trash entries
-
findByCompanyId
List<TrashEntry> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator) Returns an ordered range of all the trash entries where companyId = ?.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 fromTrashEntryModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of trash entriesend- the upper bound of the range of trash entries (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching trash entries
-
findByCompanyId
List<TrashEntry> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the trash entries where companyId = ?.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 fromTrashEntryModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of trash entriesend- the upper bound of the range of trash 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 trash entries
-
findByCompanyId_First
TrashEntry findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator) throws NoSuchEntryException Returns the first trash entry in the ordered set where companyId = ?.- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching trash entry
- Throws:
NoSuchEntryException- if a matching trash entry could not be found
-
fetchByCompanyId_First
TrashEntry fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator) Returns the first trash entry in the ordered set where companyId = ?.- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching trash entry, or
nullif a matching trash entry could not be found
-
findByCompanyId_Last
TrashEntry findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator) throws NoSuchEntryException Returns the last trash entry in the ordered set where companyId = ?.- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching trash entry
- Throws:
NoSuchEntryException- if a matching trash entry could not be found
-
fetchByCompanyId_Last
TrashEntry fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator) Returns the last trash entry in the ordered set where companyId = ?.- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching trash entry, or
nullif a matching trash entry could not be found
-
findByCompanyId_PrevAndNext
TrashEntry[] findByCompanyId_PrevAndNext(long entryId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator) throws NoSuchEntryException Returns the trash entries before and after the current trash entry in the ordered set where companyId = ?.- Parameters:
entryId- the primary key of the current trash entrycompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next trash entry
- Throws:
NoSuchEntryException- if a trash entry with the primary key could not be found
-
removeByCompanyId
void removeByCompanyId(long companyId) Removes all the trash entries where companyId = ? from the database.- Parameters:
companyId- the company ID
-
countByCompanyId
int countByCompanyId(long companyId) Returns the number of trash entries where companyId = ?.- Parameters:
companyId- the company ID- Returns:
- the number of matching trash entries
-
findByG_LtCD
Returns all the trash entries where groupId = ? and createDate < ?.- Parameters:
groupId- the group IDcreateDate- the create date- Returns:
- the matching trash entries
-
findByG_LtCD
Returns a range of all the trash entries where groupId = ? and createDate < ?.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 fromTrashEntryModelImpl.- Parameters:
groupId- the group IDcreateDate- the create datestart- the lower bound of the range of trash entriesend- the upper bound of the range of trash entries (not inclusive)- Returns:
- the range of matching trash entries
-
findByG_LtCD
List<TrashEntry> findByG_LtCD(long groupId, Date createDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator) Returns an ordered range of all the trash entries where groupId = ? and createDate < ?.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 fromTrashEntryModelImpl.- Parameters:
groupId- the group IDcreateDate- the create datestart- the lower bound of the range of trash entriesend- the upper bound of the range of trash entries (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching trash entries
-
findByG_LtCD
List<TrashEntry> findByG_LtCD(long groupId, Date createDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the trash entries where groupId = ? and createDate < ?.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 fromTrashEntryModelImpl.- Parameters:
groupId- the group IDcreateDate- the create datestart- the lower bound of the range of trash entriesend- the upper bound of the range of trash 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 trash entries
-
findByG_LtCD_First
TrashEntry findByG_LtCD_First(long groupId, Date createDate, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator) throws NoSuchEntryException Returns the first trash entry in the ordered set where groupId = ? and createDate < ?.- Parameters:
groupId- the group IDcreateDate- the create dateorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching trash entry
- Throws:
NoSuchEntryException- if a matching trash entry could not be found
-
fetchByG_LtCD_First
TrashEntry fetchByG_LtCD_First(long groupId, Date createDate, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator) Returns the first trash entry in the ordered set where groupId = ? and createDate < ?.- Parameters:
groupId- the group IDcreateDate- the create dateorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching trash entry, or
nullif a matching trash entry could not be found
-
findByG_LtCD_Last
TrashEntry findByG_LtCD_Last(long groupId, Date createDate, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator) throws NoSuchEntryException Returns the last trash entry in the ordered set where groupId = ? and createDate < ?.- Parameters:
groupId- the group IDcreateDate- the create dateorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching trash entry
- Throws:
NoSuchEntryException- if a matching trash entry could not be found
-
fetchByG_LtCD_Last
TrashEntry fetchByG_LtCD_Last(long groupId, Date createDate, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator) Returns the last trash entry in the ordered set where groupId = ? and createDate < ?.- Parameters:
groupId- the group IDcreateDate- the create dateorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching trash entry, or
nullif a matching trash entry could not be found
-
findByG_LtCD_PrevAndNext
TrashEntry[] findByG_LtCD_PrevAndNext(long entryId, long groupId, Date createDate, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator) throws NoSuchEntryException Returns the trash entries before and after the current trash entry in the ordered set where groupId = ? and createDate < ?.- Parameters:
entryId- the primary key of the current trash entrygroupId- the group IDcreateDate- the create dateorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next trash entry
- Throws:
NoSuchEntryException- if a trash entry with the primary key could not be found
-
removeByG_LtCD
Removes all the trash entries where groupId = ? and createDate < ? from the database.- Parameters:
groupId- the group IDcreateDate- the create date
-
countByG_LtCD
Returns the number of trash entries where groupId = ? and createDate < ?.- Parameters:
groupId- the group IDcreateDate- the create date- Returns:
- the number of matching trash entries
-
findByG_C
Returns all the trash entries where groupId = ? and classNameId = ?.- Parameters:
groupId- the group IDclassNameId- the class name ID- Returns:
- the matching trash entries
-
findByG_C
Returns a range of all the trash entries where groupId = ? 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 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 fromTrashEntryModelImpl.- Parameters:
groupId- the group IDclassNameId- the class name IDstart- the lower bound of the range of trash entriesend- the upper bound of the range of trash entries (not inclusive)- Returns:
- the range of matching trash entries
-
findByG_C
List<TrashEntry> findByG_C(long groupId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator) Returns an ordered range of all the trash entries where groupId = ? 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 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 fromTrashEntryModelImpl.- Parameters:
groupId- the group IDclassNameId- the class name IDstart- the lower bound of the range of trash entriesend- the upper bound of the range of trash entries (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching trash entries
-
findByG_C
List<TrashEntry> findByG_C(long groupId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the trash entries where groupId = ? 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 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 fromTrashEntryModelImpl.- Parameters:
groupId- the group IDclassNameId- the class name IDstart- the lower bound of the range of trash entriesend- the upper bound of the range of trash 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 trash entries
-
findByG_C_First
TrashEntry findByG_C_First(long groupId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator) throws NoSuchEntryException Returns the first trash entry in the ordered set where groupId = ? and classNameId = ?.- Parameters:
groupId- the group IDclassNameId- the class name IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching trash entry
- Throws:
NoSuchEntryException- if a matching trash entry could not be found
-
fetchByG_C_First
TrashEntry fetchByG_C_First(long groupId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator) Returns the first trash entry in the ordered set where groupId = ? and classNameId = ?.- Parameters:
groupId- the group IDclassNameId- the class name IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching trash entry, or
nullif a matching trash entry could not be found
-
findByG_C_Last
TrashEntry findByG_C_Last(long groupId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator) throws NoSuchEntryException Returns the last trash entry in the ordered set where groupId = ? and classNameId = ?.- Parameters:
groupId- the group IDclassNameId- the class name IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching trash entry
- Throws:
NoSuchEntryException- if a matching trash entry could not be found
-
fetchByG_C_Last
TrashEntry fetchByG_C_Last(long groupId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator) Returns the last trash entry in the ordered set where groupId = ? and classNameId = ?.- Parameters:
groupId- the group IDclassNameId- the class name IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching trash entry, or
nullif a matching trash entry could not be found
-
findByG_C_PrevAndNext
TrashEntry[] findByG_C_PrevAndNext(long entryId, long groupId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator) throws NoSuchEntryException Returns the trash entries before and after the current trash entry in the ordered set where groupId = ? and classNameId = ?.- Parameters:
entryId- the primary key of the current trash entrygroupId- the group IDclassNameId- the class name IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next trash entry
- Throws:
NoSuchEntryException- if a trash entry with the primary key could not be found
-
removeByG_C
void removeByG_C(long groupId, long classNameId) Removes all the trash entries where groupId = ? and classNameId = ? from the database.- Parameters:
groupId- the group IDclassNameId- the class name ID
-
countByG_C
int countByG_C(long groupId, long classNameId) Returns the number of trash entries where groupId = ? and classNameId = ?.- Parameters:
groupId- the group IDclassNameId- the class name ID- Returns:
- the number of matching trash entries
-
findByC_C
Returns the trash entry where classNameId = ? and classPK = ? or throws aNoSuchEntryExceptionif it could not be found.- Parameters:
classNameId- the class name IDclassPK- the class pk- Returns:
- the matching trash entry
- Throws:
NoSuchEntryException- if a matching trash entry could not be found
-
fetchByC_C
Returns the trash entry where classNameId = ? and classPK = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
classNameId- the class name IDclassPK- the class pk- Returns:
- the matching trash entry, or
nullif a matching trash entry could not be found
-
fetchByC_C
Returns the trash entry where classNameId = ? and classPK = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
classNameId- the class name IDclassPK- the class pkuseFinderCache- whether to use the finder cache- Returns:
- the matching trash entry, or
nullif a matching trash entry could not be found
-
removeByC_C
Removes the trash entry where classNameId = ? and classPK = ? from the database.- Parameters:
classNameId- the class name IDclassPK- the class pk- Returns:
- the trash entry that was removed
- Throws:
NoSuchEntryException
-
countByC_C
int countByC_C(long classNameId, long classPK) Returns the number of trash entries where classNameId = ? and classPK = ?.- Parameters:
classNameId- the class name IDclassPK- the class pk- Returns:
- the number of matching trash entries
-
cacheResult
Caches the trash entry in the entity cache if it is enabled.- Parameters:
trashEntry- the trash entry
-
cacheResult
Caches the trash entries in the entity cache if it is enabled.- Parameters:
trashEntries- the trash entries
-
create
Creates a new trash entry with the primary key. Does not add the trash entry to the database.- Parameters:
entryId- the primary key for the new trash entry- Returns:
- the new trash entry
-
remove
Removes the trash entry with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
entryId- the primary key of the trash entry- Returns:
- the trash entry that was removed
- Throws:
NoSuchEntryException- if a trash entry with the primary key could not be found
-
updateImpl
-
findByPrimaryKey
Returns the trash entry with the primary key or throws aNoSuchEntryExceptionif it could not be found.- Parameters:
entryId- the primary key of the trash entry- Returns:
- the trash entry
- Throws:
NoSuchEntryException- if a trash entry with the primary key could not be found
-
fetchByPrimaryKey
Returns the trash entry with the primary key or returnsnullif it could not be found.- Parameters:
entryId- the primary key of the trash entry- Returns:
- the trash entry, or
nullif a trash entry with the primary key could not be found
-
findAll
List<TrashEntry> findAll()Returns all the trash entries.- Returns:
- the trash entries
-
findAll
Returns a range of all the trash 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 fromTrashEntryModelImpl.- Parameters:
start- the lower bound of the range of trash entriesend- the upper bound of the range of trash entries (not inclusive)- Returns:
- the range of trash entries
-
findAll
List<TrashEntry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator) Returns an ordered range of all the trash 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 fromTrashEntryModelImpl.- Parameters:
start- the lower bound of the range of trash entriesend- the upper bound of the range of trash entries (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of trash entries
-
findAll
List<TrashEntry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator, boolean useFinderCache) Returns an ordered range of all the trash 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 fromTrashEntryModelImpl.- Parameters:
start- the lower bound of the range of trash entriesend- the upper bound of the range of trash entries (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of trash entries
-
removeAll
void removeAll()Removes all the trash entries from the database. -
countAll
int countAll()Returns the number of trash entries.- Returns:
- the number of trash entries
-