/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package com.liferay.trash.kernel.service.persistence;
import aQute.bnd.annotation.ProviderType;
import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
import com.liferay.portal.kernel.dao.orm.DynamicQuery;
import com.liferay.portal.kernel.service.ServiceContext;
import com.liferay.portal.kernel.util.OrderByComparator;
import com.liferay.portal.kernel.util.ReferenceRegistry;
import com.liferay.trash.kernel.model.TrashEntry;
import java.util.Date;
import java.util.List;
/**
* The persistence utility for the trash entry service. This utility wraps {@link com.liferay.portlet.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.
*
* <p>
* Caching information and settings can be found in <code>portal.properties</code>
* </p>
*
* @author Brian Wing Shun Chan
* @see TrashEntryPersistence
* @see com.liferay.portlet.trash.service.persistence.impl.TrashEntryPersistenceImpl
* @generated
*/
@ProviderType
public class TrashEntryUtil {
/*
* NOTE FOR DEVELOPERS:
*
* Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
*/
/**
* @see com.liferay.portal.kernel.service.persistence.BasePersistence#clearCache()
*/
public static void clearCache() {
getPersistence().clearCache();
}
/**
* @see com.liferay.portal.kernel.service.persistence.BasePersistence#clearCache(com.liferay.portal.kernel.model.BaseModel)
*/
public static void clearCache(TrashEntry trashEntry) {
getPersistence().clearCache(trashEntry);
}
/**
* @see com.liferay.portal.kernel.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
*/
public static long countWithDynamicQuery(DynamicQuery dynamicQuery) {
return getPersistence().countWithDynamicQuery(dynamicQuery);
}
/**
* @see com.liferay.portal.kernel.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
*/
public static List<TrashEntry> findWithDynamicQuery(
DynamicQuery dynamicQuery) {
return getPersistence().findWithDynamicQuery(dynamicQuery);
}
/**
* @see com.liferay.portal.kernel.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
*/
public static List<TrashEntry> findWithDynamicQuery(
DynamicQuery dynamicQuery, int start, int end) {
return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
}
/**
* @see com.liferay.portal.kernel.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
*/
public static List<TrashEntry> findWithDynamicQuery(
DynamicQuery dynamicQuery, int start, int end,
OrderByComparator<TrashEntry> orderByComparator) {
return getPersistence()
.findWithDynamicQuery(dynamicQuery, start, end,
orderByComparator);
}
/**
* @see com.liferay.portal.kernel.service.persistence.BasePersistence#update(com.liferay.portal.kernel.model.BaseModel)
*/
public static TrashEntry update(TrashEntry trashEntry) {
return getPersistence().update(trashEntry);
}
/**
* @see com.liferay.portal.kernel.service.persistence.BasePersistence#update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
*/
public static TrashEntry update(TrashEntry trashEntry,
ServiceContext serviceContext) {
return getPersistence().update(trashEntry, serviceContext);
}
/**
* Returns all the trash entries where groupId = ?.
*
* @param groupId the group ID
* @return the matching trash entries
*/
public static List<TrashEntry> findByGroupId(long groupId) {
return getPersistence().findByGroupId(groupId);
}
/**
* Returns a range of all the trash entries where groupId = ?.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link TrashEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param groupId the group ID
* @param start the lower bound of the range of trash entries
* @param end the upper bound of the range of trash entries (not inclusive)
* @return the range of matching trash entries
*/
public static List<TrashEntry> findByGroupId(long groupId, int start,
int end) {
return getPersistence().findByGroupId(groupId, start, end);
}
/**
* Returns an ordered range of all the trash entries where groupId = ?.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link TrashEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param groupId the group ID
* @param start the lower bound of the range of trash entries
* @param end the upper bound of the range of trash entries (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
* @return the ordered range of matching trash entries
*/
public static List<TrashEntry> findByGroupId(long groupId, int start,
int end, OrderByComparator<TrashEntry> orderByComparator) {
return getPersistence()
.findByGroupId(groupId, start, end, orderByComparator);
}
/**
* Returns an ordered range of all the trash entries where groupId = ?.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link TrashEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param groupId the group ID
* @param start the lower bound of the range of trash entries
* @param end the upper bound of the range of trash entries (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
* @param retrieveFromCache whether to retrieve from the finder cache
* @return the ordered range of matching trash entries
*/
public static List<TrashEntry> findByGroupId(long groupId, int start,
int end, OrderByComparator<TrashEntry> orderByComparator,
boolean retrieveFromCache) {
return getPersistence()
.findByGroupId(groupId, start, end, orderByComparator,
retrieveFromCache);
}
/**
* Returns the first trash entry in the ordered set where groupId = ?.
*
* @param groupId the group ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the first matching trash entry
* @throws NoSuchEntryException if a matching trash entry could not be found
*/
public static TrashEntry findByGroupId_First(long groupId,
OrderByComparator<TrashEntry> orderByComparator)
throws com.liferay.trash.kernel.exception.NoSuchEntryException {
return getPersistence().findByGroupId_First(groupId, orderByComparator);
}
/**
* Returns the first trash entry in the ordered set where groupId = ?.
*
* @param groupId the group ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the first matching trash entry, or <code>null</code> if a matching trash entry could not be found
*/
public static TrashEntry fetchByGroupId_First(long groupId,
OrderByComparator<TrashEntry> orderByComparator) {
return getPersistence().fetchByGroupId_First(groupId, orderByComparator);
}
/**
* Returns the last trash entry in the ordered set where groupId = ?.
*
* @param groupId the group ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the last matching trash entry
* @throws NoSuchEntryException if a matching trash entry could not be found
*/
public static TrashEntry findByGroupId_Last(long groupId,
OrderByComparator<TrashEntry> orderByComparator)
throws com.liferay.trash.kernel.exception.NoSuchEntryException {
return getPersistence().findByGroupId_Last(groupId, orderByComparator);
}
/**
* Returns the last trash entry in the ordered set where groupId = ?.
*
* @param groupId the group ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the last matching trash entry, or <code>null</code> if a matching trash entry could not be found
*/
public static TrashEntry fetchByGroupId_Last(long groupId,
OrderByComparator<TrashEntry> orderByComparator) {
return getPersistence().fetchByGroupId_Last(groupId, orderByComparator);
}
/**
* Returns the trash entries before and after the current trash entry in the ordered set where groupId = ?.
*
* @param entryId the primary key of the current trash entry
* @param groupId the group ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the previous, current, and next trash entry
* @throws NoSuchEntryException if a trash entry with the primary key could not be found
*/
public static TrashEntry[] findByGroupId_PrevAndNext(long entryId,
long groupId, OrderByComparator<TrashEntry> orderByComparator)
throws com.liferay.trash.kernel.exception.NoSuchEntryException {
return getPersistence()
.findByGroupId_PrevAndNext(entryId, groupId,
orderByComparator);
}
/**
* Removes all the trash entries where groupId = ? from the database.
*
* @param groupId the group ID
*/
public static void removeByGroupId(long groupId) {
getPersistence().removeByGroupId(groupId);
}
/**
* Returns the number of trash entries where groupId = ?.
*
* @param groupId the group ID
* @return the number of matching trash entries
*/
public static int countByGroupId(long groupId) {
return getPersistence().countByGroupId(groupId);
}
/**
* Returns all the trash entries where companyId = ?.
*
* @param companyId the company ID
* @return the matching trash entries
*/
public static List<TrashEntry> findByCompanyId(long companyId) {
return getPersistence().findByCompanyId(companyId);
}
/**
* Returns a range of all the trash entries where companyId = ?.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link TrashEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param companyId the company ID
* @param start the lower bound of the range of trash entries
* @param end the upper bound of the range of trash entries (not inclusive)
* @return the range of matching trash entries
*/
public static List<TrashEntry> findByCompanyId(long companyId, int start,
int end) {
return getPersistence().findByCompanyId(companyId, start, end);
}
/**
* Returns an ordered range of all the trash entries where companyId = ?.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link TrashEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param companyId the company ID
* @param start the lower bound of the range of trash entries
* @param end the upper bound of the range of trash entries (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
* @return the ordered range of matching trash entries
*/
public static List<TrashEntry> findByCompanyId(long companyId, int start,
int end, OrderByComparator<TrashEntry> orderByComparator) {
return getPersistence()
.findByCompanyId(companyId, start, end, orderByComparator);
}
/**
* Returns an ordered range of all the trash entries where companyId = ?.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link TrashEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param companyId the company ID
* @param start the lower bound of the range of trash entries
* @param end the upper bound of the range of trash entries (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
* @param retrieveFromCache whether to retrieve from the finder cache
* @return the ordered range of matching trash entries
*/
public static List<TrashEntry> findByCompanyId(long companyId, int start,
int end, OrderByComparator<TrashEntry> orderByComparator,
boolean retrieveFromCache) {
return getPersistence()
.findByCompanyId(companyId, start, end, orderByComparator,
retrieveFromCache);
}
/**
* Returns the first trash entry in the ordered set where companyId = ?.
*
* @param companyId the company ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the first matching trash entry
* @throws NoSuchEntryException if a matching trash entry could not be found
*/
public static TrashEntry findByCompanyId_First(long companyId,
OrderByComparator<TrashEntry> orderByComparator)
throws com.liferay.trash.kernel.exception.NoSuchEntryException {
return getPersistence()
.findByCompanyId_First(companyId, orderByComparator);
}
/**
* Returns the first trash entry in the ordered set where companyId = ?.
*
* @param companyId the company ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the first matching trash entry, or <code>null</code> if a matching trash entry could not be found
*/
public static TrashEntry fetchByCompanyId_First(long companyId,
OrderByComparator<TrashEntry> orderByComparator) {
return getPersistence()
.fetchByCompanyId_First(companyId, orderByComparator);
}
/**
* Returns the last trash entry in the ordered set where companyId = ?.
*
* @param companyId the company ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the last matching trash entry
* @throws NoSuchEntryException if a matching trash entry could not be found
*/
public static TrashEntry findByCompanyId_Last(long companyId,
OrderByComparator<TrashEntry> orderByComparator)
throws com.liferay.trash.kernel.exception.NoSuchEntryException {
return getPersistence()
.findByCompanyId_Last(companyId, orderByComparator);
}
/**
* Returns the last trash entry in the ordered set where companyId = ?.
*
* @param companyId the company ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the last matching trash entry, or <code>null</code> if a matching trash entry could not be found
*/
public static TrashEntry fetchByCompanyId_Last(long companyId,
OrderByComparator<TrashEntry> orderByComparator) {
return getPersistence()
.fetchByCompanyId_Last(companyId, orderByComparator);
}
/**
* Returns the trash entries before and after the current trash entry in the ordered set where companyId = ?.
*
* @param entryId the primary key of the current trash entry
* @param companyId the company ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the previous, current, and next trash entry
* @throws NoSuchEntryException if a trash entry with the primary key could not be found
*/
public static TrashEntry[] findByCompanyId_PrevAndNext(long entryId,
long companyId, OrderByComparator<TrashEntry> orderByComparator)
throws com.liferay.trash.kernel.exception.NoSuchEntryException {
return getPersistence()
.findByCompanyId_PrevAndNext(entryId, companyId,
orderByComparator);
}
/**
* Removes all the trash entries where companyId = ? from the database.
*
* @param companyId the company ID
*/
public static void removeByCompanyId(long companyId) {
getPersistence().removeByCompanyId(companyId);
}
/**
* Returns the number of trash entries where companyId = ?.
*
* @param companyId the company ID
* @return the number of matching trash entries
*/
public static int countByCompanyId(long companyId) {
return getPersistence().countByCompanyId(companyId);
}
/**
* Returns all the trash entries where groupId = ? and createDate < ?.
*
* @param groupId the group ID
* @param createDate the create date
* @return the matching trash entries
*/
public static List<TrashEntry> findByG_LtCD(long groupId, Date createDate) {
return getPersistence().findByG_LtCD(groupId, createDate);
}
/**
* Returns a range of all the trash entries where groupId = ? and createDate < ?.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link TrashEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param groupId the group ID
* @param createDate the create date
* @param start the lower bound of the range of trash entries
* @param end the upper bound of the range of trash entries (not inclusive)
* @return the range of matching trash entries
*/
public static List<TrashEntry> findByG_LtCD(long groupId, Date createDate,
int start, int end) {
return getPersistence().findByG_LtCD(groupId, createDate, start, end);
}
/**
* Returns an ordered range of all the trash entries where groupId = ? and createDate < ?.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link TrashEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param groupId the group ID
* @param createDate the create date
* @param start the lower bound of the range of trash entries
* @param end the upper bound of the range of trash entries (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
* @return the ordered range of matching trash entries
*/
public static List<TrashEntry> findByG_LtCD(long groupId, Date createDate,
int start, int end, OrderByComparator<TrashEntry> orderByComparator) {
return getPersistence()
.findByG_LtCD(groupId, createDate, start, end,
orderByComparator);
}
/**
* Returns an ordered range of all the trash entries where groupId = ? and createDate < ?.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link TrashEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param groupId the group ID
* @param createDate the create date
* @param start the lower bound of the range of trash entries
* @param end the upper bound of the range of trash entries (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
* @param retrieveFromCache whether to retrieve from the finder cache
* @return the ordered range of matching trash entries
*/
public static List<TrashEntry> findByG_LtCD(long groupId, Date createDate,
int start, int end, OrderByComparator<TrashEntry> orderByComparator,
boolean retrieveFromCache) {
return getPersistence()
.findByG_LtCD(groupId, createDate, start, end,
orderByComparator, retrieveFromCache);
}
/**
* Returns the first trash entry in the ordered set where groupId = ? and createDate < ?.
*
* @param groupId the group ID
* @param createDate the create date
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the first matching trash entry
* @throws NoSuchEntryException if a matching trash entry could not be found
*/
public static TrashEntry findByG_LtCD_First(long groupId, Date createDate,
OrderByComparator<TrashEntry> orderByComparator)
throws com.liferay.trash.kernel.exception.NoSuchEntryException {
return getPersistence()
.findByG_LtCD_First(groupId, createDate, orderByComparator);
}
/**
* Returns the first trash entry in the ordered set where groupId = ? and createDate < ?.
*
* @param groupId the group ID
* @param createDate the create date
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the first matching trash entry, or <code>null</code> if a matching trash entry could not be found
*/
public static TrashEntry fetchByG_LtCD_First(long groupId, Date createDate,
OrderByComparator<TrashEntry> orderByComparator) {
return getPersistence()
.fetchByG_LtCD_First(groupId, createDate, orderByComparator);
}
/**
* Returns the last trash entry in the ordered set where groupId = ? and createDate < ?.
*
* @param groupId the group ID
* @param createDate the create date
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the last matching trash entry
* @throws NoSuchEntryException if a matching trash entry could not be found
*/
public static TrashEntry findByG_LtCD_Last(long groupId, Date createDate,
OrderByComparator<TrashEntry> orderByComparator)
throws com.liferay.trash.kernel.exception.NoSuchEntryException {
return getPersistence()
.findByG_LtCD_Last(groupId, createDate, orderByComparator);
}
/**
* Returns the last trash entry in the ordered set where groupId = ? and createDate < ?.
*
* @param groupId the group ID
* @param createDate the create date
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the last matching trash entry, or <code>null</code> if a matching trash entry could not be found
*/
public static TrashEntry fetchByG_LtCD_Last(long groupId, Date createDate,
OrderByComparator<TrashEntry> orderByComparator) {
return getPersistence()
.fetchByG_LtCD_Last(groupId, createDate, orderByComparator);
}
/**
* Returns the trash entries before and after the current trash entry in the ordered set where groupId = ? and createDate < ?.
*
* @param entryId the primary key of the current trash entry
* @param groupId the group ID
* @param createDate the create date
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the previous, current, and next trash entry
* @throws NoSuchEntryException if a trash entry with the primary key could not be found
*/
public static TrashEntry[] findByG_LtCD_PrevAndNext(long entryId,
long groupId, Date createDate,
OrderByComparator<TrashEntry> orderByComparator)
throws com.liferay.trash.kernel.exception.NoSuchEntryException {
return getPersistence()
.findByG_LtCD_PrevAndNext(entryId, groupId, createDate,
orderByComparator);
}
/**
* Removes all the trash entries where groupId = ? and createDate < ? from the database.
*
* @param groupId the group ID
* @param createDate the create date
*/
public static void removeByG_LtCD(long groupId, Date createDate) {
getPersistence().removeByG_LtCD(groupId, createDate);
}
/**
* Returns the number of trash entries where groupId = ? and createDate < ?.
*
* @param groupId the group ID
* @param createDate the create date
* @return the number of matching trash entries
*/
public static int countByG_LtCD(long groupId, Date createDate) {
return getPersistence().countByG_LtCD(groupId, createDate);
}
/**
* Returns all the trash entries where groupId = ? and classNameId = ?.
*
* @param groupId the group ID
* @param classNameId the class name ID
* @return the matching trash entries
*/
public static List<TrashEntry> findByG_C(long groupId, long classNameId) {
return getPersistence().findByG_C(groupId, classNameId);
}
/**
* Returns a range of all the trash entries where groupId = ? and classNameId = ?.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link TrashEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param groupId the group ID
* @param classNameId the class name ID
* @param start the lower bound of the range of trash entries
* @param end the upper bound of the range of trash entries (not inclusive)
* @return the range of matching trash entries
*/
public static List<TrashEntry> findByG_C(long groupId, long classNameId,
int start, int end) {
return getPersistence().findByG_C(groupId, classNameId, start, end);
}
/**
* Returns an ordered range of all the trash entries where groupId = ? and classNameId = ?.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link TrashEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param groupId the group ID
* @param classNameId the class name ID
* @param start the lower bound of the range of trash entries
* @param end the upper bound of the range of trash entries (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
* @return the ordered range of matching trash entries
*/
public static List<TrashEntry> findByG_C(long groupId, long classNameId,
int start, int end, OrderByComparator<TrashEntry> orderByComparator) {
return getPersistence()
.findByG_C(groupId, classNameId, start, end,
orderByComparator);
}
/**
* Returns an ordered range of all the trash entries where groupId = ? and classNameId = ?.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link TrashEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param groupId the group ID
* @param classNameId the class name ID
* @param start the lower bound of the range of trash entries
* @param end the upper bound of the range of trash entries (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
* @param retrieveFromCache whether to retrieve from the finder cache
* @return the ordered range of matching trash entries
*/
public static List<TrashEntry> findByG_C(long groupId, long classNameId,
int start, int end, OrderByComparator<TrashEntry> orderByComparator,
boolean retrieveFromCache) {
return getPersistence()
.findByG_C(groupId, classNameId, start, end,
orderByComparator, retrieveFromCache);
}
/**
* Returns the first trash entry in the ordered set where groupId = ? and classNameId = ?.
*
* @param groupId the group ID
* @param classNameId the class name ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the first matching trash entry
* @throws NoSuchEntryException if a matching trash entry could not be found
*/
public static TrashEntry findByG_C_First(long groupId, long classNameId,
OrderByComparator<TrashEntry> orderByComparator)
throws com.liferay.trash.kernel.exception.NoSuchEntryException {
return getPersistence()
.findByG_C_First(groupId, classNameId, orderByComparator);
}
/**
* Returns the first trash entry in the ordered set where groupId = ? and classNameId = ?.
*
* @param groupId the group ID
* @param classNameId the class name ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the first matching trash entry, or <code>null</code> if a matching trash entry could not be found
*/
public static TrashEntry fetchByG_C_First(long groupId, long classNameId,
OrderByComparator<TrashEntry> orderByComparator) {
return getPersistence()
.fetchByG_C_First(groupId, classNameId, orderByComparator);
}
/**
* Returns the last trash entry in the ordered set where groupId = ? and classNameId = ?.
*
* @param groupId the group ID
* @param classNameId the class name ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the last matching trash entry
* @throws NoSuchEntryException if a matching trash entry could not be found
*/
public static TrashEntry findByG_C_Last(long groupId, long classNameId,
OrderByComparator<TrashEntry> orderByComparator)
throws com.liferay.trash.kernel.exception.NoSuchEntryException {
return getPersistence()
.findByG_C_Last(groupId, classNameId, orderByComparator);
}
/**
* Returns the last trash entry in the ordered set where groupId = ? and classNameId = ?.
*
* @param groupId the group ID
* @param classNameId the class name ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the last matching trash entry, or <code>null</code> if a matching trash entry could not be found
*/
public static TrashEntry fetchByG_C_Last(long groupId, long classNameId,
OrderByComparator<TrashEntry> orderByComparator) {
return getPersistence()
.fetchByG_C_Last(groupId, classNameId, orderByComparator);
}
/**
* Returns the trash entries before and after the current trash entry in the ordered set where groupId = ? and classNameId = ?.
*
* @param entryId the primary key of the current trash entry
* @param groupId the group ID
* @param classNameId the class name ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the previous, current, and next trash entry
* @throws NoSuchEntryException if a trash entry with the primary key could not be found
*/
public static TrashEntry[] findByG_C_PrevAndNext(long entryId,
long groupId, long classNameId,
OrderByComparator<TrashEntry> orderByComparator)
throws com.liferay.trash.kernel.exception.NoSuchEntryException {
return getPersistence()
.findByG_C_PrevAndNext(entryId, groupId, classNameId,
orderByComparator);
}
/**
* Removes all the trash entries where groupId = ? and classNameId = ? from the database.
*
* @param groupId the group ID
* @param classNameId the class name ID
*/
public static void removeByG_C(long groupId, long classNameId) {
getPersistence().removeByG_C(groupId, classNameId);
}
/**
* Returns the number of trash entries where groupId = ? and classNameId = ?.
*
* @param groupId the group ID
* @param classNameId the class name ID
* @return the number of matching trash entries
*/
public static int countByG_C(long groupId, long classNameId) {
return getPersistence().countByG_C(groupId, classNameId);
}
/**
* Returns the trash entry where classNameId = ? and classPK = ? or throws a {@link NoSuchEntryException} if it could not be found.
*
* @param classNameId the class name ID
* @param classPK the class pk
* @return the matching trash entry
* @throws NoSuchEntryException if a matching trash entry could not be found
*/
public static TrashEntry findByC_C(long classNameId, long classPK)
throws com.liferay.trash.kernel.exception.NoSuchEntryException {
return getPersistence().findByC_C(classNameId, classPK);
}
/**
* Returns the trash entry where classNameId = ? and classPK = ? or returns <code>null</code> if it could not be found. Uses the finder cache.
*
* @param classNameId the class name ID
* @param classPK the class pk
* @return the matching trash entry, or <code>null</code> if a matching trash entry could not be found
*/
public static TrashEntry fetchByC_C(long classNameId, long classPK) {
return getPersistence().fetchByC_C(classNameId, classPK);
}
/**
* Returns the trash entry where classNameId = ? and classPK = ? or returns <code>null</code> if it could not be found, optionally using the finder cache.
*
* @param classNameId the class name ID
* @param classPK the class pk
* @param retrieveFromCache whether to retrieve from the finder cache
* @return the matching trash entry, or <code>null</code> if a matching trash entry could not be found
*/
public static TrashEntry fetchByC_C(long classNameId, long classPK,
boolean retrieveFromCache) {
return getPersistence()
.fetchByC_C(classNameId, classPK, retrieveFromCache);
}
/**
* Removes the trash entry where classNameId = ? and classPK = ? from the database.
*
* @param classNameId the class name ID
* @param classPK the class pk
* @return the trash entry that was removed
*/
public static TrashEntry removeByC_C(long classNameId, long classPK)
throws com.liferay.trash.kernel.exception.NoSuchEntryException {
return getPersistence().removeByC_C(classNameId, classPK);
}
/**
* Returns the number of trash entries where classNameId = ? and classPK = ?.
*
* @param classNameId the class name ID
* @param classPK the class pk
* @return the number of matching trash entries
*/
public static int countByC_C(long classNameId, long classPK) {
return getPersistence().countByC_C(classNameId, classPK);
}
/**
* Caches the trash entry in the entity cache if it is enabled.
*
* @param trashEntry the trash entry
*/
public static void cacheResult(TrashEntry trashEntry) {
getPersistence().cacheResult(trashEntry);
}
/**
* Caches the trash entries in the entity cache if it is enabled.
*
* @param trashEntries the trash entries
*/
public static void cacheResult(List<TrashEntry> trashEntries) {
getPersistence().cacheResult(trashEntries);
}
/**
* Creates a new trash entry with the primary key. Does not add the trash entry to the database.
*
* @param entryId the primary key for the new trash entry
* @return the new trash entry
*/
public static TrashEntry create(long entryId) {
return getPersistence().create(entryId);
}
/**
* Removes the trash entry with the primary key from the database. Also notifies the appropriate model listeners.
*
* @param entryId the primary key of the trash entry
* @return the trash entry that was removed
* @throws NoSuchEntryException if a trash entry with the primary key could not be found
*/
public static TrashEntry remove(long entryId)
throws com.liferay.trash.kernel.exception.NoSuchEntryException {
return getPersistence().remove(entryId);
}
public static TrashEntry updateImpl(TrashEntry trashEntry) {
return getPersistence().updateImpl(trashEntry);
}
/**
* Returns the trash entry with the primary key or throws a {@link NoSuchEntryException} if it could not be found.
*
* @param entryId the primary key of the trash entry
* @return the trash entry
* @throws NoSuchEntryException if a trash entry with the primary key could not be found
*/
public static TrashEntry findByPrimaryKey(long entryId)
throws com.liferay.trash.kernel.exception.NoSuchEntryException {
return getPersistence().findByPrimaryKey(entryId);
}
/**
* Returns the trash entry with the primary key or returns <code>null</code> if it could not be found.
*
* @param entryId the primary key of the trash entry
* @return the trash entry, or <code>null</code> if a trash entry with the primary key could not be found
*/
public static TrashEntry fetchByPrimaryKey(long entryId) {
return getPersistence().fetchByPrimaryKey(entryId);
}
public static java.util.Map<java.io.Serializable, TrashEntry> fetchByPrimaryKeys(
java.util.Set<java.io.Serializable> primaryKeys) {
return getPersistence().fetchByPrimaryKeys(primaryKeys);
}
/**
* Returns all the trash entries.
*
* @return the trash entries
*/
public static List<TrashEntry> findAll() {
return getPersistence().findAll();
}
/**
* Returns a range of all the trash entries.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link TrashEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param start the lower bound of the range of trash entries
* @param end the upper bound of the range of trash entries (not inclusive)
* @return the range of trash entries
*/
public static List<TrashEntry> findAll(int start, int end) {
return getPersistence().findAll(start, end);
}
/**
* Returns an ordered range of all the trash entries.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link TrashEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param start the lower bound of the range of trash entries
* @param end the upper bound of the range of trash entries (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
* @return the ordered range of trash entries
*/
public static List<TrashEntry> findAll(int start, int end,
OrderByComparator<TrashEntry> orderByComparator) {
return getPersistence().findAll(start, end, orderByComparator);
}
/**
* Returns an ordered range of all the trash entries.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link TrashEntryModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param start the lower bound of the range of trash entries
* @param end the upper bound of the range of trash entries (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
* @param retrieveFromCache whether to retrieve from the finder cache
* @return the ordered range of trash entries
*/
public static List<TrashEntry> findAll(int start, int end,
OrderByComparator<TrashEntry> orderByComparator,
boolean retrieveFromCache) {
return getPersistence()
.findAll(start, end, orderByComparator, retrieveFromCache);
}
/**
* Removes all the trash entries from the database.
*/
public static void removeAll() {
getPersistence().removeAll();
}
/**
* Returns the number of trash entries.
*
* @return the number of trash entries
*/
public static int countAll() {
return getPersistence().countAll();
}
public static TrashEntryPersistence getPersistence() {
if (_persistence == null) {
_persistence = (TrashEntryPersistence)PortalBeanLocatorUtil.locate(TrashEntryPersistence.class.getName());
ReferenceRegistry.registerReference(TrashEntryUtil.class,
"_persistence");
}
return _persistence;
}
private static TrashEntryPersistence _persistence;
}