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 void
cacheResult
(Module module) Caches the module in the entity cache if it is enabled.static void
cacheResult
(List<Module> modules) Caches the modules in the entity cache if it is enabled.static void
static void
clearCache
(Module module) static int
countAll()
Returns the number of modules.static int
countByA_BSN_BV
(long appId, String bundleSymbolicName, String bundleVersion) Returns the number of modules where appId = ? and bundleSymbolicName = ? and bundleVersion = ?.static int
countByA_CN
(long appId, String contextName) Returns the number of modules where appId = ? and contextName = ?.static int
countByAppId
(long appId) Returns the number of modules where appId = ?.static int
countByBundleSymbolicName
(String bundleSymbolicName) Returns the number of modules where bundleSymbolicName = ?.static int
countByContextName
(String contextName) Returns the number of modules where contextName = ?.static int
countByUuid
(String uuid) Returns the number of modules where uuid = ?.static int
countByUuid_C
(String uuid, long companyId) Returns the number of modules where uuid = ? and companyId = ?.static long
countWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static Module
create
(long moduleId) Creates a new module with the primary key.static Module
fetchByA_BSN_BV
(long appId, String bundleSymbolicName, String bundleVersion) Returns the module where appId = ? and bundleSymbolicName = ? and bundleVersion = ? or returnsnull
if it could not be found.static Module
fetchByA_BSN_BV
(long appId, String bundleSymbolicName, String bundleVersion, boolean useFinderCache) Returns the module where appId = ? and bundleSymbolicName = ? and bundleVersion = ? or returnsnull
if it could not be found, optionally using the finder cache.static Module
fetchByA_CN
(long appId, String contextName) Returns the module where appId = ? and contextName = ? or returnsnull
if it could not be found.static Module
fetchByA_CN
(long appId, String contextName, boolean useFinderCache) Returns the module where appId = ? and contextName = ? or returnsnull
if it could not be found, optionally using the finder cache.static Module
fetchByAppId_First
(long appId, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) Returns the first module in the ordered set where appId = ?.static Module
fetchByAppId_Last
(long appId, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) Returns the last module in the ordered set where appId = ?.static Module
fetchByBundleSymbolicName_First
(String bundleSymbolicName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) Returns the first module in the ordered set where bundleSymbolicName = ?.static Module
fetchByBundleSymbolicName_Last
(String bundleSymbolicName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) Returns the last module in the ordered set where bundleSymbolicName = ?.static Module
fetchByContextName_First
(String contextName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) Returns the first module in the ordered set where contextName = ?.static Module
fetchByContextName_Last
(String contextName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) Returns the last module in the ordered set where contextName = ?.static Module
fetchByPrimaryKey
(long moduleId) Returns the module with the primary key or returnsnull
if it could not be found.static Map<Serializable,
Module> fetchByPrimaryKeys
(Set<Serializable> primaryKeys) static Module
fetchByUuid_C_First
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) Returns the first module in the ordered set where uuid = ? and companyId = ?.static Module
fetchByUuid_C_Last
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) Returns the last module in the ordered set where uuid = ? and companyId = ?.static Module
fetchByUuid_First
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) Returns the first module in the ordered set where uuid = ?.static Module
fetchByUuid_Last
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) Returns the last module in the ordered set where uuid = ?.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 Module
findByA_BSN_BV
(long appId, String bundleSymbolicName, String bundleVersion) Returns the module where appId = ? and bundleSymbolicName = ? and bundleVersion = ? or throws aNoSuchModuleException
if it could not be found.static Module
findByA_CN
(long appId, String contextName) Returns the module where appId = ? and contextName = ? or throws aNoSuchModuleException
if it could not be found.findByAppId
(long appId) Returns all the modules where appId = ?.findByAppId
(long appId, int start, int end) Returns a range of all the modules where appId = ?.findByAppId
(long appId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) Returns an ordered range of all the modules where appId = ?.findByAppId
(long appId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator, boolean useFinderCache) Returns an ordered range of all the modules where appId = ?.static Module
findByAppId_First
(long appId, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) Returns the first module in the ordered set where appId = ?.static Module
findByAppId_Last
(long appId, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) Returns the last module in the ordered set where appId = ?.static Module[]
findByAppId_PrevAndNext
(long moduleId, long appId, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) Returns the modules before and after the current module in the ordered set where appId = ?.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 Module
findByBundleSymbolicName_First
(String bundleSymbolicName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) Returns the first module in the ordered set where bundleSymbolicName = ?.static Module
findByBundleSymbolicName_Last
(String bundleSymbolicName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) Returns the last module in the ordered set where bundleSymbolicName = ?.static Module[]
findByBundleSymbolicName_PrevAndNext
(long moduleId, String bundleSymbolicName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) Returns the modules before and after the current module in the ordered set where bundleSymbolicName = ?.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 Module
findByContextName_First
(String contextName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) Returns the first module in the ordered set where contextName = ?.static Module
findByContextName_Last
(String contextName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) Returns the last module in the ordered set where contextName = ?.static Module[]
findByContextName_PrevAndNext
(long moduleId, String contextName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) Returns the modules before and after the current module in the ordered set where contextName = ?.static Module
findByPrimaryKey
(long moduleId) Returns the module with the primary key or throws aNoSuchModuleException
if 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 Module
findByUuid_C_First
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) Returns the first module in the ordered set where uuid = ? and companyId = ?.static Module
findByUuid_C_Last
(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) Returns the last module in the ordered set where uuid = ? and companyId = ?.static Module[]
findByUuid_C_PrevAndNext
(long moduleId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) Returns the modules before and after the current module in the ordered set where uuid = ? and companyId = ?.static Module
findByUuid_First
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) Returns the first module in the ordered set where uuid = ?.static Module
findByUuid_Last
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) Returns the last module in the ordered set where uuid = ?.static Module[]
findByUuid_PrevAndNext
(long moduleId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) Returns the modules before and after the current module in the ordered set where uuid = ?.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 ModulePersistence
static Module
remove
(long moduleId) Removes the module with the primary key from the database.static void
Removes all the modules from the database.static Module
removeByA_BSN_BV
(long appId, String bundleSymbolicName, String bundleVersion) Removes the module where appId = ? and bundleSymbolicName = ? and bundleVersion = ? from the database.static Module
removeByA_CN
(long appId, String contextName) Removes the module where appId = ? and contextName = ? from the database.static void
removeByAppId
(long appId) Removes all the modules where appId = ? from the database.static void
removeByBundleSymbolicName
(String bundleSymbolicName) Removes all the modules where bundleSymbolicName = ? from the database.static void
removeByContextName
(String contextName) Removes all the modules where contextName = ? from the database.static void
removeByUuid
(String uuid) Removes all the modules where uuid = ? from the database.static void
removeByUuid_C
(String uuid, long companyId) Removes all the modules where uuid = ? and companyId = ? from the database.static void
setPersistence
(ModulePersistence persistence) static Module
static Module
static Module
updateImpl
(Module module)
-
Constructor Details
-
ModuleUtil
public ModuleUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
BasePersistence.clearCache()
-
clearCache
- See Also:
-
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.countWithDynamicQuery(DynamicQuery)
-
fetchByPrimaryKeys
- See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<Module> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<Module> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<Module> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
- See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static Module update(Module module, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
findByUuid
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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
- Throws:
NoSuchModuleException
- if a matching module could not be foundNoSuchModuleException
-
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
null
if a matching module could not be found
-
findByUuid_Last
public static Module findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) throws NoSuchModuleException Returns the last module in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching module
- Throws:
NoSuchModuleException
- if a matching module could not be foundNoSuchModuleException
-
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
null
if a matching module could not be found
-
findByUuid_PrevAndNext
public static Module[] findByUuid_PrevAndNext(long moduleId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) throws NoSuchModuleException Returns the modules before and after the current module in the ordered set where uuid = ?.- Parameters:
moduleId
- the primary key of the current moduleuuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next module
- Throws:
NoSuchModuleException
- if a module with the primary key could not be foundNoSuchModuleException
-
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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
- Throws:
NoSuchModuleException
- if a matching module could not be foundNoSuchModuleException
-
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
null
if a matching module could not be found
-
findByUuid_C_Last
public static Module findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) throws NoSuchModuleException Returns the last module in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching module
- Throws:
NoSuchModuleException
- if a matching module could not be foundNoSuchModuleException
-
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
null
if a matching module could not be found
-
findByUuid_C_PrevAndNext
public static Module[] findByUuid_C_PrevAndNext(long moduleId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) throws NoSuchModuleException Returns the modules before and after the current module in the ordered set where uuid = ? and companyId = ?.- Parameters:
moduleId
- the primary key of the current moduleuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next module
- Throws:
NoSuchModuleException
- if a module with the primary key could not be foundNoSuchModuleException
-
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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
- Throws:
NoSuchModuleException
- if a matching module could not be foundNoSuchModuleException
-
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
null
if a matching module could not be found
-
findByAppId_Last
public static Module findByAppId_Last(long appId, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) throws NoSuchModuleException Returns the last module in the ordered set where appId = ?.- Parameters:
appId
- the app IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching module
- Throws:
NoSuchModuleException
- if a matching module could not be foundNoSuchModuleException
-
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
null
if a matching module could not be found
-
findByAppId_PrevAndNext
public static Module[] findByAppId_PrevAndNext(long moduleId, long appId, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) throws NoSuchModuleException Returns the modules before and after the current module in the ordered set where appId = ?.- Parameters:
moduleId
- the primary key of the current moduleappId
- the app IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next module
- Throws:
NoSuchModuleException
- if a module with the primary key could not be foundNoSuchModuleException
-
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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
- Throws:
NoSuchModuleException
- if a matching module could not be foundNoSuchModuleException
-
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
null
if a matching module could not be found
-
findByBundleSymbolicName_Last
public static Module findByBundleSymbolicName_Last(String bundleSymbolicName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) throws NoSuchModuleException Returns the last module in the ordered set where bundleSymbolicName = ?.- Parameters:
bundleSymbolicName
- the bundle symbolic nameorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching module
- Throws:
NoSuchModuleException
- if a matching module could not be foundNoSuchModuleException
-
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
null
if a matching module could not be found
-
findByBundleSymbolicName_PrevAndNext
public static Module[] findByBundleSymbolicName_PrevAndNext(long moduleId, String bundleSymbolicName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) throws NoSuchModuleException Returns the modules before and after the current module in the ordered set where bundleSymbolicName = ?.- Parameters:
moduleId
- the primary key of the current modulebundleSymbolicName
- the bundle symbolic nameorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next module
- Throws:
NoSuchModuleException
- if a module with the primary key could not be foundNoSuchModuleException
-
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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
- Throws:
NoSuchModuleException
- if a matching module could not be foundNoSuchModuleException
-
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
null
if a matching module could not be found
-
findByContextName_Last
public static Module findByContextName_Last(String contextName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) throws NoSuchModuleException Returns the last module in the ordered set where contextName = ?.- Parameters:
contextName
- the context nameorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching module
- Throws:
NoSuchModuleException
- if a matching module could not be foundNoSuchModuleException
-
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
null
if a matching module could not be found
-
findByContextName_PrevAndNext
public static Module[] findByContextName_PrevAndNext(long moduleId, String contextName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) throws NoSuchModuleException Returns the modules before and after the current module in the ordered set where contextName = ?.- Parameters:
moduleId
- the primary key of the current modulecontextName
- the context nameorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next module
- Throws:
NoSuchModuleException
- if a module with the primary key could not be foundNoSuchModuleException
-
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 aNoSuchModuleException
if it could not be found.- Parameters:
appId
- the app IDcontextName
- the context name- Returns:
- the matching module
- Throws:
NoSuchModuleException
- if a matching module could not be foundNoSuchModuleException
-
fetchByA_CN
Returns the module where appId = ? and contextName = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
appId
- the app IDcontextName
- the context name- Returns:
- the matching module, or
null
if a matching module could not be found
-
fetchByA_CN
Returns the module where appId = ? and contextName = ? or returnsnull
if 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
null
if 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 aNoSuchModuleException
if it could not be found.- Parameters:
appId
- the app IDbundleSymbolicName
- the bundle symbolic namebundleVersion
- the bundle version- Returns:
- the matching module
- Throws:
NoSuchModuleException
- if a matching module could not be foundNoSuchModuleException
-
fetchByA_BSN_BV
Returns the module where appId = ? and bundleSymbolicName = ? and bundleVersion = ? or returnsnull
if 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
null
if a matching module could not be found
-
fetchByA_BSN_BV
public static Module fetchByA_BSN_BV(long appId, String bundleSymbolicName, String bundleVersion, boolean useFinderCache) Returns the module where appId = ? and bundleSymbolicName = ? and bundleVersion = ? or returnsnull
if 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
null
if a matching module could not be found
-
removeByA_BSN_BV
public static Module removeByA_BSN_BV(long appId, String bundleSymbolicName, String bundleVersion) throws NoSuchModuleException Removes the module where appId = ? and bundleSymbolicName = ? and bundleVersion = ? from the database.- Parameters:
appId
- the app 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
- Throws:
NoSuchModuleException
- if a module with the primary key could not be foundNoSuchModuleException
-
updateImpl
-
findByPrimaryKey
Returns the module with the primary key or throws aNoSuchModuleException
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 foundNoSuchModuleException
-
fetchByPrimaryKey
Returns the module with the primary key or returnsnull
if it could not be found.- Parameters:
moduleId
- the primary key of the module- Returns:
- the module, or
null
if a module with the primary key could not be found
-
findAll
Returns all the modules.- Returns:
- the modules
-
findAll
Returns a range of all the modules.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
-