public class ModuleUtil
extends java.lang.Object
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
ModulePersistence
Constructor and Description |
---|
ModuleUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(java.util.List<Module> modules)
Caches the modules in the entity cache if it is enabled.
|
static void |
cacheResult(Module module)
Caches the module in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(Module module) |
static int |
countAll()
Returns the number of modules.
|
static int |
countByA_BSN_BV(long appId,
java.lang.String bundleSymbolicName,
java.lang.String bundleVersion)
Returns the number of modules where appId = ? and bundleSymbolicName = ? and bundleVersion = ?.
|
static int |
countByA_CN(long appId,
java.lang.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(java.lang.String bundleSymbolicName)
Returns the number of modules where bundleSymbolicName = ?.
|
static int |
countByContextName(java.lang.String contextName)
Returns the number of modules where contextName = ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of modules where uuid = ? and companyId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of modules where uuid = ?.
|
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,
java.lang.String bundleSymbolicName,
java.lang.String bundleVersion)
Returns the module where appId = ? and bundleSymbolicName = ? and bundleVersion = ? or returns
null if it could not be found. |
static Module |
fetchByA_BSN_BV(long appId,
java.lang.String bundleSymbolicName,
java.lang.String bundleVersion,
boolean useFinderCache)
Returns the module where appId = ? and bundleSymbolicName = ? and bundleVersion = ? or returns
null if it could not be found, optionally using the finder cache. |
static Module |
fetchByA_CN(long appId,
java.lang.String contextName)
Returns the module where appId = ? and contextName = ? or returns
null if it could not be found. |
static Module |
fetchByA_CN(long appId,
java.lang.String contextName,
boolean useFinderCache)
Returns the module where appId = ? and contextName = ? or returns
null if it could not be found, optionally using the finder cache. |
static Module |
fetchByAppId_First(long appId,
com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
Returns the first module in the ordered set where appId = ?.
|
static Module |
fetchByAppId_Last(long appId,
com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
Returns the last module in the ordered set where appId = ?.
|
static Module |
fetchByBundleSymbolicName_First(java.lang.String bundleSymbolicName,
com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
Returns the first module in the ordered set where bundleSymbolicName = ?.
|
static Module |
fetchByBundleSymbolicName_Last(java.lang.String bundleSymbolicName,
com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
Returns the last module in the ordered set where bundleSymbolicName = ?.
|
static Module |
fetchByContextName_First(java.lang.String contextName,
com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
Returns the first module in the ordered set where contextName = ?.
|
static Module |
fetchByContextName_Last(java.lang.String contextName,
com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
Returns the last module in the ordered set where contextName = ?.
|
static Module |
fetchByPrimaryKey(long moduleId)
Returns the module with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,Module> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static Module |
fetchByUuid_C_First(java.lang.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(java.lang.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(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
Returns the first module in the ordered set where uuid = ?.
|
static Module |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
Returns the last module in the ordered set where uuid = ?.
|
static java.util.List<Module> |
findAll()
Returns all the modules.
|
static java.util.List<Module> |
findAll(int start,
int end)
Returns a range of all the modules.
|
static java.util.List<Module> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
Returns an ordered range of all the modules.
|
static java.util.List<Module> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the modules.
|
static Module |
findByA_BSN_BV(long appId,
java.lang.String bundleSymbolicName,
java.lang.String bundleVersion)
Returns the module where appId = ? and bundleSymbolicName = ? and bundleVersion = ? or throws a
NoSuchModuleException if it could not be found. |
static Module |
findByA_CN(long appId,
java.lang.String contextName)
Returns the module where appId = ? and contextName = ? or throws a
NoSuchModuleException if it could not be found. |
static Module |
findByAppId_First(long appId,
com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
Returns the first module in the ordered set where appId = ?.
|
static Module |
findByAppId_Last(long appId,
com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
Returns the last module in the ordered set where appId = ?.
|
static Module[] |
findByAppId_PrevAndNext(long moduleId,
long appId,
com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
Returns the modules before and after the current module in the ordered set where appId = ?.
|
static java.util.List<Module> |
findByAppId(long appId)
Returns all the modules where appId = ?.
|
static java.util.List<Module> |
findByAppId(long appId,
int start,
int end)
Returns a range of all the modules where appId = ?.
|
static java.util.List<Module> |
findByAppId(long appId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
Returns an ordered range of all the modules where appId = ?.
|
static java.util.List<Module> |
findByAppId(long appId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the modules where appId = ?.
|
static Module |
findByBundleSymbolicName_First(java.lang.String bundleSymbolicName,
com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
Returns the first module in the ordered set where bundleSymbolicName = ?.
|
static Module |
findByBundleSymbolicName_Last(java.lang.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,
java.lang.String bundleSymbolicName,
com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
Returns the modules before and after the current module in the ordered set where bundleSymbolicName = ?.
|
static java.util.List<Module> |
findByBundleSymbolicName(java.lang.String bundleSymbolicName)
Returns all the modules where bundleSymbolicName = ?.
|
static java.util.List<Module> |
findByBundleSymbolicName(java.lang.String bundleSymbolicName,
int start,
int end)
Returns a range of all the modules where bundleSymbolicName = ?.
|
static java.util.List<Module> |
findByBundleSymbolicName(java.lang.String bundleSymbolicName,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
Returns an ordered range of all the modules where bundleSymbolicName = ?.
|
static java.util.List<Module> |
findByBundleSymbolicName(java.lang.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 |
findByContextName_First(java.lang.String contextName,
com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
Returns the first module in the ordered set where contextName = ?.
|
static Module |
findByContextName_Last(java.lang.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,
java.lang.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 java.util.List<Module> |
findByContextName(java.lang.String contextName)
Returns all the modules where contextName = ?.
|
static java.util.List<Module> |
findByContextName(java.lang.String contextName,
int start,
int end)
Returns a range of all the modules where contextName = ?.
|
static java.util.List<Module> |
findByContextName(java.lang.String contextName,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
Returns an ordered range of all the modules where contextName = ?.
|
static java.util.List<Module> |
findByContextName(java.lang.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 |
findByPrimaryKey(long moduleId)
Returns the module with the primary key or throws a
NoSuchModuleException if it could not be found. |
static Module |
findByUuid_C_First(java.lang.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(java.lang.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,
java.lang.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 java.util.List<Module> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the modules where uuid = ? and companyId = ?.
|
static java.util.List<Module> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the modules where uuid = ? and companyId = ?.
|
static java.util.List<Module> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
Returns an ordered range of all the modules where uuid = ? and companyId = ?.
|
static java.util.List<Module> |
findByUuid_C(java.lang.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_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
Returns the first module in the ordered set where uuid = ?.
|
static Module |
findByUuid_Last(java.lang.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,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
Returns the modules before and after the current module in the ordered set where uuid = ?.
|
static java.util.List<Module> |
findByUuid(java.lang.String uuid)
Returns all the modules where uuid = ?.
|
static java.util.List<Module> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the modules where uuid = ?.
|
static java.util.List<Module> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
Returns an ordered range of all the modules where uuid = ?.
|
static java.util.List<Module> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the modules where uuid = ?.
|
static java.util.List<Module> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<Module> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<Module> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) |
static ModulePersistence |
getPersistence() |
static Module |
remove(long moduleId)
Removes the module with the primary key from the database.
|
static void |
removeAll()
Removes all the modules from the database.
|
static Module |
removeByA_BSN_BV(long appId,
java.lang.String bundleSymbolicName,
java.lang.String bundleVersion)
Removes the module where appId = ? and bundleSymbolicName = ? and bundleVersion = ? from the database.
|
static Module |
removeByA_CN(long appId,
java.lang.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(java.lang.String bundleSymbolicName)
Removes all the modules where bundleSymbolicName = ? from the database.
|
static void |
removeByContextName(java.lang.String contextName)
Removes all the modules where contextName = ? from the database.
|
static void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the modules where uuid = ? and companyId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the modules where uuid = ? from the database.
|
static void |
setPersistence(ModulePersistence persistence) |
static Module |
update(Module module) |
static Module |
update(Module module,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static Module |
updateImpl(Module module) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(Module module)
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static java.util.Map<java.io.Serializable,Module> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<Module> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<Module> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<Module> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static Module update(Module module)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static Module update(Module module, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<Module> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<Module> findByUuid(java.lang.String uuid, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from ModuleModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of modulesend
- the upper bound of the range of modules (not inclusive)public static java.util.List<Module> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from ModuleModelImpl
.
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 (optionally null
)public static java.util.List<Module> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from ModuleModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static Module findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) throws NoSuchModuleException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchModuleException
- if a matching module could not be foundpublic static Module fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching module could not be foundpublic static Module findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) throws NoSuchModuleException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchModuleException
- if a matching module could not be foundpublic static Module fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching module could not be foundpublic static Module[] findByUuid_PrevAndNext(long moduleId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) throws NoSuchModuleException
moduleId
- the primary key of the current moduleuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchModuleException
- if a module with the primary key could not be foundpublic static void removeByUuid(java.lang.String uuid)
uuid
- the uuidpublic static int countByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<Module> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<Module> findByUuid_C(java.lang.String uuid, long companyId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from ModuleModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of modulesend
- the upper bound of the range of modules (not inclusive)public static java.util.List<Module> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from ModuleModelImpl
.
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 (optionally null
)public static java.util.List<Module> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from ModuleModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static Module findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) throws NoSuchModuleException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchModuleException
- if a matching module could not be foundpublic static Module fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching module could not be foundpublic static Module findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) throws NoSuchModuleException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchModuleException
- if a matching module could not be foundpublic static Module fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching module could not be foundpublic static Module[] findByUuid_C_PrevAndNext(long moduleId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) throws NoSuchModuleException
moduleId
- the primary key of the current moduleuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchModuleException
- if a module with the primary key could not be foundpublic static void removeByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static int countByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<Module> findByAppId(long appId)
appId
- the app IDpublic static java.util.List<Module> findByAppId(long appId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from ModuleModelImpl
.
appId
- the app IDstart
- the lower bound of the range of modulesend
- the upper bound of the range of modules (not inclusive)public static java.util.List<Module> findByAppId(long appId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from ModuleModelImpl
.
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 (optionally null
)public static java.util.List<Module> findByAppId(long appId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from ModuleModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static Module findByAppId_First(long appId, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) throws NoSuchModuleException
appId
- the app IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchModuleException
- if a matching module could not be foundpublic static Module fetchByAppId_First(long appId, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
appId
- the app IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching module could not be foundpublic static Module findByAppId_Last(long appId, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) throws NoSuchModuleException
appId
- the app IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchModuleException
- if a matching module could not be foundpublic static Module fetchByAppId_Last(long appId, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
appId
- the app IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching module could not be foundpublic static Module[] findByAppId_PrevAndNext(long moduleId, long appId, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) throws NoSuchModuleException
moduleId
- the primary key of the current moduleappId
- the app IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchModuleException
- if a module with the primary key could not be foundpublic static void removeByAppId(long appId)
appId
- the app IDpublic static int countByAppId(long appId)
appId
- the app IDpublic static java.util.List<Module> findByBundleSymbolicName(java.lang.String bundleSymbolicName)
bundleSymbolicName
- the bundle symbolic namepublic static java.util.List<Module> findByBundleSymbolicName(java.lang.String bundleSymbolicName, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from ModuleModelImpl
.
bundleSymbolicName
- the bundle symbolic namestart
- the lower bound of the range of modulesend
- the upper bound of the range of modules (not inclusive)public static java.util.List<Module> findByBundleSymbolicName(java.lang.String bundleSymbolicName, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from ModuleModelImpl
.
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 (optionally null
)public static java.util.List<Module> findByBundleSymbolicName(java.lang.String bundleSymbolicName, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from ModuleModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static Module findByBundleSymbolicName_First(java.lang.String bundleSymbolicName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) throws NoSuchModuleException
bundleSymbolicName
- the bundle symbolic nameorderByComparator
- the comparator to order the set by (optionally null
)NoSuchModuleException
- if a matching module could not be foundpublic static Module fetchByBundleSymbolicName_First(java.lang.String bundleSymbolicName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
bundleSymbolicName
- the bundle symbolic nameorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching module could not be foundpublic static Module findByBundleSymbolicName_Last(java.lang.String bundleSymbolicName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) throws NoSuchModuleException
bundleSymbolicName
- the bundle symbolic nameorderByComparator
- the comparator to order the set by (optionally null
)NoSuchModuleException
- if a matching module could not be foundpublic static Module fetchByBundleSymbolicName_Last(java.lang.String bundleSymbolicName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
bundleSymbolicName
- the bundle symbolic nameorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching module could not be foundpublic static Module[] findByBundleSymbolicName_PrevAndNext(long moduleId, java.lang.String bundleSymbolicName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) throws NoSuchModuleException
moduleId
- the primary key of the current modulebundleSymbolicName
- the bundle symbolic nameorderByComparator
- the comparator to order the set by (optionally null
)NoSuchModuleException
- if a module with the primary key could not be foundpublic static void removeByBundleSymbolicName(java.lang.String bundleSymbolicName)
bundleSymbolicName
- the bundle symbolic namepublic static int countByBundleSymbolicName(java.lang.String bundleSymbolicName)
bundleSymbolicName
- the bundle symbolic namepublic static java.util.List<Module> findByContextName(java.lang.String contextName)
contextName
- the context namepublic static java.util.List<Module> findByContextName(java.lang.String contextName, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from ModuleModelImpl
.
contextName
- the context namestart
- the lower bound of the range of modulesend
- the upper bound of the range of modules (not inclusive)public static java.util.List<Module> findByContextName(java.lang.String contextName, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from ModuleModelImpl
.
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 (optionally null
)public static java.util.List<Module> findByContextName(java.lang.String contextName, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from ModuleModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static Module findByContextName_First(java.lang.String contextName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) throws NoSuchModuleException
contextName
- the context nameorderByComparator
- the comparator to order the set by (optionally null
)NoSuchModuleException
- if a matching module could not be foundpublic static Module fetchByContextName_First(java.lang.String contextName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
contextName
- the context nameorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching module could not be foundpublic static Module findByContextName_Last(java.lang.String contextName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) throws NoSuchModuleException
contextName
- the context nameorderByComparator
- the comparator to order the set by (optionally null
)NoSuchModuleException
- if a matching module could not be foundpublic static Module fetchByContextName_Last(java.lang.String contextName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
contextName
- the context nameorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching module could not be foundpublic static Module[] findByContextName_PrevAndNext(long moduleId, java.lang.String contextName, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator) throws NoSuchModuleException
moduleId
- the primary key of the current modulecontextName
- the context nameorderByComparator
- the comparator to order the set by (optionally null
)NoSuchModuleException
- if a module with the primary key could not be foundpublic static void removeByContextName(java.lang.String contextName)
contextName
- the context namepublic static int countByContextName(java.lang.String contextName)
contextName
- the context namepublic static Module findByA_CN(long appId, java.lang.String contextName) throws NoSuchModuleException
NoSuchModuleException
if it could not be found.appId
- the app IDcontextName
- the context nameNoSuchModuleException
- if a matching module could not be foundpublic static Module fetchByA_CN(long appId, java.lang.String contextName)
null
if it could not be found. Uses the finder cache.appId
- the app IDcontextName
- the context namenull
if a matching module could not be foundpublic static Module fetchByA_CN(long appId, java.lang.String contextName, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.appId
- the app IDcontextName
- the context nameuseFinderCache
- whether to use the finder cachenull
if a matching module could not be foundpublic static Module removeByA_CN(long appId, java.lang.String contextName) throws NoSuchModuleException
appId
- the app IDcontextName
- the context nameNoSuchModuleException
public static int countByA_CN(long appId, java.lang.String contextName)
appId
- the app IDcontextName
- the context namepublic static Module findByA_BSN_BV(long appId, java.lang.String bundleSymbolicName, java.lang.String bundleVersion) throws NoSuchModuleException
NoSuchModuleException
if it could not be found.appId
- the app IDbundleSymbolicName
- the bundle symbolic namebundleVersion
- the bundle versionNoSuchModuleException
- if a matching module could not be foundpublic static Module fetchByA_BSN_BV(long appId, java.lang.String bundleSymbolicName, java.lang.String bundleVersion)
null
if it could not be found. Uses the finder cache.appId
- the app IDbundleSymbolicName
- the bundle symbolic namebundleVersion
- the bundle versionnull
if a matching module could not be foundpublic static Module fetchByA_BSN_BV(long appId, java.lang.String bundleSymbolicName, java.lang.String bundleVersion, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.appId
- the app IDbundleSymbolicName
- the bundle symbolic namebundleVersion
- the bundle versionuseFinderCache
- whether to use the finder cachenull
if a matching module could not be foundpublic static Module removeByA_BSN_BV(long appId, java.lang.String bundleSymbolicName, java.lang.String bundleVersion) throws NoSuchModuleException
appId
- the app IDbundleSymbolicName
- the bundle symbolic namebundleVersion
- the bundle versionNoSuchModuleException
public static int countByA_BSN_BV(long appId, java.lang.String bundleSymbolicName, java.lang.String bundleVersion)
appId
- the app IDbundleSymbolicName
- the bundle symbolic namebundleVersion
- the bundle versionpublic static void cacheResult(Module module)
module
- the modulepublic static void cacheResult(java.util.List<Module> modules)
modules
- the modulespublic static Module create(long moduleId)
moduleId
- the primary key for the new modulepublic static Module remove(long moduleId) throws NoSuchModuleException
moduleId
- the primary key of the moduleNoSuchModuleException
- if a module with the primary key could not be foundpublic static Module findByPrimaryKey(long moduleId) throws NoSuchModuleException
NoSuchModuleException
if it could not be found.moduleId
- the primary key of the moduleNoSuchModuleException
- if a module with the primary key could not be foundpublic static Module fetchByPrimaryKey(long moduleId)
null
if it could not be found.moduleId
- the primary key of the modulenull
if a module with the primary key could not be foundpublic static java.util.List<Module> findAll()
public static java.util.List<Module> findAll(int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from ModuleModelImpl
.
start
- the lower bound of the range of modulesend
- the upper bound of the range of modules (not inclusive)public static java.util.List<Module> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from ModuleModelImpl
.
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 (optionally null
)public static java.util.List<Module> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<Module> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from ModuleModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static ModulePersistence getPersistence()
public static void setPersistence(ModulePersistence persistence)