Class ModuleUtil
com.liferay.marketplace.service.persistence.impl.ModulePersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcacheResult(Module module) Caches the module in the entity cache if it is enabled.static voidcacheResult(List<Module> modules) Caches the modules in the entity cache if it is enabled.static voidstatic voidclearCache(Module module) static intcountAll()Returns the number of modules.static intcountByA_BSN_BV(long appId, String bundleSymbolicName, String bundleVersion) Returns the number of modules where appId = ? and bundleSymbolicName = ? and bundleVersion = ?.static intcountByA_CN(long appId, String contextName) Returns the number of modules where appId = ? and contextName = ?.static intcountByAppId(long appId) Returns the number of modules where appId = ?.static intcountByBundleSymbolicName(String bundleSymbolicName) Returns the number of modules where bundleSymbolicName = ?.static intcountByContextName(String contextName) Returns the number of modules where contextName = ?.static intcountByUuid(String uuid) Returns the number of modules where uuid = ?.static intcountByUuid_C(String uuid, long companyId) Returns the number of modules where uuid = ? and companyId = ?.static longcountWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static Modulecreate(long moduleId) Creates a new module with the primary key.static ModulefetchByA_BSN_BV(long appId, String bundleSymbolicName, String bundleVersion) Returns the module where appId = ? and bundleSymbolicName = ? and bundleVersion = ? or returnsnullif it could not be found.static ModulefetchByA_BSN_BV(long appId, String bundleSymbolicName, String bundleVersion, boolean useFinderCache) Returns the module where appId = ? and bundleSymbolicName = ? and bundleVersion = ? or returnsnullif it could not be found, optionally using the finder cache.static ModulefetchByA_CN(long appId, String contextName) Returns the module where appId = ? and contextName = ? or returnsnullif it could not be found.static ModulefetchByA_CN(long appId, String contextName, boolean useFinderCache) Returns the module where appId = ? and contextName = ? or returnsnullif it could not be found, optionally using the finder cache.static ModulefetchByAppId_First(long appId, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) Returns the first module in the ordered set where appId = ?.static ModulefetchByAppId_Last(long appId, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) Returns the last module in the ordered set where appId = ?.static ModulefetchByBundleSymbolicName_First(String bundleSymbolicName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) Returns the first module in the ordered set where bundleSymbolicName = ?.static ModulefetchByBundleSymbolicName_Last(String bundleSymbolicName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) Returns the last module in the ordered set where bundleSymbolicName = ?.static ModulefetchByContextName_First(String contextName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) Returns the first module in the ordered set where contextName = ?.static ModulefetchByContextName_Last(String contextName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) Returns the last module in the ordered set where contextName = ?.static ModulefetchByPrimaryKey(long moduleId) Returns the module with the primary key or returnsnullif it could not be found.static Map<Serializable, Module> fetchByPrimaryKeys(Set<Serializable> primaryKeys) static ModulefetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) Returns the first module in the ordered set where uuid = ? and companyId = ?.static ModulefetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) Returns the last module in the ordered set where uuid = ? and companyId = ?.static ModulefetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) Returns the first module in the ordered set where uuid = ?.static ModulefetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) Returns the last module in the ordered set where uuid = ?.findAll()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.static ModulefindByA_BSN_BV(long appId, String bundleSymbolicName, String bundleVersion) Returns the module where appId = ? and bundleSymbolicName = ? and bundleVersion = ? or throws aNoSuchModuleExceptionif it could not be found.static ModulefindByA_CN(long appId, String contextName) Returns the module where appId = ? and contextName = ? or throws aNoSuchModuleExceptionif 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 = ?.static ModulefindByAppId_First(long appId, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) Returns the first module in the ordered set where appId = ?.static ModulefindByAppId_Last(long appId, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) Returns the last module in the ordered set where appId = ?.static Module[]findByAppId_PrevAndNext(long moduleId, long appId, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) Returns the modules before and after the current module in the ordered set where appId = ?.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 = ?.static ModulefindByBundleSymbolicName_First(String bundleSymbolicName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) Returns the first module in the ordered set where bundleSymbolicName = ?.static ModulefindByBundleSymbolicName_Last(String bundleSymbolicName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) Returns the last module in the ordered set where bundleSymbolicName = ?.static Module[]findByBundleSymbolicName_PrevAndNext(long moduleId, String bundleSymbolicName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) Returns the modules before and after the current module in the ordered set where bundleSymbolicName = ?.findByContextName(String contextName) 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 = ?.static ModulefindByContextName_First(String contextName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) Returns the first module in the ordered set where contextName = ?.static ModulefindByContextName_Last(String contextName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) Returns the last module in the ordered set where contextName = ?.static Module[]findByContextName_PrevAndNext(long moduleId, String contextName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) Returns the modules before and after the current module in the ordered set where contextName = ?.static ModulefindByPrimaryKey(long moduleId) Returns the module with the primary key or throws aNoSuchModuleExceptionif it could not be found.findByUuid(String uuid) 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 = ?.static ModulefindByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) Returns the first module in the ordered set where uuid = ? and companyId = ?.static ModulefindByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) Returns the last module in the ordered set where uuid = ? and companyId = ?.static Module[]findByUuid_C_PrevAndNext(long moduleId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) Returns the modules before and after the current module in the ordered set where uuid = ? and companyId = ?.static ModulefindByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) Returns the first module in the ordered set where uuid = ?.static ModulefindByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) Returns the last module in the ordered set where uuid = ?.static Module[]findByUuid_PrevAndNext(long moduleId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) Returns the modules before and after the current module in the ordered set where uuid = ?.findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) static ModulePersistencestatic Moduleremove(long moduleId) Removes the module with the primary key from the database.static voidRemoves all the modules from the database.static ModuleremoveByA_BSN_BV(long appId, String bundleSymbolicName, String bundleVersion) Removes the module where appId = ? and bundleSymbolicName = ? and bundleVersion = ? from the database.static ModuleremoveByA_CN(long appId, String contextName) Removes the module where appId = ? and contextName = ? from the database.static voidremoveByAppId(long appId) Removes all the modules where appId = ? from the database.static voidremoveByBundleSymbolicName(String bundleSymbolicName) Removes all the modules where bundleSymbolicName = ? from the database.static voidremoveByContextName(String contextName) Removes all the modules where contextName = ? from the database.static voidremoveByUuid(String uuid) Removes all the modules where uuid = ? from the database.static voidremoveByUuid_C(String uuid, long companyId) Removes all the modules where uuid = ? and companyId = ? from the database.static voidsetPersistence(ModulePersistence persistence) static Modulestatic Modulestatic ModuleupdateImpl(Module module)
-
Constructor Details
-
ModuleUtil
public ModuleUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
clearCache
- See Also:
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
fetchByPrimaryKeys
- See Also:
-
findWithDynamicQuery
public static List<Module> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
findWithDynamicQuery
public static List<Module> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
findWithDynamicQuery
public static List<Module> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) - See Also:
-
update
- See Also:
-
update
public static Module update(Module module, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
findByUuid
Returns all the modules where uuid = ?.- Parameters:
uuid- the uuid- Returns:
- the matching modules
-
findByUuid
Returns a range of all the modules where uuid = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromModuleModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of modulesend- the upper bound of the range of modules (not inclusive)- Returns:
- the range of matching modules
-
findByUuid
public static List<Module> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) Returns an ordered range of all the modules where uuid = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromModuleModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of modulesend- the upper bound of the range of modules (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching modules
-
findByUuid
public static List<Module> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator, boolean useFinderCache) Returns an ordered range of all the modules where uuid = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromModuleModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of modulesend- the upper bound of the range of modules (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching modules
-
findByUuid_First
public static Module findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) throws NoSuchModuleException Returns the first module in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching module
-
fetchByUuid_First
public static Module fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) Returns the first module in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching module, or
nullif a matching module could not be found
-
findByUuid_Last
public static Module findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) throws NoSuchModuleException Returns the last module in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching module
-
fetchByUuid_Last
public static Module fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) Returns the last module in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching module, or
nullif a matching module could not be found
-
findByUuid_PrevAndNext
public static Module[] findByUuid_PrevAndNext(long moduleId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) throws NoSuchModuleException Returns the modules before and after the current module in the ordered set where uuid = ?.- Parameters:
moduleId- the primary key of the current moduleuuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next module
-
removeByUuid
Removes all the modules where uuid = ? from the database.- Parameters:
uuid- the uuid
-
countByUuid
Returns the number of modules where uuid = ?.- Parameters:
uuid- the uuid- Returns:
- the number of matching modules
-
findByUuid_C
Returns all the modules where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the matching modules
-
findByUuid_C
Returns a range of all the modules where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromModuleModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of modulesend- the upper bound of the range of modules (not inclusive)- Returns:
- the range of matching modules
-
findByUuid_C
public static List<Module> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) Returns an ordered range of all the modules where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromModuleModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of modulesend- the upper bound of the range of modules (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching modules
-
findByUuid_C
public static List<Module> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator, boolean useFinderCache) Returns an ordered range of all the modules where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromModuleModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of modulesend- the upper bound of the range of modules (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching modules
-
findByUuid_C_First
public static Module findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) throws NoSuchModuleException Returns the first module in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching module
-
fetchByUuid_C_First
public static Module fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) Returns the first module in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching module, or
nullif a matching module could not be found
-
findByUuid_C_Last
public static Module findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) throws NoSuchModuleException Returns the last module in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching module
-
fetchByUuid_C_Last
public static Module fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) Returns the last module in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching module, or
nullif a matching module could not be found
-
findByUuid_C_PrevAndNext
public static Module[] findByUuid_C_PrevAndNext(long moduleId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) throws NoSuchModuleException Returns the modules before and after the current module in the ordered set where uuid = ? and companyId = ?.- Parameters:
moduleId- the primary key of the current moduleuuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next module
-
removeByUuid_C
Removes all the modules where uuid = ? and companyId = ? from the database.- Parameters:
uuid- the uuidcompanyId- the company ID
-
countByUuid_C
Returns the number of modules where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the number of matching modules
-
findByAppId
Returns all the modules where appId = ?.- Parameters:
appId- the app ID- Returns:
- the matching modules
-
findByAppId
Returns a range of all the modules where appId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromModuleModelImpl.- Parameters:
appId- the app IDstart- the lower bound of the range of modulesend- the upper bound of the range of modules (not inclusive)- Returns:
- the range of matching modules
-
findByAppId
public static List<Module> findByAppId(long appId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) Returns an ordered range of all the modules where appId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromModuleModelImpl.- Parameters:
appId- the app IDstart- the lower bound of the range of modulesend- the upper bound of the range of modules (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching modules
-
findByAppId
public static List<Module> findByAppId(long appId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator, boolean useFinderCache) Returns an ordered range of all the modules where appId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromModuleModelImpl.- Parameters:
appId- the app IDstart- the lower bound of the range of modulesend- the upper bound of the range of modules (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching modules
-
findByAppId_First
public static Module findByAppId_First(long appId, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) throws NoSuchModuleException Returns the first module in the ordered set where appId = ?.- Parameters:
appId- the app IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching module
-
fetchByAppId_First
public static Module fetchByAppId_First(long appId, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) Returns the first module in the ordered set where appId = ?.- Parameters:
appId- the app IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching module, or
nullif a matching module could not be found
-
findByAppId_Last
public static Module findByAppId_Last(long appId, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) throws NoSuchModuleException Returns the last module in the ordered set where appId = ?.- Parameters:
appId- the app IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching module
-
fetchByAppId_Last
public static Module fetchByAppId_Last(long appId, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) Returns the last module in the ordered set where appId = ?.- Parameters:
appId- the app IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching module, or
nullif a matching module could not be found
-
findByAppId_PrevAndNext
public static Module[] findByAppId_PrevAndNext(long moduleId, long appId, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) throws NoSuchModuleException Returns the modules before and after the current module in the ordered set where appId = ?.- Parameters:
moduleId- the primary key of the current moduleappId- the app IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next module
-
removeByAppId
public static void removeByAppId(long appId) Removes all the modules where appId = ? from the database.- Parameters:
appId- the app ID
-
countByAppId
public static int countByAppId(long appId) Returns the number of modules where appId = ?.- Parameters:
appId- the app ID- Returns:
- the number of matching modules
-
findByBundleSymbolicName
Returns all the modules where bundleSymbolicName = ?.- Parameters:
bundleSymbolicName- the bundle symbolic name- Returns:
- the matching modules
-
findByBundleSymbolicName
Returns a range of all the modules where bundleSymbolicName = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromModuleModelImpl.- Parameters:
bundleSymbolicName- the bundle symbolic namestart- the lower bound of the range of modulesend- the upper bound of the range of modules (not inclusive)- Returns:
- the range of matching modules
-
findByBundleSymbolicName
public static List<Module> findByBundleSymbolicName(String bundleSymbolicName, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) Returns an ordered range of all the modules where bundleSymbolicName = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromModuleModelImpl.- Parameters:
bundleSymbolicName- the bundle symbolic namestart- the lower bound of the range of modulesend- the upper bound of the range of modules (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching modules
-
findByBundleSymbolicName
public static List<Module> findByBundleSymbolicName(String bundleSymbolicName, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator, boolean useFinderCache) Returns an ordered range of all the modules where bundleSymbolicName = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromModuleModelImpl.- Parameters:
bundleSymbolicName- the bundle symbolic namestart- the lower bound of the range of modulesend- the upper bound of the range of modules (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching modules
-
findByBundleSymbolicName_First
public static Module findByBundleSymbolicName_First(String bundleSymbolicName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) throws NoSuchModuleException Returns the first module in the ordered set where bundleSymbolicName = ?.- Parameters:
bundleSymbolicName- the bundle symbolic nameorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching module
-
fetchByBundleSymbolicName_First
public static Module fetchByBundleSymbolicName_First(String bundleSymbolicName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) Returns the first module in the ordered set where bundleSymbolicName = ?.- Parameters:
bundleSymbolicName- the bundle symbolic nameorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching module, or
nullif a matching module could not be found
-
findByBundleSymbolicName_Last
public static Module findByBundleSymbolicName_Last(String bundleSymbolicName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) throws NoSuchModuleException Returns the last module in the ordered set where bundleSymbolicName = ?.- Parameters:
bundleSymbolicName- the bundle symbolic nameorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching module
-
fetchByBundleSymbolicName_Last
public static Module fetchByBundleSymbolicName_Last(String bundleSymbolicName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) Returns the last module in the ordered set where bundleSymbolicName = ?.- Parameters:
bundleSymbolicName- the bundle symbolic nameorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching module, or
nullif a matching module could not be found
-
findByBundleSymbolicName_PrevAndNext
public static Module[] findByBundleSymbolicName_PrevAndNext(long moduleId, String bundleSymbolicName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) throws NoSuchModuleException Returns the modules before and after the current module in the ordered set where bundleSymbolicName = ?.- Parameters:
moduleId- the primary key of the current modulebundleSymbolicName- the bundle symbolic nameorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next module
-
removeByBundleSymbolicName
Removes all the modules where bundleSymbolicName = ? from the database.- Parameters:
bundleSymbolicName- the bundle symbolic name
-
countByBundleSymbolicName
Returns the number of modules where bundleSymbolicName = ?.- Parameters:
bundleSymbolicName- the bundle symbolic name- Returns:
- the number of matching modules
-
findByContextName
Returns all the modules where contextName = ?.- Parameters:
contextName- the context name- Returns:
- the matching modules
-
findByContextName
Returns a range of all the modules where contextName = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromModuleModelImpl.- Parameters:
contextName- the context namestart- the lower bound of the range of modulesend- the upper bound of the range of modules (not inclusive)- Returns:
- the range of matching modules
-
findByContextName
public static List<Module> findByContextName(String contextName, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) Returns an ordered range of all the modules where contextName = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromModuleModelImpl.- Parameters:
contextName- the context namestart- the lower bound of the range of modulesend- the upper bound of the range of modules (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching modules
-
findByContextName
public static List<Module> findByContextName(String contextName, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator, boolean useFinderCache) Returns an ordered range of all the modules where contextName = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromModuleModelImpl.- Parameters:
contextName- the context namestart- the lower bound of the range of modulesend- the upper bound of the range of modules (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching modules
-
findByContextName_First
public static Module findByContextName_First(String contextName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) throws NoSuchModuleException Returns the first module in the ordered set where contextName = ?.- Parameters:
contextName- the context nameorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching module
-
fetchByContextName_First
public static Module fetchByContextName_First(String contextName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) Returns the first module in the ordered set where contextName = ?.- Parameters:
contextName- the context nameorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching module, or
nullif a matching module could not be found
-
findByContextName_Last
public static Module findByContextName_Last(String contextName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) throws NoSuchModuleException Returns the last module in the ordered set where contextName = ?.- Parameters:
contextName- the context nameorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching module
-
fetchByContextName_Last
public static Module fetchByContextName_Last(String contextName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) Returns the last module in the ordered set where contextName = ?.- Parameters:
contextName- the context nameorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching module, or
nullif a matching module could not be found
-
findByContextName_PrevAndNext
public static Module[] findByContextName_PrevAndNext(long moduleId, String contextName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) throws NoSuchModuleException Returns the modules before and after the current module in the ordered set where contextName = ?.- Parameters:
moduleId- the primary key of the current modulecontextName- the context nameorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next module
-
removeByContextName
Removes all the modules where contextName = ? from the database.- Parameters:
contextName- the context name
-
countByContextName
Returns the number of modules where contextName = ?.- Parameters:
contextName- the context name- Returns:
- the number of matching modules
-
findByA_CN
Returns the module where appId = ? and contextName = ? or throws aNoSuchModuleExceptionif it could not be found.- Parameters:
appId- the app IDcontextName- the context name- Returns:
- the matching module
-
fetchByA_CN
Returns the module where appId = ? and contextName = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
appId- the app IDcontextName- the context name- Returns:
- the matching module, or
nullif a matching module could not be found
-
fetchByA_CN
Returns the module where appId = ? and contextName = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
appId- the app IDcontextName- the context nameuseFinderCache- whether to use the finder cache- Returns:
- the matching module, or
nullif a matching module could not be found
-
removeByA_CN
Removes the module where appId = ? and contextName = ? from the database.- Parameters:
appId- the app IDcontextName- the context name- Returns:
- the module that was removed
- Throws:
NoSuchModuleException
-
countByA_CN
Returns the number of modules where appId = ? and contextName = ?.- Parameters:
appId- the app IDcontextName- the context name- Returns:
- the number of matching modules
-
findByA_BSN_BV
public static Module findByA_BSN_BV(long appId, String bundleSymbolicName, String bundleVersion) throws NoSuchModuleException Returns the module where appId = ? and bundleSymbolicName = ? and bundleVersion = ? or throws aNoSuchModuleExceptionif it could not be found.- Parameters:
appId- the app IDbundleSymbolicName- the bundle symbolic namebundleVersion- the bundle version- Returns:
- the matching module
-
fetchByA_BSN_BV
Returns the module where appId = ? and bundleSymbolicName = ? and bundleVersion = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
appId- the app IDbundleSymbolicName- the bundle symbolic namebundleVersion- the bundle version- Returns:
- the matching module, or
nullif a matching module could not be found
-
fetchByA_BSN_BV
public static Module fetchByA_BSN_BV(long appId, String bundleSymbolicName, String bundleVersion, boolean useFinderCache) Returns the module where appId = ? and bundleSymbolicName = ? and bundleVersion = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
appId- the app IDbundleSymbolicName- the bundle symbolic namebundleVersion- the bundle versionuseFinderCache- whether to use the finder cache- Returns:
- the matching module, or
nullif a matching module could not be found
-
removeByA_BSN_BV
public static Module removeByA_BSN_BV(long appId, String bundleSymbolicName, String bundleVersion) throws NoSuchModuleException Removes the module where appId = ? and bundleSymbolicName = ? and bundleVersion = ? from the database.- Parameters:
appId- the app IDbundleSymbolicName- the bundle symbolic namebundleVersion- the bundle version- Returns:
- the module that was removed
- Throws:
NoSuchModuleException
-
countByA_BSN_BV
Returns the number of modules where appId = ? and bundleSymbolicName = ? and bundleVersion = ?.- Parameters:
appId- the app IDbundleSymbolicName- the bundle symbolic namebundleVersion- the bundle version- Returns:
- the number of matching modules
-
cacheResult
Caches the module in the entity cache if it is enabled.- Parameters:
module- the module
-
cacheResult
Caches the modules in the entity cache if it is enabled.- Parameters:
modules- the modules
-
create
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
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
-
updateImpl
-
findByPrimaryKey
Returns the module with the primary key or throws aNoSuchModuleExceptionif it could not be found.- Parameters:
moduleId- the primary key of the module- Returns:
- the module
-
fetchByPrimaryKey
Returns the module with the primary key or returnsnullif it could not be found.- Parameters:
moduleId- the primary key of the module- Returns:
- the module, or
nullif a module with the primary key could not be found
-
findAll
Returns all the modules.- Returns:
- the modules
-
findAll
Returns a range of all the modules.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromModuleModelImpl.- Parameters:
start- the lower bound of the range of modulesend- the upper bound of the range of modules (not inclusive)- Returns:
- the range of modules
-
findAll
public static List<Module> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) Returns an ordered range of all the modules.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromModuleModelImpl.- Parameters:
start- the lower bound of the range of modulesend- the upper bound of the range of modules (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of modules
-
findAll
public static List<Module> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator, boolean useFinderCache) Returns an ordered range of all the modules.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromModuleModelImpl.- Parameters:
start- the lower bound of the range of modulesend- the upper bound of the range of modules (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of modules
-
removeAll
public static void removeAll()Removes all the modules from the database. -
countAll
public static int countAll()Returns the number of modules.- Returns:
- the number of modules
-
getPersistence
-
setPersistence
-