Class TrashEntryUtil
com.liferay.trash.service.persistence.impl.TrashEntryPersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcacheResult(TrashEntry trashEntry) static voidcacheResult(List<TrashEntry> trashEntries) static voidstatic voidclearCache(TrashEntry trashEntry) static intcountByC_CN(long companyId, long classNameId) Returns the number of trash entries where companyId = ? and classNameId = ?.static intcountByCN_CPK(long classNameId, long classPK) Returns the number of trash entries where classNameId = ? and classPK = ?.static intcountByCompanyId(long companyId) Returns the number of trash entries where companyId = ?.static intcountByG_CN(long groupId, long classNameId) Returns the number of trash entries where groupId = ? and classNameId = ?.static intcountByG_LtCD(long groupId, Date createDate) Returns the number of trash entries where groupId = ? and createDate < ?.static intcountByGroupId(long groupId) Returns the number of trash entries where groupId = ?.static longcountWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static TrashEntrycreate(long entryId) Creates a new trash entry with the primary key.static TrashEntryfetchByC_CN_First(long companyId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator) Returns the first trash entry in the ordered set where companyId = ? and classNameId = ?.static TrashEntryfetchByCN_CPK(long classNameId, long classPK) Returns the trash entry where classNameId = ? and classPK = ? or returnsnullif it could not be found.static TrashEntryfetchByCN_CPK(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.static TrashEntryfetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator) Returns the first trash entry in the ordered set where companyId = ?.static TrashEntryfetchByG_CN_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 = ?.static TrashEntryfetchByG_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 < ?.static TrashEntryfetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator) Returns the first trash entry in the ordered set where groupId = ?.static TrashEntryfetchByPrimaryKey(long entryId) Returns the trash entry with the primary key or returnsnullif it could not be found.static Map<Serializable, TrashEntry> fetchByPrimaryKeys(Set<Serializable> primaryKeys) static List<TrashEntry> findByC_CN(long companyId, long classNameId) Returns all the trash entries where companyId = ? and classNameId = ?.static List<TrashEntry> findByC_CN(long companyId, long classNameId, int start, int end) Returns a range of all the trash entries where companyId = ? and classNameId = ?.static List<TrashEntry> findByC_CN(long companyId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator) Returns an ordered range of all the trash entries where companyId = ? and classNameId = ?.static List<TrashEntry> findByC_CN(long companyId, 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 companyId = ? and classNameId = ?.static TrashEntryfindByC_CN_First(long companyId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator) Returns the first trash entry in the ordered set where companyId = ? and classNameId = ?.static TrashEntryfindByCN_CPK(long classNameId, long classPK) Returns the trash entry where classNameId = ? and classPK = ? or throws aNoSuchEntryExceptionif it could not be found.static List<TrashEntry> findByCompanyId(long companyId) Returns all the trash entries where companyId = ?.static List<TrashEntry> findByCompanyId(long companyId, int start, int end) Returns a range of all the trash entries where companyId = ?.static 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 = ?.static 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 = ?.static TrashEntryfindByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator) Returns the first trash entry in the ordered set where companyId = ?.static List<TrashEntry> findByG_CN(long groupId, long classNameId) Returns all the trash entries where groupId = ? and classNameId = ?.static List<TrashEntry> findByG_CN(long groupId, long classNameId, int start, int end) Returns a range of all the trash entries where groupId = ? and classNameId = ?.static List<TrashEntry> findByG_CN(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 = ?.static List<TrashEntry> findByG_CN(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 = ?.static TrashEntryfindByG_CN_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 = ?.static List<TrashEntry> findByG_LtCD(long groupId, Date createDate) Returns all the trash entries where groupId = ? and createDate < ?.static List<TrashEntry> findByG_LtCD(long groupId, Date createDate, int start, int end) Returns a range of all the trash entries where groupId = ? and createDate < ?.static 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 < ?.static 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 < ?.static TrashEntryfindByG_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 < ?.static List<TrashEntry> findByGroupId(long groupId) Returns all the trash entries where groupId = ?.static List<TrashEntry> findByGroupId(long groupId, int start, int end) Returns a range of all the trash entries where groupId = ?.static 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 = ?.static 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 = ?.static TrashEntryfindByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator) Returns the first trash entry in the ordered set where groupId = ?.static TrashEntryfindByPrimaryKey(long entryId) Returns the trash entry with the primary key or throws aNoSuchEntryExceptionif it could not be found.static List<TrashEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<TrashEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<TrashEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator) static TrashEntryPersistencestatic TrashEntryremove(long entryId) Removes the trash entry with the primary key from the database.static voidremoveByC_CN(long companyId, long classNameId) Removes all the trash entries where companyId = ? and classNameId = ? from the database.static TrashEntryremoveByCN_CPK(long classNameId, long classPK) Removes the trash entry where classNameId = ? and classPK = ? from the database.static voidremoveByCompanyId(long companyId) Removes all the trash entries where companyId = ? from the database.static voidremoveByG_CN(long groupId, long classNameId) Removes all the trash entries where groupId = ? and classNameId = ? from the database.static voidremoveByG_LtCD(long groupId, Date createDate) Removes all the trash entries where groupId = ? and createDate < ? from the database.static voidremoveByGroupId(long groupId) Removes all the trash entries where groupId = ? from the database.static voidsetPersistence(TrashEntryPersistence persistence) static TrashEntryupdate(TrashEntry trashEntry) static TrashEntryupdate(TrashEntry trashEntry, com.liferay.portal.kernel.service.ServiceContext serviceContext) static TrashEntryupdateImpl(TrashEntry trashEntry)
-
Constructor Details
-
TrashEntryUtil
public TrashEntryUtil()
-
-
Method Details
-
cacheResult
- See Also:
-
cacheResult
- See Also:
-
clearCache
public static void clearCache()- See Also:
-
clearCache
- See Also:
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
fetchByPrimaryKeys
- See Also:
-
findWithDynamicQuery
public static List<TrashEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
findWithDynamicQuery
public static List<TrashEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
findWithDynamicQuery
public static List<TrashEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator) - See Also:
-
update
- See Also:
-
update
public static TrashEntry update(TrashEntry trashEntry, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
findByGroupId
public static 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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.trash.model.impl.TrashEntryModelImpl.- 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
public static 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
-
fetchByGroupId_First
public static 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
-
removeByGroupId
public static void removeByGroupId(long groupId) Removes all the trash entries where groupId = ? from the database.- Parameters:
groupId- the group ID
-
countByGroupId
public static 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
public static 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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.trash.model.impl.TrashEntryModelImpl.- 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
public static 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
-
fetchByCompanyId_First
public static 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
-
removeByCompanyId
public static void removeByCompanyId(long companyId) Removes all the trash entries where companyId = ? from the database.- Parameters:
companyId- the company ID
-
countByCompanyId
public static 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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.trash.model.impl.TrashEntryModelImpl.- 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
public static 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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.trash.model.impl.TrashEntryModelImpl.- 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
public static 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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.trash.model.impl.TrashEntryModelImpl.- 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
public static 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
-
fetchByG_LtCD_First
public static 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
-
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_CN
public static List<TrashEntry> findByG_CN(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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.trash.model.impl.TrashEntryModelImpl.- 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_CN_First
public static TrashEntry findByG_CN_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
-
fetchByG_CN_First
public static TrashEntry fetchByG_CN_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
-
removeByG_CN
public static void removeByG_CN(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_CN
public static int countByG_CN(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_CN
public static List<TrashEntry> findByC_CN(long companyId, 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 companyId = ? 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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.trash.model.impl.TrashEntryModelImpl.- Parameters:
companyId- the company 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
-
findByC_CN_First
public static TrashEntry findByC_CN_First(long companyId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator) throws NoSuchEntryException Returns the first trash entry in the ordered set where companyId = ? and classNameId = ?.- Parameters:
companyId- the company IDclassNameId- the class name IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching trash entry
-
fetchByC_CN_First
public static TrashEntry fetchByC_CN_First(long companyId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator) Returns the first trash entry in the ordered set where companyId = ? and classNameId = ?.- Parameters:
companyId- the company 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
-
removeByC_CN
public static void removeByC_CN(long companyId, long classNameId) Removes all the trash entries where companyId = ? and classNameId = ? from the database.- Parameters:
companyId- the company IDclassNameId- the class name ID
-
countByC_CN
public static int countByC_CN(long companyId, long classNameId) Returns the number of trash entries where companyId = ? and classNameId = ?.- Parameters:
companyId- the company IDclassNameId- the class name ID- Returns:
- the number of matching trash entries
-
findByCN_CPK
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
-
fetchByCN_CPK
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
-
removeByCN_CPK
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
-
countByCN_CPK
public static int countByCN_CPK(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
-
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
-
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
-
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
-
fetchByCN_CPK
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
-
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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.trash.model.impl.TrashEntryModelImpl.- 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
public static 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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.trash.model.impl.TrashEntryModelImpl.- 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
-
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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.trash.model.impl.TrashEntryModelImpl.- 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
public static 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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.trash.model.impl.TrashEntryModelImpl.- 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
-
findByG_CN
Returns all the trash entries where groupId = ? and classNameId = ?.- Parameters:
groupId- the group IDclassNameId- the class name ID- Returns:
- the matching trash entries
-
findByG_CN
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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.trash.model.impl.TrashEntryModelImpl.- 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_CN
public static List<TrashEntry> findByG_CN(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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.trash.model.impl.TrashEntryModelImpl.- 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
-
findByC_CN
Returns all the trash entries where companyId = ? and classNameId = ?.- Parameters:
companyId- the company IDclassNameId- the class name ID- Returns:
- the matching trash entries
-
findByC_CN
Returns a range of all the trash entries where companyId = ? 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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.trash.model.impl.TrashEntryModelImpl.- Parameters:
companyId- the company 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
-
findByC_CN
public static List<TrashEntry> findByC_CN(long companyId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator) Returns an ordered range of all the trash entries where companyId = ? 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 bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#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 fromcom.liferay.trash.model.impl.TrashEntryModelImpl.- Parameters:
companyId- the company 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
-
getPersistence
-
setPersistence
-