Liferay 6.2-ce-ga5

com.liferay.portlet.trash.service.persistence
Interface TrashEntryPersistence

All Superinterfaces:
BasePersistence<TrashEntry>

@ProviderType
public interface TrashEntryPersistence
extends BasePersistence<TrashEntry>

The persistence interface for the trash entry service.

Caching information and settings can be found in portal.properties

See Also:
TrashEntryPersistenceImpl, TrashEntryUtil

Method Summary
 void cacheResult(List<TrashEntry> trashEntries)
          Caches the trash entries in the entity cache if it is enabled.
 void cacheResult(TrashEntry trashEntry)
          Caches the trash entry in the entity cache if it is enabled.
 int countAll()
          Returns the number of trash entries.
 int countByC_C(long classNameId, long classPK)
          Returns the number of trash entries where classNameId = ? and classPK = ?.
 int countByCompanyId(long companyId)
          Returns the number of trash entries where companyId = ?.
 int countByG_C(long groupId, long classNameId)
          Returns the number of trash entries where groupId = ? and classNameId = ?.
 int countByG_LtCD(long groupId, Date createDate)
          Returns the number of trash entries where groupId = ? and createDate < ?.
 int countByGroupId(long groupId)
          Returns the number of trash entries where groupId = ?.
 TrashEntry create(long entryId)
          Creates a new trash entry with the primary key.
 TrashEntry fetchByC_C(long classNameId, long classPK)
          Returns the trash entry where classNameId = ? and classPK = ? or returns null if it could not be found.
 TrashEntry fetchByC_C(long classNameId, long classPK, boolean retrieveFromCache)
          Returns the trash entry where classNameId = ? and classPK = ? or returns null if it could not be found, optionally using the finder cache.
 TrashEntry fetchByCompanyId_First(long companyId, OrderByComparator orderByComparator)
          Returns the first trash entry in the ordered set where companyId = ?.
 TrashEntry fetchByCompanyId_Last(long companyId, OrderByComparator orderByComparator)
          Returns the last trash entry in the ordered set where companyId = ?.
 TrashEntry fetchByG_C_First(long groupId, long classNameId, OrderByComparator orderByComparator)
          Returns the first trash entry in the ordered set where groupId = ? and classNameId = ?.
 TrashEntry fetchByG_C_Last(long groupId, long classNameId, OrderByComparator orderByComparator)
          Returns the last trash entry in the ordered set where groupId = ? and classNameId = ?.
 TrashEntry fetchByG_LtCD_First(long groupId, Date createDate, OrderByComparator orderByComparator)
          Returns the first trash entry in the ordered set where groupId = ? and createDate < ?.
 TrashEntry fetchByG_LtCD_Last(long groupId, Date createDate, OrderByComparator orderByComparator)
          Returns the last trash entry in the ordered set where groupId = ? and createDate < ?.
 TrashEntry fetchByGroupId_First(long groupId, OrderByComparator orderByComparator)
          Returns the first trash entry in the ordered set where groupId = ?.
 TrashEntry fetchByGroupId_Last(long groupId, OrderByComparator orderByComparator)
          Returns the last trash entry in the ordered set where groupId = ?.
 TrashEntry fetchByPrimaryKey(long entryId)
          Returns the trash entry with the primary key or returns null if it could not be found.
 List<TrashEntry> findAll()
          Returns all the trash entries.
 List<TrashEntry> findAll(int start, int end)
          Returns a range of all the trash entries.
 List<TrashEntry> findAll(int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the trash entries.
 TrashEntry findByC_C(long classNameId, long classPK)
          Returns the trash entry where classNameId = ? and classPK = ? or throws a NoSuchEntryException if it could not be found.
 TrashEntry findByCompanyId_First(long companyId, OrderByComparator orderByComparator)
          Returns the first trash entry in the ordered set where companyId = ?.
 TrashEntry findByCompanyId_Last(long companyId, OrderByComparator orderByComparator)
          Returns the last trash entry in the ordered set where companyId = ?.
 TrashEntry[] findByCompanyId_PrevAndNext(long entryId, long companyId, OrderByComparator orderByComparator)
          Returns the trash entries before and after the current trash entry in the ordered set where companyId = ?.
 List<TrashEntry> findByCompanyId(long companyId)
          Returns all the trash entries where companyId = ?.
 List<TrashEntry> findByCompanyId(long companyId, int start, int end)
          Returns a range of all the trash entries where companyId = ?.
 List<TrashEntry> findByCompanyId(long companyId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the trash entries where companyId = ?.
 TrashEntry findByG_C_First(long groupId, long classNameId, OrderByComparator orderByComparator)
          Returns the first trash entry in the ordered set where groupId = ? and classNameId = ?.
 TrashEntry findByG_C_Last(long groupId, long classNameId, OrderByComparator orderByComparator)
          Returns the last trash entry in the ordered set where groupId = ? and classNameId = ?.
 TrashEntry[] findByG_C_PrevAndNext(long entryId, long groupId, long classNameId, OrderByComparator orderByComparator)
          Returns the trash entries before and after the current trash entry in the ordered set where groupId = ? and classNameId = ?.
 List<TrashEntry> findByG_C(long groupId, long classNameId)
          Returns all the trash entries where groupId = ? and classNameId = ?.
 List<TrashEntry> findByG_C(long groupId, long classNameId, int start, int end)
          Returns a range of all the trash entries where groupId = ? and classNameId = ?.
 List<TrashEntry> findByG_C(long groupId, long classNameId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the trash entries where groupId = ? and classNameId = ?.
 TrashEntry findByG_LtCD_First(long groupId, Date createDate, OrderByComparator orderByComparator)
          Returns the first trash entry in the ordered set where groupId = ? and createDate < ?.
 TrashEntry findByG_LtCD_Last(long groupId, Date createDate, OrderByComparator orderByComparator)
          Returns the last trash entry in the ordered set where groupId = ? and createDate < ?.
 TrashEntry[] findByG_LtCD_PrevAndNext(long entryId, long groupId, Date createDate, OrderByComparator orderByComparator)
          Returns the trash entries before and after the current trash entry in the ordered set where groupId = ? and createDate < ?.
 List<TrashEntry> findByG_LtCD(long groupId, Date createDate)
          Returns all the trash entries where groupId = ? and createDate < ?.
 List<TrashEntry> findByG_LtCD(long groupId, Date createDate, int start, int end)
          Returns a range of all the trash entries where groupId = ? and createDate < ?.
 List<TrashEntry> findByG_LtCD(long groupId, Date createDate, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the trash entries where groupId = ? and createDate < ?.
 TrashEntry findByGroupId_First(long groupId, OrderByComparator orderByComparator)
          Returns the first trash entry in the ordered set where groupId = ?.
 TrashEntry findByGroupId_Last(long groupId, OrderByComparator orderByComparator)
          Returns the last trash entry in the ordered set where groupId = ?.
 TrashEntry[] findByGroupId_PrevAndNext(long entryId, long groupId, OrderByComparator orderByComparator)
          Returns the trash entries before and after the current trash entry in the ordered set where groupId = ?.
 List<TrashEntry> findByGroupId(long groupId)
          Returns all the trash entries where groupId = ?.
 List<TrashEntry> findByGroupId(long groupId, int start, int end)
          Returns a range of all the trash entries where groupId = ?.
 List<TrashEntry> findByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the trash entries where groupId = ?.
 TrashEntry findByPrimaryKey(long entryId)
          Returns the trash entry with the primary key or throws a NoSuchEntryException if it could not be found.
 TrashEntry remove(long entryId)
          Removes the trash entry with the primary key from the database.
 void removeAll()
          Removes all the trash entries from the database.
 TrashEntry removeByC_C(long classNameId, long classPK)
          Removes the trash entry where classNameId = ? and classPK = ? from the database.
 void removeByCompanyId(long companyId)
          Removes all the trash entries where companyId = ? from the database.
 void removeByG_C(long groupId, long classNameId)
          Removes all the trash entries where groupId = ? and classNameId = ? from the database.
 void removeByG_LtCD(long groupId, Date createDate)
          Removes all the trash entries where groupId = ? and createDate < ? from the database.
 void removeByGroupId(long groupId)
          Removes all the trash entries where groupId = ? from the database.
 TrashEntry updateImpl(TrashEntry trashEntry)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update, update, update
 

Method Detail

findByGroupId

List<TrashEntry> findByGroupId(long groupId)
                               throws SystemException
Returns all the trash entries where groupId = ?.

Parameters:
groupId - the group ID
Returns:
the matching trash entries
Throws:
SystemException - if a system exception occurred

findByGroupId

List<TrashEntry> findByGroupId(long groupId,
                               int start,
                               int end)
                               throws SystemException
Returns a range of all the trash entries where groupId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from TrashEntryModelImpl. If both orderByComparator 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.

Parameters:
groupId - the group ID
start - the lower bound of the range of trash entries
end - the upper bound of the range of trash entries (not inclusive)
Returns:
the range of matching trash entries
Throws:
SystemException - if a system exception occurred

findByGroupId

List<TrashEntry> findByGroupId(long groupId,
                               int start,
                               int end,
                               OrderByComparator orderByComparator)
                               throws SystemException
Returns an ordered range of all the trash entries where groupId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from TrashEntryModelImpl. If both orderByComparator 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.

Parameters:
groupId - the group ID
start - the lower bound of the range of trash entries
end - the upper bound of the range of trash entries (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching trash entries
Throws:
SystemException - if a system exception occurred

findByGroupId_First

TrashEntry findByGroupId_First(long groupId,
                               OrderByComparator orderByComparator)
                               throws SystemException,
                                      NoSuchEntryException
Returns the first trash entry in the ordered set where groupId = ?.

Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching trash entry
Throws:
NoSuchEntryException - if a matching trash entry could not be found
SystemException - if a system exception occurred

fetchByGroupId_First

TrashEntry fetchByGroupId_First(long groupId,
                                OrderByComparator orderByComparator)
                                throws SystemException
Returns the first trash entry in the ordered set where groupId = ?.

Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching trash entry, or null if a matching trash entry could not be found
Throws:
SystemException - if a system exception occurred

findByGroupId_Last

TrashEntry findByGroupId_Last(long groupId,
                              OrderByComparator orderByComparator)
                              throws SystemException,
                                     NoSuchEntryException
Returns the last trash entry in the ordered set where groupId = ?.

Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching trash entry
Throws:
NoSuchEntryException - if a matching trash entry could not be found
SystemException - if a system exception occurred

fetchByGroupId_Last

TrashEntry fetchByGroupId_Last(long groupId,
                               OrderByComparator orderByComparator)
                               throws SystemException
Returns the last trash entry in the ordered set where groupId = ?.

Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching trash entry, or null if a matching trash entry could not be found
Throws:
SystemException - if a system exception occurred

findByGroupId_PrevAndNext

TrashEntry[] findByGroupId_PrevAndNext(long entryId,
                                       long groupId,
                                       OrderByComparator orderByComparator)
                                       throws SystemException,
                                              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 entry
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next trash entry
Throws:
NoSuchEntryException - if a trash entry with the primary key could not be found
SystemException - if a system exception occurred

removeByGroupId

void removeByGroupId(long groupId)
                     throws SystemException
Removes all the trash entries where groupId = ? from the database.

Parameters:
groupId - the group ID
Throws:
SystemException - if a system exception occurred

countByGroupId

int countByGroupId(long groupId)
                   throws SystemException
Returns the number of trash entries where groupId = ?.

Parameters:
groupId - the group ID
Returns:
the number of matching trash entries
Throws:
SystemException - if a system exception occurred

findByCompanyId

List<TrashEntry> findByCompanyId(long companyId)
                                 throws SystemException
Returns all the trash entries where companyId = ?.

Parameters:
companyId - the company ID
Returns:
the matching trash entries
Throws:
SystemException - if a system exception occurred

findByCompanyId

List<TrashEntry> findByCompanyId(long companyId,
                                 int start,
                                 int end)
                                 throws SystemException
Returns a range of all the trash entries where companyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from TrashEntryModelImpl. If both orderByComparator 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.

Parameters:
companyId - the company ID
start - the lower bound of the range of trash entries
end - the upper bound of the range of trash entries (not inclusive)
Returns:
the range of matching trash entries
Throws:
SystemException - if a system exception occurred

findByCompanyId

List<TrashEntry> findByCompanyId(long companyId,
                                 int start,
                                 int end,
                                 OrderByComparator orderByComparator)
                                 throws SystemException
Returns an ordered range of all the trash entries where companyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from TrashEntryModelImpl. If both orderByComparator 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.

Parameters:
companyId - the company ID
start - the lower bound of the range of trash entries
end - the upper bound of the range of trash entries (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching trash entries
Throws:
SystemException - if a system exception occurred

findByCompanyId_First

TrashEntry findByCompanyId_First(long companyId,
                                 OrderByComparator orderByComparator)
                                 throws SystemException,
                                        NoSuchEntryException
Returns the first trash entry in the ordered set where companyId = ?.

Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching trash entry
Throws:
NoSuchEntryException - if a matching trash entry could not be found
SystemException - if a system exception occurred

fetchByCompanyId_First

TrashEntry fetchByCompanyId_First(long companyId,
                                  OrderByComparator orderByComparator)
                                  throws SystemException
Returns the first trash entry in the ordered set where companyId = ?.

Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching trash entry, or null if a matching trash entry could not be found
Throws:
SystemException - if a system exception occurred

findByCompanyId_Last

TrashEntry findByCompanyId_Last(long companyId,
                                OrderByComparator orderByComparator)
                                throws SystemException,
                                       NoSuchEntryException
Returns the last trash entry in the ordered set where companyId = ?.

Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching trash entry
Throws:
NoSuchEntryException - if a matching trash entry could not be found
SystemException - if a system exception occurred

fetchByCompanyId_Last

TrashEntry fetchByCompanyId_Last(long companyId,
                                 OrderByComparator orderByComparator)
                                 throws SystemException
Returns the last trash entry in the ordered set where companyId = ?.

Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching trash entry, or null if a matching trash entry could not be found
Throws:
SystemException - if a system exception occurred

findByCompanyId_PrevAndNext

TrashEntry[] findByCompanyId_PrevAndNext(long entryId,
                                         long companyId,
                                         OrderByComparator orderByComparator)
                                         throws SystemException,
                                                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 entry
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next trash entry
Throws:
NoSuchEntryException - if a trash entry with the primary key could not be found
SystemException - if a system exception occurred

removeByCompanyId

void removeByCompanyId(long companyId)
                       throws SystemException
Removes all the trash entries where companyId = ? from the database.

Parameters:
companyId - the company ID
Throws:
SystemException - if a system exception occurred

countByCompanyId

int countByCompanyId(long companyId)
                     throws SystemException
Returns the number of trash entries where companyId = ?.

Parameters:
companyId - the company ID
Returns:
the number of matching trash entries
Throws:
SystemException - if a system exception occurred

findByG_LtCD

List<TrashEntry> findByG_LtCD(long groupId,
                              Date createDate)
                              throws SystemException
Returns all the trash entries where groupId = ? and createDate < ?.

Parameters:
groupId - the group ID
createDate - the create date
Returns:
the matching trash entries
Throws:
SystemException - if a system exception occurred

findByG_LtCD

List<TrashEntry> findByG_LtCD(long groupId,
                              Date createDate,
                              int start,
                              int end)
                              throws SystemException
Returns a range of all the trash entries where groupId = ? and createDate < ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from TrashEntryModelImpl. If both orderByComparator 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.

Parameters:
groupId - the group ID
createDate - the create date
start - the lower bound of the range of trash entries
end - the upper bound of the range of trash entries (not inclusive)
Returns:
the range of matching trash entries
Throws:
SystemException - if a system exception occurred

findByG_LtCD

List<TrashEntry> findByG_LtCD(long groupId,
                              Date createDate,
                              int start,
                              int end,
                              OrderByComparator orderByComparator)
                              throws SystemException
Returns an ordered range of all the trash entries where groupId = ? and createDate < ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from TrashEntryModelImpl. If both orderByComparator 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.

Parameters:
groupId - the group ID
createDate - the create date
start - the lower bound of the range of trash entries
end - the upper bound of the range of trash entries (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching trash entries
Throws:
SystemException - if a system exception occurred

findByG_LtCD_First

TrashEntry findByG_LtCD_First(long groupId,
                              Date createDate,
                              OrderByComparator orderByComparator)
                              throws SystemException,
                                     NoSuchEntryException
Returns the first trash entry in the ordered set where groupId = ? and createDate < ?.

Parameters:
groupId - the group ID
createDate - the create date
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching trash entry
Throws:
NoSuchEntryException - if a matching trash entry could not be found
SystemException - if a system exception occurred

fetchByG_LtCD_First

TrashEntry fetchByG_LtCD_First(long groupId,
                               Date createDate,
                               OrderByComparator orderByComparator)
                               throws SystemException
Returns the first trash entry in the ordered set where groupId = ? and createDate < ?.

Parameters:
groupId - the group ID
createDate - the create date
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching trash entry, or null if a matching trash entry could not be found
Throws:
SystemException - if a system exception occurred

findByG_LtCD_Last

TrashEntry findByG_LtCD_Last(long groupId,
                             Date createDate,
                             OrderByComparator orderByComparator)
                             throws SystemException,
                                    NoSuchEntryException
Returns the last trash entry in the ordered set where groupId = ? and createDate < ?.

Parameters:
groupId - the group ID
createDate - the create date
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching trash entry
Throws:
NoSuchEntryException - if a matching trash entry could not be found
SystemException - if a system exception occurred

fetchByG_LtCD_Last

TrashEntry fetchByG_LtCD_Last(long groupId,
                              Date createDate,
                              OrderByComparator orderByComparator)
                              throws SystemException
Returns the last trash entry in the ordered set where groupId = ? and createDate < ?.

Parameters:
groupId - the group ID
createDate - the create date
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching trash entry, or null if a matching trash entry could not be found
Throws:
SystemException - if a system exception occurred

findByG_LtCD_PrevAndNext

TrashEntry[] findByG_LtCD_PrevAndNext(long entryId,
                                      long groupId,
                                      Date createDate,
                                      OrderByComparator orderByComparator)
                                      throws SystemException,
                                             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 entry
groupId - the group ID
createDate - the create date
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next trash entry
Throws:
NoSuchEntryException - if a trash entry with the primary key could not be found
SystemException - if a system exception occurred

removeByG_LtCD

void removeByG_LtCD(long groupId,
                    Date createDate)
                    throws SystemException
Removes all the trash entries where groupId = ? and createDate < ? from the database.

Parameters:
groupId - the group ID
createDate - the create date
Throws:
SystemException - if a system exception occurred

countByG_LtCD

int countByG_LtCD(long groupId,
                  Date createDate)
                  throws SystemException
Returns the number of trash entries where groupId = ? and createDate < ?.

Parameters:
groupId - the group ID
createDate - the create date
Returns:
the number of matching trash entries
Throws:
SystemException - if a system exception occurred

findByG_C

List<TrashEntry> findByG_C(long groupId,
                           long classNameId)
                           throws SystemException
Returns all the trash entries where groupId = ? and classNameId = ?.

Parameters:
groupId - the group ID
classNameId - the class name ID
Returns:
the matching trash entries
Throws:
SystemException - if a system exception occurred

findByG_C

List<TrashEntry> findByG_C(long groupId,
                           long classNameId,
                           int start,
                           int end)
                           throws SystemException
Returns a range of all the trash entries where groupId = ? and classNameId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from TrashEntryModelImpl. If both orderByComparator 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.

Parameters:
groupId - the group ID
classNameId - the class name ID
start - the lower bound of the range of trash entries
end - the upper bound of the range of trash entries (not inclusive)
Returns:
the range of matching trash entries
Throws:
SystemException - if a system exception occurred

findByG_C

List<TrashEntry> findByG_C(long groupId,
                           long classNameId,
                           int start,
                           int end,
                           OrderByComparator orderByComparator)
                           throws SystemException
Returns an ordered range of all the trash entries where groupId = ? and classNameId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from TrashEntryModelImpl. If both orderByComparator 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.

Parameters:
groupId - the group ID
classNameId - the class name ID
start - the lower bound of the range of trash entries
end - the upper bound of the range of trash entries (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching trash entries
Throws:
SystemException - if a system exception occurred

findByG_C_First

TrashEntry findByG_C_First(long groupId,
                           long classNameId,
                           OrderByComparator orderByComparator)
                           throws SystemException,
                                  NoSuchEntryException
Returns the first trash entry in the ordered set where groupId = ? and classNameId = ?.

Parameters:
groupId - the group ID
classNameId - the class name ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching trash entry
Throws:
NoSuchEntryException - if a matching trash entry could not be found
SystemException - if a system exception occurred

fetchByG_C_First

TrashEntry fetchByG_C_First(long groupId,
                            long classNameId,
                            OrderByComparator orderByComparator)
                            throws SystemException
Returns the first trash entry in the ordered set where groupId = ? and classNameId = ?.

Parameters:
groupId - the group ID
classNameId - the class name ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching trash entry, or null if a matching trash entry could not be found
Throws:
SystemException - if a system exception occurred

findByG_C_Last

TrashEntry findByG_C_Last(long groupId,
                          long classNameId,
                          OrderByComparator orderByComparator)
                          throws SystemException,
                                 NoSuchEntryException
Returns the last trash entry in the ordered set where groupId = ? and classNameId = ?.

Parameters:
groupId - the group ID
classNameId - the class name ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching trash entry
Throws:
NoSuchEntryException - if a matching trash entry could not be found
SystemException - if a system exception occurred

fetchByG_C_Last

TrashEntry fetchByG_C_Last(long groupId,
                           long classNameId,
                           OrderByComparator orderByComparator)
                           throws SystemException
Returns the last trash entry in the ordered set where groupId = ? and classNameId = ?.

Parameters:
groupId - the group ID
classNameId - the class name ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching trash entry, or null if a matching trash entry could not be found
Throws:
SystemException - if a system exception occurred

findByG_C_PrevAndNext

TrashEntry[] findByG_C_PrevAndNext(long entryId,
                                   long groupId,
                                   long classNameId,
                                   OrderByComparator orderByComparator)
                                   throws SystemException,
                                          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 entry
groupId - the group ID
classNameId - the class name ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next trash entry
Throws:
NoSuchEntryException - if a trash entry with the primary key could not be found
SystemException - if a system exception occurred

removeByG_C

void removeByG_C(long groupId,
                 long classNameId)
                 throws SystemException
Removes all the trash entries where groupId = ? and classNameId = ? from the database.

Parameters:
groupId - the group ID
classNameId - the class name ID
Throws:
SystemException - if a system exception occurred

countByG_C

int countByG_C(long groupId,
               long classNameId)
               throws SystemException
Returns the number of trash entries where groupId = ? and classNameId = ?.

Parameters:
groupId - the group ID
classNameId - the class name ID
Returns:
the number of matching trash entries
Throws:
SystemException - if a system exception occurred

findByC_C

TrashEntry findByC_C(long classNameId,
                     long classPK)
                     throws SystemException,
                            NoSuchEntryException
Returns the trash entry where classNameId = ? and classPK = ? or throws a NoSuchEntryException if it could not be found.

Parameters:
classNameId - the class name ID
classPK - the class p k
Returns:
the matching trash entry
Throws:
NoSuchEntryException - if a matching trash entry could not be found
SystemException - if a system exception occurred

fetchByC_C

TrashEntry fetchByC_C(long classNameId,
                      long classPK)
                      throws SystemException
Returns the trash entry where classNameId = ? and classPK = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
classNameId - the class name ID
classPK - the class p k
Returns:
the matching trash entry, or null if a matching trash entry could not be found
Throws:
SystemException - if a system exception occurred

fetchByC_C

TrashEntry fetchByC_C(long classNameId,
                      long classPK,
                      boolean retrieveFromCache)
                      throws SystemException
Returns the trash entry where classNameId = ? and classPK = ? or returns null if it could not be found, optionally using the finder cache.

Parameters:
classNameId - the class name ID
classPK - the class p k
retrieveFromCache - whether to use the finder cache
Returns:
the matching trash entry, or null if a matching trash entry could not be found
Throws:
SystemException - if a system exception occurred

removeByC_C

TrashEntry removeByC_C(long classNameId,
                       long classPK)
                       throws SystemException,
                              NoSuchEntryException
Removes the trash entry where classNameId = ? and classPK = ? from the database.

Parameters:
classNameId - the class name ID
classPK - the class p k
Returns:
the trash entry that was removed
Throws:
SystemException - if a system exception occurred
NoSuchEntryException

countByC_C

int countByC_C(long classNameId,
               long classPK)
               throws SystemException
Returns the number of trash entries where classNameId = ? and classPK = ?.

Parameters:
classNameId - the class name ID
classPK - the class p k
Returns:
the number of matching trash entries
Throws:
SystemException - if a system exception occurred

cacheResult

void cacheResult(TrashEntry trashEntry)
Caches the trash entry in the entity cache if it is enabled.

Parameters:
trashEntry - the trash entry

cacheResult

void cacheResult(List<TrashEntry> trashEntries)
Caches the trash entries in the entity cache if it is enabled.

Parameters:
trashEntries - the trash entries

create

TrashEntry create(long entryId)
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

TrashEntry remove(long entryId)
                  throws SystemException,
                         NoSuchEntryException
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
SystemException - if a system exception occurred

updateImpl

TrashEntry updateImpl(TrashEntry trashEntry)
                      throws SystemException
Throws:
SystemException

findByPrimaryKey

TrashEntry findByPrimaryKey(long entryId)
                            throws SystemException,
                                   NoSuchEntryException
Returns the trash entry with the primary key or throws a NoSuchEntryException if 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
SystemException - if a system exception occurred

fetchByPrimaryKey

TrashEntry fetchByPrimaryKey(long entryId)
                             throws SystemException
Returns the trash entry with the primary key or returns null if it could not be found.

Parameters:
entryId - the primary key of the trash entry
Returns:
the trash entry, or null if a trash entry with the primary key could not be found
Throws:
SystemException - if a system exception occurred

findAll

List<TrashEntry> findAll()
                         throws SystemException
Returns all the trash entries.

Returns:
the trash entries
Throws:
SystemException - if a system exception occurred

findAll

List<TrashEntry> findAll(int start,
                         int end)
                         throws SystemException
Returns a range of all the trash entries.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from TrashEntryModelImpl. If both orderByComparator 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.

Parameters:
start - the lower bound of the range of trash entries
end - the upper bound of the range of trash entries (not inclusive)
Returns:
the range of trash entries
Throws:
SystemException - if a system exception occurred

findAll

List<TrashEntry> findAll(int start,
                         int end,
                         OrderByComparator orderByComparator)
                         throws SystemException
Returns an ordered range of all the trash entries.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from TrashEntryModelImpl. If both orderByComparator 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.

Parameters:
start - the lower bound of the range of trash entries
end - the upper bound of the range of trash entries (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of trash entries
Throws:
SystemException - if a system exception occurred

removeAll

void removeAll()
               throws SystemException
Removes all the trash entries from the database.

Throws:
SystemException - if a system exception occurred

countAll

int countAll()
             throws SystemException
Returns the number of trash entries.

Returns:
the number of trash entries
Throws:
SystemException - if a system exception occurred

Liferay 6.2-ce-ga5