Liferay 6.2-ce-ga5

com.liferay.portlet.trash.service.persistence
Class TrashEntryPersistenceImpl

java.lang.Object
  extended by com.liferay.portal.service.persistence.impl.BasePersistenceImpl<TrashEntry>
      extended by com.liferay.portlet.trash.service.persistence.TrashEntryPersistenceImpl
All Implemented Interfaces:
SessionFactory, BasePersistence<TrashEntry>, TrashEntryPersistence

public class TrashEntryPersistenceImpl
extends BasePersistenceImpl<TrashEntry>
implements TrashEntryPersistence

The persistence implementation for the trash entry service.

Caching information and settings can be found in portal.properties

See Also:
TrashEntryPersistence, TrashEntryUtil
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Field Summary
static String FINDER_CLASS_NAME_ENTITY
           
static String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
           
static String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
           
static FinderPath FINDER_PATH_COUNT_ALL
           
static FinderPath FINDER_PATH_COUNT_BY_C_C
           
static FinderPath FINDER_PATH_COUNT_BY_COMPANYID
           
static FinderPath FINDER_PATH_COUNT_BY_G_C
           
static FinderPath FINDER_PATH_COUNT_BY_GROUPID
           
static FinderPath FINDER_PATH_FETCH_BY_C_C
           
static FinderPath FINDER_PATH_WITH_PAGINATION_COUNT_BY_G_LTCD
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_COMPANYID
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_C
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_LTCD
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUPID
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_COMPANYID
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_C
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID
           
 
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, listeners, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR
 
Constructor Summary
TrashEntryPersistenceImpl()
           
 
Method Summary
 void afterPropertiesSet()
          Initializes the trash entry persistence.
 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.
protected  void cacheUniqueFindersCache(TrashEntry trashEntry)
           
 void clearCache()
          Clears the cache for all trash entries.
 void clearCache(List<TrashEntry> trashEntries)
          Clears the cache for a List instances of this model.
 void clearCache(TrashEntry trashEntry)
          Clears the cache for the trash entry.
protected  void clearUniqueFindersCache(TrashEntry trashEntry)
           
 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.
 void destroy()
           
 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.
 TrashEntry fetchByPrimaryKey(Serializable primaryKey)
          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 findByPrimaryKey(Serializable primaryKey)
          Returns the trash entry with the primary key or throws a NoSuchModelException if it could not be found.
protected  TrashEntry getByCompanyId_PrevAndNext(Session session, TrashEntry trashEntry, long companyId, OrderByComparator orderByComparator, boolean previous)
           
protected  TrashEntry getByG_C_PrevAndNext(Session session, TrashEntry trashEntry, long groupId, long classNameId, OrderByComparator orderByComparator, boolean previous)
           
protected  TrashEntry getByG_LtCD_PrevAndNext(Session session, TrashEntry trashEntry, long groupId, Date createDate, OrderByComparator orderByComparator, boolean previous)
           
protected  TrashEntry getByGroupId_PrevAndNext(Session session, TrashEntry trashEntry, long groupId, OrderByComparator orderByComparator, boolean previous)
           
 TrashEntry remove(long entryId)
          Removes the trash entry with the primary key from the database.
 TrashEntry remove(Serializable primaryKey)
          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.
protected  TrashEntry removeImpl(TrashEntry trashEntry)
          Removes the model instance from the database.
protected  TrashEntry toUnwrappedModel(TrashEntry trashEntry)
           
 TrashEntry updateImpl(TrashEntry trashEntry)
          Updates the model instance in the database or adds it if it does not yet exist.
 
Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
appendOrderByComparator, appendOrderByComparator, closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getClassLoader, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openNewSession, openSession, processException, registerListener, remove, removeConjunction, setDataSource, setModelClass, setSessionFactory, unregisterListener, update, update, update, update, updateImpl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update, update, update
 

Field Detail

FINDER_CLASS_NAME_ENTITY

public static final String FINDER_CLASS_NAME_ENTITY

FINDER_CLASS_NAME_LIST_WITH_PAGINATION

public static final String FINDER_CLASS_NAME_LIST_WITH_PAGINATION

FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

public static final String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

FINDER_PATH_WITH_PAGINATION_FIND_ALL

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL

FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

FINDER_PATH_COUNT_ALL

public static final FinderPath FINDER_PATH_COUNT_ALL

FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUPID

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUPID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID

FINDER_PATH_COUNT_BY_GROUPID

public static final FinderPath FINDER_PATH_COUNT_BY_GROUPID

