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
    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.
    default 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.
    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_First(long appId, String contextName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
    Returns the first module in the ordered set where appId = ? and contextName = ?.
    fetchByAppId_First(long appId, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
    Returns the first 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 = ?.
    fetchByContextName_First(String contextName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
    Returns the first 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_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
    Returns the first module in the ordered set where uuid = ?.
    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.
    default List<Module>
    findByA_CN(long appId, String contextName)
    Returns all the modules where appId = ? and contextName = ?.
    default List<Module>
    findByA_CN(long appId, String contextName, int start, int end)
    Returns a range of all the modules where appId = ? and contextName = ?.
    default List<Module>
    findByA_CN(long appId, String contextName, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
    Returns an ordered range of all the modules where appId = ? and contextName = ?.
    findByA_CN(long appId, 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 appId = ? and contextName = ?.
    findByA_CN_First(long appId, String contextName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
    Returns the first module in the ordered set where appId = ? and contextName = ?.
    default List<Module>
    findByAppId(long appId)
    Returns all the modules where appId = ?.
    default List<Module>
    findByAppId(long appId, int start, int end)
    Returns a range of all the modules where appId = ?.
    default 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 = ?.
    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 = ?.
    default List<Module>
    findByBundleSymbolicName(String bundleSymbolicName)
    Returns all the modules where bundleSymbolicName = ?.
    default List<Module>
    findByBundleSymbolicName(String bundleSymbolicName, int start, int end)
    Returns a range of all the modules where bundleSymbolicName = ?.
    default 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 = ?.
    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 = ?.
    default List<Module>
    Returns all the modules where contextName = ?.
    default List<Module>
    findByContextName(String contextName, int start, int end)
    Returns a range of all the modules where contextName = ?.
    default 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 = ?.
    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 = ?.
    findByPrimaryKey(long moduleId)
    Returns the module with the primary key or throws a NoSuchModuleException if it could not be found.
    default List<Module>
    Returns all the modules where uuid = ?.
    default List<Module>
    findByUuid(String uuid, int start, int end)
    Returns a range of all the modules where uuid = ?.
    default 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 = ?.
    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 = ?.
    default List<Module>
    findByUuid_C(String uuid, long companyId)
    Returns all the modules where uuid = ? and companyId = ?.
    default List<Module>
    findByUuid_C(String uuid, long companyId, int start, int end)
    Returns a range of all the modules where uuid = ? and companyId = ?.
    default 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 = ?.
    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_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
    Returns the first module in the ordered set where uuid = ?.
    remove(long moduleId)
    Removes the module with the primary key from the database.
    removeByA_BSN_BV(long appId, String bundleSymbolicName, String bundleVersion)
    Removes the module where appId = ? and bundleSymbolicName = ? and bundleVersion = ? from the database.
    void
    removeByA_CN(long appId, String contextName)
    Removes all the modules 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

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

    • 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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.marketplace.model.impl.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
    • 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, 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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.marketplace.model.impl.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
    • 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, 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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.marketplace.model.impl.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
    • 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, 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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.marketplace.model.impl.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
    • 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, 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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.marketplace.model.impl.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
    • 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

      List<Module> findByA_CN(long appId, 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 appId = ? and 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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.marketplace.model.impl.ModuleModelImpl.

      Parameters:
      appId - the app ID
      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
    • findByA_CN_First

      Module findByA_CN_First(long appId, String contextName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) throws NoSuchModuleException
      Returns the first module in the ordered set where appId = ? and contextName = ?.
      Parameters:
      appId - the app ID
      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
    • fetchByA_CN_First

      Module fetchByA_CN_First(long appId, String contextName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
      Returns the first module in the ordered set where appId = ? and contextName = ?.
      Parameters:
      appId - the app ID
      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
    • removeByA_CN

      void removeByA_CN(long appId, String contextName)
      Removes all the modules where appId = ? and contextName = ? from the database.
      Parameters:
      appId - the app ID
      contextName - the context name
    • 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, 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
    • 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
    • fetchByA_BSN_BV

      default 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
    • findByUuid

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

      default 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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.marketplace.model.impl.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

      default 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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.marketplace.model.impl.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_C

      default 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

      default 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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.marketplace.model.impl.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

      default 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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.marketplace.model.impl.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
    • findByAppId

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

      default 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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.marketplace.model.impl.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

      default 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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.marketplace.model.impl.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
    • findByBundleSymbolicName

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

      default 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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.marketplace.model.impl.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

      default 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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.marketplace.model.impl.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
    • findByContextName

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

      default 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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.marketplace.model.impl.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

      default 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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.marketplace.model.impl.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
    • findByA_CN

      default List<Module> findByA_CN(long appId, String contextName)
      Returns all the modules where appId = ? and contextName = ?.
      Parameters:
      appId - the app ID
      contextName - the context name
      Returns:
      the matching modules
    • findByA_CN

      default List<Module> findByA_CN(long appId, String contextName, int start, int end)
      Returns a range of all the modules where appId = ? and 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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.marketplace.model.impl.ModuleModelImpl.

      Parameters:
      appId - the app ID
      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
    • findByA_CN

      default List<Module> findByA_CN(long appId, String contextName, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
      Returns an ordered range of all the modules where appId = ? and 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 com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.marketplace.model.impl.ModuleModelImpl.

      Parameters:
      appId - the app ID
      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