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

public class ModuleUtil extends Object
The persistence utility for the module service. This utility wraps com.liferay.marketplace.service.persistence.impl.ModulePersistenceImpl 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 module in the entity cache if it is enabled.
    static void
    Caches the modules in the entity cache if it is enabled.
    static void
     
    static void
     
    static int
    Returns the number of modules.
    static int
    countByA_BSN_BV(long appId, String bundleSymbolicName, String bundleVersion)
    Returns the number of modules where appId = ? and bundleSymbolicName = ? and bundleVersion = ?.
    static int
    countByA_CN(long appId, String contextName)
    Returns the number of modules where appId = ? and contextName = ?.
    static int
    countByAppId(long appId)
    Returns the number of modules where appId = ?.
    static int
    countByBundleSymbolicName(String bundleSymbolicName)
    Returns the number of modules where bundleSymbolicName = ?.
    static int
    Returns the number of modules where contextName = ?.
    static int
    Returns the number of modules where uuid = ?.
    static int
    countByUuid_C(String uuid, long companyId)
    Returns the number of modules where uuid = ? and companyId = ?.
    static long
    countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
     
    static Module
    create(long moduleId)
    Creates a new module with the primary key.
    static Module
    fetchByA_BSN_BV(long appId, String bundleSymbolicName, String bundleVersion)
    Returns the module where appId = ? and bundleSymbolicName = ? and bundleVersion = ? or returns null if it could not be found.
    static Module
    fetchByA_BSN_BV(long appId, String bundleSymbolicName, String bundleVersion, boolean useFinderCache)
    Returns the module where appId = ? and bundleSymbolicName = ? and bundleVersion = ? or returns null if it could not be found, optionally using the finder cache.
    static Module
    fetchByA_CN(long appId, String contextName)
    Returns the module where appId = ? and contextName = ? or returns null if it could not be found.
    static Module
    fetchByA_CN(long appId, String contextName, boolean useFinderCache)
    Returns the module where appId = ? and contextName = ? or returns null if it could not be found, optionally using the finder cache.
    static Module
    fetchByAppId_First(long appId, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
    Returns the first module in the ordered set where appId = ?.
    static Module
    fetchByAppId_Last(long appId, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
    Returns the last module in the ordered set where appId = ?.
    static Module
    fetchByBundleSymbolicName_First(String bundleSymbolicName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
    Returns the first module in the ordered set where bundleSymbolicName = ?.
    static Module
    fetchByBundleSymbolicName_Last(String bundleSymbolicName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
    Returns the last module in the ordered set where bundleSymbolicName = ?.
    static Module
    fetchByContextName_First(String contextName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
    Returns the first module in the ordered set where contextName = ?.
    static Module
    fetchByContextName_Last(String contextName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
    Returns the last module in the ordered set where contextName = ?.
    static Module
    fetchByPrimaryKey(long moduleId)
    Returns the module with the primary key or returns null if it could not be found.
     
    static Module
    fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
    Returns the first module in the ordered set where uuid = ? and companyId = ?.
    static Module
    fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
    Returns the last module in the ordered set where uuid = ? and companyId = ?.
    static Module
    fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
    Returns the first module in the ordered set where uuid = ?.
    static Module
    fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
    Returns the last module in the ordered set where uuid = ?.
    static List<Module>
    Returns all the modules.
    static List<Module>
    findAll(int start, int end)
    Returns a range of all the modules.
    static List<Module>
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
    Returns an ordered range of all the modules.
    static List<Module>
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the modules.
    static Module
    findByA_BSN_BV(long appId, String bundleSymbolicName, String bundleVersion)
    Returns the module where appId = ? and bundleSymbolicName = ? and bundleVersion = ? or throws a NoSuchModuleException if it could not be found.
    static Module
    findByA_CN(long appId, String contextName)
    Returns the module where appId = ? and contextName = ? or throws a NoSuchModuleException if it could not be found.
    static List<Module>
    findByAppId(long appId)
    Returns all the modules where appId = ?.
    static List<Module>
    findByAppId(long appId, int start, int end)
    Returns a range of all the modules where appId = ?.
    static List<Module>
    findByAppId(long appId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
    Returns an ordered range of all the modules where appId = ?.
    static List<Module>
    findByAppId(long appId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the modules where appId = ?.
    static Module
    findByAppId_First(long appId, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
    Returns the first module in the ordered set where appId = ?.
    static Module
    findByAppId_Last(long appId, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
    Returns the last module in the ordered set where appId = ?.
    static Module[]
    findByAppId_PrevAndNext(long moduleId, long appId, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
    Returns the modules before and after the current module in the ordered set where appId = ?.
    static List<Module>
    findByBundleSymbolicName(String bundleSymbolicName)
    Returns all the modules where bundleSymbolicName = ?.
    static List<Module>
    findByBundleSymbolicName(String bundleSymbolicName, int start, int end)
    Returns a range of all the modules where bundleSymbolicName = ?.
    static List<Module>
    findByBundleSymbolicName(String bundleSymbolicName, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
    Returns an ordered range of all the modules where bundleSymbolicName = ?.
    static List<Module>
    findByBundleSymbolicName(String bundleSymbolicName, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the modules where bundleSymbolicName = ?.
    static Module
    findByBundleSymbolicName_First(String bundleSymbolicName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
    Returns the first module in the ordered set where bundleSymbolicName = ?.
    static Module
    findByBundleSymbolicName_Last(String bundleSymbolicName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
    Returns the last module in the ordered set where bundleSymbolicName = ?.
    static Module[]
    findByBundleSymbolicName_PrevAndNext(long moduleId, String bundleSymbolicName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
    Returns the modules before and after the current module in the ordered set where bundleSymbolicName = ?.
    static List<Module>
    Returns all the modules where contextName = ?.
    static List<Module>
    findByContextName(String contextName, int start, int end)
    Returns a range of all the modules where contextName = ?.
    static List<Module>
    findByContextName(String contextName, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
    Returns an ordered range of all the modules where contextName = ?.
    static List<Module>
    findByContextName(String contextName, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the modules where contextName = ?.
    static Module
    findByContextName_First(String contextName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
    Returns the first module in the ordered set where contextName = ?.
    static Module
    findByContextName_Last(String contextName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
    Returns the last module in the ordered set where contextName = ?.
    static Module[]
    findByContextName_PrevAndNext(long moduleId, String contextName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
    Returns the modules before and after the current module in the ordered set where contextName = ?.
    static Module
    findByPrimaryKey(long moduleId)
    Returns the module with the primary key or throws a NoSuchModuleException if it could not be found.
    static List<Module>
    Returns all the modules where uuid = ?.
    static List<Module>
    findByUuid(String uuid, int start, int end)
    Returns a range of all the modules where uuid = ?.
    static List<Module>
    findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
    Returns an ordered range of all the modules where uuid = ?.
    static List<Module>
    findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the modules where uuid = ?.
    static List<Module>
    findByUuid_C(String uuid, long companyId)
    Returns all the modules where uuid = ? and companyId = ?.
    static List<Module>
    findByUuid_C(String uuid, long companyId, int start, int end)
    Returns a range of all the modules where uuid = ? and companyId = ?.
    static List<Module>
    findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
    Returns an ordered range of all the modules where uuid = ? and companyId = ?.
    static List<Module>
    findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the modules where uuid = ? and companyId = ?.
    static Module
    findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
    Returns the first module in the ordered set where uuid = ? and companyId = ?.
    static Module
    findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
    Returns the last module in the ordered set where uuid = ? and companyId = ?.
    static Module[]
    findByUuid_C_PrevAndNext(long moduleId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
    Returns the modules before and after the current module in the ordered set where uuid = ? and companyId = ?.
    static Module
    findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
    Returns the first module in the ordered set where uuid = ?.
    static Module
    findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
    Returns the last module in the ordered set where uuid = ?.
    static Module[]
    findByUuid_PrevAndNext(long moduleId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
    Returns the modules before and after the current module in the ordered set where uuid = ?.
    static List<Module>
    findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
     
    static List<Module>
    findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
     
    static List<Module>
    findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
     
     
    static Module
    remove(long moduleId)
    Removes the module with the primary key from the database.
    static void
    Removes all the modules from the database.
    static Module
    removeByA_BSN_BV(long appId, String bundleSymbolicName, String bundleVersion)
    Removes the module where appId = ? and bundleSymbolicName = ? and bundleVersion = ? from the database.
    static Module
    removeByA_CN(long appId, String contextName)
    Removes the module where appId = ? and contextName = ? from the database.
    static void
    removeByAppId(long appId)
    Removes all the modules where appId = ? from the database.
    static void
    removeByBundleSymbolicName(String bundleSymbolicName)
    Removes all the modules where bundleSymbolicName = ? from the database.
    static void
    Removes all the modules where contextName = ? from the database.
    static void
    Removes all the modules where uuid = ? from the database.
    static void
    removeByUuid_C(String uuid, long companyId)
    Removes all the modules where uuid = ? and companyId = ? from the database.
    static void
     
    static Module
    update(Module module)
     
    static Module
    update(Module module, com.liferay.portal.kernel.service.ServiceContext serviceContext)
     
    static Module
     

    Methods inherited from class java.lang.Object

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

    • ModuleUtil

      public ModuleUtil()
  • Method Details

    • clearCache

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

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

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

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

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

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

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

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

      public static List<Module> findByUuid(String uuid, int start, int end)
      Returns a range of all the modules 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 ModuleModelImpl.

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

      public static List<Module> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
      Returns an ordered range of all the modules 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 ModuleModelImpl.

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

      public static List<Module> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the modules 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 ModuleModelImpl.

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

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

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

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

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

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

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

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

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

      public static List<Module> findByUuid_C(String uuid, long companyId, int start, int end)
      Returns a range of all the modules 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 ModuleModelImpl.

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

      public static List<Module> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
      Returns an ordered range of all the modules 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 ModuleModelImpl.

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

      public static List<Module> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the modules 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 ModuleModelImpl.

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

      public static Module findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) throws NoSuchModuleException
      Returns the first module 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 module
      Throws:
      NoSuchModuleException - if a matching module could not be found
      NoSuchModuleException
    • fetchByUuid_C_First

      public static Module fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
      Returns the first module 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 module, or null if a matching module could not be found
    • findByUuid_C_Last

      public static Module findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) throws NoSuchModuleException
      Returns the last module 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 module
      Throws:
      NoSuchModuleException - if a matching module could not be found
      NoSuchModuleException
    • fetchByUuid_C_Last

      public static Module fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
      Returns the last module 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 module, or null if a matching module could not be found
    • findByUuid_C_PrevAndNext

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

      public static void removeByUuid_C(String uuid, long companyId)
      Removes all the modules 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 modules where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the number of matching modules
    • findByAppId

      public static List<Module> findByAppId(long appId)
      Returns all the modules where appId = ?.
      Parameters:
      appId - the app ID
      Returns:
      the matching modules
    • findByAppId

      public static List<Module> findByAppId(long appId, int start, int end)
      Returns a range of all the modules where appId = ?.

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

      Parameters:
      appId - the app ID
      start - the lower bound of the range of modules
      end - the upper bound of the range of modules (not inclusive)
      Returns:
      the range of matching modules
    • findByAppId

      public static List<Module> findByAppId(long appId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
      Returns an ordered range of all the modules where appId = ?.

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

      Parameters:
      appId - the app ID
      start - the lower bound of the range of modules
      end - the upper bound of the range of modules (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching modules
    • findByAppId

      public static List<Module> findByAppId(long appId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the modules where appId = ?.

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

      Parameters:
      appId - the app ID
      start - the lower bound of the range of modules
      end - the upper bound of the range of modules (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 modules
    • findByAppId_First

      public static Module findByAppId_First(long appId, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) throws NoSuchModuleException
      Returns the first module in the ordered set where appId = ?.
      Parameters:
      appId - the app ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching module
      Throws:
      NoSuchModuleException - if a matching module could not be found
      NoSuchModuleException
    • fetchByAppId_First

      public static Module fetchByAppId_First(long appId, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
      Returns the first module in the ordered set where appId = ?.
      Parameters:
      appId - the app ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching module, or null if a matching module could not be found
    • findByAppId_Last

      public static Module findByAppId_Last(long appId, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) throws NoSuchModuleException
      Returns the last module in the ordered set where appId = ?.
      Parameters:
      appId - the app ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching module
      Throws:
      NoSuchModuleException - if a matching module could not be found
      NoSuchModuleException
    • fetchByAppId_Last

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

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

      public static void removeByAppId(long appId)
      Removes all the modules where appId = ? from the database.
      Parameters:
      appId - the app ID
    • countByAppId

      public static int countByAppId(long appId)
      Returns the number of modules where appId = ?.
      Parameters:
      appId - the app ID
      Returns:
      the number of matching modules
    • findByBundleSymbolicName

      public static List<Module> findByBundleSymbolicName(String bundleSymbolicName)
      Returns all the modules where bundleSymbolicName = ?.
      Parameters:
      bundleSymbolicName - the bundle symbolic name
      Returns:
      the matching modules
    • findByBundleSymbolicName

      public static List<Module> findByBundleSymbolicName(String bundleSymbolicName, int start, int end)
      Returns a range of all the modules where bundleSymbolicName = ?.

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

      Parameters:
      bundleSymbolicName - the bundle symbolic name
      start - the lower bound of the range of modules
      end - the upper bound of the range of modules (not inclusive)
      Returns:
      the range of matching modules
    • findByBundleSymbolicName

      public static List<Module> findByBundleSymbolicName(String bundleSymbolicName, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
      Returns an ordered range of all the modules where bundleSymbolicName = ?.

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

      Parameters:
      bundleSymbolicName - the bundle symbolic name
      start - the lower bound of the range of modules
      end - the upper bound of the range of modules (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching modules
    • findByBundleSymbolicName

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

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

      Parameters:
      bundleSymbolicName - the bundle symbolic name
      start - the lower bound of the range of modules
      end - the upper bound of the range of modules (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 modules
    • findByBundleSymbolicName_First

      public static Module findByBundleSymbolicName_First(String bundleSymbolicName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) throws NoSuchModuleException
      Returns the first module in the ordered set where bundleSymbolicName = ?.
      Parameters:
      bundleSymbolicName - the bundle symbolic name
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching module
      Throws:
      NoSuchModuleException - if a matching module could not be found
      NoSuchModuleException
    • fetchByBundleSymbolicName_First

      public static Module fetchByBundleSymbolicName_First(String bundleSymbolicName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
      Returns the first module in the ordered set where bundleSymbolicName = ?.
      Parameters:
      bundleSymbolicName - the bundle symbolic name
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching module, or null if a matching module could not be found
    • findByBundleSymbolicName_Last

      public static Module findByBundleSymbolicName_Last(String bundleSymbolicName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) throws NoSuchModuleException
      Returns the last module in the ordered set where bundleSymbolicName = ?.
      Parameters:
      bundleSymbolicName - the bundle symbolic name
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching module
      Throws:
      NoSuchModuleException - if a matching module could not be found
      NoSuchModuleException
    • fetchByBundleSymbolicName_Last

      public static Module fetchByBundleSymbolicName_Last(String bundleSymbolicName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
      Returns the last module in the ordered set where bundleSymbolicName = ?.
      Parameters:
      bundleSymbolicName - the bundle symbolic name
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching module, or null if a matching module could not be found
    • findByBundleSymbolicName_PrevAndNext

      public static Module[] findByBundleSymbolicName_PrevAndNext(long moduleId, String bundleSymbolicName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) throws NoSuchModuleException
      Returns the modules before and after the current module in the ordered set where bundleSymbolicName = ?.
      Parameters:
      moduleId - the primary key of the current module
      bundleSymbolicName - the bundle symbolic name
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next module
      Throws:
      NoSuchModuleException - if a module with the primary key could not be found
      NoSuchModuleException
    • removeByBundleSymbolicName

      public static void removeByBundleSymbolicName(String bundleSymbolicName)
      Removes all the modules where bundleSymbolicName = ? from the database.
      Parameters:
      bundleSymbolicName - the bundle symbolic name
    • countByBundleSymbolicName

      public static int countByBundleSymbolicName(String bundleSymbolicName)
      Returns the number of modules where bundleSymbolicName = ?.
      Parameters:
      bundleSymbolicName - the bundle symbolic name
      Returns:
      the number of matching modules
    • findByContextName

      public static List<Module> findByContextName(String contextName)
      Returns all the modules where contextName = ?.
      Parameters:
      contextName - the context name
      Returns:
      the matching modules
    • findByContextName

      public static List<Module> findByContextName(String contextName, int start, int end)
      Returns a range of all the modules where contextName = ?.

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

      Parameters:
      contextName - the context name
      start - the lower bound of the range of modules
      end - the upper bound of the range of modules (not inclusive)
      Returns:
      the range of matching modules
    • findByContextName

      public static List<Module> findByContextName(String contextName, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
      Returns an ordered range of all the modules where contextName = ?.

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

      Parameters:
      contextName - the context name
      start - the lower bound of the range of modules
      end - the upper bound of the range of modules (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching modules
    • findByContextName

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

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

      Parameters:
      contextName - the context name
      start - the lower bound of the range of modules
      end - the upper bound of the range of modules (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 modules
    • findByContextName_First

      public static Module findByContextName_First(String contextName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) throws NoSuchModuleException
      Returns the first module in the ordered set where contextName = ?.
      Parameters:
      contextName - the context name
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching module
      Throws:
      NoSuchModuleException - if a matching module could not be found
      NoSuchModuleException
    • fetchByContextName_First

      public static Module fetchByContextName_First(String contextName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
      Returns the first module in the ordered set where contextName = ?.
      Parameters:
      contextName - the context name
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching module, or null if a matching module could not be found
    • findByContextName_Last

      public static Module findByContextName_Last(String contextName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) throws NoSuchModuleException
      Returns the last module in the ordered set where contextName = ?.
      Parameters:
      contextName - the context name
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching module
      Throws:
      NoSuchModuleException - if a matching module could not be found
      NoSuchModuleException
    • fetchByContextName_Last

      public static Module fetchByContextName_Last(String contextName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
      Returns the last module in the ordered set where contextName = ?.
      Parameters:
      contextName - the context name
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching module, or null if a matching module could not be found
    • findByContextName_PrevAndNext

      public static Module[] findByContextName_PrevAndNext(long moduleId, String contextName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) throws NoSuchModuleException
      Returns the modules before and after the current module in the ordered set where contextName = ?.
      Parameters:
      moduleId - the primary key of the current module
      contextName - the context name
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next module
      Throws:
      NoSuchModuleException - if a module with the primary key could not be found
      NoSuchModuleException
    • removeByContextName

      public static void removeByContextName(String contextName)
      Removes all the modules where contextName = ? from the database.
      Parameters:
      contextName - the context name
    • countByContextName

      public static int countByContextName(String contextName)
      Returns the number of modules where contextName = ?.
      Parameters:
      contextName - the context name
      Returns:
      the number of matching modules
    • findByA_CN

      public static Module findByA_CN(long appId, String contextName) throws NoSuchModuleException
      Returns the module where appId = ? and contextName = ? or throws a NoSuchModuleException if it could not be found.
      Parameters:
      appId - the app ID
      contextName - the context name
      Returns:
      the matching module
      Throws:
      NoSuchModuleException - if a matching module could not be found
      NoSuchModuleException
    • fetchByA_CN

      public static Module fetchByA_CN(long appId, String contextName)
      Returns the module where appId = ? and contextName = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      appId - the app ID
      contextName - the context name
      Returns:
      the matching module, or null if a matching module could not be found
    • fetchByA_CN

      public static Module fetchByA_CN(long appId, String contextName, boolean useFinderCache)
      Returns the module where appId = ? and contextName = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      appId - the app ID
      contextName - the context name
      useFinderCache - whether to use the finder cache
      Returns:
      the matching module, or null if a matching module could not be found
    • removeByA_CN

      public static Module removeByA_CN(long appId, String contextName) throws NoSuchModuleException
      Removes the module where appId = ? and contextName = ? from the database.
      Parameters:
      appId - the app ID
      contextName - the context name
      Returns:
      the module that was removed
      Throws:
      NoSuchModuleException
    • countByA_CN

      public static int countByA_CN(long appId, String contextName)
      Returns the number of modules where appId = ? and contextName = ?.
      Parameters:
      appId - the app ID
      contextName - the context name
      Returns:
      the number of matching modules
    • findByA_BSN_BV

      public static Module findByA_BSN_BV(long appId, String bundleSymbolicName, String bundleVersion) throws NoSuchModuleException
      Returns the module where appId = ? and bundleSymbolicName = ? and bundleVersion = ? or throws a NoSuchModuleException if it could not be found.
      Parameters:
      appId - the app ID
      bundleSymbolicName - the bundle symbolic name
      bundleVersion - the bundle version
      Returns:
      the matching module
      Throws:
      NoSuchModuleException - if a matching module could not be found
      NoSuchModuleException
    • fetchByA_BSN_BV

      public static Module fetchByA_BSN_BV(long appId, String bundleSymbolicName, String bundleVersion)
      Returns the module where appId = ? and bundleSymbolicName = ? and bundleVersion = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      appId - the app ID
      bundleSymbolicName - the bundle symbolic name
      bundleVersion - the bundle version
      Returns:
      the matching module, or null if a matching module could not be found
    • fetchByA_BSN_BV

      public static Module fetchByA_BSN_BV(long appId, String bundleSymbolicName, String bundleVersion, boolean useFinderCache)
      Returns the module where appId = ? and bundleSymbolicName = ? and bundleVersion = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      appId - the app ID
      bundleSymbolicName - the bundle symbolic name
      bundleVersion - the bundle version
      useFinderCache - whether to use the finder cache
      Returns:
      the matching module, or null if a matching module could not be found
    • removeByA_BSN_BV

      public static Module removeByA_BSN_BV(long appId, String bundleSymbolicName, String bundleVersion) throws NoSuchModuleException
      Removes the module where appId = ? and bundleSymbolicName = ? and bundleVersion = ? from the database.
      Parameters:
      appId - the app ID
      bundleSymbolicName - the bundle symbolic name
      bundleVersion - the bundle version
      Returns:
      the module that was removed
      Throws:
      NoSuchModuleException
    • countByA_BSN_BV

      public static int countByA_BSN_BV(long appId, String bundleSymbolicName, String bundleVersion)
      Returns the number of modules where appId = ? and bundleSymbolicName = ? and bundleVersion = ?.
      Parameters:
      appId - the app ID
      bundleSymbolicName - the bundle symbolic name
      bundleVersion - the bundle version
      Returns:
      the number of matching modules
    • cacheResult

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

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

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

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

      public static Module updateImpl(Module module)
    • findByPrimaryKey

      public static Module findByPrimaryKey(long moduleId) throws NoSuchModuleException
      Returns the module with the primary key or throws a NoSuchModuleException if it could not be found.
      Parameters:
      moduleId - the primary key of the module
      Returns:
      the module
      Throws:
      NoSuchModuleException - if a module with the primary key could not be found
      NoSuchModuleException
    • fetchByPrimaryKey

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

      public static List<Module> findAll()
      Returns all the modules.
      Returns:
      the modules
    • findAll

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

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

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

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

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

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

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

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

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

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

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

      public static ModulePersistence getPersistence()
    • setPersistence

      public static void setPersistence(ModulePersistence persistence)