FINDER_PATH_WITH_PAGINATION_FIND_BY_COMPANYID

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_COMPANYID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_COMPANYID

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_COMPANYID

FINDER_PATH_COUNT_BY_COMPANYID

public static final FinderPath FINDER_PATH_COUNT_BY_COMPANYID

FINDER_PATH_WITH_PAGINATION_FIND_BY_G_LTCD

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_LTCD

FINDER_PATH_WITH_PAGINATION_COUNT_BY_G_LTCD

public static final FinderPath FINDER_PATH_WITH_PAGINATION_COUNT_BY_G_LTCD

FINDER_PATH_WITH_PAGINATION_FIND_BY_G_C

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_C

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_C

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_C

FINDER_PATH_COUNT_BY_G_C

public static final FinderPath FINDER_PATH_COUNT_BY_G_C

FINDER_PATH_FETCH_BY_C_C

public static final FinderPath FINDER_PATH_FETCH_BY_C_C

FINDER_PATH_COUNT_BY_C_C

public static final FinderPath FINDER_PATH_COUNT_BY_C_C
Constructor Detail

TrashEntryPersistenceImpl

public TrashEntryPersistenceImpl()
Method Detail

findByGroupId

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

Specified by:
findByGroupId in interface TrashEntryPersistence
Parameters:
groupId - the group ID
Returns:
the matching trash entries
Throws:
SystemException - if a system exception occurred

findByGroupId

public 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.

Specified by:
findByGroupId in interface TrashEntryPersistence
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

public 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.

Specified by:
findByGroupId in interface TrashEntryPersistence
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

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

Specified by:
findByGroupId_First in interface TrashEntryPersistence
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

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

Specified by:
fetchByGroupId_First in interface TrashEntryPersistence
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

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

Specified by:
findByGroupId_Last in interface TrashEntryPersistence
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

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

Specified by:
fetchByGroupId_Last in interface TrashEntryPersistence
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

public TrashEntry[] findByGroupId_PrevAndNext(long entryId,
                                              long groupId,
                                              OrderByComparator orderByComparator)
                                       throws NoSuchEntryException,
                                              SystemException
Returns the trash entries before and after the current trash entry in the ordered set where groupId = ?.

Specified by:
findByGroupId_PrevAndNext in interface TrashEntryPersistence
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

getByGroupId_PrevAndNext

protected TrashEntry getByGroupId_PrevAndNext(Session session,
                                              TrashEntry trashEntry,
                                              long groupId,
                                              OrderByComparator orderByComparator,
                                              boolean previous)

removeByGroupId

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

Specified by:
removeByGroupId in interface TrashEntryPersistence
Parameters:
groupId - the group ID
Throws:
SystemException - if a system exception occurred

countByGroupId

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

Specified by:
countByGroupId in interface TrashEntryPersistence
Parameters:
groupId - the group ID
Returns:
the number of matching trash entries
Throws:
SystemException - if a system exception occurred

findByCompanyId

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

Specified by:
findByCompanyId in interface TrashEntryPersistence
Parameters:
companyId - the company ID
Returns:
the matching trash entries
Throws:
SystemException - if a system exception occurred

findByCompanyId

public 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.

Specified by:
findByCompanyId in interface TrashEntryPersistence
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

public 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.

Specified by:
findByCompanyId in interface TrashEntryPersistence
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

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

Specified by:
findByCompanyId_First in interface TrashEntryPersistence
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

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

Specified by:
fetchByCompanyId_First in interface TrashEntryPersistence
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

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

Specified by:
findByCompanyId_Last in interface TrashEntryPersistence
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

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

Specified by:
fetchByCompanyId_Last in interface TrashEntryPersistence
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

public TrashEntry[] findByCompanyId_PrevAndNext(long entryId,
                                                long companyId,
                                                OrderByComparator orderByComparator)
                                         throws NoSuchEntryException,
                                                SystemException
Returns the trash entries before and after the current trash entry in the ordered set where companyId = ?.

Specified by:
findByCompanyId_PrevAndNext in interface TrashEntryPersistence
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

getByCompanyId_PrevAndNext

protected TrashEntry getByCompanyId_PrevAndNext(Session session,
                                                TrashEntry trashEntry,
                                                long companyId,
                                                OrderByComparator orderByComparator,
                                                boolean previous)

removeByCompanyId

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

Specified by:
removeByCompanyId in interface TrashEntryPersistence
Parameters:
companyId - the company ID
Throws:
SystemException - if a system exception occurred

countByCompanyId

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

