Class TrashEntryUtil

java.lang.Object
com.liferay.trash.service.persistence.TrashEntryUtil

public class TrashEntryUtil extends Object
The persistence utility for the trash entry service. This utility wraps com.liferay.trash.service.persistence.impl.TrashEntryPersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.

Caching information and settings can be found in portal.properties

See Also:
Generated:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    cacheResult(TrashEntry trashEntry)
     
    static void
    cacheResult(List<TrashEntry> trashEntries)
     
    static void
     
    static void
    clearCache(TrashEntry trashEntry)
     
    static int
    countByC_CN(long companyId, long classNameId)
    Returns the number of trash entries where companyId = ? and classNameId = ?.
    static int
    countByCN_CPK(long classNameId, long classPK)
    Returns the number of trash entries where classNameId = ? and classPK = ?.
    static int
    countByCompanyId(long companyId)
    Returns the number of trash entries where companyId = ?.
    static int
    countByG_CN(long groupId, long classNameId)
    Returns the number of trash entries where groupId = ? and classNameId = ?.
    static int
    countByG_LtCD(long groupId, Date createDate)
    Returns the number of trash entries where groupId = ? and createDate < ?.
    static int
    countByGroupId(long groupId)
    Returns the number of trash entries where groupId = ?.
    static long
    countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
     
    static TrashEntry
    create(long entryId)
    Creates a new trash entry with the primary key.
    static TrashEntry
    fetchByC_CN_First(long companyId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator)
    Returns the first trash entry in the ordered set where companyId = ? and classNameId = ?.
    static TrashEntry
    fetchByCN_CPK(long classNameId, long classPK)
    Returns the trash entry where classNameId = ? and classPK = ? or returns null if it could not be found.
    static TrashEntry
    fetchByCN_CPK(long classNameId, long classPK, boolean useFinderCache)
    Returns the trash entry where classNameId = ? and classPK = ? or returns null if it could not be found, optionally using the finder cache.
    static TrashEntry
    fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator)
    Returns the first trash entry in the ordered set where companyId = ?.
    static TrashEntry
    fetchByG_CN_First(long groupId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator)
    Returns the first trash entry in the ordered set where groupId = ? and classNameId = ?.
    static TrashEntry
    fetchByG_LtCD_First(long groupId, Date createDate, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator)
    Returns the first trash entry in the ordered set where groupId = ? and createDate < ?.
    static TrashEntry
    fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator)
    Returns the first trash entry in the ordered set where groupId = ?.
    static TrashEntry
    fetchByPrimaryKey(long entryId)
    Returns the trash entry with the primary key or returns null if it could not be found.
     
    findByC_CN(long companyId, long classNameId)
    Returns all the trash entries where companyId = ? and classNameId = ?.
    findByC_CN(long companyId, long classNameId, int start, int end)
    Returns a range of all the trash entries where companyId = ? and classNameId = ?.
    findByC_CN(long companyId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator)
    Returns an ordered range of all the trash entries where companyId = ? and classNameId = ?.
    findByC_CN(long companyId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the trash entries where companyId = ? and classNameId = ?.
    static TrashEntry
    findByC_CN_First(long companyId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator)
    Returns the first trash entry in the ordered set where companyId = ? and classNameId = ?.
    static TrashEntry
    findByCN_CPK(long classNameId, long classPK)
    Returns the trash entry where classNameId = ? and classPK = ? or throws a NoSuchEntryException if it could not be found.
    findByCompanyId(long companyId)
    Returns all the trash entries where companyId = ?.
    findByCompanyId(long companyId, int start, int end)
    Returns a range of all the trash entries where companyId = ?.
    findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator)
    Returns an ordered range of all the trash entries where companyId = ?.
    findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the trash entries where companyId = ?.
    static TrashEntry
    findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator)
    Returns the first trash entry in the ordered set where companyId = ?.
    findByG_CN(long groupId, long classNameId)
    Returns all the trash entries where groupId = ? and classNameId = ?.
    findByG_CN(long groupId, long classNameId, int start, int end)
    Returns a range of all the trash entries where groupId = ? and classNameId = ?.
    findByG_CN(long groupId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator)
    Returns an ordered range of all the trash entries where groupId = ? and classNameId = ?.
    findByG_CN(long groupId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the trash entries where groupId = ? and classNameId = ?.
    static TrashEntry
    findByG_CN_First(long groupId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator)
    Returns the first trash entry in the ordered set where groupId = ? and classNameId = ?.
    findByG_LtCD(long groupId, Date createDate)
    Returns all the trash entries where groupId = ? and createDate < ?.
    findByG_LtCD(long groupId, Date createDate, int start, int end)
    Returns a range of all the trash entries where groupId = ? and createDate < ?.
    findByG_LtCD(long groupId, Date createDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator)
    Returns an ordered range of all the trash entries where groupId = ? and createDate < ?.
    findByG_LtCD(long groupId, Date createDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the trash entries where groupId = ? and createDate < ?.
    static TrashEntry
    findByG_LtCD_First(long groupId, Date createDate, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator)
    Returns the first trash entry in the ordered set where groupId = ? and createDate < ?.
    findByGroupId(long groupId)
    Returns all the trash entries where groupId = ?.
    findByGroupId(long groupId, int start, int end)
    Returns a range of all the trash entries where groupId = ?.
    findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator)
    Returns an ordered range of all the trash entries where groupId = ?.
    findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the trash entries where groupId = ?.
    static TrashEntry
    findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator)
    Returns the first trash entry in the ordered set where groupId = ?.
    static TrashEntry
    findByPrimaryKey(long entryId)
    Returns the trash entry with the primary key or throws a NoSuchEntryException if it could not be found.
    findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
     
    findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
     
    findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator)
     
     
    static TrashEntry
    remove(long entryId)
    Removes the trash entry with the primary key from the database.
    static void
    removeByC_CN(long companyId, long classNameId)
    Removes all the trash entries where companyId = ? and classNameId = ? from the database.
    static TrashEntry
    removeByCN_CPK(long classNameId, long classPK)
    Removes the trash entry where classNameId = ? and classPK = ? from the database.
    static void
    removeByCompanyId(long companyId)
    Removes all the trash entries where companyId = ? from the database.
    static void
    removeByG_CN(long groupId, long classNameId)
    Removes all the trash entries where groupId = ? and classNameId = ? from the database.
    static void
    removeByG_LtCD(long groupId, Date createDate)
    Removes all the trash entries where groupId = ? and createDate < ? from the database.
    static void
    removeByGroupId(long groupId)
    Removes all the trash entries where groupId = ? from the database.
    static void
     
    static TrashEntry
    update(TrashEntry trashEntry)
     
    static TrashEntry
    update(TrashEntry trashEntry, com.liferay.portal.kernel.service.ServiceContext serviceContext)
     
    static TrashEntry
    updateImpl(TrashEntry trashEntry)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TrashEntryUtil

      public TrashEntryUtil()
  • Method Details

    • cacheResult

      public static void cacheResult(List<TrashEntry> trashEntries)
      See Also:
      • BasePersistence.cacheResult(List)
    • cacheResult

      public static void cacheResult(TrashEntry trashEntry)
      See Also:
      • BasePersistence.cacheResult(com.liferay.portal.kernel.model.BaseModel)
    • clearCache

      public static void clearCache()
      See Also:
      • BasePersistence.clearCache()
    • clearCache

      public static void clearCache(TrashEntry trashEntry)
      See Also:
      • BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
    • countWithDynamicQuery

      public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      See Also:
      • BasePersistence.countWithDynamicQuery(DynamicQuery)
    • fetchByPrimaryKeys

      public static Map<Serializable,TrashEntry> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
      See Also:
      • BasePersistence.fetchByPrimaryKeys(Set)
    • findWithDynamicQuery

      public static List<TrashEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery)
    • findWithDynamicQuery

      public static List<TrashEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
    • findWithDynamicQuery

      public static List<TrashEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
    • update

      public static TrashEntry update(TrashEntry trashEntry)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
    • update

      public static TrashEntry update(TrashEntry trashEntry, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
    • findByGroupId

      public static List<TrashEntry> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the trash entries where groupId = ?.

      Useful when paginating results. Returns a maximum of end - 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 com.liferay.portal.kernel.dao.orm.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, then the query will include the default ORDER BY logic from com.liferay.trash.model.impl.TrashEntryModelImpl.

      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)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching trash entries
    • findByGroupId_First

      public static TrashEntry findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator) throws NoSuchEntryException
      Returns the first trash entry in the ordered set where groupId = ?.
      Parameters:
      groupId - the group ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching trash entry
    • fetchByGroupId_First

      public static TrashEntry fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator)
      Returns the first trash entry in the ordered set where groupId = ?.
      Parameters:
      groupId - the group 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
    • removeByGroupId

      public static void removeByGroupId(long groupId)
      Removes all the trash entries where groupId = ? from the database.
      Parameters:
      groupId - the group ID
    • countByGroupId

      public static int countByGroupId(long groupId)
      Returns the number of trash entries where groupId = ?.
      Parameters:
      groupId - the group ID
      Returns:
      the number of matching trash entries
    • findByCompanyId

      public static List<TrashEntry> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the trash entries where companyId = ?.

      Useful when paginating results. Returns a maximum of end - 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 com.liferay.portal.kernel.dao.orm.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, then the query will include the default ORDER BY logic from com.liferay.trash.model.impl.TrashEntryModelImpl.

      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)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching trash entries
    • findByCompanyId_First

      public static TrashEntry findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator) throws NoSuchEntryException
      Returns the first trash entry in the ordered set where companyId = ?.
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching trash entry
    • fetchByCompanyId_First

      public static TrashEntry fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator)
      Returns the first trash entry in the ordered set where companyId = ?.
      Parameters:
      companyId - the company 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
    • removeByCompanyId

      public static void removeByCompanyId(long companyId)
      Removes all the trash entries where companyId = ? from the database.
      Parameters:
      companyId - the company ID
    • countByCompanyId

      public static int countByCompanyId(long companyId)
      Returns the number of trash entries where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the number of matching trash entries
    • findByG_LtCD

      public static List<TrashEntry> findByG_LtCD(long groupId, Date createDate)
      Returns all the trash entries where groupId = ? and createDate < ?.
      Parameters:
      groupId - the group ID
      createDate - the create date
      Returns:
      the matching trash entries
    • findByG_LtCD

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

      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 com.liferay.portal.kernel.dao.orm.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, then the query will include the default ORDER BY logic from com.liferay.trash.model.impl.TrashEntryModelImpl.

      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
    • findByG_LtCD

      public static List<TrashEntry> findByG_LtCD(long groupId, Date createDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator)
      Returns an ordered range of all the trash entries where groupId = ? and createDate < ?.

      Useful when paginating results. Returns a maximum of end - 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 com.liferay.portal.kernel.dao.orm.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, then the query will include the default ORDER BY logic from com.liferay.trash.model.impl.TrashEntryModelImpl.

      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
    • findByG_LtCD

      public static List<TrashEntry> findByG_LtCD(long groupId, Date createDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the trash entries where groupId = ? and createDate < ?.

      Useful when paginating results. Returns a maximum of end - 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 com.liferay.portal.kernel.dao.orm.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, then the query will include the default ORDER BY logic from com.liferay.trash.model.impl.TrashEntryModelImpl.

      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)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching trash entries
    • findByG_LtCD_First

      public static TrashEntry findByG_LtCD_First(long groupId, Date createDate, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator) throws NoSuchEntryException
      Returns the first trash entry in the ordered set where groupId = ? and createDate < ?.
      Parameters:
      groupId - the group ID
      createDate - the create date
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching trash entry
    • fetchByG_LtCD_First

      public static TrashEntry fetchByG_LtCD_First(long groupId, Date createDate, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator)
      Returns the first trash entry in the ordered set where groupId = ? and createDate < ?.
      Parameters:
      groupId - the group 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
    • removeByG_LtCD

      public static void removeByG_LtCD(long groupId, Date createDate)
      Removes all the trash entries where groupId = ? and createDate < ? from the database.
      Parameters:
      groupId - the group ID
      createDate - the create date
    • countByG_LtCD

      public static int countByG_LtCD(long groupId, Date createDate)
      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
    • findByG_CN

      public static List<TrashEntry> findByG_CN(long groupId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the trash entries where groupId = ? and classNameId = ?.

      Useful when paginating results. Returns a maximum of end - 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 com.liferay.portal.kernel.dao.orm.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, then the query will include the default ORDER BY logic from com.liferay.trash.model.impl.TrashEntryModelImpl.

      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)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching trash entries
    • findByG_CN_First

      public static TrashEntry findByG_CN_First(long groupId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator) throws NoSuchEntryException
      Returns the first trash entry in the ordered set where groupId = ? and classNameId = ?.
      Parameters:
      groupId - the group ID
      classNameId - the class name ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching trash entry
    • fetchByG_CN_First

      public static TrashEntry fetchByG_CN_First(long groupId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator)
      Returns the first trash entry in the ordered set where groupId = ? and classNameId = ?.
      Parameters:
      groupId - the group 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
    • removeByG_CN

      public static void removeByG_CN(long groupId, long classNameId)
      Removes all the trash entries where groupId = ? and classNameId = ? from the database.
      Parameters:
      groupId - the group ID
      classNameId - the class name ID
    • countByG_CN

      public static int countByG_CN(long groupId, long classNameId)
      Returns the number of trash entries where groupId = ? and classNameId = ?.
      Parameters:
      groupId - the group ID
      classNameId - the class name ID
      Returns:
      the number of matching trash entries
    • findByC_CN

      public static List<TrashEntry> findByC_CN(long companyId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the trash entries where companyId = ? and classNameId = ?.

      Useful when paginating results. Returns a maximum of end - 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 com.liferay.portal.kernel.dao.orm.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, then the query will include the default ORDER BY logic from com.liferay.trash.model.impl.TrashEntryModelImpl.

      Parameters:
      companyId - the company 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)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching trash entries
    • findByC_CN_First

      public static TrashEntry findByC_CN_First(long companyId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator) throws NoSuchEntryException
      Returns the first trash entry in the ordered set where companyId = ? and classNameId = ?.
      Parameters:
      companyId - the company ID
      classNameId - the class name ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching trash entry
    • fetchByC_CN_First

      public static TrashEntry fetchByC_CN_First(long companyId, long classNameId, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator)
      Returns the first trash entry in the ordered set where companyId = ? and classNameId = ?.
      Parameters:
      companyId - the company 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
    • removeByC_CN

      public static void removeByC_CN(long companyId, long classNameId)
      Removes all the trash entries where companyId = ? and classNameId = ? from the database.
      Parameters:
      companyId - the company ID
      classNameId - the class name ID
    • countByC_CN

      public static int countByC_CN(long companyId, long classNameId)
      Returns the number of trash entries where companyId = ? and classNameId = ?.
      Parameters:
      companyId - the company ID
      classNameId - the class name ID
      Returns:
      the number of matching trash entries
    • findByCN_CPK

      public static TrashEntry findByCN_CPK(long classNameId, long classPK) throws 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 pk
      Returns:
      the matching trash entry
    • fetchByCN_CPK

      public static TrashEntry fetchByCN_CPK(long classNameId, long classPK, boolean useFinderCache)
      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 pk
      useFinderCache - whether to use the finder cache
      Returns:
      the matching trash entry, or null if a matching trash entry could not be found
    • removeByCN_CPK

      public static TrashEntry removeByCN_CPK(long classNameId, long classPK) throws NoSuchEntryException
      Removes the trash entry where classNameId = ? and classPK = ? from the database.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      Returns:
      the trash entry that was removed
      Throws:
      NoSuchEntryException
    • countByCN_CPK

      public static int countByCN_CPK(long classNameId, long classPK)
      Returns the number of trash entries where classNameId = ? and classPK = ?.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      Returns:
      the number of matching trash entries
    • create

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

      public static TrashEntry remove(long entryId) throws 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
    • updateImpl

      public static TrashEntry updateImpl(TrashEntry trashEntry)
    • findByPrimaryKey

      public static TrashEntry findByPrimaryKey(long entryId) throws 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
    • fetchByPrimaryKey

      public static TrashEntry fetchByPrimaryKey(long entryId)
      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
    • fetchByCN_CPK

      public static TrashEntry fetchByCN_CPK(long classNameId, long classPK)
      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 pk
      Returns:
      the matching trash entry, or null if a matching trash entry could not be found
    • findByGroupId

      public static List<TrashEntry> findByGroupId(long groupId)
      Returns all the trash entries where groupId = ?.
      Parameters:
      groupId - the group ID
      Returns:
      the matching trash entries
    • findByGroupId

      public static List<TrashEntry> findByGroupId(long groupId, int start, int end)
      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 com.liferay.portal.kernel.dao.orm.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, then the query will include the default ORDER BY logic from com.liferay.trash.model.impl.TrashEntryModelImpl.

      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
    • findByGroupId

      public static List<TrashEntry> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator)
      Returns an ordered range of all the trash entries where groupId = ?.

      Useful when paginating results. Returns a maximum of end - 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 com.liferay.portal.kernel.dao.orm.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, then the query will include the default ORDER BY logic from com.liferay.trash.model.impl.TrashEntryModelImpl.

      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
    • findByCompanyId

      public static List<TrashEntry> findByCompanyId(long companyId)
      Returns all the trash entries where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the matching trash entries
    • findByCompanyId

      public static List<TrashEntry> findByCompanyId(long companyId, int start, int end)
      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 com.liferay.portal.kernel.dao.orm.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, then the query will include the default ORDER BY logic from com.liferay.trash.model.impl.TrashEntryModelImpl.

      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
    • findByCompanyId

      public static List<TrashEntry> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator)
      Returns an ordered range of all the trash entries where companyId = ?.

      Useful when paginating results. Returns a maximum of end - 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 com.liferay.portal.kernel.dao.orm.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, then the query will include the default ORDER BY logic from com.liferay.trash.model.impl.TrashEntryModelImpl.

      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
    • findByG_CN

      public static List<TrashEntry> findByG_CN(long groupId, long classNameId)
      Returns all the trash entries where groupId = ? and classNameId = ?.
      Parameters:
      groupId - the group ID
      classNameId - the class name ID
      Returns:
      the matching trash entries
    • findByG_CN

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

      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 com.liferay.portal.kernel.dao.orm.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, then the query will include the default ORDER BY logic from com.liferay.trash.model.impl.TrashEntryModelImpl.

      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
    • findByG_CN

      public static List<TrashEntry> findByG_CN(long groupId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator)
      Returns an ordered range of all the trash entries where groupId = ? and classNameId = ?.

      Useful when paginating results. Returns a maximum of end - 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 com.liferay.portal.kernel.dao.orm.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, then the query will include the default ORDER BY logic from com.liferay.trash.model.impl.TrashEntryModelImpl.

      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
    • findByC_CN

      public static List<TrashEntry> findByC_CN(long companyId, long classNameId)
      Returns all the trash entries where companyId = ? and classNameId = ?.
      Parameters:
      companyId - the company ID
      classNameId - the class name ID
      Returns:
      the matching trash entries
    • findByC_CN

      public static List<TrashEntry> findByC_CN(long companyId, long classNameId, int start, int end)
      Returns a range of all the trash entries where companyId = ? and classNameId = ?.

      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 com.liferay.portal.kernel.dao.orm.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, then the query will include the default ORDER BY logic from com.liferay.trash.model.impl.TrashEntryModelImpl.

      Parameters:
      companyId - the company 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
    • findByC_CN

      public static List<TrashEntry> findByC_CN(long companyId, long classNameId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<TrashEntry> orderByComparator)
      Returns an ordered range of all the trash entries where companyId = ? and classNameId = ?.

      Useful when paginating results. Returns a maximum of end - 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 com.liferay.portal.kernel.dao.orm.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, then the query will include the default ORDER BY logic from com.liferay.trash.model.impl.TrashEntryModelImpl.

      Parameters:
      companyId - the company 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
    • getPersistence

      public static TrashEntryPersistence getPersistence()
    • setPersistence

      public static void setPersistence(TrashEntryPersistence persistence)