Interface ModulePersistence

All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<Module>

@ProviderType public interface ModulePersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<Module>
The persistence interface for the module service.

Caching information and settings can be found in portal.properties

See Also:
Generated:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Caches the module in the entity cache if it is enabled.
    void
    Caches the modules in the entity cache if it is enabled.
    int
    Returns the number of modules.
    int
    countByA_BSN_BV(long appId, String bundleSymbolicName, String bundleVersion)
    Returns the number of modules where appId = ? and bundleSymbolicName = ? and bundleVersion = ?.
    int
    countByA_CN(long appId, String contextName)
    Returns the number of modules where appId = ? and contextName = ?.
    int
    countByAppId(long appId)
    Returns the number of modules where appId = ?.
    int
    countByBundleSymbolicName(String bundleSymbolicName)
    Returns the number of modules where bundleSymbolicName = ?.
    int
    Returns the number of modules where contextName = ?.
    int
    Returns the number of modules where uuid = ?.
    int
    countByUuid_C(String uuid, long companyId)
    Returns the number of modules where uuid = ? and companyId = ?.
    create(long moduleId)
    Creates a new module with the primary key.
    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.
    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.
    fetchByA_CN(long appId, String contextName)
    Returns the module where appId = ? and contextName = ? or returns null if it could not be found.
    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.
    fetchByAppId_First(long appId, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
    Returns the first module in the ordered set where appId = ?.
    fetchByAppId_Last(long appId, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
    Returns the last module in the ordered set where appId = ?.
    fetchByBundleSymbolicName_First(String bundleSymbolicName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
    Returns the first module in the ordered set where bundleSymbolicName = ?.
    fetchByBundleSymbolicName_Last(String bundleSymbolicName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
    Returns the last module in the ordered set where bundleSymbolicName = ?.
    fetchByContextName_First(String contextName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
    Returns the first module in the ordered set where contextName = ?.
    fetchByContextName_Last(String contextName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
    Returns the last module in the ordered set where contextName = ?.
    fetchByPrimaryKey(long moduleId)
    Returns the module with the primary key or returns null if it could not be found.
    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 = ?.
    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 = ?.
    fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
    Returns the first module in the ordered set where uuid = ?.
    fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
    Returns the last module in the ordered set where uuid = ?.
    Returns all the modules.
    findAll(int start, int end)
    Returns a range of all the modules.
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
    Returns an ordered range of all the modules.
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the modules.
    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.
    findByA_CN(long appId, String contextName)
    Returns the module where appId = ? and contextName = ? or throws a NoSuchModuleException if it could not be found.
    findByAppId(long appId)
    Returns all the modules where appId = ?.
    findByAppId(long appId, int start, int end)
    Returns a range of all the modules where appId = ?.
    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 = ?.
    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 = ?.
    findByAppId_First(long appId, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
    Returns the first module in the ordered set where appId = ?.
    findByAppId_Last(long appId, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
    Returns the last module in the ordered set where appId = ?.
    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 = ?.
    findByBundleSymbolicName(String bundleSymbolicName)
    Returns all the modules where bundleSymbolicName = ?.
    findByBundleSymbolicName(String bundleSymbolicName, int start, int end)
    Returns a range of all the modules where bundleSymbolicName = ?.
    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 = ?.
    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 = ?.
    findByBundleSymbolicName_First(String bundleSymbolicName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
    Returns the first module in the ordered set where bundleSymbolicName = ?.
    findByBundleSymbolicName_Last(String bundleSymbolicName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
    Returns the last module in the ordered set where bundleSymbolicName = ?.
    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 = ?.
    Returns all the modules where contextName = ?.
    findByContextName(String contextName, int start, int end)
    Returns a range of all the modules where contextName = ?.
    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 = ?.
    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 = ?.
    findByContextName_First(String contextName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
    Returns the first module in the ordered set where contextName = ?.
    findByContextName_Last(String contextName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
    Returns the last module in the ordered set where contextName = ?.
    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 = ?.
    findByPrimaryKey(long moduleId)
    Returns the module with the primary key or throws a NoSuchModuleException if it could not be found.
    Returns all the modules where uuid = ?.
    findByUuid(String uuid, int start, int end)
    Returns a range of all the modules where uuid = ?.
    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 = ?.
    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 = ?.
    findByUuid_C(String uuid, long companyId)
    Returns all the modules where uuid = ? and companyId = ?.
    findByUuid_C(String uuid, long companyId, int start, int end)
    Returns a range of all the modules where uuid = ? and companyId = ?.
    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 = ?.
    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 = ?.
    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 = ?.
    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 = ?.
    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 = ?.
    findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
    Returns the first module in the ordered set where uuid = ?.
    findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
    Returns the last module in the ordered set where uuid = ?.
    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 = ?.
    remove(long moduleId)
    Removes the module with the primary key from the database.
    void
    Removes all the modules from the database.
    removeByA_BSN_BV(long appId, String bundleSymbolicName, String bundleVersion)
    Removes the module where appId = ? and bundleSymbolicName = ? and bundleVersion = ? from the database.
    removeByA_CN(long appId, String contextName)
    Removes the module where appId = ? and contextName = ? from the database.
    void
    removeByAppId(long appId)
    Removes all the modules where appId = ? from the database.
    void
    removeByBundleSymbolicName(String bundleSymbolicName)
    Removes all the modules where bundleSymbolicName = ? from the database.
    void
    Removes all the modules where contextName = ? from the database.
    void
    Removes all the modules where uuid = ? from the database.
    void
    removeByUuid_C(String uuid, long companyId)
    Removes all the modules where uuid = ? and companyId = ? from the database.
     

    Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence

    clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, removeByFunction, setDataSource, unregisterListener, update, update
  • Method Details

    • findByUuid

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

      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

      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

      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

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

      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

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

      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

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

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

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

      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

      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

      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

      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

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

      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

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

      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

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

      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

      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

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

      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

      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

      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

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

      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

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

      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

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

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

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

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

      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

      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

      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

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

      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

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

      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

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

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

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

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

      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

      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

      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

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

      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

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

      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

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

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

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

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

      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

      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

      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

      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

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

      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

      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

      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

      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

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

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

      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

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

      Module updateImpl(Module module)
    • findByPrimaryKey

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

      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

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

      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

      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

      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

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

      int countAll()
      Returns the number of modules.
      Returns:
      the number of modules