java.lang.Object
com.liferay.marketplace.service.persistence.AppUtil

public class AppUtil extends Object
The persistence utility for the app service. This utility wraps com.liferay.marketplace.service.persistence.impl.AppPersistenceImpl 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
    Caches the app in the entity cache if it is enabled.
    static void
    Caches the apps in the entity cache if it is enabled.
    static void
     
    static void
     
    static int
    Returns the number of apps.
    static int
    Returns the number of apps where category = ?.
    static int
    countByCompanyId(long companyId)
    Returns the number of apps where companyId = ?.
    static int
    countByRemoteAppId(long remoteAppId)
    Returns the number of apps where remoteAppId = ?.
    static int
    Returns the number of apps where uuid = ?.
    static int
    countByUuid_C(String uuid, long companyId)
    Returns the number of apps where uuid = ? and companyId = ?.
    static long
    countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
     
    static App
    create(long appId)
    Creates a new app with the primary key.
    static App
    fetchByCategory_First(String category, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator)
    Returns the first app in the ordered set where category = ?.
    static App
    fetchByCategory_Last(String category, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator)
    Returns the last app in the ordered set where category = ?.
    static App
    fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator)
    Returns the first app in the ordered set where companyId = ?.
    static App
    fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator)
    Returns the last app in the ordered set where companyId = ?.
    static App
    fetchByPrimaryKey(long appId)
    Returns the app with the primary key or returns null if it could not be found.
     
    static App
    fetchByRemoteAppId(long remoteAppId)
    Returns the app where remoteAppId = ? or returns null if it could not be found.
    static App
    fetchByRemoteAppId(long remoteAppId, boolean useFinderCache)
    Returns the app where remoteAppId = ? or returns null if it could not be found, optionally using the finder cache.
    static App
    fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator)
    Returns the first app in the ordered set where uuid = ? and companyId = ?.
    static App
    fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator)
    Returns the last app in the ordered set where uuid = ? and companyId = ?.
    static App
    fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator)
    Returns the first app in the ordered set where uuid = ?.
    static App
    fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator)
    Returns the last app in the ordered set where uuid = ?.
    static List<App>
    Returns all the apps.
    static List<App>
    findAll(int start, int end)
    Returns a range of all the apps.
    static List<App>
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator)
    Returns an ordered range of all the apps.
    static List<App>
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the apps.
    static List<App>
    Returns all the apps where category = ?.
    static List<App>
    findByCategory(String category, int start, int end)
    Returns a range of all the apps where category = ?.
    static List<App>
    findByCategory(String category, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator)
    Returns an ordered range of all the apps where category = ?.
    static List<App>
    findByCategory(String category, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the apps where category = ?.
    static App
    findByCategory_First(String category, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator)
    Returns the first app in the ordered set where category = ?.
    static App
    findByCategory_Last(String category, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator)
    Returns the last app in the ordered set where category = ?.
    static App[]
    findByCategory_PrevAndNext(long appId, String category, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator)
    Returns the apps before and after the current app in the ordered set where category = ?.
    static List<App>
    findByCompanyId(long companyId)
    Returns all the apps where companyId = ?.
    static List<App>
    findByCompanyId(long companyId, int start, int end)
    Returns a range of all the apps where companyId = ?.
    static List<App>
    findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator)
    Returns an ordered range of all the apps where companyId = ?.
    static List<App>
    findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the apps where companyId = ?.
    static App
    findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator)
    Returns the first app in the ordered set where companyId = ?.
    static App
    findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator)
    Returns the last app in the ordered set where companyId = ?.
    static App[]
    findByCompanyId_PrevAndNext(long appId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator)
    Returns the apps before and after the current app in the ordered set where companyId = ?.
    static App
    findByPrimaryKey(long appId)
    Returns the app with the primary key or throws a NoSuchAppException if it could not be found.
    static App
    findByRemoteAppId(long remoteAppId)
    Returns the app where remoteAppId = ? or throws a NoSuchAppException if it could not be found.
    static List<App>
    Returns all the apps where uuid = ?.
    static List<App>
    findByUuid(String uuid, int start, int end)
    Returns a range of all the apps where uuid = ?.
    static List<App>
    findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator)
    Returns an ordered range of all the apps where uuid = ?.
    static List<App>
    findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the apps where uuid = ?.
    static List<App>
    findByUuid_C(String uuid, long companyId)
    Returns all the apps where uuid = ? and companyId = ?.
    static List<App>
    findByUuid_C(String uuid, long companyId, int start, int end)
    Returns a range of all the apps where uuid = ? and companyId = ?.
    static List<App>
    findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator)
    Returns an ordered range of all the apps where uuid = ? and companyId = ?.
    static List<App>
    findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the apps where uuid = ? and companyId = ?.
    static App
    findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator)
    Returns the first app in the ordered set where uuid = ? and companyId = ?.
    static App
    findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator)
    Returns the last app in the ordered set where uuid = ? and companyId = ?.
    static App[]
    findByUuid_C_PrevAndNext(long appId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator)
    Returns the apps before and after the current app in the ordered set where uuid = ? and companyId = ?.
    static App
    findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator)
    Returns the first app in the ordered set where uuid = ?.
    static App
    findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator)
    Returns the last app in the ordered set where uuid = ?.
    static App[]
    findByUuid_PrevAndNext(long appId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator)
    Returns the apps before and after the current app in the ordered set where uuid = ?.
    static List<App>
    findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
     
    static List<App>
    findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
     
    static List<App>
    findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator)
     
     
    static App
    remove(long appId)
    Removes the app with the primary key from the database.
    static void
    Removes all the apps from the database.
    static void
    Removes all the apps where category = ? from the database.
    static void
    removeByCompanyId(long companyId)
    Removes all the apps where companyId = ? from the database.
    static App
    removeByRemoteAppId(long remoteAppId)
    Removes the app where remoteAppId = ? from the database.
    static void
    Removes all the apps where uuid = ? from the database.
    static void
    removeByUuid_C(String uuid, long companyId)
    Removes all the apps where uuid = ? and companyId = ? from the database.
    static void
     
    static App
    update(App app)
     
    static App
    update(App app, com.liferay.portal.kernel.service.ServiceContext serviceContext)
     
    static App
     

    Methods inherited from class java.lang.Object

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

    • AppUtil

      public AppUtil()
  • Method Details

    • clearCache

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

      public static void clearCache(App app)
      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,App> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
      See Also:
      • BasePersistence.fetchByPrimaryKeys(Set)
    • findWithDynamicQuery

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

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

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

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

      public static App update(App app, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
    • findByUuid

      public static List<App> findByUuid(String uuid)
      Returns all the apps where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the matching apps
    • findByUuid

      public static List<App> findByUuid(String uuid, int start, int end)
      Returns a range of all the apps where uuid = ?.

      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, then the query will include the default ORDER BY logic from AppModelImpl.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of apps
      end - the upper bound of the range of apps (not inclusive)
      Returns:
      the range of matching apps
    • findByUuid

      public static List<App> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator)
      Returns an ordered range of all the apps where uuid = ?.

      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, then the query will include the default ORDER BY logic from AppModelImpl.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of apps
      end - the upper bound of the range of apps (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching apps
    • findByUuid

      public static List<App> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the apps where uuid = ?.

      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, then the query will include the default ORDER BY logic from AppModelImpl.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of apps
      end - the upper bound of the range of apps (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 apps
    • findByUuid_First

      public static App findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) throws NoSuchAppException
      Returns the first app in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching app
      Throws:
      NoSuchAppException - if a matching app could not be found
      NoSuchAppException
    • fetchByUuid_First

      public static App fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator)
      Returns the first app in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching app, or null if a matching app could not be found
    • findByUuid_Last

      public static App findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) throws NoSuchAppException
      Returns the last app in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching app
      Throws:
      NoSuchAppException - if a matching app could not be found
      NoSuchAppException
    • fetchByUuid_Last

      public static App fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator)
      Returns the last app in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching app, or null if a matching app could not be found
    • findByUuid_PrevAndNext

      public static App[] findByUuid_PrevAndNext(long appId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) throws NoSuchAppException
      Returns the apps before and after the current app in the ordered set where uuid = ?.
      Parameters:
      appId - the primary key of the current app
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next app
      Throws:
      NoSuchAppException - if a app with the primary key could not be found
      NoSuchAppException
    • removeByUuid

      public static void removeByUuid(String uuid)
      Removes all the apps where uuid = ? from the database.
      Parameters:
      uuid - the uuid
    • countByUuid

      public static int countByUuid(String uuid)
      Returns the number of apps where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the number of matching apps
    • findByUuid_C

      public static List<App> findByUuid_C(String uuid, long companyId)
      Returns all the apps where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the matching apps
    • findByUuid_C

      public static List<App> findByUuid_C(String uuid, long companyId, int start, int end)
      Returns a range of all the apps where uuid = ? and 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, then the query will include the default ORDER BY logic from AppModelImpl.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of apps
      end - the upper bound of the range of apps (not inclusive)
      Returns:
      the range of matching apps
    • findByUuid_C

      public static List<App> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator)
      Returns an ordered range of all the apps where uuid = ? and 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, then the query will include the default ORDER BY logic from AppModelImpl.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of apps
      end - the upper bound of the range of apps (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching apps
    • findByUuid_C

      public static List<App> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the apps where uuid = ? and 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, then the query will include the default ORDER BY logic from AppModelImpl.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of apps
      end - the upper bound of the range of apps (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 apps
    • findByUuid_C_First

      public static App findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) throws NoSuchAppException
      Returns the first app in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching app
      Throws:
      NoSuchAppException - if a matching app could not be found
      NoSuchAppException
    • fetchByUuid_C_First

      public static App fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator)
      Returns the first app in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching app, or null if a matching app could not be found
    • findByUuid_C_Last

      public static App findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) throws NoSuchAppException
      Returns the last app in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching app
      Throws:
      NoSuchAppException - if a matching app could not be found
      NoSuchAppException
    • fetchByUuid_C_Last

      public static App fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator)
      Returns the last app in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching app, or null if a matching app could not be found
    • findByUuid_C_PrevAndNext

      public static App[] findByUuid_C_PrevAndNext(long appId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) throws NoSuchAppException
      Returns the apps before and after the current app in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      appId - the primary key of the current app
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next app
      Throws:
      NoSuchAppException - if a app with the primary key could not be found
      NoSuchAppException
    • removeByUuid_C

      public static void removeByUuid_C(String uuid, long companyId)
      Removes all the apps where uuid = ? and companyId = ? from the database.
      Parameters:
      uuid - the uuid
      companyId - the company ID
    • countByUuid_C

      public static int countByUuid_C(String uuid, long companyId)
      Returns the number of apps where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the number of matching apps
    • findByCompanyId

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

      public static List<App> findByCompanyId(long companyId, int start, int end)
      Returns a range of all the apps 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, then the query will include the default ORDER BY logic from AppModelImpl.

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of apps
      end - the upper bound of the range of apps (not inclusive)
      Returns:
      the range of matching apps
    • findByCompanyId

      public static List<App> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator)
      Returns an ordered range of all the apps 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, then the query will include the default ORDER BY logic from AppModelImpl.

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of apps
      end - the upper bound of the range of apps (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching apps
    • findByCompanyId

      public static List<App> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the apps 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, then the query will include the default ORDER BY logic from AppModelImpl.

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of apps
      end - the upper bound of the range of apps (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 apps
    • findByCompanyId_First

      public static App findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) throws NoSuchAppException
      Returns the first app 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 app
      Throws:
      NoSuchAppException - if a matching app could not be found
      NoSuchAppException
    • fetchByCompanyId_First

      public static App fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator)
      Returns the first app 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 app, or null if a matching app could not be found
    • findByCompanyId_Last

      public static App findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) throws NoSuchAppException
      Returns the last app in the ordered set where companyId = ?.
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching app
      Throws:
      NoSuchAppException - if a matching app could not be found
      NoSuchAppException
    • fetchByCompanyId_Last

      public static App fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator)
      Returns the last app in the ordered set where companyId = ?.
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching app, or null if a matching app could not be found
    • findByCompanyId_PrevAndNext

      public static App[] findByCompanyId_PrevAndNext(long appId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) throws NoSuchAppException
      Returns the apps before and after the current app in the ordered set where companyId = ?.
      Parameters:
      appId - the primary key of the current app
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next app
      Throws:
      NoSuchAppException - if a app with the primary key could not be found
      NoSuchAppException
    • removeByCompanyId

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

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

      public static App findByRemoteAppId(long remoteAppId) throws NoSuchAppException
      Returns the app where remoteAppId = ? or throws a NoSuchAppException if it could not be found.
      Parameters:
      remoteAppId - the remote app ID
      Returns:
      the matching app
      Throws:
      NoSuchAppException - if a matching app could not be found
      NoSuchAppException
    • fetchByRemoteAppId

      public static App fetchByRemoteAppId(long remoteAppId)
      Returns the app where remoteAppId = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      remoteAppId - the remote app ID
      Returns:
      the matching app, or null if a matching app could not be found
    • fetchByRemoteAppId

      public static App fetchByRemoteAppId(long remoteAppId, boolean useFinderCache)
      Returns the app where remoteAppId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      remoteAppId - the remote app ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching app, or null if a matching app could not be found
    • removeByRemoteAppId

      public static App removeByRemoteAppId(long remoteAppId) throws NoSuchAppException
      Removes the app where remoteAppId = ? from the database.
      Parameters:
      remoteAppId - the remote app ID
      Returns:
      the app that was removed
      Throws:
      NoSuchAppException
    • countByRemoteAppId

      public static int countByRemoteAppId(long remoteAppId)
      Returns the number of apps where remoteAppId = ?.
      Parameters:
      remoteAppId - the remote app ID
      Returns:
      the number of matching apps
    • findByCategory

      public static List<App> findByCategory(String category)
      Returns all the apps where category = ?.
      Parameters:
      category - the category
      Returns:
      the matching apps
    • findByCategory

      public static List<App> findByCategory(String category, int start, int end)
      Returns a range of all the apps where category = ?.

      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, then the query will include the default ORDER BY logic from AppModelImpl.

      Parameters:
      category - the category
      start - the lower bound of the range of apps
      end - the upper bound of the range of apps (not inclusive)
      Returns:
      the range of matching apps
    • findByCategory

      public static List<App> findByCategory(String category, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator)
      Returns an ordered range of all the apps where category = ?.

      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, then the query will include the default ORDER BY logic from AppModelImpl.

      Parameters:
      category - the category
      start - the lower bound of the range of apps
      end - the upper bound of the range of apps (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching apps
    • findByCategory

      public static List<App> findByCategory(String category, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the apps where category = ?.

      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, then the query will include the default ORDER BY logic from AppModelImpl.

      Parameters:
      category - the category
      start - the lower bound of the range of apps
      end - the upper bound of the range of apps (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 apps
    • findByCategory_First

      public static App findByCategory_First(String category, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) throws NoSuchAppException
      Returns the first app in the ordered set where category = ?.
      Parameters:
      category - the category
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching app
      Throws:
      NoSuchAppException - if a matching app could not be found
      NoSuchAppException
    • fetchByCategory_First

      public static App fetchByCategory_First(String category, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator)
      Returns the first app in the ordered set where category = ?.
      Parameters:
      category - the category
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching app, or null if a matching app could not be found
    • findByCategory_Last

      public static App findByCategory_Last(String category, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) throws NoSuchAppException
      Returns the last app in the ordered set where category = ?.
      Parameters:
      category - the category
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching app
      Throws:
      NoSuchAppException - if a matching app could not be found
      NoSuchAppException
    • fetchByCategory_Last

      public static App fetchByCategory_Last(String category, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator)
      Returns the last app in the ordered set where category = ?.
      Parameters:
      category - the category
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching app, or null if a matching app could not be found
    • findByCategory_PrevAndNext

      public static App[] findByCategory_PrevAndNext(long appId, String category, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator) throws NoSuchAppException
      Returns the apps before and after the current app in the ordered set where category = ?.
      Parameters:
      appId - the primary key of the current app
      category - the category
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next app
      Throws:
      NoSuchAppException - if a app with the primary key could not be found
      NoSuchAppException
    • removeByCategory

      public static void removeByCategory(String category)
      Removes all the apps where category = ? from the database.
      Parameters:
      category - the category
    • countByCategory

      public static int countByCategory(String category)
      Returns the number of apps where category = ?.
      Parameters:
      category - the category
      Returns:
      the number of matching apps
    • cacheResult

      public static void cacheResult(App app)
      Caches the app in the entity cache if it is enabled.
      Parameters:
      app - the app
    • cacheResult

      public static void cacheResult(List<App> apps)
      Caches the apps in the entity cache if it is enabled.
      Parameters:
      apps - the apps
    • create

      public static App create(long appId)
      Creates a new app with the primary key. Does not add the app to the database.
      Parameters:
      appId - the primary key for the new app
      Returns:
      the new app
    • remove

      public static App remove(long appId) throws NoSuchAppException
      Removes the app with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      appId - the primary key of the app
      Returns:
      the app that was removed
      Throws:
      NoSuchAppException - if a app with the primary key could not be found
      NoSuchAppException
    • updateImpl

      public static App updateImpl(App app)
    • findByPrimaryKey

      public static App findByPrimaryKey(long appId) throws NoSuchAppException
      Returns the app with the primary key or throws a NoSuchAppException if it could not be found.
      Parameters:
      appId - the primary key of the app
      Returns:
      the app
      Throws:
      NoSuchAppException - if a app with the primary key could not be found
      NoSuchAppException
    • fetchByPrimaryKey

      public static App fetchByPrimaryKey(long appId)
      Returns the app with the primary key or returns null if it could not be found.
      Parameters:
      appId - the primary key of the app
      Returns:
      the app, or null if a app with the primary key could not be found
    • findAll

      public static List<App> findAll()
      Returns all the apps.
      Returns:
      the apps
    • findAll

      public static List<App> findAll(int start, int end)
      Returns a range of all the apps.

      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, then the query will include the default ORDER BY logic from AppModelImpl.

      Parameters:
      start - the lower bound of the range of apps
      end - the upper bound of the range of apps (not inclusive)
      Returns:
      the range of apps
    • findAll

      public static List<App> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator)
      Returns an ordered range of all the apps.

      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, then the query will include the default ORDER BY logic from AppModelImpl.

      Parameters:
      start - the lower bound of the range of apps
      end - the upper bound of the range of apps (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of apps
    • findAll

      public static List<App> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<App> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the apps.

      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, then the query will include the default ORDER BY logic from AppModelImpl.

      Parameters:
      start - the lower bound of the range of apps
      end - the upper bound of the range of apps (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of apps
    • removeAll

      public static void removeAll()
      Removes all the apps from the database.
    • countAll

      public static int countAll()
      Returns the number of apps.
      Returns:
      the number of apps
    • getPersistence

      public static AppPersistence getPersistence()
    • setPersistence

      public static void setPersistence(AppPersistence persistence)