Specified by:
countByCompanyId in interface TrashEntryPersistence
Parameters:
companyId - the company ID
Returns:
the number of matching trash entries
Throws:
SystemException - if a system exception occurred

findByG_LtCD

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

Specified by:
findByG_LtCD in interface TrashEntryPersistence
Parameters:
groupId - the group ID
createDate - the create date
Returns:
the matching trash entries
Throws:
SystemException - if a system exception occurred

findByG_LtCD

public 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.

Specified by:
findByG_LtCD in interface TrashEntryPersistence
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

public 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.

Specified by:
findByG_LtCD in interface TrashEntryPersistence
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

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

Specified by:
findByG_LtCD_First in interface TrashEntryPersistence
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

public 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 < ?.

Specified by:
fetchByG_LtCD_First in interface TrashEntryPersistence
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

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

Specified by:
findByG_LtCD_Last in interface TrashEntryPersistence
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

public 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 < ?.

Specified by:
fetchByG_LtCD_Last in interface TrashEntryPersistence
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

public TrashEntry[] findByG_LtCD_PrevAndNext(long entryId,
                                             long groupId,
                                             Date createDate,
                                             OrderByComparator orderByComparator)
                                      throws NoSuchEntryException,
                                             SystemException
Returns the trash entries before and after the current trash entry in the ordered set where groupId = ? and createDate < ?.

Specified by:
findByG_LtCD_PrevAndNext in interface TrashEntryPersistence
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

getByG_LtCD_PrevAndNext

protected TrashEntry getByG_LtCD_PrevAndNext(Session session,
                                             TrashEntry trashEntry,
                                             long groupId,
                                             Date createDate,
                                             OrderByComparator orderByComparator,
                                             boolean previous)

removeByG_LtCD

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

Specified by:
removeByG_LtCD in interface TrashEntryPersistence
Parameters:
groupId - the group ID
createDate - the create date
Throws:
SystemException - if a system exception occurred

countByG_LtCD

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

Specified by:
countByG_LtCD in interface TrashEntryPersistence
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

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

Specified by:
findByG_C in interface TrashEntryPersistence
Parameters:
groupId - the group ID
classNameId - the class name ID
Returns:
the matching trash entries
Throws:
SystemException - if a system exception occurred

findByG_C

public 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.

Specified by:
findByG_C in interface TrashEntryPersistence
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

public 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.

Specified by:
findByG_C in interface TrashEntryPersistence
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

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

Specified by:
findByG_C_First in interface TrashEntryPersistence
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

public 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 = ?.

Specified by:
fetchByG_C_First in interface TrashEntryPersistence
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

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

Specified by:
findByG_C_Last in interface TrashEntryPersistence
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

public 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 = ?.

Specified by:
fetchByG_C_Last in interface TrashEntryPersistence
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

public TrashEntry[] findByG_C_PrevAndNext(long entryId,
                                          long groupId,
                                          long classNameId,
                                          OrderByComparator orderByComparator)
                                   throws NoSuchEntryException,
                                          SystemException
Returns the trash entries before and after the current trash entry in the ordered set where groupId = ? and classNameId = ?.

Specified by:
findByG_C_PrevAndNext in interface TrashEntryPersistence
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

getByG_C_PrevAndNext

protected TrashEntry getByG_C_PrevAndNext(Session session,
                                          TrashEntry trashEntry,
                                          long groupId,
                                          long classNameId,
                                          OrderByComparator orderByComparator,
                                          boolean previous)

removeByG_C

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

Specified by:
removeByG_C in interface TrashEntryPersistence
Parameters:
groupId - the group ID
classNameId - the class name ID
Throws:
SystemException - if a system exception occurred

countByG_C

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

Specified by:
countByG_C in interface TrashEntryPersistence
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

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

Specified by:
findByC_C in interface TrashEntryPersistence
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

public 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.

Specified by:
fetchByC_C in interface TrashEntryPersistence
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

public 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.

Specified by:
fetchByC_C in interface TrashEntryPersistence
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

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

Specified by:
removeByC_C in interface TrashEntryPersistence
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

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

Specified by:
countByC_C in interface TrashEntryPersistence
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

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

Specified by:
cacheResult in interface TrashEntryPersistence
Parameters:
trashEntry - the trash entry

cacheResult

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

Specified by:
cacheResult in interface TrashEntryPersistence
Parameters:
trashEntries - the trash entries

clearCache

public void clearCache()
Clears the cache for all trash entries.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<TrashEntry>
Overrides:
clearCache in class BasePersistenceImpl<TrashEntry>

clearCache

public void clearCache(TrashEntry trashEntry)
Clears the cache for the trash entry.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<TrashEntry>
Overrides:
clearCache in class BasePersistenceImpl<TrashEntry>
Parameters:
trashEntry - the instance of this model to clear the cache for

clearCache

public void clearCache(List<TrashEntry> trashEntries)
Description copied from interface: BasePersistence
Clears the cache for a List instances of this model.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<TrashEntry>
Overrides:
clearCache in class BasePersistenceImpl<TrashEntry>
Parameters:
trashEntries - the List instances of this model to clear the cache for

cacheUniqueFindersCache

protected void cacheUniqueFindersCache(TrashEntry trashEntry)

clearUniqueFindersCache

protected void clearUniqueFindersCache(TrashEntry trashEntry)

create

public TrashEntry create(long entryId)
Creates a new trash entry with the primary key. Does not add the trash entry to the database.

Specified by:
create in interface TrashEntryPersistence
Parameters:
entryId - the primary key for the new trash entry
Returns:
the new trash entry

remove

public TrashEntry remove(long entryId)
                  throws NoSuchEntryException,
                         SystemException
Removes the trash entry with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface TrashEntryPersistence
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

remove

public TrashEntry remove(Serializable primaryKey)
                  throws NoSuchEntryException,
                         SystemException
Removes the trash entry with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface BasePersistence<TrashEntry>
Overrides:
remove in class BasePersistenceImpl<TrashEntry>
Parameters:
primaryKey - 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

removeImpl

protected TrashEntry removeImpl(TrashEntry trashEntry)
                         throws SystemException
Description copied from class: BasePersistenceImpl
Removes the model instance from the database. BasePersistenceImpl.update(BaseModel, boolean) depends on this method to implement the remove operation; it only notifies the model listeners.

Overrides:
removeImpl in class BasePersistenceImpl<TrashEntry>
Parameters:
trashEntry - the model instance to remove
Returns:
the model instance that was removed
Throws:
SystemException - if a system exception occurred

updateImpl

public TrashEntry updateImpl(TrashEntry trashEntry)
                      throws SystemException
Description copied from class: BasePersistenceImpl
Updates the model instance in the database or adds it if it does not yet exist. BasePersistenceImpl.remove(BaseModel) depends on this method to implement the update operation; it only notifies the model listeners.

Specified by:
updateImpl in interface TrashEntryPersistence
Overrides:
updateImpl in class BasePersistenceImpl<TrashEntry>
Parameters:
trashEntry - the model instance to update
Returns:
the model instance that was updated
Throws:
SystemException - if a system exception occurred

toUnwrappedModel

protected TrashEntry toUnwrappedModel(TrashEntry trashEntry)

findByPrimaryKey

public TrashEntry findByPrimaryKey(Serializable primaryKey)
                            throws NoSuchEntryException,
                                   SystemException
Returns the trash entry with the primary key or throws a NoSuchModelException if it could not be found.

Specified by:
findByPrimaryKey in interface BasePersistence<TrashEntry>
Overrides:
findByPrimaryKey in class BasePersistenceImpl<TrashEntry>
Parameters:
primaryKey - 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

findByPrimaryKey

public TrashEntry findByPrimaryKey(long entryId)
                            throws NoSuchEntryException,
                                   SystemException
Returns the trash entry with the primary key or throws a NoSuchEntryException if it could not be found.

Specified by:
findByPrimaryKey in interface TrashEntryPersistence
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

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

Specified by:
fetchByPrimaryKey in interface BasePersistence<TrashEntry>
Overrides:
fetchByPrimaryKey in class BasePersistenceImpl<TrashEntry>
Parameters:
primaryKey - 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

fetchByPrimaryKey

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

Specified by:
fetchByPrimaryKey in interface TrashEntryPersistence
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

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

Specified by:
findAll in interface TrashEntryPersistence
Returns:
the trash entries
Throws:
SystemException - if a system exception occurred

findAll

public 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.

Specified by:
findAll in interface TrashEntryPersistence
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

public 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.

Specified by:
findAll in interface TrashEntryPersistence
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

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

Specified by:
removeAll in interface TrashEntryPersistence
Throws:
SystemException - if a system exception occurred

countAll

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

Specified by:
countAll in interface TrashEntryPersistence
Returns:
the number of trash entries
Throws:
SystemException - if a system exception occurred

afterPropertiesSet

public void afterPropertiesSet()
Initializes the trash entry persistence.


destroy

public void destroy()

Liferay 6.2-ce-ga5